物管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

51333 lines
5.7 MiB

(function(){"use strict";class FFe{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(b){setTimeout(()=>{throw b.stack?_2.isErrorNoTelemetry(b)?new _2(b.message+`
`+b.stack):new Error(b.message+`
`+b.stack):b},0)}}emit(b){this.listeners.forEach(I=>{I(b)})}onUnexpectedError(b){this.unexpectedErrorHandler(b),this.emit(b)}onUnexpectedExternalError(b){this.unexpectedErrorHandler(b)}}const zFe=new FFe;function bB(g){BFe(g)||zFe.onUnexpectedError(g)}function vbe(g){if(g instanceof Error){const{name:b,message:I}=g,z=g.stacktrace||g.stack;return{$isError:!0,name:b,message:I,stack:z,noTelemetry:_2.isErrorNoTelemetry(g)}}return g}const pte="Canceled";function BFe(g){return g instanceof GFe?!0:g instanceof Error&&g.name===pte&&g.message===pte}class GFe extends Error{constructor(){super(pte),this.name=this.message}}class _2 extends Error{constructor(b){super(b),this.name="CodeExpectedError"}static fromError(b){if(b instanceof _2)return b;const I=new _2;return I.message=b.message,I.stack=b.stack,I}static isErrorNoTelemetry(b){return b.name==="CodeExpectedError"}}class tS extends Error{constructor(b){super(b||"An unexpected bug occurred."),Object.setPrototypeOf(this,tS.prototype)}}function VFe(g,b){const I=this;let z=!1,ee;return function(){return z||(z=!0,ee=g.apply(I,arguments)),ee}}var EB;(function(g){function b(oi){return oi&&typeof oi=="object"&&typeof oi[Symbol.iterator]=="function"}g.is=b;const I=Object.freeze([]);function z(){return I}g.empty=z;function*ee(oi){yield oi}g.single=ee;function _e(oi){return b(oi)?oi:ee(oi)}g.wrap=_e;function Re(oi){return oi||I}g.from=Re;function*Ge(oi){for(let mi=oi.length-1;mi>=0;mi--)yield oi[mi]}g.reverse=Ge;function at(oi){return!oi||oi[Symbol.iterator]().next().done===!0}g.isEmpty=at;function Ne(oi){return oi[Symbol.iterator]().next().value}g.first=Ne;function Xe(oi,mi){for(const Yi of oi)if(mi(Yi))return!0;return!1}g.some=Xe;function $t(oi,mi){for(const Yi of oi)if(mi(Yi))return Yi}g.find=$t;function*Ht(oi,mi){for(const Yi of oi)mi(Yi)&&(yield Yi)}g.filter=Ht;function*pn(oi,mi){let Yi=0;for(const ja of oi)yield mi(ja,Yi++)}g.map=pn;function*Pr(...oi){for(const mi of oi)yield*mi}g.concat=Pr;function gi(oi,mi,Yi){let ja=Yi;for(const Or of oi)ja=mi(ja,Or);return ja}g.reduce=gi;function*io(oi,mi,Yi=oi.length){for(mi<0&&(mi+=oi.length),Yi<0?Yi+=oi.length:Yi>oi.length&&(Yi=oi.length);mi<Yi;mi++)yield oi[mi]}g.slice=io;function Jn(oi,mi=Number.POSITIVE_INFINITY){const Yi=[];if(mi===0)return[Yi,oi];const ja=oi[Symbol.iterator]();for(let Or=0;Or<mi;Or++){const Ba=ja.next();if(Ba.done)return[Yi,g.empty()];Yi.push(Ba.value)}return[Yi,{[Symbol.iterator](){return ja}}]}g.consume=Jn;async function In(oi){const mi=[];for await(const Yi of oi)mi.push(Yi);return Promise.resolve(mi)}g.asyncToArray=In})(EB||(EB={}));function Vyt(g){return g}function jyt(g,b){}function ybe(g){if(EB.is(g)){const b=[];for(const I of g)if(I)try{I.dispose()}catch(z){b.push(z)}if(b.length===1)throw b[0];if(b.length>1)throw new AggregateError(b,"Encountered errors while disposing of store");return Array.isArray(g)?[]:g}else if(g)return g.dispose(),g}function jFe(...g){return SB(()=>ybe(g))}function SB(g){return{dispose:VFe(()=>{g()})}}class h2{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{ybe(this._toDispose)}finally{this._toDispose.clear()}}add(b){if(!b)return b;if(b===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?h2.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(b),b}deleteAndLeak(b){b&&this._toDispose.has(b)&&this._toDispose.delete(b)}}h2.DISABLE_DISPOSED_WARNING=!1;class l6{constructor(){this._store=new h2,this._store}dispose(){this._store.dispose()}_register(b){if(b===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(b)}}l6.None=Object.freeze({dispose(){}});class Ed{constructor(b){this.element=b,this.next=Ed.Undefined,this.prev=Ed.Undefined}}Ed.Undefined=new Ed(void 0);class UFe{constructor(){this._first=Ed.Undefined,this._last=Ed.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Ed.Undefined}clear(){let b=this._first;for(;b!==Ed.Undefined;){const I=b.next;b.prev=Ed.Undefined,b.next=Ed.Undefined,b=I}this._first=Ed.Undefined,this._last=Ed.Undefined,this._size=0}unshift(b){return this._insert(b,!1)}push(b){return this._insert(b,!0)}_insert(b,I){const z=new Ed(b);if(this._first===Ed.Undefined)this._first=z,this._last=z;else if(I){const _e=this._last;this._last=z,z.prev=_e,_e.next=z}else{const _e=this._first;this._first=z,z.next=_e,_e.prev=z}this._size+=1;let ee=!1;return()=>{ee||(ee=!0,this._remove(z))}}shift(){if(this._first!==Ed.Undefined){const b=this._first.element;return this._remove(this._first),b}}pop(){if(this._last!==Ed.Undefined){const b=this._last.element;return this._remove(this._last),b}}_remove(b){if(b.prev!==Ed.Undefined&&b.next!==Ed.Undefined){const I=b.prev;I.next=b.next,b.next.prev=I}else b.prev===Ed.Undefined&&b.next===Ed.Undefined?(this._first=Ed.Undefined,this._last=Ed.Undefined):b.next===Ed.Undefined?(this._last=this._last.prev,this._last.next=Ed.Undefined):b.prev===Ed.Undefined&&(this._first=this._first.next,this._first.prev=Ed.Undefined);this._size-=1}*[Symbol.iterator](){let b=this._first;for(;b!==Ed.Undefined;)yield b.element,b=b.next}}const HFe=globalThis.performance&&typeof globalThis.performance.now=="function";class TB{static create(b){return new TB(b)}constructor(b){this._now=HFe&&b===!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}}var fte;(function(g){g.None=()=>l6.None;function b(mn,li){return $t(mn,()=>{},0,void 0,!0,void 0,li)}g.defer=b;function I(mn){return(li,jo=null,Wt)=>{let Qa=!1,Zo;return Zo=mn(Cs=>{if(!Qa)return Zo?Zo.dispose():Qa=!0,li.call(jo,Cs)},null,Wt),Qa&&Zo.dispose(),Zo}}g.once=I;function z(mn,li,jo){return Ne((Wt,Qa=null,Zo)=>mn(Cs=>Wt.call(Qa,li(Cs)),null,Zo),jo)}g.map=z;function ee(mn,li,jo){return Ne((Wt,Qa=null,Zo)=>mn(Cs=>{li(Cs),Wt.call(Qa,Cs)},null,Zo),jo)}g.forEach=ee;function _e(mn,li,jo){return Ne((Wt,Qa=null,Zo)=>mn(Cs=>li(Cs)&&Wt.call(Qa,Cs),null,Zo),jo)}g.filter=_e;function Re(mn){return mn}g.signal=Re;function Ge(...mn){return(li,jo=null,Wt)=>{const Qa=jFe(...mn.map(Zo=>Zo(Cs=>li.call(jo,Cs))));return Xe(Qa,Wt)}}g.any=Ge;function at(mn,li,jo,Wt){let Qa=jo;return z(mn,Zo=>(Qa=li(Qa,Zo),Qa),Wt)}g.reduce=at;function Ne(mn,li){let jo;const Wt={onWillAddFirstListener(){jo=mn(Qa.fire,Qa)},onDidRemoveLastListener(){jo==null||jo.dispose()}},Qa=new _E(Wt);return li==null||li.add(Qa),Qa.event}function Xe(mn,li){return li instanceof Array?li.push(mn):li&&li.add(mn),mn}function $t(mn,li,jo=100,Wt=!1,Qa=!1,Zo,Cs){let Do,kp,EE,Cx=0,Jb;const eo={leakWarningThreshold:Zo,onWillAddFirstListener(){Do=mn(v6=>{Cx++,kp=li(kp,v6),Wt&&!EE&&(Kb.fire(kp),kp=void 0),Jb=()=>{const dA=kp;kp=void 0,EE=void 0,(!Wt||Cx>1)&&Kb.fire(dA),Cx=0},typeof jo=="number"?(clearTimeout(EE),EE=setTimeout(Jb,jo)):EE===void 0&&(EE=0,queueMicrotask(Jb))})},onWillRemoveListener(){Qa&&Cx>0&&(Jb==null||Jb())},onDidRemoveLastListener(){Jb=void 0,Do.dispose()}},Kb=new _E(eo);return Cs==null||Cs.add(Kb),Kb.event}g.debounce=$t;function Ht(mn,li=0,jo){return g.debounce(mn,(Wt,Qa)=>Wt?(Wt.push(Qa),Wt):[Qa],li,void 0,!0,void 0,jo)}g.accumulate=Ht;function pn(mn,li=(Wt,Qa)=>Wt===Qa,jo){let Wt=!0,Qa;return _e(mn,Zo=>{const Cs=Wt||!li(Zo,Qa);return Wt=!1,Qa=Zo,Cs},jo)}g.latch=pn;function Pr(mn,li,jo){return[g.filter(mn,li,jo),g.filter(mn,Wt=>!li(Wt),jo)]}g.split=Pr;function gi(mn,li=!1,jo=[],Wt){let Qa=jo.slice(),Zo=mn(kp=>{Qa?Qa.push(kp):Do.fire(kp)});Wt&&Wt.add(Zo);const Cs=()=>{Qa==null||Qa.forEach(kp=>Do.fire(kp)),Qa=null},Do=new _E({onWillAddFirstListener(){Zo||(Zo=mn(kp=>Do.fire(kp)),Wt&&Wt.add(Zo))},onDidAddFirstListener(){Qa&&(li?setTimeout(Cs):Cs())},onDidRemoveLastListener(){Zo&&Zo.dispose(),Zo=null}});return Wt&&Wt.add(Do),Do.event}g.buffer=gi;function io(mn,li){return(Wt,Qa,Zo)=>{const Cs=li(new In);return mn(function(Do){const kp=Cs.evaluate(Do);kp!==Jn&&Wt.call(Qa,kp)},void 0,Zo)}}g.chain=io;const Jn=Symbol("HaltChainable");class In{constructor(){this.steps=[]}map(li){return this.steps.push(li),this}forEach(li){return this.steps.push(jo=>(li(jo),jo)),this}filter(li){return this.steps.push(jo=>li(jo)?jo:Jn),this}reduce(li,jo){let Wt=jo;return this.steps.push(Qa=>(Wt=li(Wt,Qa),Wt)),this}latch(li=(jo,Wt)=>jo===Wt){let jo=!0,Wt;return this.steps.push(Qa=>{const Zo=jo||!li(Qa,Wt);return jo=!1,Wt=Qa,Zo?Qa:Jn}),this}evaluate(li){for(const jo of this.steps)if(li=jo(li),li===Jn)break;return li}}function oi(mn,li,jo=Wt=>Wt){const Wt=(...Do)=>Cs.fire(jo(...Do)),Qa=()=>mn.on(li,Wt),Zo=()=>mn.removeListener(li,Wt),Cs=new _E({onWillAddFirstListener:Qa,onDidRemoveLastListener:Zo});return Cs.event}g.fromNodeEventEmitter=oi;function mi(mn,li,jo=Wt=>Wt){const Wt=(...Do)=>Cs.fire(jo(...Do)),Qa=()=>mn.addEventListener(li,Wt),Zo=()=>mn.removeEventListener(li,Wt),Cs=new _E({onWillAddFirstListener:Qa,onDidRemoveLastListener:Zo});return Cs.event}g.fromDOMEventEmitter=mi;function Yi(mn){return new Promise(li=>I(mn)(li))}g.toPromise=Yi;function ja(mn){const li=new _E;return mn.then(jo=>{li.fire(jo)},()=>{li.fire(void 0)}).finally(()=>{li.dispose()}),li.event}g.fromPromise=ja;function Or(mn,li,jo){return li(jo),mn(Wt=>li(Wt))}g.runAndSubscribe=Or;class Ba{constructor(li,jo){this._observable=li,this._counter=0,this._hasChanged=!1;const Wt={onWillAddFirstListener:()=>{li.addObserver(this)},onDidRemoveLastListener:()=>{li.removeObserver(this)}};this.emitter=new _E(Wt),jo&&jo.add(this.emitter)}beginUpdate(li){this._counter++}handlePossibleChange(li){}handleChange(li,jo){this._hasChanged=!0}endUpdate(li){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Jc(mn,li){return new Ba(mn,li).emitter.event}g.fromObservable=Jc;function ou(mn){return(li,jo,Wt)=>{let Qa=0,Zo=!1;const Cs={beginUpdate(){Qa++},endUpdate(){Qa--,Qa===0&&(mn.reportChanges(),Zo&&(Zo=!1,li.call(jo)))},handlePossibleChange(){},handleChange(){Zo=!0}};mn.addObserver(Cs),mn.reportChanges();const Do={dispose(){mn.removeObserver(Cs)}};return Wt instanceof h2?Wt.add(Do):Array.isArray(Wt)&&Wt.push(Do),Do}}g.fromObservableLight=ou})(fte||(fte={}));class g2{constructor(b){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${b}_${g2._idPool++}`,g2.all.add(this)}start(b){this._stopWatch=new TB,this.listenerCount=b}stop(){if(this._stopWatch){const b=this._stopWatch.elapsed();this.durations.push(b),this.elapsedOverall+=b,this.invocationCount+=1,this._stopWatch=void 0}}}g2.all=new Set,g2._idPool=0;let qFe=-1;class JFe{constructor(b,I,z=Math.random().toString(18).slice(2,5)){this._errorHandler=b,this.threshold=I,this.name=z,this._warnCountdown=0}dispose(){var b;(b=this._stacks)===null||b===void 0||b.clear()}check(b,I){const z=this.threshold;if(z<=0||I<z)return;this._stacks||(this._stacks=new Map);const ee=this._stacks.get(b.value)||0;if(this._stacks.set(b.value,ee+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=z*.5;const[_e,Re]=this.getMostFrequentStack(),Ge=`[${this.name}] potential listener LEAK detected, having ${I} listeners already. MOST frequent listener (${Re}):`;console.warn(Ge),console.warn(_e);const at=new KFe(Ge,_e);this._errorHandler(at)}return()=>{const _e=this._stacks.get(b.value)||0;this._stacks.set(b.value,_e-1)}}getMostFrequentStack(){if(!this._stacks)return;let b,I=0;for(const[z,ee]of this._stacks)(!b||I<ee)&&(b=[z,ee],I=ee);return b}}class mte{static create(){var b;const I=new Error;return new mte((b=I.stack)!==null&&b!==void 0?b:"")}constructor(b){this.value=b}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}class KFe extends Error{constructor(b,I){super(b),this.name="ListenerLeakError",this.stack=I}}class XFe extends Error{constructor(b,I){super(b),this.name="ListenerRefusalError",this.stack=I}}class _te{constructor(b){this.value=b}}const YFe=2;class _E{constructor(b){var I,z,ee,_e,Re,Ge;this._size=0,this._options=b,this._leakageMon=!((I=this._options)===null||I===void 0)&&I.leakWarningThreshold?new JFe((z=b==null?void 0:b.onListenerError)!==null&&z!==void 0?z:bB,(_e=(ee=this._options)===null||ee===void 0?void 0:ee.leakWarningThreshold)!==null&&_e!==void 0?_e:qFe):void 0,this._perfMon=!((Re=this._options)===null||Re===void 0)&&Re._profName?new g2(this._options._profName):void 0,this._deliveryQueue=(Ge=this._options)===null||Ge===void 0?void 0:Ge.deliveryQueue}dispose(){var b,I,z,ee;this._disposed||(this._disposed=!0,((b=this._deliveryQueue)===null||b===void 0?void 0:b.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(z=(I=this._options)===null||I===void 0?void 0:I.onDidRemoveLastListener)===null||z===void 0||z.call(I),(ee=this._leakageMon)===null||ee===void 0||ee.dispose())}get event(){var b;return(b=this._event)!==null&&b!==void 0||(this._event=(I,z,ee)=>{var _e,Re,Ge,at,Ne,Xe,$t;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const gi=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(gi);const io=(_e=this._leakageMon.getMostFrequentStack())!==null&&_e!==void 0?_e:["UNKNOWN stack",-1],Jn=new XFe(`${gi}. HINT: Stack shows most frequent listener (${io[1]}-times)`,io[0]);return(((Re=this._options)===null||Re===void 0?void 0:Re.onListenerError)||bB)(Jn),l6.None}if(this._disposed)return l6.None;z&&(I=I.bind(z));const Ht=new _te(I);let pn;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(Ht.stack=mte.create(),pn=this._leakageMon.check(Ht.stack,this._size+1)),this._listeners?this._listeners instanceof _te?(($t=this._deliveryQueue)!==null&&$t!==void 0||(this._deliveryQueue=new $Fe),this._listeners=[this._listeners,Ht]):this._listeners.push(Ht):((at=(Ge=this._options)===null||Ge===void 0?void 0:Ge.onWillAddFirstListener)===null||at===void 0||at.call(Ge,this),this._listeners=Ht,(Xe=(Ne=this._options)===null||Ne===void 0?void 0:Ne.onDidAddFirstListener)===null||Xe===void 0||Xe.call(Ne,this)),this._size++;const Pr=SB(()=>{pn==null||pn(),this._removeListener(Ht)});return ee instanceof h2?ee.add(Pr):Array.isArray(ee)&&ee.push(Pr),Pr}),this._event}_removeListener(b){var I,z,ee,_e;if((z=(I=this._options)===null||I===void 0?void 0:I.onWillRemoveListener)===null||z===void 0||z.call(I,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(_e=(ee=this._options)===null||ee===void 0?void 0:ee.onDidRemoveLastListener)===null||_e===void 0||_e.call(ee,this),this._size=0;return}const Re=this._listeners,Ge=Re.indexOf(b);if(Ge===-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--,Re[Ge]=void 0;const at=this._deliveryQueue.current===this;if(this._size*YFe<=Re.length){let Ne=0;for(let Xe=0;Xe<Re.length;Xe++)Re[Xe]?Re[Ne++]=Re[Xe]:at&&(this._deliveryQueue.end--,Ne<this._deliveryQueue.i&&this._deliveryQueue.i--);Re.length=Ne}}_deliver(b,I){var z;if(!b)return;const ee=((z=this._options)===null||z===void 0?void 0:z.onListenerError)||bB;if(!ee){b.value(I);return}try{b.value(I)}catch(_e){ee(_e)}}_deliverQueue(b){const I=b.current._listeners;for(;b.i<b.end;)this._deliver(I[b.i++],b.value);b.reset()}fire(b){var I,z,ee,_e;if(!((I=this._deliveryQueue)===null||I===void 0)&&I.current&&(this._deliverQueue(this._deliveryQueue),(z=this._perfMon)===null||z===void 0||z.stop()),(ee=this._perfMon)===null||ee===void 0||ee.start(this._size),this._listeners)if(this._listeners instanceof _te)this._deliver(this._listeners,b);else{const Re=this._deliveryQueue;Re.enqueue(this,b,this._listeners.length),this._deliverQueue(Re)}(_e=this._perfMon)===null||_e===void 0||_e.stop()}hasListeners(){return this._size>0}}class $Fe{constructor(){this.i=-1,this.end=0}enqueue(b,I,z){this.i=0,this.end=z,this.current=b,this.value=I}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function QFe(g){return typeof g=="string"}function ZFe(g){let b=[];for(;Object.prototype!==g;)b=b.concat(Object.getOwnPropertyNames(g)),g=Object.getPrototypeOf(g);return b}function hte(g){const b=[];for(const I of ZFe(g))typeof g[I]=="function"&&b.push(I);return b}function e7e(g,b){const I=ee=>function(){const _e=Array.prototype.slice.call(arguments,0);return b(ee,_e)},z={};for(const ee of g)z[ee]=I(ee);return z}let t7e=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function n7e(g,b){let I;return b.length===0?I=g:I=g.replace(/\{(\d+)\}/g,(z,ee)=>{const _e=ee[0],Re=b[_e];let Ge=z;return typeof Re=="string"?Ge=Re:(typeof Re=="number"||typeof Re=="boolean"||Re===void 0||Re===null)&&(Ge=String(Re)),Ge}),t7e&&(I="["+I.replace(/[aouei]/g,"$&$&")+"]"),I}function wd(g,b,...I){return n7e(b,I)}function Uyt(g){}var gte,vte;const v2="en";let yte=!1,bte=!1,Ete=!1,AB,Ste=v2,bbe=v2,r7e,hE;const zN=globalThis;let rh;typeof zN.vscode<"u"&&typeof zN.vscode.process<"u"?rh=zN.vscode.process:typeof process<"u"&&typeof((gte=process==null?void 0:process.versions)===null||gte===void 0?void 0:gte.node)=="string"&&(rh=process);const i7e=typeof((vte=rh==null?void 0:rh.versions)===null||vte===void 0?void 0:vte.electron)=="string"&&(rh==null?void 0:rh.type)==="renderer";if(typeof rh=="object"){yte=rh.platform==="win32",bte=rh.platform==="darwin",Ete=rh.platform==="linux",Ete&&rh.env.SNAP&&rh.env.SNAP_REVISION,rh.env.CI||rh.env.BUILD_ARTIFACTSTAGINGDIRECTORY,AB=v2,Ste=v2;const g=rh.env.VSCODE_NLS_CONFIG;if(g)try{const b=JSON.parse(g),I=b.availableLanguages["*"];AB=b.locale,bbe=b.osLocale,Ste=I||v2,r7e=b._translationsConfigFile}catch{}}else typeof navigator=="object"&&!i7e?(hE=navigator.userAgent,yte=hE.indexOf("Windows")>=0,bte=hE.indexOf("Macintosh")>=0,(hE.indexOf("Macintosh")>=0||hE.indexOf("iPad")>=0||hE.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Ete=hE.indexOf("Linux")>=0,(hE==null?void 0:hE.indexOf("Mobi"))>=0,wd({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),AB=v2,Ste=AB,bbe=navigator.language):console.error("Unable to resolve platform.");const c6=yte,o7e=bte,nS=hE,a7e=typeof zN.postMessage=="function"&&!zN.importScripts;(()=>{if(a7e){const g=[];zN.addEventListener("message",I=>{if(I.data&&I.data.vscodeScheduleAsyncWork)for(let z=0,ee=g.length;z<ee;z++){const _e=g[z];if(_e.id===I.data.vscodeScheduleAsyncWork){g.splice(z,1),_e.callback();return}}});let b=0;return I=>{const z=++b;g.push({id:z,callback:I}),zN.postMessage({vscodeScheduleAsyncWork:z},"*")}}return g=>setTimeout(g)})();const s7e=!!(nS&&nS.indexOf("Chrome")>=0);nS&&nS.indexOf("Firefox")>=0,!s7e&&nS&&nS.indexOf("Safari")>=0,nS&&nS.indexOf("Edg/")>=0,nS&&nS.indexOf("Android")>=0;function l7e(g){return g}class c7e{constructor(b,I){this.lastCache=void 0,this.lastArgKey=void 0,typeof b=="function"?(this._fn=b,this._computeKey=l7e):(this._fn=I,this._computeKey=b.getCacheKey)}get(b){const I=this._computeKey(b);return this.lastArgKey!==I&&(this.lastArgKey=I,this.lastCache=this._fn(b)),this.lastCache}}class Ebe{constructor(b){this.executor=b,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(b){this._error=b}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var y2;function u7e(g){return g.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d7e(g){return g.split(/\r\n|\r|\n/)}function p7e(g){for(let b=0,I=g.length;b<I;b++){const z=g.charCodeAt(b);if(z!==32&&z!==9)return b}return-1}function f7e(g,b=g.length-1){for(let I=b;I>=0;I--){const z=g.charCodeAt(I);if(z!==32&&z!==9)return I}return-1}function Sbe(g){return g>=65&&g<=90}function Tte(g){return 55296<=g&&g<=56319}function m7e(g){return 56320<=g&&g<=57343}function _7e(g,b){return(g-55296<<10)+(b-56320)+65536}function h7e(g,b,I){const z=g.charCodeAt(I);if(Tte(z)&&I+1<b){const ee=g.charCodeAt(I+1);if(m7e(ee))return _7e(z,ee)}return z}const g7e=/^[\t\n\r\x20-\x7E]*$/;function v7e(g){return g7e.test(g)}class BN{static getInstance(b){return y2.cache.get(Array.from(b))}static getLocales(){return y2._locales.value}constructor(b){this.confusableDictionary=b}isAmbiguous(b){return this.confusableDictionary.has(b)}getPrimaryConfusable(b){return this.confusableDictionary.get(b)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}y2=BN,BN.ambiguousCharacterData=new Ebe(()=>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]}')),BN.cache=new c7e({getCacheKey:JSON.stringify},g=>{function b(Ne){const Xe=new Map;for(let $t=0;$t<Ne.length;$t+=2)Xe.set(Ne[$t],Ne[$t+1]);return Xe}function I(Ne,Xe){const $t=new Map(Ne);for(const[Ht,pn]of Xe)$t.set(Ht,pn);return $t}function z(Ne,Xe){if(!Ne)return Xe;const $t=new Map;for(const[Ht,pn]of Ne)Xe.has(Ht)&&$t.set(Ht,pn);return $t}const ee=y2.ambiguousCharacterData.value;let _e=g.filter(Ne=>!Ne.startsWith("_")&&Ne in ee);_e.length===0&&(_e=["_default"]);let Re;for(const Ne of _e){const Xe=b(ee[Ne]);Re=z(Re,Xe)}const Ge=b(ee._common),at=I(Ge,Re);return new y2(at)}),BN._locales=new Ebe(()=>Object.keys(y2.ambiguousCharacterData.value).filter(g=>!g.startsWith("_")));class Ex{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(Ex.getRawData())),this._data}static isInvisibleCharacter(b){return Ex.getData().has(b)}static get codePoints(){return Ex.getData()}}Ex._data=void 0;const y7e="$initialize";class b7e{constructor(b,I,z,ee){this.vsWorker=b,this.req=I,this.method=z,this.args=ee,this.type=0}}class Tbe{constructor(b,I,z,ee){this.vsWorker=b,this.seq=I,this.res=z,this.err=ee,this.type=1}}class E7e{constructor(b,I,z,ee){this.vsWorker=b,this.req=I,this.eventName=z,this.arg=ee,this.type=2}}class S7e{constructor(b,I,z){this.vsWorker=b,this.req=I,this.event=z,this.type=3}}class T7e{constructor(b,I){this.vsWorker=b,this.req=I,this.type=4}}class A7e{constructor(b){this._workerId=-1,this._handler=b,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(b){this._workerId=b}sendMessage(b,I){const z=String(++this._lastSentReq);return new Promise((ee,_e)=>{this._pendingReplies[z]={resolve:ee,reject:_e},this._send(new b7e(this._workerId,z,b,I))})}listen(b,I){let z=null;const ee=new _E({onWillAddFirstListener:()=>{z=String(++this._lastSentReq),this._pendingEmitters.set(z,ee),this._send(new E7e(this._workerId,z,b,I))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(z),this._send(new T7e(this._workerId,z)),z=null}});return ee.event}handleMessage(b){!b||!b.vsWorker||this._workerId!==-1&&b.vsWorker!==this._workerId||this._handleMessage(b)}_handleMessage(b){switch(b.type){case 1:return this._handleReplyMessage(b);case 0:return this._handleRequestMessage(b);case 2:return this._handleSubscribeEventMessage(b);case 3:return this._handleEventMessage(b);case 4:return this._handleUnsubscribeEventMessage(b)}}_handleReplyMessage(b){if(!this._pendingReplies[b.seq]){console.warn("Got reply to unknown seq");return}const I=this._pendingReplies[b.seq];if(delete this._pendingReplies[b.seq],b.err){let z=b.err;b.err.$isError&&(z=new Error,z.name=b.err.name,z.message=b.err.message,z.stack=b.err.stack),I.reject(z);return}I.resolve(b.res)}_handleRequestMessage(b){const I=b.req;this._handler.handleMessage(b.method,b.args).then(ee=>{this._send(new Tbe(this._workerId,I,ee,void 0))},ee=>{ee.detail instanceof Error&&(ee.detail=vbe(ee.detail)),this._send(new Tbe(this._workerId,I,void 0,vbe(ee)))})}_handleSubscribeEventMessage(b){const I=b.req,z=this._handler.handleEvent(b.eventName,b.arg)(ee=>{this._send(new S7e(this._workerId,I,ee))});this._pendingEvents.set(I,z)}_handleEventMessage(b){if(!this._pendingEmitters.has(b.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(b.req).fire(b.event)}_handleUnsubscribeEventMessage(b){if(!this._pendingEvents.has(b.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(b.req).dispose(),this._pendingEvents.delete(b.req)}_send(b){const I=[];if(b.type===0)for(let z=0;z<b.args.length;z++)b.args[z]instanceof ArrayBuffer&&I.push(b.args[z]);else b.type===1&&b.res instanceof ArrayBuffer&&I.push(b.res);this._handler.sendMessage(b,I)}}function Abe(g){return g[0]==="o"&&g[1]==="n"&&Sbe(g.charCodeAt(2))}function Ibe(g){return/^onDynamic/.test(g)&&Sbe(g.charCodeAt(9))}function I7e(g,b,I){const z=Re=>function(){const Ge=Array.prototype.slice.call(arguments,0);return b(Re,Ge)},ee=Re=>function(Ge){return I(Re,Ge)},_e={};for(const Re of g){if(Ibe(Re)){_e[Re]=ee(Re);continue}if(Abe(Re)){_e[Re]=I(Re,void 0);continue}_e[Re]=z(Re)}return _e}class x7e{constructor(b,I){this._requestHandlerFactory=I,this._requestHandler=null,this._protocol=new A7e({sendMessage:(z,ee)=>{b(z,ee)},handleMessage:(z,ee)=>this._handleMessage(z,ee),handleEvent:(z,ee)=>this._handleEvent(z,ee)})}onmessage(b){this._protocol.handleMessage(b)}_handleMessage(b,I){if(b===y7e)return this.initialize(I[0],I[1],I[2],I[3]);if(!this._requestHandler||typeof this._requestHandler[b]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+b));try{return Promise.resolve(this._requestHandler[b].apply(this._requestHandler,I))}catch(z){return Promise.reject(z)}}_handleEvent(b,I){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Ibe(b)){const z=this._requestHandler[b].call(this._requestHandler,I);if(typeof z!="function")throw new Error(`Missing dynamic event ${b} on request handler.`);return z}if(Abe(b)){const z=this._requestHandler[b];if(typeof z!="function")throw new Error(`Missing event ${b} on request handler.`);return z}throw new Error(`Malformed event name ${b}`)}initialize(b,I,z,ee){this._protocol.setWorkerId(b);const Ge=I7e(ee,(at,Ne)=>this._protocol.sendMessage(at,Ne),(at,Ne)=>this._protocol.listen(at,Ne));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(Ge),Promise.resolve(hte(this._requestHandler))):(I&&(typeof I.baseUrl<"u"&&delete I.baseUrl,typeof I.paths<"u"&&typeof I.paths.vs<"u"&&delete I.paths.vs,typeof I.trustedTypesPolicy<"u"&&delete I.trustedTypesPolicy,I.catchError=!0,globalThis.require.config(I)),new Promise((at,Ne)=>{const Xe=globalThis.require;Xe([z],$t=>{if(this._requestHandler=$t.create(Ge),!this._requestHandler){Ne(new Error("No RequestHandler!"));return}at(hte(this._requestHandler))},Ne)}))}}class Sx{constructor(b,I,z,ee){this.originalStart=b,this.originalLength=I,this.modifiedStart=z,this.modifiedLength=ee}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function xbe(g,b){return(b<<5)-b+g|0}function R7e(g,b){b=xbe(149417,b);for(let I=0,z=g.length;I<z;I++)b=xbe(g.charCodeAt(I),b);return b}class Rbe{constructor(b){this.source=b}getElements(){const b=this.source,I=new Int32Array(b.length);for(let z=0,ee=b.length;z<ee;z++)I[z]=b.charCodeAt(z);return I}}function D7e(g,b,I){return new Tx(new Rbe(g),new Rbe(b)).ComputeDiff(I).changes}class b2{static Assert(b,I){if(!b)throw new Error(I)}}class E2{static Copy(b,I,z,ee,_e){for(let Re=0;Re<_e;Re++)z[ee+Re]=b[I+Re]}static Copy2(b,I,z,ee,_e){for(let Re=0;Re<_e;Re++)z[ee+Re]=b[I+Re]}}class Dbe{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 Sx(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(b,I){this.m_originalStart=Math.min(this.m_originalStart,b),this.m_modifiedStart=Math.min(this.m_modifiedStart,I),this.m_originalCount++}AddModifiedElement(b,I){this.m_originalStart=Math.min(this.m_originalStart,b),this.m_modifiedStart=Math.min(this.m_modifiedStart,I),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 Tx{constructor(b,I,z=null){this.ContinueProcessingPredicate=z,this._originalSequence=b,this._modifiedSequence=I;const[ee,_e,Re]=Tx._getElements(b),[Ge,at,Ne]=Tx._getElements(I);this._hasStrings=Re&&Ne,this._originalStringElements=ee,this._originalElementsOrHash=_e,this._modifiedStringElements=Ge,this._modifiedElementsOrHash=at,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(b){return b.length>0&&typeof b[0]=="string"}static _getElements(b){const I=b.getElements();if(Tx._isStringArray(I)){const z=new Int32Array(I.length);for(let ee=0,_e=I.length;ee<_e;ee++)z[ee]=R7e(I[ee],0);return[I,z,!0]}return I instanceof Int32Array?[[],I,!1]:[[],new Int32Array(I),!1]}ElementsAreEqual(b,I){return this._originalElementsOrHash[b]!==this._modifiedElementsOrHash[I]?!1:this._hasStrings?this._originalStringElements[b]===this._modifiedStringElements[I]:!0}ElementsAreStrictEqual(b,I){if(!this.ElementsAreEqual(b,I))return!1;const z=Tx._getStrictElement(this._originalSequence,b),ee=Tx._getStrictElement(this._modifiedSequence,I);return z===ee}static _getStrictElement(b,I){return typeof b.getStrictElement=="function"?b.getStrictElement(I):null}OriginalElementsAreEqual(b,I){return this._originalElementsOrHash[b]!==this._originalElementsOrHash[I]?!1:this._hasStrings?this._originalStringElements[b]===this._originalStringElements[I]:!0}ModifiedElementsAreEqual(b,I){return this._modifiedElementsOrHash[b]!==this._modifiedElementsOrHash[I]?!1:this._hasStrings?this._modifiedStringElements[b]===this._modifiedStringElements[I]:!0}ComputeDiff(b){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,b)}_ComputeDiff(b,I,z,ee,_e){const Re=[!1];let Ge=this.ComputeDiffRecursive(b,I,z,ee,Re);return _e&&(Ge=this.PrettifyChanges(Ge)),{quitEarly:Re[0],changes:Ge}}ComputeDiffRecursive(b,I,z,ee,_e){for(_e[0]=!1;b<=I&&z<=ee&&this.ElementsAreEqual(b,z);)b++,z++;for(;I>=b&&ee>=z&&this.ElementsAreEqual(I,ee);)I--,ee--;if(b>I||z>ee){let $t;return z<=ee?(b2.Assert(b===I+1,"originalStart should only be one more than originalEnd"),$t=[new Sx(b,0,z,ee-z+1)]):b<=I?(b2.Assert(z===ee+1,"modifiedStart should only be one more than modifiedEnd"),$t=[new Sx(b,I-b+1,z,0)]):(b2.Assert(b===I+1,"originalStart should only be one more than originalEnd"),b2.Assert(z===ee+1,"modifiedStart should only be one more than modifiedEnd"),$t=[]),$t}const Re=[0],Ge=[0],at=this.ComputeRecursionPoint(b,I,z,ee,Re,Ge,_e),Ne=Re[0],Xe=Ge[0];if(at!==null)return at;if(!_e[0]){const $t=this.ComputeDiffRecursive(b,Ne,z,Xe,_e);let Ht=[];return _e[0]?Ht=[new Sx(Ne+1,I-(Ne+1)+1,Xe+1,ee-(Xe+1)+1)]:Ht=this.ComputeDiffRecursive(Ne+1,I,Xe+1,ee,_e),this.ConcatenateChanges($t,Ht)}return[new Sx(b,I-b+1,z,ee-z+1)]}WALKTRACE(b,I,z,ee,_e,Re,Ge,at,Ne,Xe,$t,Ht,pn,Pr,gi,io,Jn,In){let oi=null,mi=null,Yi=new Dbe,ja=I,Or=z,Ba=pn[0]-io[0]-ee,Jc=-1073741824,ou=this.m_forwardHistory.length-1;do{const mn=Ba+b;mn===ja||mn<Or&&Ne[mn-1]<Ne[mn+1]?($t=Ne[mn+1],Pr=$t-Ba-ee,$t<Jc&&Yi.MarkNextChange(),Jc=$t,Yi.AddModifiedElement($t+1,Pr),Ba=mn+1-b):($t=Ne[mn-1]+1,Pr=$t-Ba-ee,$t<Jc&&Yi.MarkNextChange(),Jc=$t-1,Yi.AddOriginalElement($t,Pr+1),Ba=mn-1-b),ou>=0&&(Ne=this.m_forwardHistory[ou],b=Ne[0],ja=1,Or=Ne.length-1)}while(--ou>=-1);if(oi=Yi.getReverseChanges(),In[0]){let mn=pn[0]+1,li=io[0]+1;if(oi!==null&&oi.length>0){const jo=oi[oi.length-1];mn=Math.max(mn,jo.getOriginalEnd()),li=Math.max(li,jo.getModifiedEnd())}mi=[new Sx(mn,Ht-mn+1,li,gi-li+1)]}else{Yi=new Dbe,ja=Re,Or=Ge,Ba=pn[0]-io[0]-at,Jc=1073741824,ou=Jn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const mn=Ba+_e;mn===ja||mn<Or&&Xe[mn-1]>=Xe[mn+1]?($t=Xe[mn+1]-1,Pr=$t-Ba-at,$t>Jc&&Yi.MarkNextChange(),Jc=$t+1,Yi.AddOriginalElement($t+1,Pr+1),Ba=mn+1-_e):($t=Xe[mn-1],Pr=$t-Ba-at,$t>Jc&&Yi.MarkNextChange(),Jc=$t,Yi.AddModifiedElement($t+1,Pr+1),Ba=mn-1-_e),ou>=0&&(Xe=this.m_reverseHistory[ou],_e=Xe[0],ja=1,Or=Xe.length-1)}while(--ou>=-1);mi=Yi.getChanges()}return this.ConcatenateChanges(oi,mi)}ComputeRecursionPoint(b,I,z,ee,_e,Re,Ge){let at=0,Ne=0,Xe=0,$t=0,Ht=0,pn=0;b--,z--,_e[0]=0,Re[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const Pr=I-b+(ee-z),gi=Pr+1,io=new Int32Array(gi),Jn=new Int32Array(gi),In=ee-z,oi=I-b,mi=b-z,Yi=I-ee,Or=(oi-In)%2===0;io[In]=b,Jn[oi]=I,Ge[0]=!1;for(let Ba=1;Ba<=Pr/2+1;Ba++){let Jc=0,ou=0;Xe=this.ClipDiagonalBound(In-Ba,Ba,In,gi),$t=this.ClipDiagonalBound(In+Ba,Ba,In,gi);for(let li=Xe;li<=$t;li+=2){li===Xe||li<$t&&io[li-1]<io[li+1]?at=io[li+1]:at=io[li-1]+1,Ne=at-(li-In)-mi;const jo=at;for(;at<I&&Ne<ee&&this.ElementsAreEqual(at+1,Ne+1);)at++,Ne++;if(io[li]=at,at+Ne>Jc+ou&&(Jc=at,ou=Ne),!Or&&Math.abs(li-oi)<=Ba-1&&at>=Jn[li])return _e[0]=at,Re[0]=Ne,jo<=Jn[li]&&Ba<=1448?this.WALKTRACE(In,Xe,$t,mi,oi,Ht,pn,Yi,io,Jn,at,I,_e,Ne,ee,Re,Or,Ge):null}const mn=(Jc-b+(ou-z)-Ba)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Jc,mn))return Ge[0]=!0,_e[0]=Jc,Re[0]=ou,mn>0&&Ba<=1448?this.WALKTRACE(In,Xe,$t,mi,oi,Ht,pn,Yi,io,Jn,at,I,_e,Ne,ee,Re,Or,Ge):(b++,z++,[new Sx(b,I-b+1,z,ee-z+1)]);Ht=this.ClipDiagonalBound(oi-Ba,Ba,oi,gi),pn=this.ClipDiagonalBound(oi+Ba,Ba,oi,gi);for(let li=Ht;li<=pn;li+=2){li===Ht||li<pn&&Jn[li-1]>=Jn[li+1]?at=Jn[li+1]-1:at=Jn[li-1],Ne=at-(li-oi)-Yi;const jo=at;for(;at>b&&Ne>z&&this.ElementsAreEqual(at,Ne);)at--,Ne--;if(Jn[li]=at,Or&&Math.abs(li-In)<=Ba&&at<=io[li])return _e[0]=at,Re[0]=Ne,jo>=io[li]&&Ba<=1448?this.WALKTRACE(In,Xe,$t,mi,oi,Ht,pn,Yi,io,Jn,at,I,_e,Ne,ee,Re,Or,Ge):null}if(Ba<=1447){let li=new Int32Array($t-Xe+2);li[0]=In-Xe+1,E2.Copy2(io,Xe,li,1,$t-Xe+1),this.m_forwardHistory.push(li),li=new Int32Array(pn-Ht+2),li[0]=oi-Ht+1,E2.Copy2(Jn,Ht,li,1,pn-Ht+1),this.m_reverseHistory.push(li)}}return this.WALKTRACE(In,Xe,$t,mi,oi,Ht,pn,Yi,io,Jn,at,I,_e,Ne,ee,Re,Or,Ge)}PrettifyChanges(b){for(let I=0;I<b.length;I++){const z=b[I],ee=I<b.length-1?b[I+1].originalStart:this._originalElementsOrHash.length,_e=I<b.length-1?b[I+1].modifiedStart:this._modifiedElementsOrHash.length,Re=z.originalLength>0,Ge=z.modifiedLength>0;for(;z.originalStart+z.originalLength<ee&&z.modifiedStart+z.modifiedLength<_e&&(!Re||this.OriginalElementsAreEqual(z.originalStart,z.originalStart+z.originalLength))&&(!Ge||this.ModifiedElementsAreEqual(z.modifiedStart,z.modifiedStart+z.modifiedLength));){const Ne=this.ElementsAreStrictEqual(z.originalStart,z.modifiedStart);if(this.ElementsAreStrictEqual(z.originalStart+z.originalLength,z.modifiedStart+z.modifiedLength)&&!Ne)break;z.originalStart++,z.modifiedStart++}const at=[null];if(I<b.length-1&&this.ChangesOverlap(b[I],b[I+1],at)){b[I]=at[0],b.splice(I+1,1),I--;continue}}for(let I=b.length-1;I>=0;I--){const z=b[I];let ee=0,_e=0;if(I>0){const $t=b[I-1];ee=$t.originalStart+$t.originalLength,_e=$t.modifiedStart+$t.modifiedLength}const Re=z.originalLength>0,Ge=z.modifiedLength>0;let at=0,Ne=this._boundaryScore(z.originalStart,z.originalLength,z.modifiedStart,z.modifiedLength);for(let $t=1;;$t++){const Ht=z.originalStart-$t,pn=z.modifiedStart-$t;if(Ht<ee||pn<_e||Re&&!this.OriginalElementsAreEqual(Ht,Ht+z.originalLength)||Ge&&!this.ModifiedElementsAreEqual(pn,pn+z.modifiedLength))break;const gi=(Ht===ee&&pn===_e?5:0)+this._boundaryScore(Ht,z.originalLength,pn,z.modifiedLength);gi>Ne&&(Ne=gi,at=$t)}z.originalStart-=at,z.modifiedStart-=at;const Xe=[null];if(I>0&&this.ChangesOverlap(b[I-1],b[I],Xe)){b[I-1]=Xe[0],b.splice(I,1),I++;continue}}if(this._hasStrings)for(let I=1,z=b.length;I<z;I++){const ee=b[I-1],_e=b[I],Re=_e.originalStart-ee.originalStart-ee.originalLength,Ge=ee.originalStart,at=_e.originalStart+_e.originalLength,Ne=at-Ge,Xe=ee.modifiedStart,$t=_e.modifiedStart+_e.modifiedLength,Ht=$t-Xe;if(Re<5&&Ne<20&&Ht<20){const pn=this._findBetterContiguousSequence(Ge,Ne,Xe,Ht,Re);if(pn){const[Pr,gi]=pn;(Pr!==ee.originalStart+ee.originalLength||gi!==ee.modifiedStart+ee.modifiedLength)&&(ee.originalLength=Pr-ee.originalStart,ee.modifiedLength=gi-ee.modifiedStart,_e.originalStart=Pr+Re,_e.modifiedStart=gi+Re,_e.originalLength=at-_e.originalStart,_e.modifiedLength=$t-_e.modifiedStart)}}}return b}_findBetterContiguousSequence(b,I,z,ee,_e){if(I<_e||ee<_e)return null;const Re=b+I-_e+1,Ge=z+ee-_e+1;let at=0,Ne=0,Xe=0;for(let $t=b;$t<Re;$t++)for(let Ht=z;Ht<Ge;Ht++){const pn=this._contiguousSequenceScore($t,Ht,_e);pn>0&&pn>at&&(at=pn,Ne=$t,Xe=Ht)}return at>0?[Ne,Xe]:null}_contiguousSequenceScore(b,I,z){let ee=0;for(let _e=0;_e<z;_e++){if(!this.ElementsAreEqual(b+_e,I+_e))return 0;ee+=this._originalStringElements[b+_e].length}return ee}_OriginalIsBoundary(b){return b<=0||b>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[b])}_OriginalRegionIsBoundary(b,I){if(this._OriginalIsBoundary(b)||this._OriginalIsBoundary(b-1))return!0;if(I>0){const z=b+I;if(this._OriginalIsBoundary(z-1)||this._OriginalIsBoundary(z))return!0}return!1}_ModifiedIsBoundary(b){return b<=0||b>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[b])}_ModifiedRegionIsBoundary(b,I){if(this._ModifiedIsBoundary(b)||this._ModifiedIsBoundary(b-1))return!0;if(I>0){const z=b+I;if(this._ModifiedIsBoundary(z-1)||this._ModifiedIsBoundary(z))return!0}return!1}_boundaryScore(b,I,z,ee){const _e=this._OriginalRegionIsBoundary(b,I)?1:0,Re=this._ModifiedRegionIsBoundary(z,ee)?1:0;return _e+Re}ConcatenateChanges(b,I){const z=[];if(b.length===0||I.length===0)return I.length>0?I:b;if(this.ChangesOverlap(b[b.length-1],I[0],z)){const ee=new Array(b.length+I.length-1);return E2.Copy(b,0,ee,0,b.length-1),ee[b.length-1]=z[0],E2.Copy(I,1,ee,b.length,I.length-1),ee}else{const ee=new Array(b.length+I.length);return E2.Copy(b,0,ee,0,b.length),E2.Copy(I,0,ee,b.length,I.length),ee}}ChangesOverlap(b,I,z){if(b2.Assert(b.originalStart<=I.originalStart,"Left change is not less than or equal to right change"),b2.Assert(b.modifiedStart<=I.modifiedStart,"Left change is not less than or equal to right change"),b.originalStart+b.originalLength>=I.originalStart||b.modifiedStart+b.modifiedLength>=I.modifiedStart){const ee=b.originalStart;let _e=b.originalLength;const Re=b.modifiedStart;let Ge=b.modifiedLength;return b.originalStart+b.originalLength>=I.originalStart&&(_e=I.originalStart+I.originalLength-b.originalStart),b.modifiedStart+b.modifiedLength>=I.modifiedStart&&(Ge=I.modifiedStart+I.modifiedLength-b.modifiedStart),z[0]=new Sx(ee,_e,Re,Ge),!0}else return z[0]=null,!1}ClipDiagonalBound(b,I,z,ee){if(b>=0&&b<ee)return b;const _e=z,Re=ee-z-1,Ge=I%2===0;if(b<0){const at=_e%2===0;return Ge===at?0:1}else{const at=Re%2===0;return Ge===at?ee-1:ee-2}}}var Nbe={};let S2;const Ate=globalThis.vscode;if(typeof Ate<"u"&&typeof Ate.process<"u"){const g=Ate.process;S2={get platform(){return g.platform},get arch(){return g.arch},get env(){return g.env},cwd(){return g.cwd()}}}else typeof process<"u"?S2={get platform(){return process.platform},get arch(){return process.arch},get env(){return Nbe},cwd(){return Nbe.VSCODE_CWD||process.cwd()}}:S2={get platform(){return c6?"win32":o7e?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const IB=S2.cwd,N7e=S2.env,C7e=S2.platform,P7e=65,M7e=97,L7e=90,k7e=122,Ax=46,b_=47,bv=92,Ix=58,w7e=63;class Cbe extends Error{constructor(b,I,z){let ee;typeof I=="string"&&I.indexOf("not ")===0?(ee="must not be",I=I.replace(/^not /,"")):ee="must be";const _e=b.indexOf(".")!==-1?"property":"argument";let Re=`The "${b}" ${_e} ${ee} of type ${I}`;Re+=`. Received type ${typeof z}`,super(Re),this.code="ERR_INVALID_ARG_TYPE"}}function O7e(g,b){if(g===null||typeof g!="object")throw new Cbe(b,"Object",g)}function bf(g,b){if(typeof g!="string")throw new Cbe(b,"string",g)}const xx=C7e==="win32";function jl(g){return g===b_||g===bv}function Ite(g){return g===b_}function Rx(g){return g>=P7e&&g<=L7e||g>=M7e&&g<=k7e}function xB(g,b,I,z){let ee="",_e=0,Re=-1,Ge=0,at=0;for(let Ne=0;Ne<=g.length;++Ne){if(Ne<g.length)at=g.charCodeAt(Ne);else{if(z(at))break;at=b_}if(z(at)){if(!(Re===Ne-1||Ge===1))if(Ge===2){if(ee.length<2||_e!==2||ee.charCodeAt(ee.length-1)!==Ax||ee.charCodeAt(ee.length-2)!==Ax){if(ee.length>2){const Xe=ee.lastIndexOf(I);Xe===-1?(ee="",_e=0):(ee=ee.slice(0,Xe),_e=ee.length-1-ee.lastIndexOf(I)),Re=Ne,Ge=0;continue}else if(ee.length!==0){ee="",_e=0,Re=Ne,Ge=0;continue}}b&&(ee+=ee.length>0?`${I}..`:"..",_e=2)}else ee.length>0?ee+=`${I}${g.slice(Re+1,Ne)}`:ee=g.slice(Re+1,Ne),_e=Ne-Re-1;Re=Ne,Ge=0}else at===Ax&&Ge!==-1?++Ge:Ge=-1}return ee}function Pbe(g,b){O7e(b,"pathObject");const I=b.dir||b.root,z=b.base||`${b.name||""}${b.ext||""}`;return I?I===b.root?`${I}${z}`:`${I}${g}${z}`:z}const xg={resolve(...g){let b="",I="",z=!1;for(let ee=g.length-1;ee>=-1;ee--){let _e;if(ee>=0){if(_e=g[ee],bf(_e,"path"),_e.length===0)continue}else b.length===0?_e=IB():(_e=N7e[`=${b}`]||IB(),(_e===void 0||_e.slice(0,2).toLowerCase()!==b.toLowerCase()&&_e.charCodeAt(2)===bv)&&(_e=`${b}\\`));const Re=_e.length;let Ge=0,at="",Ne=!1;const Xe=_e.charCodeAt(0);if(Re===1)jl(Xe)&&(Ge=1,Ne=!0);else if(jl(Xe))if(Ne=!0,jl(_e.charCodeAt(1))){let $t=2,Ht=$t;for(;$t<Re&&!jl(_e.charCodeAt($t));)$t++;if($t<Re&&$t!==Ht){const pn=_e.slice(Ht,$t);for(Ht=$t;$t<Re&&jl(_e.charCodeAt($t));)$t++;if($t<Re&&$t!==Ht){for(Ht=$t;$t<Re&&!jl(_e.charCodeAt($t));)$t++;($t===Re||$t!==Ht)&&(at=`\\\\${pn}\\${_e.slice(Ht,$t)}`,Ge=$t)}}}else Ge=1;else Rx(Xe)&&_e.charCodeAt(1)===Ix&&(at=_e.slice(0,2),Ge=2,Re>2&&jl(_e.charCodeAt(2))&&(Ne=!0,Ge=3));if(at.length>0)if(b.length>0){if(at.toLowerCase()!==b.toLowerCase())continue}else b=at;if(z){if(b.length>0)break}else if(I=`${_e.slice(Ge)}\\${I}`,z=Ne,Ne&&b.length>0)break}return I=xB(I,!z,"\\",jl),z?`${b}\\${I}`:`${b}${I}`||"."},normalize(g){bf(g,"path");const b=g.length;if(b===0)return".";let I=0,z,ee=!1;const _e=g.charCodeAt(0);if(b===1)return Ite(_e)?"\\":g;if(jl(_e))if(ee=!0,jl(g.charCodeAt(1))){let Ge=2,at=Ge;for(;Ge<b&&!jl(g.charCodeAt(Ge));)Ge++;if(Ge<b&&Ge!==at){const Ne=g.slice(at,Ge);for(at=Ge;Ge<b&&jl(g.charCodeAt(Ge));)Ge++;if(Ge<b&&Ge!==at){for(at=Ge;Ge<b&&!jl(g.charCodeAt(Ge));)Ge++;if(Ge===b)return`\\\\${Ne}\\${g.slice(at)}\\`;Ge!==at&&(z=`\\\\${Ne}\\${g.slice(at,Ge)}`,I=Ge)}}}else I=1;else Rx(_e)&&g.charCodeAt(1)===Ix&&(z=g.slice(0,2),I=2,b>2&&jl(g.charCodeAt(2))&&(ee=!0,I=3));let Re=I<b?xB(g.slice(I),!ee,"\\",jl):"";return Re.length===0&&!ee&&(Re="."),Re.length>0&&jl(g.charCodeAt(b-1))&&(Re+="\\"),z===void 0?ee?`\\${Re}`:Re:ee?`${z}\\${Re}`:`${z}${Re}`},isAbsolute(g){bf(g,"path");const b=g.length;if(b===0)return!1;const I=g.charCodeAt(0);return jl(I)||b>2&&Rx(I)&&g.charCodeAt(1)===Ix&&jl(g.charCodeAt(2))},join(...g){if(g.length===0)return".";let b,I;for(let _e=0;_e<g.length;++_e){const Re=g[_e];bf(Re,"path"),Re.length>0&&(b===void 0?b=I=Re:b+=`\\${Re}`)}if(b===void 0)return".";let z=!0,ee=0;if(typeof I=="string"&&jl(I.charCodeAt(0))){++ee;const _e=I.length;_e>1&&jl(I.charCodeAt(1))&&(++ee,_e>2&&(jl(I.charCodeAt(2))?++ee:z=!1))}if(z){for(;ee<b.length&&jl(b.charCodeAt(ee));)ee++;ee>=2&&(b=`\\${b.slice(ee)}`)}return xg.normalize(b)},relative(g,b){if(bf(g,"from"),bf(b,"to"),g===b)return"";const I=xg.resolve(g),z=xg.resolve(b);if(I===z||(g=I.toLowerCase(),b=z.toLowerCase(),g===b))return"";let ee=0;for(;ee<g.length&&g.charCodeAt(ee)===bv;)ee++;let _e=g.length;for(;_e-1>ee&&g.charCodeAt(_e-1)===bv;)_e--;const Re=_e-ee;let Ge=0;for(;Ge<b.length&&b.charCodeAt(Ge)===bv;)Ge++;let at=b.length;for(;at-1>Ge&&b.charCodeAt(at-1)===bv;)at--;const Ne=at-Ge,Xe=Re<Ne?Re:Ne;let $t=-1,Ht=0;for(;Ht<Xe;Ht++){const Pr=g.charCodeAt(ee+Ht);if(Pr!==b.charCodeAt(Ge+Ht))break;Pr===bv&&($t=Ht)}if(Ht!==Xe){if($t===-1)return z}else{if(Ne>Xe){if(b.charCodeAt(Ge+Ht)===bv)return z.slice(Ge+Ht+1);if(Ht===2)return z.slice(Ge+Ht)}Re>Xe&&(g.charCodeAt(ee+Ht)===bv?$t=Ht:Ht===2&&($t=3)),$t===-1&&($t=0)}let pn="";for(Ht=ee+$t+1;Ht<=_e;++Ht)(Ht===_e||g.charCodeAt(Ht)===bv)&&(pn+=pn.length===0?"..":"\\..");return Ge+=$t,pn.length>0?`${pn}${z.slice(Ge,at)}`:(z.charCodeAt(Ge)===bv&&++Ge,z.slice(Ge,at))},toNamespacedPath(g){if(typeof g!="string"||g.length===0)return g;const b=xg.resolve(g);if(b.length<=2)return g;if(b.charCodeAt(0)===bv){if(b.charCodeAt(1)===bv){const I=b.charCodeAt(2);if(I!==w7e&&I!==Ax)return`\\\\?\\UNC\\${b.slice(2)}`}}else if(Rx(b.charCodeAt(0))&&b.charCodeAt(1)===Ix&&b.charCodeAt(2)===bv)return`\\\\?\\${b}`;return g},dirname(g){bf(g,"path");const b=g.length;if(b===0)return".";let I=-1,z=0;const ee=g.charCodeAt(0);if(b===1)return jl(ee)?g:".";if(jl(ee)){if(I=z=1,jl(g.charCodeAt(1))){let Ge=2,at=Ge;for(;Ge<b&&!jl(g.charCodeAt(Ge));)Ge++;if(Ge<b&&Ge!==at){for(at=Ge;Ge<b&&jl(g.charCodeAt(Ge));)Ge++;if(Ge<b&&Ge!==at){for(at=Ge;Ge<b&&!jl(g.charCodeAt(Ge));)Ge++;if(Ge===b)return g;Ge!==at&&(I=z=Ge+1)}}}}else Rx(ee)&&g.charCodeAt(1)===Ix&&(I=b>2&&jl(g.charCodeAt(2))?3:2,z=I);let _e=-1,Re=!0;for(let Ge=b-1;Ge>=z;--Ge)if(jl(g.charCodeAt(Ge))){if(!Re){_e=Ge;break}}else Re=!1;if(_e===-1){if(I===-1)return".";_e=I}return g.slice(0,_e)},basename(g,b){b!==void 0&&bf(b,"ext"),bf(g,"path");let I=0,z=-1,ee=!0,_e;if(g.length>=2&&Rx(g.charCodeAt(0))&&g.charCodeAt(1)===Ix&&(I=2),b!==void 0&&b.length>0&&b.length<=g.length){if(b===g)return"";let Re=b.length-1,Ge=-1;for(_e=g.length-1;_e>=I;--_e){const at=g.charCodeAt(_e);if(jl(at)){if(!ee){I=_e+1;break}}else Ge===-1&&(ee=!1,Ge=_e+1),Re>=0&&(at===b.charCodeAt(Re)?--Re===-1&&(z=_e):(Re=-1,z=Ge))}return I===z?z=Ge:z===-1&&(z=g.length),g.slice(I,z)}for(_e=g.length-1;_e>=I;--_e)if(jl(g.charCodeAt(_e))){if(!ee){I=_e+1;break}}else z===-1&&(ee=!1,z=_e+1);return z===-1?"":g.slice(I,z)},extname(g){bf(g,"path");let b=0,I=-1,z=0,ee=-1,_e=!0,Re=0;g.length>=2&&g.charCodeAt(1)===Ix&&Rx(g.charCodeAt(0))&&(b=z=2);for(let Ge=g.length-1;Ge>=b;--Ge){const at=g.charCodeAt(Ge);if(jl(at)){if(!_e){z=Ge+1;break}continue}ee===-1&&(_e=!1,ee=Ge+1),at===Ax?I===-1?I=Ge:Re!==1&&(Re=1):I!==-1&&(Re=-1)}return I===-1||ee===-1||Re===0||Re===1&&I===ee-1&&I===z+1?"":g.slice(I,ee)},format:Pbe.bind(null,"\\"),parse(g){bf(g,"path");const b={root:"",dir:"",base:"",ext:"",name:""};if(g.length===0)return b;const I=g.length;let z=0,ee=g.charCodeAt(0);if(I===1)return jl(ee)?(b.root=b.dir=g,b):(b.base=b.name=g,b);if(jl(ee)){if(z=1,jl(g.charCodeAt(1))){let $t=2,Ht=$t;for(;$t<I&&!jl(g.charCodeAt($t));)$t++;if($t<I&&$t!==Ht){for(Ht=$t;$t<I&&jl(g.charCodeAt($t));)$t++;if($t<I&&$t!==Ht){for(Ht=$t;$t<I&&!jl(g.charCodeAt($t));)$t++;$t===I?z=$t:$t!==Ht&&(z=$t+1)}}}}else if(Rx(ee)&&g.charCodeAt(1)===Ix){if(I<=2)return b.root=b.dir=g,b;if(z=2,jl(g.charCodeAt(2))){if(I===3)return b.root=b.dir=g,b;z=3}}z>0&&(b.root=g.slice(0,z));let _e=-1,Re=z,Ge=-1,at=!0,Ne=g.length-1,Xe=0;for(;Ne>=z;--Ne){if(ee=g.charCodeAt(Ne),jl(ee)){if(!at){Re=Ne+1;break}continue}Ge===-1&&(at=!1,Ge=Ne+1),ee===Ax?_e===-1?_e=Ne:Xe!==1&&(Xe=1):_e!==-1&&(Xe=-1)}return Ge!==-1&&(_e===-1||Xe===0||Xe===1&&_e===Ge-1&&_e===Re+1?b.base=b.name=g.slice(Re,Ge):(b.name=g.slice(Re,_e),b.base=g.slice(Re,Ge),b.ext=g.slice(_e,Ge))),Re>0&&Re!==z?b.dir=g.slice(0,Re-1):b.dir=b.root,b},sep:"\\",delimiter:";",win32:null,posix:null},W7e=(()=>{if(xx){const g=/\\/g;return()=>{const b=IB().replace(g,"/");return b.slice(b.indexOf("/"))}}return()=>IB()})(),Ev={resolve(...g){let b="",I=!1;for(let z=g.length-1;z>=-1&&!I;z--){const ee=z>=0?g[z]:W7e();bf(ee,"path"),ee.length!==0&&(b=`${ee}/${b}`,I=ee.charCodeAt(0)===b_)}return b=xB(b,!I,"/",Ite),I?`/${b}`:b.length>0?b:"."},normalize(g){if(bf(g,"path"),g.length===0)return".";const b=g.charCodeAt(0)===b_,I=g.charCodeAt(g.length-1)===b_;return g=xB(g,!b,"/",Ite),g.length===0?b?"/":I?"./":".":(I&&(g+="/"),b?`/${g}`:g)},isAbsolute(g){return bf(g,"path"),g.length>0&&g.charCodeAt(0)===b_},join(...g){if(g.length===0)return".";let b;for(let I=0;I<g.length;++I){const z=g[I];bf(z,"path"),z.length>0&&(b===void 0?b=z:b+=`/${z}`)}return b===void 0?".":Ev.normalize(b)},relative(g,b){if(bf(g,"from"),bf(b,"to"),g===b||(g=Ev.resolve(g),b=Ev.resolve(b),g===b))return"";const I=1,z=g.length,ee=z-I,_e=1,Re=b.length-_e,Ge=ee<Re?ee:Re;let at=-1,Ne=0;for(;Ne<Ge;Ne++){const $t=g.charCodeAt(I+Ne);if($t!==b.charCodeAt(_e+Ne))break;$t===b_&&(at=Ne)}if(Ne===Ge)if(Re>Ge){if(b.charCodeAt(_e+Ne)===b_)return b.slice(_e+Ne+1);if(Ne===0)return b.slice(_e+Ne)}else ee>Ge&&(g.charCodeAt(I+Ne)===b_?at=Ne:Ne===0&&(at=0));let Xe="";for(Ne=I+at+1;Ne<=z;++Ne)(Ne===z||g.charCodeAt(Ne)===b_)&&(Xe+=Xe.length===0?"..":"/..");return`${Xe}${b.slice(_e+at)}`},toNamespacedPath(g){return g},dirname(g){if(bf(g,"path"),g.length===0)return".";const b=g.charCodeAt(0)===b_;let I=-1,z=!0;for(let ee=g.length-1;ee>=1;--ee)if(g.charCodeAt(ee)===b_){if(!z){I=ee;break}}else z=!1;return I===-1?b?"/":".":b&&I===1?"//":g.slice(0,I)},basename(g,b){b!==void 0&&bf(b,"ext"),bf(g,"path");let I=0,z=-1,ee=!0,_e;if(b!==void 0&&b.length>0&&b.length<=g.length){if(b===g)return"";let Re=b.length-1,Ge=-1;for(_e=g.length-1;_e>=0;--_e){const at=g.charCodeAt(_e);if(at===b_){if(!ee){I=_e+1;break}}else Ge===-1&&(ee=!1,Ge=_e+1),Re>=0&&(at===b.charCodeAt(Re)?--Re===-1&&(z=_e):(Re=-1,z=Ge))}return I===z?z=Ge:z===-1&&(z=g.length),g.slice(I,z)}for(_e=g.length-1;_e>=0;--_e)if(g.charCodeAt(_e)===b_){if(!ee){I=_e+1;break}}else z===-1&&(ee=!1,z=_e+1);return z===-1?"":g.slice(I,z)},extname(g){bf(g,"path");let b=-1,I=0,z=-1,ee=!0,_e=0;for(let Re=g.length-1;Re>=0;--Re){const Ge=g.charCodeAt(Re);if(Ge===b_){if(!ee){I=Re+1;break}continue}z===-1&&(ee=!1,z=Re+1),Ge===Ax?b===-1?b=Re:_e!==1&&(_e=1):b!==-1&&(_e=-1)}return b===-1||z===-1||_e===0||_e===1&&b===z-1&&b===I+1?"":g.slice(b,z)},format:Pbe.bind(null,"/"),parse(g){bf(g,"path");const b={root:"",dir:"",base:"",ext:"",name:""};if(g.length===0)return b;const I=g.charCodeAt(0)===b_;let z;I?(b.root="/",z=1):z=0;let ee=-1,_e=0,Re=-1,Ge=!0,at=g.length-1,Ne=0;for(;at>=z;--at){const Xe=g.charCodeAt(at);if(Xe===b_){if(!Ge){_e=at+1;break}continue}Re===-1&&(Ge=!1,Re=at+1),Xe===Ax?ee===-1?ee=at:Ne!==1&&(Ne=1):ee!==-1&&(Ne=-1)}if(Re!==-1){const Xe=_e===0&&I?1:_e;ee===-1||Ne===0||Ne===1&&ee===Re-1&&ee===_e+1?b.base=b.name=g.slice(Xe,Re):(b.name=g.slice(Xe,ee),b.base=g.slice(Xe,Re),b.ext=g.slice(ee,Re))}return _e>0?b.dir=g.slice(0,_e-1):I&&(b.dir="/"),b},sep:"/",delimiter:":",win32:null,posix:null};Ev.win32=xg.win32=xg,Ev.posix=xg.posix=Ev,xx?xg.normalize:Ev.normalize,xx?xg.resolve:Ev.resolve,xx?xg.relative:Ev.relative,xx?xg.dirname:Ev.dirname,xx?xg.basename:Ev.basename,xx?xg.extname:Ev.extname,xx?xg.sep:Ev.sep;const F7e=/^\w[\w\d+.-]*$/,z7e=/^\//,B7e=/^\/\//;function G7e(g,b){if(!g.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${g.authority}", path: "${g.path}", query: "${g.query}", fragment: "${g.fragment}"}`);if(g.scheme&&!F7e.test(g.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(g.path){if(g.authority){if(!z7e.test(g.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(B7e.test(g.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function V7e(g,b){return!g&&!b?"file":g}function j7e(g,b){switch(g){case"https":case"http":case"file":b?b[0]!==gE&&(b=gE+b):b=gE;break}return b}const Od="",gE="/",U7e=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class GN{static isUri(b){return b instanceof GN?!0:b?typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function":!1}constructor(b,I,z,ee,_e,Re=!1){typeof b=="object"?(this.scheme=b.scheme||Od,this.authority=b.authority||Od,this.path=b.path||Od,this.query=b.query||Od,this.fragment=b.fragment||Od):(this.scheme=V7e(b,Re),this.authority=I||Od,this.path=j7e(this.scheme,z||Od),this.query=ee||Od,this.fragment=_e||Od,G7e(this,Re))}get fsPath(){return xte(this,!1)}with(b){if(!b)return this;let{scheme:I,authority:z,path:ee,query:_e,fragment:Re}=b;return I===void 0?I=this.scheme:I===null&&(I=Od),z===void 0?z=this.authority:z===null&&(z=Od),ee===void 0?ee=this.path:ee===null&&(ee=Od),_e===void 0?_e=this.query:_e===null&&(_e=Od),Re===void 0?Re=this.fragment:Re===null&&(Re=Od),I===this.scheme&&z===this.authority&&ee===this.path&&_e===this.query&&Re===this.fragment?this:new T2(I,z,ee,_e,Re)}static parse(b,I=!1){const z=U7e.exec(b);return z?new T2(z[2]||Od,RB(z[4]||Od),RB(z[5]||Od),RB(z[7]||Od),RB(z[9]||Od),I):new T2(Od,Od,Od,Od,Od)}static file(b){let I=Od;if(c6&&(b=b.replace(/\\/g,gE)),b[0]===gE&&b[1]===gE){const z=b.indexOf(gE,2);z===-1?(I=b.substring(2),b=gE):(I=b.substring(2,z),b=b.substring(z)||gE)}return new T2("file",I,b,Od,Od)}static from(b,I){return new T2(b.scheme,b.authority,b.path,b.query,b.fragment,I)}static joinPath(b,...I){if(!b.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let z;return c6&&b.scheme==="file"?z=GN.file(xg.join(xte(b,!0),...I)).path:z=Ev.join(b.path,...I),b.with({path:z})}toString(b=!1){return Rte(this,b)}toJSON(){return this}static revive(b){var I,z;if(b){if(b instanceof GN)return b;{const ee=new T2(b);return ee._formatted=(I=b.external)!==null&&I!==void 0?I:null,ee._fsPath=b._sep===Mbe&&(z=b.fsPath)!==null&&z!==void 0?z:null,ee}}else return b}}const Mbe=c6?1:void 0;class T2 extends GN{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=xte(this,!1)),this._fsPath}toString(b=!1){return b?Rte(this,!0):(this._formatted||(this._formatted=Rte(this,!1)),this._formatted)}toJSON(){const b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=Mbe),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}const Lbe={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 kbe(g,b,I){let z,ee=-1;for(let _e=0;_e<g.length;_e++){const Re=g.charCodeAt(_e);if(Re>=97&&Re<=122||Re>=65&&Re<=90||Re>=48&&Re<=57||Re===45||Re===46||Re===95||Re===126||b&&Re===47||I&&Re===91||I&&Re===93||I&&Re===58)ee!==-1&&(z+=encodeURIComponent(g.substring(ee,_e)),ee=-1),z!==void 0&&(z+=g.charAt(_e));else{z===void 0&&(z=g.substr(0,_e));const Ge=Lbe[Re];Ge!==void 0?(ee!==-1&&(z+=encodeURIComponent(g.substring(ee,_e)),ee=-1),z+=Ge):ee===-1&&(ee=_e)}}return ee!==-1&&(z+=encodeURIComponent(g.substring(ee))),z!==void 0?z:g}function H7e(g){let b;for(let I=0;I<g.length;I++){const z=g.charCodeAt(I);z===35||z===63?(b===void 0&&(b=g.substr(0,I)),b+=Lbe[z]):b!==void 0&&(b+=g[I])}return b!==void 0?b:g}function xte(g,b){let I;return g.authority&&g.path.length>1&&g.scheme==="file"?I=`//${g.authority}${g.path}`:g.path.charCodeAt(0)===47&&(g.path.charCodeAt(1)>=65&&g.path.charCodeAt(1)<=90||g.path.charCodeAt(1)>=97&&g.path.charCodeAt(1)<=122)&&g.path.charCodeAt(2)===58?b?I=g.path.substr(1):I=g.path[1].toLowerCase()+g.path.substr(2):I=g.path,c6&&(I=I.replace(/\//g,"\\")),I}function Rte(g,b){const I=b?H7e:kbe;let z="",{scheme:ee,authority:_e,path:Re,query:Ge,fragment:at}=g;if(ee&&(z+=ee,z+=":"),(_e||ee==="file")&&(z+=gE,z+=gE),_e){let Ne=_e.indexOf("@");if(Ne!==-1){const Xe=_e.substr(0,Ne);_e=_e.substr(Ne+1),Ne=Xe.lastIndexOf(":"),Ne===-1?z+=I(Xe,!1,!1):(z+=I(Xe.substr(0,Ne),!1,!1),z+=":",z+=I(Xe.substr(Ne+1),!1,!0)),z+="@"}_e=_e.toLowerCase(),Ne=_e.lastIndexOf(":"),Ne===-1?z+=I(_e,!1,!0):(z+=I(_e.substr(0,Ne),!1,!0),z+=_e.substr(Ne))}if(Re){if(Re.length>=3&&Re.charCodeAt(0)===47&&Re.charCodeAt(2)===58){const Ne=Re.charCodeAt(1);Ne>=65&&Ne<=90&&(Re=`/${String.fromCharCode(Ne+32)}:${Re.substr(3)}`)}else if(Re.length>=2&&Re.charCodeAt(1)===58){const Ne=Re.charCodeAt(0);Ne>=65&&Ne<=90&&(Re=`${String.fromCharCode(Ne+32)}:${Re.substr(2)}`)}z+=I(Re,!0,!1)}return Ge&&(z+="?",z+=I(Ge,!1,!1)),at&&(z+="#",z+=b?at:kbe(at,!1,!1)),z}function wbe(g){try{return decodeURIComponent(g)}catch{return g.length>3?g.substr(0,3)+wbe(g.substr(3)):g}}const Obe=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function RB(g){return g.match(Obe)?g.replace(Obe,b=>wbe(b)):g}class ih{constructor(b,I){this.lineNumber=b,this.column=I}with(b=this.lineNumber,I=this.column){return b===this.lineNumber&&I===this.column?this:new ih(b,I)}delta(b=0,I=0){return this.with(this.lineNumber+b,this.column+I)}equals(b){return ih.equals(this,b)}static equals(b,I){return!b&&!I?!0:!!b&&!!I&&b.lineNumber===I.lineNumber&&b.column===I.column}isBefore(b){return ih.isBefore(this,b)}static isBefore(b,I){return b.lineNumber<I.lineNumber?!0:I.lineNumber<b.lineNumber?!1:b.column<I.column}isBeforeOrEqual(b){return ih.isBeforeOrEqual(this,b)}static isBeforeOrEqual(b,I){return b.lineNumber<I.lineNumber?!0:I.lineNumber<b.lineNumber?!1:b.column<=I.column}static compare(b,I){const z=b.lineNumber|0,ee=I.lineNumber|0;if(z===ee){const _e=b.column|0,Re=I.column|0;return _e-Re}return z-ee}clone(){return new ih(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(b){return new ih(b.lineNumber,b.column)}static isIPosition(b){return b&&typeof b.lineNumber=="number"&&typeof b.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class Tl{constructor(b,I,z,ee){b>z||b===z&&I>ee?(this.startLineNumber=z,this.startColumn=ee,this.endLineNumber=b,this.endColumn=I):(this.startLineNumber=b,this.startColumn=I,this.endLineNumber=z,this.endColumn=ee)}isEmpty(){return Tl.isEmpty(this)}static isEmpty(b){return b.startLineNumber===b.endLineNumber&&b.startColumn===b.endColumn}containsPosition(b){return Tl.containsPosition(this,b)}static containsPosition(b,I){return!(I.lineNumber<b.startLineNumber||I.lineNumber>b.endLineNumber||I.lineNumber===b.startLineNumber&&I.column<b.startColumn||I.lineNumber===b.endLineNumber&&I.column>b.endColumn)}static strictContainsPosition(b,I){return!(I.lineNumber<b.startLineNumber||I.lineNumber>b.endLineNumber||I.lineNumber===b.startLineNumber&&I.column<=b.startColumn||I.lineNumber===b.endLineNumber&&I.column>=b.endColumn)}containsRange(b){return Tl.containsRange(this,b)}static containsRange(b,I){return!(I.startLineNumber<b.startLineNumber||I.endLineNumber<b.startLineNumber||I.startLineNumber>b.endLineNumber||I.endLineNumber>b.endLineNumber||I.startLineNumber===b.startLineNumber&&I.startColumn<b.startColumn||I.endLineNumber===b.endLineNumber&&I.endColumn>b.endColumn)}strictContainsRange(b){return Tl.strictContainsRange(this,b)}static strictContainsRange(b,I){return!(I.startLineNumber<b.startLineNumber||I.endLineNumber<b.startLineNumber||I.startLineNumber>b.endLineNumber||I.endLineNumber>b.endLineNumber||I.startLineNumber===b.startLineNumber&&I.startColumn<=b.startColumn||I.endLineNumber===b.endLineNumber&&I.endColumn>=b.endColumn)}plusRange(b){return Tl.plusRange(this,b)}static plusRange(b,I){let z,ee,_e,Re;return I.startLineNumber<b.startLineNumber?(z=I.startLineNumber,ee=I.startColumn):I.startLineNumber===b.startLineNumber?(z=I.startLineNumber,ee=Math.min(I.startColumn,b.startColumn)):(z=b.startLineNumber,ee=b.startColumn),I.endLineNumber>b.endLineNumber?(_e=I.endLineNumber,Re=I.endColumn):I.endLineNumber===b.endLineNumber?(_e=I.endLineNumber,Re=Math.max(I.endColumn,b.endColumn)):(_e=b.endLineNumber,Re=b.endColumn),new Tl(z,ee,_e,Re)}intersectRanges(b){return Tl.intersectRanges(this,b)}static intersectRanges(b,I){let z=b.startLineNumber,ee=b.startColumn,_e=b.endLineNumber,Re=b.endColumn;const Ge=I.startLineNumber,at=I.startColumn,Ne=I.endLineNumber,Xe=I.endColumn;return z<Ge?(z=Ge,ee=at):z===Ge&&(ee=Math.max(ee,at)),_e>Ne?(_e=Ne,Re=Xe):_e===Ne&&(Re=Math.min(Re,Xe)),z>_e||z===_e&&ee>Re?null:new Tl(z,ee,_e,Re)}equalsRange(b){return Tl.equalsRange(this,b)}static equalsRange(b,I){return!b&&!I?!0:!!b&&!!I&&b.startLineNumber===I.startLineNumber&&b.startColumn===I.startColumn&&b.endLineNumber===I.endLineNumber&&b.endColumn===I.endColumn}getEndPosition(){return Tl.getEndPosition(this)}static getEndPosition(b){return new ih(b.endLineNumber,b.endColumn)}getStartPosition(){return Tl.getStartPosition(this)}static getStartPosition(b){return new ih(b.startLineNumber,b.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(b,I){return new Tl(this.startLineNumber,this.startColumn,b,I)}setStartPosition(b,I){return new Tl(b,I,this.endLineNumber,this.endColumn)}collapseToStart(){return Tl.collapseToStart(this)}static collapseToStart(b){return new Tl(b.startLineNumber,b.startColumn,b.startLineNumber,b.startColumn)}collapseToEnd(){return Tl.collapseToEnd(this)}static collapseToEnd(b){return new Tl(b.endLineNumber,b.endColumn,b.endLineNumber,b.endColumn)}delta(b){return new Tl(this.startLineNumber+b,this.startColumn,this.endLineNumber+b,this.endColumn)}static fromPositions(b,I=b){return new Tl(b.lineNumber,b.column,I.lineNumber,I.column)}static lift(b){return b?new Tl(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):null}static isIRange(b){return b&&typeof b.startLineNumber=="number"&&typeof b.startColumn=="number"&&typeof b.endLineNumber=="number"&&typeof b.endColumn=="number"}static areIntersectingOrTouching(b,I){return!(b.endLineNumber<I.startLineNumber||b.endLineNumber===I.startLineNumber&&b.endColumn<I.startColumn||I.endLineNumber<b.startLineNumber||I.endLineNumber===b.startLineNumber&&I.endColumn<b.startColumn)}static areIntersecting(b,I){return!(b.endLineNumber<I.startLineNumber||b.endLineNumber===I.startLineNumber&&b.endColumn<=I.startColumn||I.endLineNumber<b.startLineNumber||I.endLineNumber===b.startLineNumber&&I.endColumn<=b.startColumn)}static compareRangesUsingStarts(b,I){if(b&&I){const _e=b.startLineNumber|0,Re=I.startLineNumber|0;if(_e===Re){const Ge=b.startColumn|0,at=I.startColumn|0;if(Ge===at){const Ne=b.endLineNumber|0,Xe=I.endLineNumber|0;if(Ne===Xe){const $t=b.endColumn|0,Ht=I.endColumn|0;return $t-Ht}return Ne-Xe}return Ge-at}return _e-Re}return(b?1:0)-(I?1:0)}static compareRangesUsingEnds(b,I){return b.endLineNumber===I.endLineNumber?b.endColumn===I.endColumn?b.startLineNumber===I.startLineNumber?b.startColumn-I.startColumn:b.startLineNumber-I.startLineNumber:b.endColumn-I.endColumn:b.endLineNumber-I.endLineNumber}static spansMultipleLines(b){return b.endLineNumber>b.startLineNumber}toJSON(){return this}}function q7e(g,b,I=(z,ee)=>z===ee){if(g===b)return!0;if(!g||!b||g.length!==b.length)return!1;for(let z=0,ee=g.length;z<ee;z++)if(!I(g[z],b[z]))return!1;return!0}function*J7e(g,b){let I,z;for(const ee of g)z!==void 0&&b(z,ee)?I.push(ee):(I&&(yield I),I=[ee]),z=ee;I&&(yield I)}function K7e(g,b){for(let I=0;I<=g.length;I++)b(I===0?void 0:g[I-1],I===g.length?void 0:g[I])}function X7e(g,b){for(let I=0;I<g.length;I++)b(I===0?void 0:g[I-1],g[I],I+1===g.length?void 0:g[I+1])}function Y7e(g,b){for(const I of b)g.push(I)}var Wbe;(function(g){function b(_e){return _e<0}g.isLessThan=b;function I(_e){return _e<=0}g.isLessThanOrEqual=I;function z(_e){return _e>0}g.isGreaterThan=z;function ee(_e){return _e===0}g.isNeitherLessOrGreaterThan=ee,g.greaterThan=1,g.lessThan=-1,g.neitherLessOrGreaterThan=0})(Wbe||(Wbe={}));function DB(g,b){return(I,z)=>b(g(I),g(z))}const NB=(g,b)=>g-b;function $7e(g){return(b,I)=>-g(b,I)}function Fbe(g){return g<0?0:g>255?255:g|0}function A2(g){return g<0?0:g>4294967295?4294967295:g|0}class Q7e{constructor(b){this.values=b,this.prefixSum=new Uint32Array(b.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(b,I){b=A2(b);const z=this.values,ee=this.prefixSum,_e=I.length;return _e===0?!1:(this.values=new Uint32Array(z.length+_e),this.values.set(z.subarray(0,b),0),this.values.set(z.subarray(b),b+_e),this.values.set(I,b),b-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=b-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(ee.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(b,I){return b=A2(b),I=A2(I),this.values[b]===I?!1:(this.values[b]=I,b-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=b-1),!0)}removeValues(b,I){b=A2(b),I=A2(I);const z=this.values,ee=this.prefixSum;if(b>=z.length)return!1;const _e=z.length-b;return I>=_e&&(I=_e),I===0?!1:(this.values=new Uint32Array(z.length-I),this.values.set(z.subarray(0,b),0),this.values.set(z.subarray(b+I),b),this.prefixSum=new Uint32Array(this.values.length),b-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=b-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(ee.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(b){return b<0?0:(b=A2(b),this._getPrefixSum(b))}_getPrefixSum(b){if(b<=this.prefixSumValidIndex[0])return this.prefixSum[b];let I=this.prefixSumValidIndex[0]+1;I===0&&(this.prefixSum[0]=this.values[0],I++),b>=this.values.length&&(b=this.values.length-1);for(let z=I;z<=b;z++)this.prefixSum[z]=this.prefixSum[z-1]+this.values[z];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],b),this.prefixSum[b]}getIndexOf(b){b=Math.floor(b),this.getTotalSum();let I=0,z=this.values.length-1,ee=0,_e=0,Re=0;for(;I<=z;)if(ee=I+(z-I)/2|0,_e=this.prefixSum[ee],Re=_e-this.values[ee],b<Re)z=ee-1;else if(b>=_e)I=ee+1;else break;return new Z7e(ee,b-Re)}}class Z7e{constructor(b,I){this.index=b,this.remainder=I,this._prefixSumIndexOfResultBrand=void 0,this.index=b,this.remainder=I}}class e5e{constructor(b,I,z,ee){this._uri=b,this._lines=I,this._eol=z,this._versionId=ee,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(b){b.eol&&b.eol!==this._eol&&(this._eol=b.eol,this._lineStarts=null);const I=b.changes;for(const z of I)this._acceptDeleteRange(z.range),this._acceptInsertText(new ih(z.range.startLineNumber,z.range.startColumn),z.text);this._versionId=b.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const b=this._eol.length,I=this._lines.length,z=new Uint32Array(I);for(let ee=0;ee<I;ee++)z[ee]=this._lines[ee].length+b;this._lineStarts=new Q7e(z)}}_setLineText(b,I){this._lines[b]=I,this._lineStarts&&this._lineStarts.setValue(b,this._lines[b].length+this._eol.length)}_acceptDeleteRange(b){if(b.startLineNumber===b.endLineNumber){if(b.startColumn===b.endColumn)return;this._setLineText(b.startLineNumber-1,this._lines[b.startLineNumber-1].substring(0,b.startColumn-1)+this._lines[b.startLineNumber-1].substring(b.endColumn-1));return}this._setLineText(b.startLineNumber-1,this._lines[b.startLineNumber-1].substring(0,b.startColumn-1)+this._lines[b.endLineNumber-1].substring(b.endColumn-1)),this._lines.splice(b.startLineNumber,b.endLineNumber-b.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(b.startLineNumber,b.endLineNumber-b.startLineNumber)}_acceptInsertText(b,I){if(I.length===0)return;const z=d7e(I);if(z.length===1){this._setLineText(b.lineNumber-1,this._lines[b.lineNumber-1].substring(0,b.column-1)+z[0]+this._lines[b.lineNumber-1].substring(b.column-1));return}z[z.length-1]+=this._lines[b.lineNumber-1].substring(b.column-1),this._setLineText(b.lineNumber-1,this._lines[b.lineNumber-1].substring(0,b.column-1)+z[0]);const ee=new Uint32Array(z.length-1);for(let _e=1;_e<z.length;_e++)this._lines.splice(b.lineNumber+_e-1,0,z[_e]),ee[_e-1]=z[_e].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(b.lineNumber,ee)}}const t5e="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function n5e(g=""){let b="(-?\\d*\\.\\d\\w*)|([^";for(const I of t5e)g.indexOf(I)>=0||(b+="\\"+I);return b+="\\s]+)",new RegExp(b,"g")}const zbe=n5e();function Bbe(g){let b=zbe;if(g&&g instanceof RegExp)if(g.global)b=g;else{let I="g";g.ignoreCase&&(I+="i"),g.multiline&&(I+="m"),g.unicode&&(I+="u"),b=new RegExp(g.source,I)}return b.lastIndex=0,b}const Gbe=new UFe;Gbe.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Dte(g,b,I,z,ee){if(b=Bbe(b),ee||(ee=EB.first(Gbe)),I.length>ee.maxLen){let Ne=g-ee.maxLen/2;return Ne<0?Ne=0:z+=Ne,I=I.substring(Ne,g+ee.maxLen/2),Dte(g,b,I,z,ee)}const _e=Date.now(),Re=g-1-z;let Ge=-1,at=null;for(let Ne=1;!(Date.now()-_e>=ee.timeBudget);Ne++){const Xe=Re-ee.windowSize*Ne;b.lastIndex=Math.max(0,Xe);const $t=r5e(b,I,Re,Ge);if(!$t&&at||(at=$t,Xe<=0))break;Ge=Xe}if(at){const Ne={word:at[0],startColumn:z+1+at.index,endColumn:z+1+at.index+at[0].length};return b.lastIndex=0,Ne}return null}function r5e(g,b,I,z){let ee;for(;ee=g.exec(b);){const _e=ee.index||0;if(_e<=I&&g.lastIndex>=I)return ee;if(z>0&&_e>z)return null}return null}class Nte{constructor(b){const I=Fbe(b);this._defaultValue=I,this._asciiMap=Nte._createAsciiMap(I),this._map=new Map}static _createAsciiMap(b){const I=new Uint8Array(256);return I.fill(b),I}set(b,I){const z=Fbe(I);b>=0&&b<256?this._asciiMap[b]=z:this._map.set(b,z)}get(b){return b>=0&&b<256?this._asciiMap[b]:this._map.get(b)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class i5e{constructor(b,I,z){const ee=new Uint8Array(b*I);for(let _e=0,Re=b*I;_e<Re;_e++)ee[_e]=z;this._data=ee,this.rows=b,this.cols=I}get(b,I){return this._data[b*this.cols+I]}set(b,I,z){this._data[b*this.cols+I]=z}}class o5e{constructor(b){let I=0,z=0;for(let _e=0,Re=b.length;_e<Re;_e++){const[Ge,at,Ne]=b[_e];at>I&&(I=at),Ge>z&&(z=Ge),Ne>z&&(z=Ne)}I++,z++;const ee=new i5e(z,I,0);for(let _e=0,Re=b.length;_e<Re;_e++){const[Ge,at,Ne]=b[_e];ee.set(Ge,at,Ne)}this._states=ee,this._maxCharCode=I}nextState(b,I){return I<0||I>=this._maxCharCode?0:this._states.get(b,I)}}let Cte=null;function a5e(){return Cte===null&&(Cte=new o5e([[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]])),Cte}let u6=null;function s5e(){if(u6===null){u6=new Nte(0);const g=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let I=0;I<g.length;I++)u6.set(g.charCodeAt(I),1);const b=".,;:";for(let I=0;I<b.length;I++)u6.set(b.charCodeAt(I),2)}return u6}class CB{static _createLink(b,I,z,ee,_e){let Re=_e-1;do{const Ge=I.charCodeAt(Re);if(b.get(Ge)!==2)break;Re--}while(Re>ee);if(ee>0){const Ge=I.charCodeAt(ee-1),at=I.charCodeAt(Re);(Ge===40&&at===41||Ge===91&&at===93||Ge===123&&at===125)&&Re--}return{range:{startLineNumber:z,startColumn:ee+1,endLineNumber:z,endColumn:Re+2},url:I.substring(ee,Re+1)}}static computeLinks(b,I=a5e()){const z=s5e(),ee=[];for(let _e=1,Re=b.getLineCount();_e<=Re;_e++){const Ge=b.getLineContent(_e),at=Ge.length;let Ne=0,Xe=0,$t=0,Ht=1,pn=!1,Pr=!1,gi=!1,io=!1;for(;Ne<at;){let Jn=!1;const In=Ge.charCodeAt(Ne);if(Ht===13){let oi;switch(In){case 40:pn=!0,oi=0;break;case 41:oi=pn?0:1;break;case 91:gi=!0,Pr=!0,oi=0;break;case 93:gi=!1,oi=Pr?0:1;break;case 123:io=!0,oi=0;break;case 125:oi=io?0:1;break;case 39:case 34:case 96:$t===In?oi=1:$t===39||$t===34||$t===96?oi=0:oi=1;break;case 42:oi=$t===42?1:0;break;case 124:oi=$t===124?1:0;break;case 32:oi=gi?0:1;break;default:oi=z.get(In)}oi===1&&(ee.push(CB._createLink(z,Ge,_e,Xe,Ne)),Jn=!0)}else if(Ht===12){let oi;In===91?(Pr=!0,oi=0):oi=z.get(In),oi===1?Jn=!0:Ht=13}else Ht=I.nextState(Ht,In),Ht===0&&(Jn=!0);Jn&&(Ht=1,pn=!1,Pr=!1,io=!1,Xe=Ne+1,$t=In),Ne++}Ht===13&&ee.push(CB._createLink(z,Ge,_e,Xe,at))}return ee}}function l5e(g){return!g||typeof g.getLineCount!="function"||typeof g.getLineContent!="function"?[]:CB.computeLinks(g)}class Pte{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(b,I,z,ee,_e){if(b&&I){const Re=this.doNavigateValueSet(I,_e);if(Re)return{range:b,value:Re}}if(z&&ee){const Re=this.doNavigateValueSet(ee,_e);if(Re)return{range:z,value:Re}}return null}doNavigateValueSet(b,I){const z=this.numberReplace(b,I);return z!==null?z:this.textReplace(b,I)}numberReplace(b,I){const z=Math.pow(10,b.length-(b.lastIndexOf(".")+1));let ee=Number(b);const _e=parseFloat(b);return!isNaN(ee)&&!isNaN(_e)&&ee===_e?ee===0&&!I?null:(ee=Math.floor(ee*z),ee+=I?z:-z,String(ee/z)):null}textReplace(b,I){return this.valueSetsReplace(this._defaultValueSet,b,I)}valueSetsReplace(b,I,z){let ee=null;for(let _e=0,Re=b.length;ee===null&&_e<Re;_e++)ee=this.valueSetReplace(b[_e],I,z);return ee}valueSetReplace(b,I,z){let ee=b.indexOf(I);return ee>=0?(ee+=z?1:-1,ee<0?ee=b.length-1:ee%=b.length,b[ee]):null}}Pte.INSTANCE=new Pte;const Vbe=Object.freeze(function(g,b){const I=setTimeout(g.bind(b),0);return{dispose(){clearTimeout(I)}}});var PB;(function(g){function b(I){return I===g.None||I===g.Cancelled||I instanceof MB?!0:!I||typeof I!="object"?!1:typeof I.isCancellationRequested=="boolean"&&typeof I.onCancellationRequested=="function"}g.isCancellationToken=b,g.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:fte.None}),g.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Vbe})})(PB||(PB={}));class MB{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?Vbe:(this._emitter||(this._emitter=new _E),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class c5e{constructor(b){this._token=void 0,this._parentListener=void 0,this._parentListener=b&&b.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new MB),this._token}cancel(){this._token?this._token instanceof MB&&this._token.cancel():this._token=PB.Cancelled}dispose(b=!1){var I;b&&this.cancel(),(I=this._parentListener)===null||I===void 0||I.dispose(),this._token?this._token instanceof MB&&this._token.dispose():this._token=PB.None}}class Mte{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(b,I){this._keyCodeToStr[b]=I,this._strToKeyCode[I.toLowerCase()]=b}keyCodeToStr(b){return this._keyCodeToStr[b]}strToKeyCode(b){return this._strToKeyCode[b.toLowerCase()]||0}}const LB=new Mte,Lte=new Mte,kte=new Mte,u5e=new Array(230),d5e=Object.create(null),p5e=Object.create(null);(function(){const g="",b=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",g,g],[1,1,"Hyper",0,g,0,g,g,g],[1,2,"Super",0,g,0,g,g,g],[1,3,"Fn",0,g,0,g,g,g],[1,4,"FnLock",0,g,0,g,g,g],[1,5,"Suspend",0,g,0,g,g,g],[1,6,"Resume",0,g,0,g,g,g],[1,7,"Turbo",0,g,0,g,g,g],[1,8,"Sleep",0,g,0,"VK_SLEEP",g,g],[1,9,"WakeUp",0,g,0,g,g,g],[0,10,"KeyA",31,"A",65,"VK_A",g,g],[0,11,"KeyB",32,"B",66,"VK_B",g,g],[0,12,"KeyC",33,"C",67,"VK_C",g,g],[0,13,"KeyD",34,"D",68,"VK_D",g,g],[0,14,"KeyE",35,"E",69,"VK_E",g,g],[0,15,"KeyF",36,"F",70,"VK_F",g,g],[0,16,"KeyG",37,"G",71,"VK_G",g,g],[0,17,"KeyH",38,"H",72,"VK_H",g,g],[0,18,"KeyI",39,"I",73,"VK_I",g,g],[0,19,"KeyJ",40,"J",74,"VK_J",g,g],[0,20,"KeyK",41,"K",75,"VK_K",g,g],[0,21,"KeyL",42,"L",76,"VK_L",g,g],[0,22,"KeyM",43,"M",77,"VK_M",g,g],[0,23,"KeyN",44,"N",78,"VK_N",g,g],[0,24,"KeyO",45,"O",79,"VK_O",g,g],[0,25,"KeyP",46,"P",80,"VK_P",g,g],[0,26,"KeyQ",47,"Q",81,"VK_Q",g,g],[0,27,"KeyR",48,"R",82,"VK_R",g,g],[0,28,"KeyS",49,"S",83,"VK_S",g,g],[0,29,"KeyT",50,"T",84,"VK_T",g,g],[0,30,"KeyU",51,"U",85,"VK_U",g,g],[0,31,"KeyV",52,"V",86,"VK_V",g,g],[0,32,"KeyW",53,"W",87,"VK_W",g,g],[0,33,"KeyX",54,"X",88,"VK_X",g,g],[0,34,"KeyY",55,"Y",89,"VK_Y",g,g],[0,35,"KeyZ",56,"Z",90,"VK_Z",g,g],[0,36,"Digit1",22,"1",49,"VK_1",g,g],[0,37,"Digit2",23,"2",50,"VK_2",g,g],[0,38,"Digit3",24,"3",51,"VK_3",g,g],[0,39,"Digit4",25,"4",52,"VK_4",g,g],[0,40,"Digit5",26,"5",53,"VK_5",g,g],[0,41,"Digit6",27,"6",54,"VK_6",g,g],[0,42,"Digit7",28,"7",55,"VK_7",g,g],[0,43,"Digit8",29,"8",56,"VK_8",g,g],[0,44,"Digit9",30,"9",57,"VK_9",g,g],[0,45,"Digit0",21,"0",48,"VK_0",g,g],[1,46,"Enter",3,"Enter",13,"VK_RETURN",g,g],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",g,g],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",g,g],[1,49,"Tab",2,"Tab",9,"VK_TAB",g,g],[1,50,"Space",10,"Space",32,"VK_SPACE",g,g],[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,g,0,g,g,g],[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",g,g],[1,64,"F1",59,"F1",112,"VK_F1",g,g],[1,65,"F2",60,"F2",113,"VK_F2",g,g],[1,66,"F3",61,"F3",114,"VK_F3",g,g],[1,67,"F4",62,"F4",115,"VK_F4",g,g],[1,68,"F5",63,"F5",116,"VK_F5",g,g],[1,69,"F6",64,"F6",117,"VK_F6",g,g],[1,70,"F7",65,"F7",118,"VK_F7",g,g],[1,71,"F8",66,"F8",119,"VK_F8",g,g],[1,72,"F9",67,"F9",120,"VK_F9",g,g],[1,73,"F10",68,"F10",121,"VK_F10",g,g],[1,74,"F11",69,"F11",122,"VK_F11",g,g],[1,75,"F12",70,"F12",123,"VK_F12",g,g],[1,76,"PrintScreen",0,g,0,g,g,g],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",g,g],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",g,g],[1,79,"Insert",19,"Insert",45,"VK_INSERT",g,g],[1,80,"Home",14,"Home",36,"VK_HOME",g,g],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",g,g],[1,82,"Delete",20,"Delete",46,"VK_DELETE",g,g],[1,83,"End",13,"End",35,"VK_END",g,g],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",g,g],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",g],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",g],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",g],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",g],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",g,g],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",g,g],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",g,g],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",g,g],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",g,g],[1,94,"NumpadEnter",3,g,0,g,g,g],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",g,g],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",g,g],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",g,g],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",g,g],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",g,g],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",g,g],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",g,g],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",g,g],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",g,g],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",g,g],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",g,g],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",g,g],[1,107,"ContextMenu",58,"ContextMenu",93,g,g,g],[1,108,"Power",0,g,0,g,g,g],[1,109,"NumpadEqual",0,g,0,g,g,g],[1,110,"F13",71,"F13",124,"VK_F13",g,g],[1,111,"F14",72,"F14",125,"VK_F14",g,g],[1,112,"F15",73,"F15",126,"VK_F15",g,g],[1,113,"F16",74,"F16",127,"VK_F16",g,g],[1,114,"F17",75,"F17",128,"VK_F17",g,g],[1,115,"F18",76,"F18",129,"VK_F18",g,g],[1,116,"F19",77,"F19",130,"VK_F19",g,g],[1,117,"F20",78,"F20",131,"VK_F20",g,g],[1,118,"F21",79,"F21",132,"VK_F21",g,g],[1,119,"F22",80,"F22",133,"VK_F22",g,g],[1,120,"F23",81,"F23",134,"VK_F23",g,g],[1,121,"F24",82,"F24",135,"VK_F24",g,g],[1,122,"Open",0,g,0,g,g,g],[1,123,"Help",0,g,0,g,g,g],[1,124,"Select",0,g,0,g,g,g],[1,125,"Again",0,g,0,g,g,g],[1,126,"Undo",0,g,0,g,g,g],[1,127,"Cut",0,g,0,g,g,g],[1,128,"Copy",0,g,0,g,g,g],[1,129,"Paste",0,g,0,g,g,g],[1,130,"Find",0,g,0,g,g,g],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",g,g],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",g,g],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",g,g],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",g,g],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",g,g],[1,136,"KanaMode",0,g,0,g,g,g],[0,137,"IntlYen",0,g,0,g,g,g],[1,138,"Convert",0,g,0,g,g,g],[1,139,"NonConvert",0,g,0,g,g,g],[1,140,"Lang1",0,g,0,g,g,g],[1,141,"Lang2",0,g,0,g,g,g],[1,142,"Lang3",0,g,0,g,g,g],[1,143,"Lang4",0,g,0,g,g,g],[1,144,"Lang5",0,g,0,g,g,g],[1,145,"Abort",0,g,0,g,g,g],[1,146,"Props",0,g,0,g,g,g],[1,147,"NumpadParenLeft",0,g,0,g,g,g],[1,148,"NumpadParenRight",0,g,0,g,g,g],[1,149,"NumpadBackspace",0,g,0,g,g,g],[1,150,"NumpadMemoryStore",0,g,0,g,g,g],[1,151,"NumpadMemoryRecall",0,g,0,g,g,g],[1,152,"NumpadMemoryClear",0,g,0,g,g,g],[1,153,"NumpadMemoryAdd",0,g,0,g,g,g],[1,154,"NumpadMemorySubtract",0,g,0,g,g,g],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",g,g],[1,156,"NumpadClearEntry",0,g,0,g,g,g],[1,0,g,5,"Ctrl",17,"VK_CONTROL",g,g],[1,0,g,4,"Shift",16,"VK_SHIFT",g,g],[1,0,g,6,"Alt",18,"VK_MENU",g,g],[1,0,g,57,"Meta",91,"VK_COMMAND",g,g],[1,157,"ControlLeft",5,g,0,"VK_LCONTROL",g,g],[1,158,"ShiftLeft",4,g,0,"VK_LSHIFT",g,g],[1,159,"AltLeft",6,g,0,"VK_LMENU",g,g],[1,160,"MetaLeft",57,g,0,"VK_LWIN",g,g],[1,161,"ControlRight",5,g,0,"VK_RCONTROL",g,g],[1,162,"ShiftRight",4,g,0,"VK_RSHIFT",g,g],[1,163,"AltRight",6,g,0,"VK_RMENU",g,g],[1,164,"MetaRight",57,g,0,"VK_RWIN",g,g],[1,165,"BrightnessUp",0,g,0,g,g,g],[1,166,"BrightnessDown",0,g,0,g,g,g],[1,167,"MediaPlay",0,g,0,g,g,g],[1,168,"MediaRecord",0,g,0,g,g,g],[1,169,"MediaFastForward",0,g,0,g,g,g],[1,170,"MediaRewind",0,g,0,g,g,g],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",g,g],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",g,g],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",g,g],[1,174,"Eject",0,g,0,g,g,g],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",g,g],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",g,g],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",g,g],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",g,g],[1,179,"LaunchApp1",0,g,0,"VK_MEDIA_LAUNCH_APP1",g,g],[1,180,"SelectTask",0,g,0,g,g,g],[1,181,"LaunchScreenSaver",0,g,0,g,g,g],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",g,g],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",g,g],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",g,g],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",g,g],[1,186,"BrowserStop",0,g,0,"VK_BROWSER_STOP",g,g],[1,187,"BrowserRefresh",0,g,0,"VK_BROWSER_REFRESH",g,g],[1,188,"BrowserFavorites",0,g,0,"VK_BROWSER_FAVORITES",g,g],[1,189,"ZoomToggle",0,g,0,g,g,g],[1,190,"MailReply",0,g,0,g,g,g],[1,191,"MailForward",0,g,0,g,g,g],[1,192,"MailSend",0,g,0,g,g,g],[1,0,g,114,"KeyInComposition",229,g,g,g],[1,0,g,116,"ABNT_C2",194,"VK_ABNT_C2",g,g],[1,0,g,96,"OEM_8",223,"VK_OEM_8",g,g],[1,0,g,0,g,0,"VK_KANA",g,g],[1,0,g,0,g,0,"VK_HANGUL",g,g],[1,0,g,0,g,0,"VK_JUNJA",g,g],[1,0,g,0,g,0,"VK_FINAL",g,g],[1,0,g,0,g,0,"VK_HANJA",g,g],[1,0,g,0,g,0,"VK_KANJI",g,g],[1,0,g,0,g,0,"VK_CONVERT",g,g],[1,0,g,0,g,0,"VK_NONCONVERT",g,g],[1,0,g,0,g,0,"VK_ACCEPT",g,g],[1,0,g,0,g,0,"VK_MODECHANGE",g,g],[1,0,g,0,g,0,"VK_SELECT",g,g],[1,0,g,0,g,0,"VK_PRINT",g,g],[1,0,g,0,g,0,"VK_EXECUTE",g,g],[1,0,g,0,g,0,"VK_SNAPSHOT",g,g],[1,0,g,0,g,0,"VK_HELP",g,g],[1,0,g,0,g,0,"VK_APPS",g,g],[1,0,g,0,g,0,"VK_PROCESSKEY",g,g],[1,0,g,0,g,0,"VK_PACKET",g,g],[1,0,g,0,g,0,"VK_DBE_SBCSCHAR",g,g],[1,0,g,0,g,0,"VK_DBE_DBCSCHAR",g,g],[1,0,g,0,g,0,"VK_ATTN",g,g],[1,0,g,0,g,0,"VK_CRSEL",g,g],[1,0,g,0,g,0,"VK_EXSEL",g,g],[1,0,g,0,g,0,"VK_EREOF",g,g],[1,0,g,0,g,0,"VK_PLAY",g,g],[1,0,g,0,g,0,"VK_ZOOM",g,g],[1,0,g,0,g,0,"VK_NONAME",g,g],[1,0,g,0,g,0,"VK_PA1",g,g],[1,0,g,0,g,0,"VK_OEM_CLEAR",g,g]],I=[],z=[];for(const ee of b){const[_e,Re,Ge,at,Ne,Xe,$t,Ht,pn]=ee;if(z[Re]||(z[Re]=!0,d5e[Ge]=Re,p5e[Ge.toLowerCase()]=Re),!I[at]){if(I[at]=!0,!Ne)throw new Error(`String representation missing for key code ${at} around scan code ${Ge}`);LB.define(at,Ne),Lte.define(at,Ht||Ne),kte.define(at,pn||Ht||Ne)}Xe&&(u5e[Xe]=at)}})();var jbe;(function(g){function b(Ge){return LB.keyCodeToStr(Ge)}g.toString=b;function I(Ge){return LB.strToKeyCode(Ge)}g.fromString=I;function z(Ge){return Lte.keyCodeToStr(Ge)}g.toUserSettingsUS=z;function ee(Ge){return kte.keyCodeToStr(Ge)}g.toUserSettingsGeneral=ee;function _e(Ge){return Lte.strToKeyCode(Ge)||kte.strToKeyCode(Ge)}g.fromUserSettings=_e;function Re(Ge){if(Ge>=98&&Ge<=113)return null;switch(Ge){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return LB.keyCodeToStr(Ge)}g.toElectronAccelerator=Re})(jbe||(jbe={}));function f5e(g,b){const I=(b&65535)<<16>>>0;return(g|I)>>>0}class vy extends Tl{constructor(b,I,z,ee){super(b,I,z,ee),this.selectionStartLineNumber=b,this.selectionStartColumn=I,this.positionLineNumber=z,this.positionColumn=ee}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(b){return vy.selectionsEqual(this,b)}static selectionsEqual(b,I){return b.selectionStartLineNumber===I.selectionStartLineNumber&&b.selectionStartColumn===I.selectionStartColumn&&b.positionLineNumber===I.positionLineNumber&&b.positionColumn===I.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(b,I){return this.getDirection()===0?new vy(this.startLineNumber,this.startColumn,b,I):new vy(b,I,this.startLineNumber,this.startColumn)}getPosition(){return new ih(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new ih(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(b,I){return this.getDirection()===0?new vy(b,I,this.endLineNumber,this.endColumn):new vy(this.endLineNumber,this.endColumn,b,I)}static fromPositions(b,I=b){return new vy(b.lineNumber,b.column,I.lineNumber,I.column)}static fromRange(b,I){return I===0?new vy(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):new vy(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn)}static liftSelection(b){return new vy(b.selectionStartLineNumber,b.selectionStartColumn,b.positionLineNumber,b.positionColumn)}static selectionsArrEqual(b,I){if(b&&!I||!b&&I)return!1;if(!b&&!I)return!0;if(b.length!==I.length)return!1;for(let z=0,ee=b.length;z<ee;z++)if(!this.selectionsEqual(b[z],I[z]))return!1;return!0}static isISelection(b){return b&&typeof b.selectionStartLineNumber=="number"&&typeof b.selectionStartColumn=="number"&&typeof b.positionLineNumber=="number"&&typeof b.positionColumn=="number"}static createWithDirection(b,I,z,ee,_e){return _e===0?new vy(b,I,z,ee):new vy(z,ee,b,I)}}const Ube=Object.create(null);function Ie(g,b){if(QFe(b)){const I=Ube[b];if(I===void 0)throw new Error(`${g} references an unknown codicon: ${b}`);b=I}return Ube[g]=b,{id:g}}const m5e={add:Ie("add",6e4),plus:Ie("plus",6e4),gistNew:Ie("gist-new",6e4),repoCreate:Ie("repo-create",6e4),lightbulb:Ie("lightbulb",60001),lightBulb:Ie("light-bulb",60001),repo:Ie("repo",60002),repoDelete:Ie("repo-delete",60002),gistFork:Ie("gist-fork",60003),repoForked:Ie("repo-forked",60003),gitPullRequest:Ie("git-pull-request",60004),gitPullRequestAbandoned:Ie("git-pull-request-abandoned",60004),recordKeys:Ie("record-keys",60005),keyboard:Ie("keyboard",60005),tag:Ie("tag",60006),gitPullRequestLabel:Ie("git-pull-request-label",60006),tagAdd:Ie("tag-add",60006),tagRemove:Ie("tag-remove",60006),person:Ie("person",60007),personFollow:Ie("person-follow",60007),personOutline:Ie("person-outline",60007),personFilled:Ie("person-filled",60007),gitBranch:Ie("git-branch",60008),gitBranchCreate:Ie("git-branch-create",60008),gitBranchDelete:Ie("git-branch-delete",60008),sourceControl:Ie("source-control",60008),mirror:Ie("mirror",60009),mirrorPublic:Ie("mirror-public",60009),star:Ie("star",60010),starAdd:Ie("star-add",60010),starDelete:Ie("star-delete",60010),starEmpty:Ie("star-empty",60010),comment:Ie("comment",60011),commentAdd:Ie("comment-add",60011),alert:Ie("alert",60012),warning:Ie("warning",60012),search:Ie("search",60013),searchSave:Ie("search-save",60013),logOut:Ie("log-out",60014),signOut:Ie("sign-out",60014),logIn:Ie("log-in",60015),signIn:Ie("sign-in",60015),eye:Ie("eye",60016),eyeUnwatch:Ie("eye-unwatch",60016),eyeWatch:Ie("eye-watch",60016),circleFilled:Ie("circle-filled",60017),primitiveDot:Ie("primitive-dot",60017),closeDirty:Ie("close-dirty",60017),debugBreakpoint:Ie("debug-breakpoint",60017),debugBreakpointDisabled:Ie("debug-breakpoint-disabled",60017),debugHint:Ie("debug-hint",60017),terminalDecorationSuccess:Ie("terminal-decoration-success",60017),primitiveSquare:Ie("primitive-square",60018),edit:Ie("edit",60019),pencil:Ie("pencil",60019),info:Ie("info",60020),issueOpened:Ie("issue-opened",60020),gistPrivate:Ie("gist-private",60021),gitForkPrivate:Ie("git-fork-private",60021),lock:Ie("lock",60021),mirrorPrivate:Ie("mirror-private",60021),close:Ie("close",60022),removeClose:Ie("remove-close",60022),x:Ie("x",60022),repoSync:Ie("repo-sync",60023),sync:Ie("sync",60023),clone:Ie("clone",60024),desktopDownload:Ie("desktop-download",60024),beaker:Ie("beaker",60025),microscope:Ie("microscope",60025),vm:Ie("vm",60026),deviceDesktop:Ie("device-desktop",60026),file:Ie("file",60027),fileText:Ie("file-text",60027),more:Ie("more",60028),ellipsis:Ie("ellipsis",60028),kebabHorizontal:Ie("kebab-horizontal",60028),mailReply:Ie("mail-reply",60029),reply:Ie("reply",60029),organization:Ie("organization",60030),organizationFilled:Ie("organization-filled",60030),organizationOutline:Ie("organization-outline",60030),newFile:Ie("new-file",60031),fileAdd:Ie("file-add",60031),newFolder:Ie("new-folder",60032),fileDirectoryCreate:Ie("file-directory-create",60032),trash:Ie("trash",60033),trashcan:Ie("trashcan",60033),history:Ie("history",60034),clock:Ie("clock",60034),folder:Ie("folder",60035),fileDirectory:Ie("file-directory",60035),symbolFolder:Ie("symbol-folder",60035),logoGithub:Ie("logo-github",60036),markGithub:Ie("mark-github",60036),github:Ie("github",60036),terminal:Ie("terminal",60037),console:Ie("console",60037),repl:Ie("repl",60037),zap:Ie("zap",60038),symbolEvent:Ie("symbol-event",60038),error:Ie("error",60039),stop:Ie("stop",60039),variable:Ie("variable",60040),symbolVariable:Ie("symbol-variable",60040),array:Ie("array",60042),symbolArray:Ie("symbol-array",60042),symbolModule:Ie("symbol-module",60043),symbolPackage:Ie("symbol-package",60043),symbolNamespace:Ie("symbol-namespace",60043),symbolObject:Ie("symbol-object",60043),symbolMethod:Ie("symbol-method",60044),symbolFunction:Ie("symbol-function",60044),symbolConstructor:Ie("symbol-constructor",60044),symbolBoolean:Ie("symbol-boolean",60047),symbolNull:Ie("symbol-null",60047),symbolNumeric:Ie("symbol-numeric",60048),symbolNumber:Ie("symbol-number",60048),symbolStructure:Ie("symbol-structure",60049),symbolStruct:Ie("symbol-struct",60049),symbolParameter:Ie("symbol-parameter",60050),symbolTypeParameter:Ie("symbol-type-parameter",60050),symbolKey:Ie("symbol-key",60051),symbolText:Ie("symbol-text",60051),symbolReference:Ie("symbol-reference",60052),goToFile:Ie("go-to-file",60052),symbolEnum:Ie("symbol-enum",60053),symbolValue:Ie("symbol-value",60053),symbolRuler:Ie("symbol-ruler",60054),symbolUnit:Ie("symbol-unit",60054),activateBreakpoints:Ie("activate-breakpoints",60055),archive:Ie("archive",60056),arrowBoth:Ie("arrow-both",60057),arrowDown:Ie("arrow-down",60058),arrowLeft:Ie("arrow-left",60059),arrowRight:Ie("arrow-right",60060),arrowSmallDown:Ie("arrow-small-down",60061),arrowSmallLeft:Ie("arrow-small-left",60062),arrowSmallRight:Ie("arrow-small-right",60063),arrowSmallUp:Ie("arrow-small-up",60064),arrowUp:Ie("arrow-up",60065),bell:Ie("bell",60066),bold:Ie("bold",60067),book:Ie("book",60068),bookmark:Ie("bookmark",60069),debugBreakpointConditionalUnverified:Ie("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:Ie("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:Ie("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:Ie("debug-breakpoint-data-unverified",60072),debugBreakpointData:Ie("debug-breakpoint-data",60073),debugBreakpointDataDisabled:Ie("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:Ie("debug-breakpoint-log-unverified",60074),debugBreakpointLog:Ie("debug-breakpoint-log",60075),debugBreakpointLogDisabled:Ie("debug-breakpoint-log-disabled",60075),briefcase:Ie("briefcase",60076),broadcast:Ie("broadcast",60077),browser:Ie("browser",60078),bug:Ie("bug",60079),calendar:Ie("calendar",60080),caseSensitive:Ie("case-sensitive",60081),check:Ie("check",60082),checklist:Ie("checklist",60083),chevronDown:Ie("chevron-down",60084),chevronLeft:Ie("chevron-left",60085),chevronRight:Ie("chevron-right",60086),chevronUp:Ie("chevron-up",60087),chromeClose:Ie("chrome-close",60088),chromeMaximize:Ie("chrome-maximize",60089),chromeMinimize:Ie("chrome-minimize",60090),chromeRestore:Ie("chrome-restore",60091),circleOutline:Ie("circle-outline",60092),circle:Ie("circle",60092),debugBreakpointUnverified:Ie("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:Ie("terminal-decoration-incomplete",60092),circleSlash:Ie("circle-slash",60093),circuitBoard:Ie("circuit-board",60094),clearAll:Ie("clear-all",60095),clippy:Ie("clippy",60096),closeAll:Ie("close-all",60097),cloudDownload:Ie("cloud-download",60098),cloudUpload:Ie("cloud-upload",60099),code:Ie("code",60100),collapseAll:Ie("collapse-all",60101),colorMode:Ie("color-mode",60102),commentDiscussion:Ie("comment-discussion",60103),creditCard:Ie("credit-card",60105),dash:Ie("dash",60108),dashboard:Ie("dashboard",60109),database:Ie("database",60110),debugContinue:Ie("debug-continue",60111),debugDisconnect:Ie("debug-disconnect",60112),debugPause:Ie("debug-pause",60113),debugRestart:Ie("debug-restart",60114),debugStart:Ie("debug-start",60115),debugStepInto:Ie("debug-step-into",60116),debugStepOut:Ie("debug-step-out",60117),debugStepOver:Ie("debug-step-over",60118),debugStop:Ie("debug-stop",60119),debug:Ie("debug",60120),deviceCameraVideo:Ie("device-camera-video",60121),deviceCamera:Ie("device-camera",60122),deviceMobile:Ie("device-mobile",60123),diffAdded:Ie("diff-added",60124),diffIgnored:Ie("diff-ignored",60125),diffModified:Ie("diff-modified",60126),diffRemoved:Ie("diff-removed",60127),diffRenamed:Ie("diff-renamed",60128),diff:Ie("diff",60129),diffSidebyside:Ie("diff-sidebyside",60129),discard:Ie("discard",60130),editorLayout:Ie("editor-layout",60131),emptyWindow:Ie("empty-window",60132),exclude:Ie("exclude",60133),extensions:Ie("extensions",60134),eyeClosed:Ie("eye-closed",60135),fileBinary:Ie("file-binary",60136),fileCode:Ie("file-code",60137),fileMedia:Ie("file-media",60138),filePdf:Ie("file-pdf",60139),fileSubmodule:Ie("file-submodule",60140),fileSymlinkDirectory:Ie("file-symlink-directory",60141),fileSymlinkFile:Ie("file-symlink-file",60142),fileZip:Ie("file-zip",60143),files:Ie("files",60144),filter:Ie("filter",60145),flame:Ie("flame",60146),foldDown:Ie("fold-down",60147),foldUp:Ie("fold-up",60148),fold:Ie("fold",60149),folderActive:Ie("folder-active",60150),folderOpened:Ie("folder-opened",60151),gear:Ie("gear",60152),gift:Ie("gift",60153),gistSecret:Ie("gist-secret",60154),gist:Ie("gist",60155),gitCommit:Ie("git-commit",60156),gitCompare:Ie("git-compare",60157),compareChanges:Ie("compare-changes",60157),gitMerge:Ie("git-merge",60158),githubAction:Ie("github-action",60159),githubAlt:Ie("github-alt",60160),globe:Ie("globe",60161),grabber:Ie("grabber",60162),graph:Ie("graph",60163),gripper:Ie("gripper",60164),heart:Ie("heart",60165),home:Ie("home",60166),horizontalRule:Ie("horizontal-rule",60167),hubot:Ie("hubot",60168),inbox:Ie("inbox",60169),issueReopened:Ie("issue-reopened",60171),issues:Ie("issues",60172),italic:Ie("italic",60173),jersey:Ie("jersey",60174),json:Ie("json",60175),kebabVertical:Ie("kebab-vertical",60176),key:Ie("key",60177),law:Ie("law",60178),lightbulbAutofix:Ie("lightbulb-autofix",60179),linkExternal:Ie("link-external",60180),link:Ie("link",60181),listOrdered:Ie("list-ordered",60182),listUnordered:Ie("list-unordered",60183),liveShare:Ie("live-share",60184),loading:Ie("loading",60185),location:Ie("location",60186),mailRead:Ie("mail-read",60187),mail:Ie("mail",60188),markdown:Ie("markdown",60189),megaphone:Ie("megaphone",60190),mention:Ie("mention",60191),milestone:Ie("milestone",60192),gitPullRequestMilestone:Ie("git-pull-request-milestone",60192),mortarBoard:Ie("mortar-board",60193),move:Ie("move",60194),multipleWindows:Ie("multiple-windows",60195),mute:Ie("mute",60196),noNewline:Ie("no-newline",60197),note:Ie("note",60198),octoface:Ie("octoface",60199),openPreview:Ie("open-preview",60200),package:Ie("package",60201),paintcan:Ie("paintcan",60202),pin:Ie("pin",60203),play:Ie("play",60204),run:Ie("run",60204),plug:Ie("plug",60205),preserveCase:Ie("preserve-case",60206),preview:Ie("preview",60207),project:Ie("project",60208),pulse:Ie("pulse",60209),question:Ie("question",60210),quote:Ie("quote",60211),radioTower:Ie("radio-tower",60212),reactions:Ie("reactions",60213),references:Ie("references",60214),refresh:Ie("refresh",60215),regex:Ie("regex",60216),remoteExplorer:Ie("remote-explorer",60217),remote:Ie("remote",60218),remove:Ie("remove",60219),replaceAll:Ie("replace-all",60220),replace:Ie("replace",60221),repoClone:Ie("repo-clone",60222),repoForcePush:Ie("repo-force-push",60223),repoPull:Ie("repo-pull",60224),repoPush:Ie("repo-push",60225),report:Ie("report",60226),requestChanges:Ie("request-changes",60227),rocket:Ie("rocket",60228),rootFolderOpened:Ie("root-folder-opened",60229),rootFolder:Ie("root-folder",60230),rss:Ie("rss",60231),ruby:Ie("ruby",60232),saveAll:Ie("save-all",60233),saveAs:Ie("save-as",60234),save:Ie("save",60235),screenFull:Ie("screen-full",60236),screenNormal:Ie("screen-normal",60237),searchStop:Ie("search-stop",60238),server:Ie("server",60240),settingsGear:Ie("settings-gear",60241),settings:Ie("settings",60242),shield:Ie("shield",60243),smiley:Ie("smiley",60244),sortPrecedence:Ie("sort-precedence",60245),splitHorizontal:Ie("split-horizontal",60246),splitVertical:Ie("split-vertical",60247),squirrel:Ie("squirrel",60248),starFull:Ie("star-full",60249),starHalf:Ie("star-half",60250),symbolClass:Ie("symbol-class",60251),symbolColor:Ie("symbol-color",60252),symbolConstant:Ie("symbol-constant",60253),symbolEnumMember:Ie("symbol-enum-member",60254),symbolField:Ie("symbol-field",60255),symbolFile:Ie("symbol-file",60256),symbolInterface:Ie("symbol-interface",60257),symbolKeyword:Ie("symbol-keyword",60258),symbolMisc:Ie("symbol-misc",60259),symbolOperator:Ie("symbol-operator",60260),symbolProperty:Ie("symbol-property",60261),wrench:Ie("wrench",60261),wrenchSubaction:Ie("wrench-subaction",60261),symbolSnippet:Ie("symbol-snippet",60262),tasklist:Ie("tasklist",60263),telescope:Ie("telescope",60264),textSize:Ie("text-size",60265),threeBars:Ie("three-bars",60266),thumbsdown:Ie("thumbsdown",60267),thumbsup:Ie("thumbsup",60268),tools:Ie("tools",60269),triangleDown:Ie("triangle-down",60270),triangleLeft:Ie("triangle-left",60271),triangleRight:Ie("triangle-right",60272),triangleUp:Ie("triangle-up",60273),twitter:Ie("twitter",60274),unfold:Ie("unfold",60275),unlock:Ie("unlock",60276),unmute:Ie("unmute",60277),unverified:Ie("unverified",60278),verified:Ie("verified",60279),versions:Ie("versions",60280),vmActive:Ie("vm-active",60281),vmOutline:Ie("vm-outline",60282),vmRunning:Ie("vm-running",60283),watch:Ie("watch",60284),whitespace:Ie("whitespace",60285),wholeWord:Ie("whole-word",60286),window:Ie("window",60287),wordWrap:Ie("word-wrap",60288),zoomIn:Ie("zoom-in",60289),zoomOut:Ie("zoom-out",60290),listFilter:Ie("list-filter",60291),listFlat:Ie("list-flat",60292),listSelection:Ie("list-selection",60293),selection:Ie("selection",60293),listTree:Ie("list-tree",60294),debugBreakpointFunctionUnverified:Ie("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:Ie("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:Ie("debug-breakpoint-function-disabled",60296),debugStackframeActive:Ie("debug-stackframe-active",60297),circleSmallFilled:Ie("circle-small-filled",60298),debugStackframeDot:Ie("debug-stackframe-dot",60298),terminalDecorationMark:Ie("terminal-decoration-mark",60298),debugStackframe:Ie("debug-stackframe",60299),debugStackframeFocused:Ie("debug-stackframe-focused",60299),debugBreakpointUnsupported:Ie("debug-breakpoint-unsupported",60300),symbolString:Ie("symbol-string",60301),debugReverseContinue:Ie("debug-reverse-continue",60302),debugStepBack:Ie("debug-step-back",60303),debugRestartFrame:Ie("debug-restart-frame",60304),debugAlt:Ie("debug-alt",60305),callIncoming:Ie("call-incoming",60306),callOutgoing:Ie("call-outgoing",60307),menu:Ie("menu",60308),expandAll:Ie("expand-all",60309),feedback:Ie("feedback",60310),gitPullRequestReviewer:Ie("git-pull-request-reviewer",60310),groupByRefType:Ie("group-by-ref-type",60311),ungroupByRefType:Ie("ungroup-by-ref-type",60312),account:Ie("account",60313),gitPullRequestAssignee:Ie("git-pull-request-assignee",60313),bellDot:Ie("bell-dot",60314),debugConsole:Ie("debug-console",60315),library:Ie("library",60316),output:Ie("output",60317),runAll:Ie("run-all",60318),syncIgnored:Ie("sync-ignored",60319),pinned:Ie("pinned",60320),githubInverted:Ie("github-inverted",60321),serverProcess:Ie("server-process",60322),serverEnvironment:Ie("server-environment",60323),pass:Ie("pass",60324),issueClosed:Ie("issue-closed",60324),stopCircle:Ie("stop-circle",60325),playCircle:Ie("play-circle",60326),record:Ie("record",60327),debugAltSmall:Ie("debug-alt-small",60328),vmConnect:Ie("vm-connect",60329),cloud:Ie("cloud",60330),merge:Ie("merge",60331),export:Ie("export",60332),graphLeft:Ie("graph-left",60333),magnet:Ie("magnet",60334),notebook:Ie("notebook",60335),redo:Ie("redo",60336),checkAll:Ie("check-all",60337),pinnedDirty:Ie("pinned-dirty",60338),passFilled:Ie("pass-filled",60339),circleLargeFilled:Ie("circle-large-filled",60340),circleLarge:Ie("circle-large",60341),circleLargeOutline:Ie("circle-large-outline",60341),combine:Ie("combine",60342),gather:Ie("gather",60342),table:Ie("table",60343),variableGroup:Ie("variable-group",60344),typeHierarchy:Ie("type-hierarchy",60345),typeHierarchySub:Ie("type-hierarchy-sub",60346),typeHierarchySuper:Ie("type-hierarchy-super",60347),gitPullRequestCreate:Ie("git-pull-request-create",60348),runAbove:Ie("run-above",60349),runBelow:Ie("run-below",60350),notebookTemplate:Ie("notebook-template",60351),debugRerun:Ie("debug-rerun",60352),workspaceTrusted:Ie("workspace-trusted",60353),workspaceUntrusted:Ie("workspace-untrusted",60354),workspaceUnknown:Ie("workspace-unknown",60355),terminalCmd:Ie("terminal-cmd",60356),terminalDebian:Ie("terminal-debian",60357),terminalLinux:Ie("terminal-linux",60358),terminalPowershell:Ie("terminal-powershell",60359),terminalTmux:Ie("terminal-tmux",60360),terminalUbuntu:Ie("terminal-ubuntu",60361),terminalBash:Ie("terminal-bash",60362),arrowSwap:Ie("arrow-swap",60363),copy:Ie("copy",60364),personAdd:Ie("person-add",60365),filterFilled:Ie("filter-filled",60366),wand:Ie("wand",60367),debugLineByLine:Ie("debug-line-by-line",60368),inspect:Ie("inspect",60369),layers:Ie("layers",60370),layersDot:Ie("layers-dot",60371),layersActive:Ie("layers-active",60372),compass:Ie("compass",60373),compassDot:Ie("compass-dot",60374),compassActive:Ie("compass-active",60375),azure:Ie("azure",60376),issueDraft:Ie("issue-draft",60377),gitPullRequestClosed:Ie("git-pull-request-closed",60378),gitPullRequestDraft:Ie("git-pull-request-draft",60379),debugAll:Ie("debug-all",60380),debugCoverage:Ie("debug-coverage",60381),runErrors:Ie("run-errors",60382),folderLibrary:Ie("folder-library",60383),debugContinueSmall:Ie("debug-continue-small",60384),beakerStop:Ie("beaker-stop",60385),graphLine:Ie("graph-line",60386),graphScatter:Ie("graph-scatter",60387),pieChart:Ie("pie-chart",60388),bracket:Ie("bracket",60175),bracketDot:Ie("bracket-dot",60389),bracketError:Ie("bracket-error",60390),lockSmall:Ie("lock-small",60391),azureDevops:Ie("azure-devops",60392),verifiedFilled:Ie("verified-filled",60393),newline:Ie("newline",60394),layout:Ie("layout",60395),layoutActivitybarLeft:Ie("layout-activitybar-left",60396),layoutActivitybarRight:Ie("layout-activitybar-right",60397),layoutPanelLeft:Ie("layout-panel-left",60398),layoutPanelCenter:Ie("layout-panel-center",60399),layoutPanelJustify:Ie("layout-panel-justify",60400),layoutPanelRight:Ie("layout-panel-right",60401),layoutPanel:Ie("layout-panel",60402),layoutSidebarLeft:Ie("layout-sidebar-left",60403),layoutSidebarRight:Ie("layout-sidebar-right",60404),layoutStatusbar:Ie("layout-statusbar",60405),layoutMenubar:Ie("layout-menubar",60406),layoutCentered:Ie("layout-centered",60407),target:Ie("target",60408),indent:Ie("indent",60409),recordSmall:Ie("record-small",60410),errorSmall:Ie("error-small",60411),terminalDecorationError:Ie("terminal-decoration-error",60411),arrowCircleDown:Ie("arrow-circle-down",60412),arrowCircleLeft:Ie("arrow-circle-left",60413),arrowCircleRight:Ie("arrow-circle-right",60414),arrowCircleUp:Ie("arrow-circle-up",60415),layoutSidebarRightOff:Ie("layout-sidebar-right-off",60416),layoutPanelOff:Ie("layout-panel-off",60417),layoutSidebarLeftOff:Ie("layout-sidebar-left-off",60418),blank:Ie("blank",60419),heartFilled:Ie("heart-filled",60420),map:Ie("map",60421),mapHorizontal:Ie("map-horizontal",60421),foldHorizontal:Ie("fold-horizontal",60421),mapFilled:Ie("map-filled",60422),mapHorizontalFilled:Ie("map-horizontal-filled",60422),foldHorizontalFilled:Ie("fold-horizontal-filled",60422),circleSmall:Ie("circle-small",60423),bellSlash:Ie("bell-slash",60424),bellSlashDot:Ie("bell-slash-dot",60425),commentUnresolved:Ie("comment-unresolved",60426),gitPullRequestGoToChanges:Ie("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:Ie("git-pull-request-new-changes",60428),searchFuzzy:Ie("search-fuzzy",60429),commentDraft:Ie("comment-draft",60430),send:Ie("send",60431),sparkle:Ie("sparkle",60432),insert:Ie("insert",60433),mic:Ie("mic",60434),thumbsdownFilled:Ie("thumbsdown-filled",60435),thumbsupFilled:Ie("thumbsup-filled",60436),coffee:Ie("coffee",60437),snake:Ie("snake",60438),game:Ie("game",60439),vr:Ie("vr",60440),chip:Ie("chip",60441),piano:Ie("piano",60442),music:Ie("music",60443),micFilled:Ie("mic-filled",60444),repoFetch:Ie("repo-fetch",60445),copilot:Ie("copilot",60446),lightbulbSparkle:Ie("lightbulb-sparkle",60447),robot:Ie("robot",60448),sparkleFilled:Ie("sparkle-filled",60449),diffSingle:Ie("diff-single",60450),diffMultiple:Ie("diff-multiple",60451),surroundWith:Ie("surround-with",60452),share:Ie("share",60453),gitStash:Ie("git-stash",60454),gitStashApply:Ie("git-stash-apply",60455),gitStashPop:Ie("git-stash-pop",60456),vscode:Ie("vscode",60457),vscodeInsiders:Ie("vscode-insiders",60458),codeOss:Ie("code-oss",60459),runCoverage:Ie("run-coverage",60460),runAllCoverage:Ie("run-all-coverage",60461),coverage:Ie("coverage",60462),githubProject:Ie("github-project",60463),mapVertical:Ie("map-vertical",60464),foldVertical:Ie("fold-vertical",60464),mapVerticalFilled:Ie("map-vertical-filled",60465),foldVerticalFilled:Ie("fold-vertical-filled",60465),goToSearch:Ie("go-to-search",60466),percentage:Ie("percentage",60467),sortPercentage:Ie("sort-percentage",60467),attach:Ie("attach",60468)},_5e={dialogError:Ie("dialog-error","error"),dialogWarning:Ie("dialog-warning","warning"),dialogInfo:Ie("dialog-info","info"),dialogClose:Ie("dialog-close","close"),treeItemExpanded:Ie("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:Ie("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:Ie("tree-filter-on-type-off","list-selection"),treeFilterClear:Ie("tree-filter-clear","close"),treeItemLoading:Ie("tree-item-loading","loading"),menuSelection:Ie("menu-selection","check"),menuSubmenu:Ie("menu-submenu","chevron-right"),menuBarMore:Ie("menubar-more","more"),scrollbarButtonLeft:Ie("scrollbar-button-left","triangle-left"),scrollbarButtonRight:Ie("scrollbar-button-right","triangle-right"),scrollbarButtonUp:Ie("scrollbar-button-up","triangle-up"),scrollbarButtonDown:Ie("scrollbar-button-down","triangle-down"),toolBarMore:Ie("toolbar-more","more"),quickInputBack:Ie("quick-input-back","arrow-left"),dropDownButton:Ie("drop-down-button",60084),symbolCustomColor:Ie("symbol-customcolor",60252),exportIcon:Ie("export",60332),workspaceUnspecified:Ie("workspace-unspecified",60355),newLine:Ie("newline",60394),thumbsDownFilled:Ie("thumbsdown-filled",60435),thumbsUpFilled:Ie("thumbsup-filled",60436),gitFetch:Ie("git-fetch",60445),lightbulbSparkleAutofix:Ie("lightbulb-sparkle-autofix",60447),debugBreakpointPending:Ie("debug-breakpoint-pending",60377)},_s={...m5e,..._5e};class h5e{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new _E,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(b){this._onDidChange.fire({changedLanguages:b,changedColorMap:!1})}register(b,I){return this._tokenizationSupports.set(b,I),this.handleChange([b]),SB(()=>{this._tokenizationSupports.get(b)===I&&(this._tokenizationSupports.delete(b),this.handleChange([b]))})}get(b){return this._tokenizationSupports.get(b)||null}registerFactory(b,I){var z;(z=this._factories.get(b))===null||z===void 0||z.dispose();const ee=new g5e(this,b,I);return this._factories.set(b,ee),SB(()=>{const _e=this._factories.get(b);!_e||_e!==ee||(this._factories.delete(b),_e.dispose())})}async getOrCreate(b){const I=this.get(b);if(I)return I;const z=this._factories.get(b);return!z||z.isResolved?null:(await z.resolve(),this.get(b))}isResolved(b){if(this.get(b))return!0;const z=this._factories.get(b);return!!(!z||z.isResolved)}setColorMap(b){this._colorMap=b,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 g5e extends l6{get isResolved(){return this._isResolved}constructor(b,I,z){super(),this._registry=b,this._languageId=I,this._factory=z,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 b=await this._factory.tokenizationSupport;this._isResolved=!0,b&&!this._isDisposed&&this._register(this._registry.register(this._languageId,b))}}class v5e{constructor(b,I,z){this.offset=b,this.type=I,this.language=z,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Hbe;(function(g){g[g.Increase=0]="Increase",g[g.Decrease=1]="Decrease"})(Hbe||(Hbe={}));var qbe;(function(g){const b=new Map;b.set(0,_s.symbolMethod),b.set(1,_s.symbolFunction),b.set(2,_s.symbolConstructor),b.set(3,_s.symbolField),b.set(4,_s.symbolVariable),b.set(5,_s.symbolClass),b.set(6,_s.symbolStruct),b.set(7,_s.symbolInterface),b.set(8,_s.symbolModule),b.set(9,_s.symbolProperty),b.set(10,_s.symbolEvent),b.set(11,_s.symbolOperator),b.set(12,_s.symbolUnit),b.set(13,_s.symbolValue),b.set(15,_s.symbolEnum),b.set(14,_s.symbolConstant),b.set(15,_s.symbolEnum),b.set(16,_s.symbolEnumMember),b.set(17,_s.symbolKeyword),b.set(27,_s.symbolSnippet),b.set(18,_s.symbolText),b.set(19,_s.symbolColor),b.set(20,_s.symbolFile),b.set(21,_s.symbolReference),b.set(22,_s.symbolCustomColor),b.set(23,_s.symbolFolder),b.set(24,_s.symbolTypeParameter),b.set(25,_s.account),b.set(26,_s.issues);function I(_e){let Re=b.get(_e);return Re||(console.info("No codicon found for CompletionItemKind "+_e),Re=_s.symbolProperty),Re}g.toIcon=I;const z=new Map;z.set("method",0),z.set("function",1),z.set("constructor",2),z.set("field",3),z.set("variable",4),z.set("class",5),z.set("struct",6),z.set("interface",7),z.set("module",8),z.set("property",9),z.set("event",10),z.set("operator",11),z.set("unit",12),z.set("value",13),z.set("constant",14),z.set("enum",15),z.set("enum-member",16),z.set("enumMember",16),z.set("keyword",17),z.set("snippet",27),z.set("text",18),z.set("color",19),z.set("file",20),z.set("reference",21),z.set("customcolor",22),z.set("folder",23),z.set("type-parameter",24),z.set("typeParameter",24),z.set("account",25),z.set("issue",26);function ee(_e,Re){let Ge=z.get(_e);return typeof Ge>"u"&&!Re&&(Ge=9),Ge}g.fromString=ee})(qbe||(qbe={}));var Jbe;(function(g){g[g.Automatic=0]="Automatic",g[g.Explicit=1]="Explicit"})(Jbe||(Jbe={}));var Kbe;(function(g){g[g.Automatic=0]="Automatic",g[g.PasteAs=1]="PasteAs"})(Kbe||(Kbe={}));var Xbe;(function(g){g[g.Invoke=1]="Invoke",g[g.TriggerCharacter=2]="TriggerCharacter",g[g.ContentChange=3]="ContentChange"})(Xbe||(Xbe={}));var Ybe;(function(g){g[g.Text=0]="Text",g[g.Read=1]="Read",g[g.Write=2]="Write"})(Ybe||(Ybe={})),wd("Array","array"),wd("Boolean","boolean"),wd("Class","class"),wd("Constant","constant"),wd("Constructor","constructor"),wd("Enum","enumeration"),wd("EnumMember","enumeration member"),wd("Event","event"),wd("Field","field"),wd("File","file"),wd("Function","function"),wd("Interface","interface"),wd("Key","key"),wd("Method","method"),wd("Module","module"),wd("Namespace","namespace"),wd("Null","null"),wd("Number","number"),wd("Object","object"),wd("Operator","operator"),wd("Package","package"),wd("Property","property"),wd("String","string"),wd("Struct","struct"),wd("TypeParameter","type parameter"),wd("Variable","variable");var $be;(function(g){const b=new Map;b.set(0,_s.symbolFile),b.set(1,_s.symbolModule),b.set(2,_s.symbolNamespace),b.set(3,_s.symbolPackage),b.set(4,_s.symbolClass),b.set(5,_s.symbolMethod),b.set(6,_s.symbolProperty),b.set(7,_s.symbolField),b.set(8,_s.symbolConstructor),b.set(9,_s.symbolEnum),b.set(10,_s.symbolInterface),b.set(11,_s.symbolFunction),b.set(12,_s.symbolVariable),b.set(13,_s.symbolConstant),b.set(14,_s.symbolString),b.set(15,_s.symbolNumber),b.set(16,_s.symbolBoolean),b.set(17,_s.symbolArray),b.set(18,_s.symbolObject),b.set(19,_s.symbolKey),b.set(20,_s.symbolNull),b.set(21,_s.symbolEnumMember),b.set(22,_s.symbolStruct),b.set(23,_s.symbolEvent),b.set(24,_s.symbolOperator),b.set(25,_s.symbolTypeParameter);function I(z){let ee=b.get(z);return ee||(console.info("No codicon found for SymbolKind "+z),ee=_s.symbolProperty),ee}g.toIcon=I})($be||($be={}));var Qbe;(function(g){g[g.AIGenerated=1]="AIGenerated"})(Qbe||(Qbe={}));var Zbe;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(Zbe||(Zbe={}));var e0e;(function(g){function b(I){return!I||typeof I!="object"?!1:typeof I.id=="string"&&typeof I.title=="string"}g.is=b})(e0e||(e0e={}));var t0e;(function(g){g[g.Type=1]="Type",g[g.Parameter=2]="Parameter"})(t0e||(t0e={})),new h5e;var n0e;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(n0e||(n0e={}));var r0e;(function(g){g[g.Unknown=0]="Unknown",g[g.Disabled=1]="Disabled",g[g.Enabled=2]="Enabled"})(r0e||(r0e={}));var i0e;(function(g){g[g.Invoke=1]="Invoke",g[g.Auto=2]="Auto"})(i0e||(i0e={}));var o0e;(function(g){g[g.None=0]="None",g[g.KeepWhitespace=1]="KeepWhitespace",g[g.InsertAsSnippet=4]="InsertAsSnippet"})(o0e||(o0e={}));var a0e;(function(g){g[g.Method=0]="Method",g[g.Function=1]="Function",g[g.Constructor=2]="Constructor",g[g.Field=3]="Field",g[g.Variable=4]="Variable",g[g.Class=5]="Class",g[g.Struct=6]="Struct",g[g.Interface=7]="Interface",g[g.Module=8]="Module",g[g.Property=9]="Property",g[g.Event=10]="Event",g[g.Operator=11]="Operator",g[g.Unit=12]="Unit",g[g.Value=13]="Value",g[g.Constant=14]="Constant",g[g.Enum=15]="Enum",g[g.EnumMember=16]="EnumMember",g[g.Keyword=17]="Keyword",g[g.Text=18]="Text",g[g.Color=19]="Color",g[g.File=20]="File",g[g.Reference=21]="Reference",g[g.Customcolor=22]="Customcolor",g[g.Folder=23]="Folder",g[g.TypeParameter=24]="TypeParameter",g[g.User=25]="User",g[g.Issue=26]="Issue",g[g.Snippet=27]="Snippet"})(a0e||(a0e={}));var s0e;(function(g){g[g.Deprecated=1]="Deprecated"})(s0e||(s0e={}));var l0e;(function(g){g[g.Invoke=0]="Invoke",g[g.TriggerCharacter=1]="TriggerCharacter",g[g.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(l0e||(l0e={}));var c0e;(function(g){g[g.EXACT=0]="EXACT",g[g.ABOVE=1]="ABOVE",g[g.BELOW=2]="BELOW"})(c0e||(c0e={}));var u0e;(function(g){g[g.NotSet=0]="NotSet",g[g.ContentFlush=1]="ContentFlush",g[g.RecoverFromMarkers=2]="RecoverFromMarkers",g[g.Explicit=3]="Explicit",g[g.Paste=4]="Paste",g[g.Undo=5]="Undo",g[g.Redo=6]="Redo"})(u0e||(u0e={}));var d0e;(function(g){g[g.LF=1]="LF",g[g.CRLF=2]="CRLF"})(d0e||(d0e={}));var p0e;(function(g){g[g.Text=0]="Text",g[g.Read=1]="Read",g[g.Write=2]="Write"})(p0e||(p0e={}));var f0e;(function(g){g[g.None=0]="None",g[g.Keep=1]="Keep",g[g.Brackets=2]="Brackets",g[g.Advanced=3]="Advanced",g[g.Full=4]="Full"})(f0e||(f0e={}));var m0e;(function(g){g[g.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",g[g.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",g[g.accessibilitySupport=2]="accessibilitySupport",g[g.accessibilityPageSize=3]="accessibilityPageSize",g[g.ariaLabel=4]="ariaLabel",g[g.ariaRequired=5]="ariaRequired",g[g.autoClosingBrackets=6]="autoClosingBrackets",g[g.autoClosingComments=7]="autoClosingComments",g[g.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",g[g.autoClosingDelete=9]="autoClosingDelete",g[g.autoClosingOvertype=10]="autoClosingOvertype",g[g.autoClosingQuotes=11]="autoClosingQuotes",g[g.autoIndent=12]="autoIndent",g[g.automaticLayout=13]="automaticLayout",g[g.autoSurround=14]="autoSurround",g[g.bracketPairColorization=15]="bracketPairColorization",g[g.guides=16]="guides",g[g.codeLens=17]="codeLens",g[g.codeLensFontFamily=18]="codeLensFontFamily",g[g.codeLensFontSize=19]="codeLensFontSize",g[g.colorDecorators=20]="colorDecorators",g[g.colorDecoratorsLimit=21]="colorDecoratorsLimit",g[g.columnSelection=22]="columnSelection",g[g.comments=23]="comments",g[g.contextmenu=24]="contextmenu",g[g.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",g[g.cursorBlinking=26]="cursorBlinking",g[g.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",g[g.cursorStyle=28]="cursorStyle",g[g.cursorSurroundingLines=29]="cursorSurroundingLines",g[g.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",g[g.cursorWidth=31]="cursorWidth",g[g.disableLayerHinting=32]="disableLayerHinting",g[g.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",g[g.domReadOnly=34]="domReadOnly",g[g.dragAndDrop=35]="dragAndDrop",g[g.dropIntoEditor=36]="dropIntoEditor",g[g.emptySelectionClipboard=37]="emptySelectionClipboard",g[g.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",g[g.extraEditorClassName=39]="extraEditorClassName",g[g.fastScrollSensitivity=40]="fastScrollSensitivity",g[g.find=41]="find",g[g.fixedOverflowWidgets=42]="fixedOverflowWidgets",g[g.folding=43]="folding",g[g.foldingStrategy=44]="foldingStrategy",g[g.foldingHighlight=45]="foldingHighlight",g[g.foldingImportsByDefault=46]="foldingImportsByDefault",g[g.foldingMaximumRegions=47]="foldingMaximumRegions",g[g.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",g[g.fontFamily=49]="fontFamily",g[g.fontInfo=50]="fontInfo",g[g.fontLigatures=51]="fontLigatures",g[g.fontSize=52]="fontSize",g[g.fontWeight=53]="fontWeight",g[g.fontVariations=54]="fontVariations",g[g.formatOnPaste=55]="formatOnPaste",g[g.formatOnType=56]="formatOnType",g[g.glyphMargin=57]="glyphMargin",g[g.gotoLocation=58]="gotoLocation",g[g.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",g[g.hover=60]="hover",g[g.inDiffEditor=61]="inDiffEditor",g[g.inlineSuggest=62]="inlineSuggest",g[g.inlineEdit=63]="inlineEdit",g[g.letterSpacing=64]="letterSpacing",g[g.lightbulb=65]="lightbulb",g[g.lineDecorationsWidth=66]="lineDecorationsWidth",g[g.lineHeight=67]="lineHeight",g[g.lineNumbers=68]="lineNumbers",g[g.lineNumbersMinChars=69]="lineNumbersMinChars",g[g.linkedEditing=70]="linkedEditing",g[g.links=71]="links",g[g.matchBrackets=72]="matchBrackets",g[g.minimap=73]="minimap",g[g.mouseStyle=74]="mouseStyle",g[g.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",g[g.mouseWheelZoom=76]="mouseWheelZoom",g[g.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",g[g.multiCursorModifier=78]="multiCursorModifier",g[g.multiCursorPaste=79]="multiCursorPaste",g[g.multiCursorLimit=80]="multiCursorLimit",g[g.occurrencesHighlight=81]="occurrencesHighlight",g[g.overviewRulerBorder=82]="overviewRulerBorder",g[g.overviewRulerLanes=83]="overviewRulerLanes",g[g.padding=84]="padding",g[g.pasteAs=85]="pasteAs",g[g.parameterHints=86]="parameterHints",g[g.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",g[g.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",g[g.quickSuggestions=89]="quickSuggestions",g[g.quickSuggestionsDelay=90]="quickSuggestionsDelay",g[g.readOnly=91]="readOnly",g[g.readOnlyMessage=92]="readOnlyMessage",g[g.renameOnType=93]="renameOnType",g[g.renderControlCharacters=94]="renderControlCharacters",g[g.renderFinalNewline=95]="renderFinalNewline",g[g.renderLineHighlight=96]="renderLineHighlight",g[g.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",g[g.renderValidationDecorations=98]="renderValidationDecorations",g[g.renderWhitespace=99]="renderWhitespace",g[g.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",g[g.roundedSelection=101]="roundedSelection",g[g.rulers=102]="rulers",g[g.scrollbar=103]="scrollbar",g[g.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",g[g.scrollBeyondLastLine=105]="scrollBeyondLastLine",g[g.scrollPredominantAxis=106]="scrollPredominantAxis",g[g.selectionClipboard=107]="selectionClipboard",g[g.selectionHighlight=108]="selectionHighlight",g[g.selectOnLineNumbers=109]="selectOnLineNumbers",g[g.showFoldingControls=110]="showFoldingControls",g[g.showUnused=111]="showUnused",g[g.snippetSuggestions=112]="snippetSuggestions",g[g.smartSelect=113]="smartSelect",g[g.smoothScrolling=114]="smoothScrolling",g[g.stickyScroll=115]="stickyScroll",g[g.stickyTabStops=116]="stickyTabStops",g[g.stopRenderingLineAfter=117]="stopRenderingLineAfter",g[g.suggest=118]="suggest",g[g.suggestFontSize=119]="suggestFontSize",g[g.suggestLineHeight=120]="suggestLineHeight",g[g.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",g[g.suggestSelection=122]="suggestSelection",g[g.tabCompletion=123]="tabCompletion",g[g.tabIndex=124]="tabIndex",g[g.unicodeHighlighting=125]="unicodeHighlighting",g[g.unusualLineTerminators=126]="unusualLineTerminators",g[g.useShadowDOM=127]="useShadowDOM",g[g.useTabStops=128]="useTabStops",g[g.wordBreak=129]="wordBreak",g[g.wordSegmenterLocales=130]="wordSegmenterLocales",g[g.wordSeparators=131]="wordSeparators",g[g.wordWrap=132]="wordWrap",g[g.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",g[g.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",g[g.wordWrapColumn=135]="wordWrapColumn",g[g.wordWrapOverride1=136]="wordWrapOverride1",g[g.wordWrapOverride2=137]="wordWrapOverride2",g[g.wrappingIndent=138]="wrappingIndent",g[g.wrappingStrategy=139]="wrappingStrategy",g[g.showDeprecated=140]="showDeprecated",g[g.inlayHints=141]="inlayHints",g[g.editorClassName=142]="editorClassName",g[g.pixelRatio=143]="pixelRatio",g[g.tabFocusMode=144]="tabFocusMode",g[g.layoutInfo=145]="layoutInfo",g[g.wrappingInfo=146]="wrappingInfo",g[g.defaultColorDecorators=147]="defaultColorDecorators",g[g.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",g[g.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(m0e||(m0e={}));var _0e;(function(g){g[g.TextDefined=0]="TextDefined",g[g.LF=1]="LF",g[g.CRLF=2]="CRLF"})(_0e||(_0e={}));var h0e;(function(g){g[g.LF=0]="LF",g[g.CRLF=1]="CRLF"})(h0e||(h0e={}));var g0e;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=3]="Right"})(g0e||(g0e={}));var v0e;(function(g){g[g.Increase=0]="Increase",g[g.Decrease=1]="Decrease"})(v0e||(v0e={}));var y0e;(function(g){g[g.None=0]="None",g[g.Indent=1]="Indent",g[g.IndentOutdent=2]="IndentOutdent",g[g.Outdent=3]="Outdent"})(y0e||(y0e={}));var b0e;(function(g){g[g.Both=0]="Both",g[g.Right=1]="Right",g[g.Left=2]="Left",g[g.None=3]="None"})(b0e||(b0e={}));var E0e;(function(g){g[g.Type=1]="Type",g[g.Parameter=2]="Parameter"})(E0e||(E0e={}));var S0e;(function(g){g[g.Automatic=0]="Automatic",g[g.Explicit=1]="Explicit"})(S0e||(S0e={}));var T0e;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(T0e||(T0e={}));var wte;(function(g){g[g.DependsOnKbLayout=-1]="DependsOnKbLayout",g[g.Unknown=0]="Unknown",g[g.Backspace=1]="Backspace",g[g.Tab=2]="Tab",g[g.Enter=3]="Enter",g[g.Shift=4]="Shift",g[g.Ctrl=5]="Ctrl",g[g.Alt=6]="Alt",g[g.PauseBreak=7]="PauseBreak",g[g.CapsLock=8]="CapsLock",g[g.Escape=9]="Escape",g[g.Space=10]="Space",g[g.PageUp=11]="PageUp",g[g.PageDown=12]="PageDown",g[g.End=13]="End",g[g.Home=14]="Home",g[g.LeftArrow=15]="LeftArrow",g[g.UpArrow=16]="UpArrow",g[g.RightArrow=17]="RightArrow",g[g.DownArrow=18]="DownArrow",g[g.Insert=19]="Insert",g[g.Delete=20]="Delete",g[g.Digit0=21]="Digit0",g[g.Digit1=22]="Digit1",g[g.Digit2=23]="Digit2",g[g.Digit3=24]="Digit3",g[g.Digit4=25]="Digit4",g[g.Digit5=26]="Digit5",g[g.Digit6=27]="Digit6",g[g.Digit7=28]="Digit7",g[g.Digit8=29]="Digit8",g[g.Digit9=30]="Digit9",g[g.KeyA=31]="KeyA",g[g.KeyB=32]="KeyB",g[g.KeyC=33]="KeyC",g[g.KeyD=34]="KeyD",g[g.KeyE=35]="KeyE",g[g.KeyF=36]="KeyF",g[g.KeyG=37]="KeyG",g[g.KeyH=38]="KeyH",g[g.KeyI=39]="KeyI",g[g.KeyJ=40]="KeyJ",g[g.KeyK=41]="KeyK",g[g.KeyL=42]="KeyL",g[g.KeyM=43]="KeyM",g[g.KeyN=44]="KeyN",g[g.KeyO=45]="KeyO",g[g.KeyP=46]="KeyP",g[g.KeyQ=47]="KeyQ",g[g.KeyR=48]="KeyR",g[g.KeyS=49]="KeyS",g[g.KeyT=50]="KeyT",g[g.KeyU=51]="KeyU",g[g.KeyV=52]="KeyV",g[g.KeyW=53]="KeyW",g[g.KeyX=54]="KeyX",g[g.KeyY=55]="KeyY",g[g.KeyZ=56]="KeyZ",g[g.Meta=57]="Meta",g[g.ContextMenu=58]="ContextMenu",g[g.F1=59]="F1",g[g.F2=60]="F2",g[g.F3=61]="F3",g[g.F4=62]="F4",g[g.F5=63]="F5",g[g.F6=64]="F6",g[g.F7=65]="F7",g[g.F8=66]="F8",g[g.F9=67]="F9",g[g.F10=68]="F10",g[g.F11=69]="F11",g[g.F12=70]="F12",g[g.F13=71]="F13",g[g.F14=72]="F14",g[g.F15=73]="F15",g[g.F16=74]="F16",g[g.F17=75]="F17",g[g.F18=76]="F18",g[g.F19=77]="F19",g[g.F20=78]="F20",g[g.F21=79]="F21",g[g.F22=80]="F22",g[g.F23=81]="F23",g[g.F24=82]="F24",g[g.NumLock=83]="NumLock",g[g.ScrollLock=84]="ScrollLock",g[g.Semicolon=85]="Semicolon",g[g.Equal=86]="Equal",g[g.Comma=87]="Comma",g[g.Minus=88]="Minus",g[g.Period=89]="Period",g[g.Slash=90]="Slash",g[g.Backquote=91]="Backquote",g[g.BracketLeft=92]="BracketLeft",g[g.Backslash=93]="Backslash",g[g.BracketRight=94]="BracketRight",g[g.Quote=95]="Quote",g[g.OEM_8=96]="OEM_8",g[g.IntlBackslash=97]="IntlBackslash",g[g.Numpad0=98]="Numpad0",g[g.Numpad1=99]="Numpad1",g[g.Numpad2=100]="Numpad2",g[g.Numpad3=101]="Numpad3",g[g.Numpad4=102]="Numpad4",g[g.Numpad5=103]="Numpad5",g[g.Numpad6=104]="Numpad6",g[g.Numpad7=105]="Numpad7",g[g.Numpad8=106]="Numpad8",g[g.Numpad9=107]="Numpad9",g[g.NumpadMultiply=108]="NumpadMultiply",g[g.NumpadAdd=109]="NumpadAdd",g[g.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",g[g.NumpadSubtract=111]="NumpadSubtract",g[g.NumpadDecimal=112]="NumpadDecimal",g[g.NumpadDivide=113]="NumpadDivide",g[g.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",g[g.ABNT_C1=115]="ABNT_C1",g[g.ABNT_C2=116]="ABNT_C2",g[g.AudioVolumeMute=117]="AudioVolumeMute",g[g.AudioVolumeUp=118]="AudioVolumeUp",g[g.AudioVolumeDown=119]="AudioVolumeDown",g[g.BrowserSearch=120]="BrowserSearch",g[g.BrowserHome=121]="BrowserHome",g[g.BrowserBack=122]="BrowserBack",g[g.BrowserForward=123]="BrowserForward",g[g.MediaTrackNext=124]="MediaTrackNext",g[g.MediaTrackPrevious=125]="MediaTrackPrevious",g[g.MediaStop=126]="MediaStop",g[g.MediaPlayPause=127]="MediaPlayPause",g[g.LaunchMediaPlayer=128]="LaunchMediaPlayer",g[g.LaunchMail=129]="LaunchMail",g[g.LaunchApp2=130]="LaunchApp2",g[g.Clear=131]="Clear",g[g.MAX_VALUE=132]="MAX_VALUE"})(wte||(wte={}));var Ote;(function(g){g[g.Hint=1]="Hint",g[g.Info=2]="Info",g[g.Warning=4]="Warning",g[g.Error=8]="Error"})(Ote||(Ote={}));var Wte;(function(g){g[g.Unnecessary=1]="Unnecessary",g[g.Deprecated=2]="Deprecated"})(Wte||(Wte={}));var A0e;(function(g){g[g.Inline=1]="Inline",g[g.Gutter=2]="Gutter"})(A0e||(A0e={}));var I0e;(function(g){g[g.Normal=1]="Normal",g[g.Underlined=2]="Underlined"})(I0e||(I0e={}));var x0e;(function(g){g[g.UNKNOWN=0]="UNKNOWN",g[g.TEXTAREA=1]="TEXTAREA",g[g.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",g[g.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",g[g.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",g[g.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",g[g.CONTENT_TEXT=6]="CONTENT_TEXT",g[g.CONTENT_EMPTY=7]="CONTENT_EMPTY",g[g.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",g[g.CONTENT_WIDGET=9]="CONTENT_WIDGET",g[g.OVERVIEW_RULER=10]="OVERVIEW_RULER",g[g.SCROLLBAR=11]="SCROLLBAR",g[g.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",g[g.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(x0e||(x0e={}));var R0e;(function(g){g[g.AIGenerated=1]="AIGenerated"})(R0e||(R0e={}));var D0e;(function(g){g[g.Invoke=0]="Invoke",g[g.Automatic=1]="Automatic"})(D0e||(D0e={}));var N0e;(function(g){g[g.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",g[g.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",g[g.TOP_CENTER=2]="TOP_CENTER"})(N0e||(N0e={}));var C0e;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=4]="Right",g[g.Full=7]="Full"})(C0e||(C0e={}));var P0e;(function(g){g[g.Word=0]="Word",g[g.Line=1]="Line",g[g.Suggest=2]="Suggest"})(P0e||(P0e={}));var M0e;(function(g){g[g.Left=0]="Left",g[g.Right=1]="Right",g[g.None=2]="None",g[g.LeftOfInjectedText=3]="LeftOfInjectedText",g[g.RightOfInjectedText=4]="RightOfInjectedText"})(M0e||(M0e={}));var L0e;(function(g){g[g.Off=0]="Off",g[g.On=1]="On",g[g.Relative=2]="Relative",g[g.Interval=3]="Interval",g[g.Custom=4]="Custom"})(L0e||(L0e={}));var k0e;(function(g){g[g.None=0]="None",g[g.Text=1]="Text",g[g.Blocks=2]="Blocks"})(k0e||(k0e={}));var w0e;(function(g){g[g.Smooth=0]="Smooth",g[g.Immediate=1]="Immediate"})(w0e||(w0e={}));var O0e;(function(g){g[g.Auto=1]="Auto",g[g.Hidden=2]="Hidden",g[g.Visible=3]="Visible"})(O0e||(O0e={}));var Fte;(function(g){g[g.LTR=0]="LTR",g[g.RTL=1]="RTL"})(Fte||(Fte={}));var W0e;(function(g){g.Off="off",g.OnCode="onCode",g.On="on"})(W0e||(W0e={}));var F0e;(function(g){g[g.Invoke=1]="Invoke",g[g.TriggerCharacter=2]="TriggerCharacter",g[g.ContentChange=3]="ContentChange"})(F0e||(F0e={}));var z0e;(function(g){g[g.File=0]="File",g[g.Module=1]="Module",g[g.Namespace=2]="Namespace",g[g.Package=3]="Package",g[g.Class=4]="Class",g[g.Method=5]="Method",g[g.Property=6]="Property",g[g.Field=7]="Field",g[g.Constructor=8]="Constructor",g[g.Enum=9]="Enum",g[g.Interface=10]="Interface",g[g.Function=11]="Function",g[g.Variable=12]="Variable",g[g.Constant=13]="Constant",g[g.String=14]="String",g[g.Number=15]="Number",g[g.Boolean=16]="Boolean",g[g.Array=17]="Array",g[g.Object=18]="Object",g[g.Key=19]="Key",g[g.Null=20]="Null",g[g.EnumMember=21]="EnumMember",g[g.Struct=22]="Struct",g[g.Event=23]="Event",g[g.Operator=24]="Operator",g[g.TypeParameter=25]="TypeParameter"})(z0e||(z0e={}));var B0e;(function(g){g[g.Deprecated=1]="Deprecated"})(B0e||(B0e={}));var G0e;(function(g){g[g.Hidden=0]="Hidden",g[g.Blink=1]="Blink",g[g.Smooth=2]="Smooth",g[g.Phase=3]="Phase",g[g.Expand=4]="Expand",g[g.Solid=5]="Solid"})(G0e||(G0e={}));var V0e;(function(g){g[g.Line=1]="Line",g[g.Block=2]="Block",g[g.Underline=3]="Underline",g[g.LineThin=4]="LineThin",g[g.BlockOutline=5]="BlockOutline",g[g.UnderlineThin=6]="UnderlineThin"})(V0e||(V0e={}));var j0e;(function(g){g[g.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",g[g.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",g[g.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",g[g.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(j0e||(j0e={}));var U0e;(function(g){g[g.None=0]="None",g[g.Same=1]="Same",g[g.Indent=2]="Indent",g[g.DeepIndent=3]="DeepIndent"})(U0e||(U0e={}));class d6{static chord(b,I){return f5e(b,I)}}d6.CtrlCmd=2048,d6.Shift=1024,d6.Alt=512,d6.WinCtrl=256;function y5e(){return{editor:void 0,languages:void 0,CancellationTokenSource:c5e,Emitter:_E,KeyCode:wte,KeyMod:d6,Position:ih,Range:Tl,Selection:vy,SelectionDirection:Fte,MarkerSeverity:Ote,MarkerTag:Wte,Uri:GN,Token:v5e}}var H0e;class b5e{constructor(){this[H0e]="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 b;return(b=this._head)===null||b===void 0?void 0:b.value}get last(){var b;return(b=this._tail)===null||b===void 0?void 0:b.value}has(b){return this._map.has(b)}get(b,I=0){const z=this._map.get(b);if(z)return I!==0&&this.touch(z,I),z.value}set(b,I,z=0){let ee=this._map.get(b);if(ee)ee.value=I,z!==0&&this.touch(ee,z);else{switch(ee={key:b,value:I,next:void 0,previous:void 0},z){case 0:this.addItemLast(ee);break;case 1:this.addItemFirst(ee);break;case 2:this.addItemLast(ee);break;default:this.addItemLast(ee);break}this._map.set(b,ee),this._size++}return this}delete(b){return!!this.remove(b)}remove(b){const I=this._map.get(b);if(I)return this._map.delete(b),this.removeItem(I),this._size--,I.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const b=this._head;return this._map.delete(b.key),this.removeItem(b),this._size--,b.value}forEach(b,I){const z=this._state;let ee=this._head;for(;ee;){if(I?b.bind(I)(ee.value,ee.key,this):b(ee.value,ee.key,this),this._state!==z)throw new Error("LinkedMap got modified during iteration.");ee=ee.next}}keys(){const b=this,I=this._state;let z=this._head;const ee={[Symbol.iterator](){return ee},next(){if(b._state!==I)throw new Error("LinkedMap got modified during iteration.");if(z){const _e={value:z.key,done:!1};return z=z.next,_e}else return{value:void 0,done:!0}}};return ee}values(){const b=this,I=this._state;let z=this._head;const ee={[Symbol.iterator](){return ee},next(){if(b._state!==I)throw new Error("LinkedMap got modified during iteration.");if(z){const _e={value:z.value,done:!1};return z=z.next,_e}else return{value:void 0,done:!0}}};return ee}entries(){const b=this,I=this._state;let z=this._head;const ee={[Symbol.iterator](){return ee},next(){if(b._state!==I)throw new Error("LinkedMap got modified during iteration.");if(z){const _e={value:[z.key,z.value],done:!1};return z=z.next,_e}else return{value:void 0,done:!0}}};return ee}[(H0e=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(b){if(b>=this.size)return;if(b===0){this.clear();return}let I=this._head,z=this.size;for(;I&&z>b;)this._map.delete(I.key),I=I.next,z--;this._head=I,this._size=z,I&&(I.previous=void 0),this._state++}trimNew(b){if(b>=this.size)return;if(b===0){this.clear();return}let I=this._tail,z=this.size;for(;I&&z>b;)this._map.delete(I.key),I=I.previous,z--;this._tail=I,this._size=z,I&&(I.next=void 0),this._state++}addItemFirst(b){if(!this._head&&!this._tail)this._tail=b;else if(this._head)b.next=this._head,this._head.previous=b;else throw new Error("Invalid list");this._head=b,this._state++}addItemLast(b){if(!this._head&&!this._tail)this._head=b;else if(this._tail)b.previous=this._tail,this._tail.next=b;else throw new Error("Invalid list");this._tail=b,this._state++}removeItem(b){if(b===this._head&&b===this._tail)this._head=void 0,this._tail=void 0;else if(b===this._head){if(!b.next)throw new Error("Invalid list");b.next.previous=void 0,this._head=b.next}else if(b===this._tail){if(!b.previous)throw new Error("Invalid list");b.previous.next=void 0,this._tail=b.previous}else{const I=b.next,z=b.previous;if(!I||!z)throw new Error("Invalid list");I.previous=z,z.next=I}b.next=void 0,b.previous=void 0,this._state++}touch(b,I){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(I!==1&&I!==2)){if(I===1){if(b===this._head)return;const z=b.next,ee=b.previous;b===this._tail?(ee.next=void 0,this._tail=ee):(z.previous=ee,ee.next=z),b.previous=void 0,b.next=this._head,this._head.previous=b,this._head=b,this._state++}else if(I===2){if(b===this._tail)return;const z=b.next,ee=b.previous;b===this._head?(z.previous=void 0,this._head=z):(z.previous=ee,ee.next=z),b.next=void 0,b.previous=this._tail,this._tail.next=b,this._tail=b,this._state++}}}toJSON(){const b=[];return this.forEach((I,z)=>{b.push([z,I])}),b}fromJSON(b){this.clear();for(const[I,z]of b)this.set(I,z)}}class E5e extends b5e{constructor(b,I=1){super(),this._limit=b,this._ratio=Math.min(Math.max(0,I),1)}get limit(){return this._limit}set limit(b){this._limit=b,this.checkTrim()}get(b,I=2){return super.get(b,I)}peek(b){return super.get(b,0)}set(b,I){return super.set(b,I,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class S5e extends E5e{constructor(b,I=1){super(b,I)}trim(b){this.trimOld(b)}set(b,I){return super.set(b,I),this.checkTrim(),this}}class T5e{constructor(){this.map=new Map}add(b,I){let z=this.map.get(b);z||(z=new Set,this.map.set(b,z)),z.add(I)}delete(b,I){const z=this.map.get(b);z&&(z.delete(I),z.size===0&&this.map.delete(b))}forEach(b,I){const z=this.map.get(b);z&&z.forEach(I)}get(b){const I=this.map.get(b);return I||new Set}}new S5e(10);var q0e;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=4]="Right",g[g.Full=7]="Full"})(q0e||(q0e={}));var J0e;(function(g){g[g.Left=1]="Left",g[g.Center=2]="Center",g[g.Right=3]="Right"})(J0e||(J0e={}));var K0e;(function(g){g[g.Both=0]="Both",g[g.Right=1]="Right",g[g.Left=2]="Left",g[g.None=3]="None"})(K0e||(K0e={}));function A5e(g,b,I,z,ee){if(z===0)return!0;const _e=b.charCodeAt(z-1);if(g.get(_e)!==0||_e===13||_e===10)return!0;if(ee>0){const Re=b.charCodeAt(z);if(g.get(Re)!==0)return!0}return!1}function I5e(g,b,I,z,ee){if(z+ee===I)return!0;const _e=b.charCodeAt(z+ee);if(g.get(_e)!==0||_e===13||_e===10)return!0;if(ee>0){const Re=b.charCodeAt(z+ee-1);if(g.get(Re)!==0)return!0}return!1}function x5e(g,b,I,z,ee){return A5e(g,b,I,z,ee)&&I5e(g,b,I,z,ee)}class R5e{constructor(b,I){this._wordSeparators=b,this._searchRegex=I,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(b){this._searchRegex.lastIndex=b,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(b){const I=b.length;let z;do{if(this._prevMatchStartIndex+this._prevMatchLength===I||(z=this._searchRegex.exec(b),!z))return null;const ee=z.index,_e=z[0].length;if(ee===this._prevMatchStartIndex&&_e===this._prevMatchLength){if(_e===0){h7e(b,I,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=ee,this._prevMatchLength=_e,!this._wordSeparators||x5e(this._wordSeparators,b,I,ee,_e))return z}while(z);return null}}function D5e(g,b="Unreachable"){throw new Error(b)}function kB(g){if(!g()){debugger;g(),bB(new tS("Assertion Failed"))}}function X0e(g,b){let I=0;for(;I<g.length-1;){const z=g[I],ee=g[I+1];if(!b(z,ee))return!1;I++}return!0}class N5e{static computeUnicodeHighlights(b,I,z){const ee=z?z.startLineNumber:1,_e=z?z.endLineNumber:b.getLineCount(),Re=new Y0e(I),Ge=Re.getCandidateCodePoints();let at;Ge==="allNonBasicAscii"?at=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):at=new RegExp(`${C5e(Array.from(Ge))}`,"g");const Ne=new R5e(null,at),Xe=[];let $t=!1,Ht,pn=0,Pr=0,gi=0;e:for(let io=ee,Jn=_e;io<=Jn;io++){const In=b.getLineContent(io),oi=In.length;Ne.reset(0);do if(Ht=Ne.next(In),Ht){let mi=Ht.index,Yi=Ht.index+Ht[0].length;if(mi>0){const Jc=In.charCodeAt(mi-1);Tte(Jc)&&mi--}if(Yi+1<oi){const Jc=In.charCodeAt(Yi-1);Tte(Jc)&&Yi++}const ja=In.substring(mi,Yi);let Or=Dte(mi+1,zbe,In,0);Or&&Or.endColumn<=mi+1&&(Or=null);const Ba=Re.shouldHighlightNonBasicASCII(ja,Or?Or.word:null);if(Ba!==0){if(Ba===3?pn++:Ba===2?Pr++:Ba===1?gi++:D5e(),Xe.length>=1e3){$t=!0;break e}Xe.push(new Tl(io,mi+1,io,Yi+1))}}while(Ht)}return{ranges:Xe,hasMore:$t,ambiguousCharacterCount:pn,invisibleCharacterCount:Pr,nonBasicAsciiCharacterCount:gi}}static computeUnicodeHighlightReason(b,I){const z=new Y0e(I);switch(z.shouldHighlightNonBasicASCII(b,null)){case 0:return null;case 2:return{kind:1};case 3:{const _e=b.codePointAt(0),Re=z.ambiguousCharacters.getPrimaryConfusable(_e),Ge=BN.getLocales().filter(at=>!BN.getInstance(new Set([...I.allowedLocales,at])).isAmbiguous(_e));return{kind:0,confusableWith:String.fromCodePoint(Re),notAmbiguousInLocales:Ge}}case 1:return{kind:2}}}}function C5e(g,b){return`[${u7e(g.map(z=>String.fromCodePoint(z)).join(""))}]`}class Y0e{constructor(b){this.options=b,this.allowedCodePoints=new Set(b.allowedCodePoints),this.ambiguousCharacters=BN.getInstance(new Set(b.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const b=new Set;if(this.options.invisibleCharacters)for(const I of Ex.codePoints)$0e(String.fromCodePoint(I))||b.add(I);if(this.options.ambiguousCharacters)for(const I of this.ambiguousCharacters.getConfusableCodePoints())b.add(I);for(const I of this.allowedCodePoints)b.delete(I);return b}shouldHighlightNonBasicASCII(b,I){const z=b.codePointAt(0);if(this.allowedCodePoints.has(z))return 0;if(this.options.nonBasicASCII)return 1;let ee=!1,_e=!1;if(I)for(const Re of I){const Ge=Re.codePointAt(0),at=v7e(Re);ee=ee||at,!at&&!this.ambiguousCharacters.isAmbiguous(Ge)&&!Ex.isInvisibleCharacter(Ge)&&(_e=!0)}return!ee&&_e?0:this.options.invisibleCharacters&&!$0e(b)&&Ex.isInvisibleCharacter(z)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(z)?3:0}}function $0e(g){return g===" "||g===`
`||g===" "}class wB{constructor(b,I,z){this.changes=b,this.moves=I,this.hitTimeout=z}}class P5e{constructor(b,I){this.lineRangeMapping=b,this.changes=I}}class rc{static addRange(b,I){let z=0;for(;z<I.length&&I[z].endExclusive<b.start;)z++;let ee=z;for(;ee<I.length&&I[ee].start<=b.endExclusive;)ee++;if(z===ee)I.splice(z,0,b);else{const _e=Math.min(b.start,I[z].start),Re=Math.max(b.endExclusive,I[ee-1].endExclusive);I.splice(z,ee-z,new rc(_e,Re))}}static tryCreate(b,I){if(!(b>I))return new rc(b,I)}static ofLength(b){return new rc(0,b)}static ofStartAndLength(b,I){return new rc(b,b+I)}constructor(b,I){if(this.start=b,this.endExclusive=I,b>I)throw new tS(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(b){return new rc(this.start+b,this.endExclusive+b)}deltaStart(b){return new rc(this.start+b,this.endExclusive)}deltaEnd(b){return new rc(this.start,this.endExclusive+b)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(b){return this.start<=b&&b<this.endExclusive}join(b){return new rc(Math.min(this.start,b.start),Math.max(this.endExclusive,b.endExclusive))}intersect(b){const I=Math.max(this.start,b.start),z=Math.min(this.endExclusive,b.endExclusive);if(I<=z)return new rc(I,z)}intersects(b){const I=Math.max(this.start,b.start),z=Math.min(this.endExclusive,b.endExclusive);return I<z}isBefore(b){return this.endExclusive<=b.start}isAfter(b){return this.start>=b.endExclusive}slice(b){return b.slice(this.start,this.endExclusive)}substring(b){return b.substring(this.start,this.endExclusive)}clip(b){if(this.isEmpty)throw new tS(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,b))}clipCyclic(b){if(this.isEmpty)throw new tS(`Invalid clipping range: ${this.toString()}`);return b<this.start?this.endExclusive-(this.start-b)%this.length:b>=this.endExclusive?this.start+(b-this.start)%this.length:b}forEach(b){for(let I=this.start;I<this.endExclusive;I++)b(I)}}function I2(g,b){const I=p6(g,b);return I===-1?void 0:g[I]}function p6(g,b,I=0,z=g.length){let ee=I,_e=z;for(;ee<_e;){const Re=Math.floor((ee+_e)/2);b(g[Re])?ee=Re+1:_e=Re}return ee-1}function M5e(g,b){const I=zte(g,b);return I===g.length?void 0:g[I]}function zte(g,b,I=0,z=g.length){let ee=I,_e=z;for(;ee<_e;){const Re=Math.floor((ee+_e)/2);b(g[Re])?_e=Re:ee=Re+1}return ee}class f6{constructor(b){this._array=b,this._findLastMonotonousLastIdx=0}findLastMonotonous(b){if(f6.assertInvariants){if(this._prevFindLastPredicate){for(const z of this._array)if(this._prevFindLastPredicate(z)&&!b(z))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=b}const I=p6(this._array,b,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=I+1,I===-1?void 0:this._array[I]}}f6.assertInvariants=!1;class Jl{static fromRangeInclusive(b){return new Jl(b.startLineNumber,b.endLineNumber+1)}static joinMany(b){if(b.length===0)return[];let I=new rS(b[0].slice());for(let z=1;z<b.length;z++)I=I.getUnion(new rS(b[z].slice()));return I.ranges}static join(b){if(b.length===0)throw new tS("lineRanges cannot be empty");let I=b[0].startLineNumber,z=b[0].endLineNumberExclusive;for(let ee=1;ee<b.length;ee++)I=Math.min(I,b[ee].startLineNumber),z=Math.max(z,b[ee].endLineNumberExclusive);return new Jl(I,z)}static ofLength(b,I){return new Jl(b,b+I)}static deserialize(b){return new Jl(b[0],b[1])}constructor(b,I){if(b>I)throw new tS(`startLineNumber ${b} cannot be after endLineNumberExclusive ${I}`);this.startLineNumber=b,this.endLineNumberExclusive=I}contains(b){return this.startLineNumber<=b&&b<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(b){return new Jl(this.startLineNumber+b,this.endLineNumberExclusive+b)}deltaLength(b){return new Jl(this.startLineNumber,this.endLineNumberExclusive+b)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(b){return new Jl(Math.min(this.startLineNumber,b.startLineNumber),Math.max(this.endLineNumberExclusive,b.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(b){const I=Math.max(this.startLineNumber,b.startLineNumber),z=Math.min(this.endLineNumberExclusive,b.endLineNumberExclusive);if(I<=z)return new Jl(I,z)}intersectsStrict(b){return this.startLineNumber<b.endLineNumberExclusive&&b.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(b){return this.startLineNumber<=b.endLineNumberExclusive&&b.startLineNumber<=this.endLineNumberExclusive}equals(b){return this.startLineNumber===b.startLineNumber&&this.endLineNumberExclusive===b.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Tl(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Tl(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(b){const I=[];for(let z=this.startLineNumber;z<this.endLineNumberExclusive;z++)I.push(b(z));return I}forEach(b){for(let I=this.startLineNumber;I<this.endLineNumberExclusive;I++)b(I)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(b){return this.startLineNumber<=b&&b<this.endLineNumberExclusive}toOffsetRange(){return new rc(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class rS{constructor(b=[]){this._normalizedRanges=b}get ranges(){return this._normalizedRanges}addRange(b){if(b.length===0)return;const I=zte(this._normalizedRanges,ee=>ee.endLineNumberExclusive>=b.startLineNumber),z=p6(this._normalizedRanges,ee=>ee.startLineNumber<=b.endLineNumberExclusive)+1;if(I===z)this._normalizedRanges.splice(I,0,b);else if(I===z-1){const ee=this._normalizedRanges[I];this._normalizedRanges[I]=ee.join(b)}else{const ee=this._normalizedRanges[I].join(this._normalizedRanges[z-1]).join(b);this._normalizedRanges.splice(I,z-I,ee)}}contains(b){const I=I2(this._normalizedRanges,z=>z.startLineNumber<=b);return!!I&&I.endLineNumberExclusive>b}intersects(b){const I=I2(this._normalizedRanges,z=>z.startLineNumber<b.endLineNumberExclusive);return!!I&&I.endLineNumberExclusive>b.startLineNumber}getUnion(b){if(this._normalizedRanges.length===0)return b;if(b._normalizedRanges.length===0)return this;const I=[];let z=0,ee=0,_e=null;for(;z<this._normalizedRanges.length||ee<b._normalizedRanges.length;){let Re=null;if(z<this._normalizedRanges.length&&ee<b._normalizedRanges.length){const Ge=this._normalizedRanges[z],at=b._normalizedRanges[ee];Ge.startLineNumber<at.startLineNumber?(Re=Ge,z++):(Re=at,ee++)}else z<this._normalizedRanges.length?(Re=this._normalizedRanges[z],z++):(Re=b._normalizedRanges[ee],ee++);_e===null?_e=Re:_e.endLineNumberExclusive>=Re.startLineNumber?_e=new Jl(_e.startLineNumber,Math.max(_e.endLineNumberExclusive,Re.endLineNumberExclusive)):(I.push(_e),_e=Re)}return _e!==null&&I.push(_e),new rS(I)}subtractFrom(b){const I=zte(this._normalizedRanges,Re=>Re.endLineNumberExclusive>=b.startLineNumber),z=p6(this._normalizedRanges,Re=>Re.startLineNumber<=b.endLineNumberExclusive)+1;if(I===z)return new rS([b]);const ee=[];let _e=b.startLineNumber;for(let Re=I;Re<z;Re++){const Ge=this._normalizedRanges[Re];Ge.startLineNumber>_e&&ee.push(new Jl(_e,Ge.startLineNumber)),_e=Ge.endLineNumberExclusive}return _e<b.endLineNumberExclusive&&ee.push(new Jl(_e,b.endLineNumberExclusive)),new rS(ee)}toString(){return this._normalizedRanges.map(b=>b.toString()).join(", ")}getIntersection(b){const I=[];let z=0,ee=0;for(;z<this._normalizedRanges.length&&ee<b._normalizedRanges.length;){const _e=this._normalizedRanges[z],Re=b._normalizedRanges[ee],Ge=_e.intersect(Re);Ge&&!Ge.isEmpty&&I.push(Ge),_e.endLineNumberExclusive<Re.endLineNumberExclusive?z++:ee++}return new rS(I)}getWithDelta(b){return new rS(this._normalizedRanges.map(I=>I.delta(b)))}}class L5e{constructor(b,I){this.range=b,this.text=I}}class vE{static inverse(b,I,z){const ee=[];let _e=1,Re=1;for(const at of b){const Ne=new vE(new Jl(_e,at.original.startLineNumber),new Jl(Re,at.modified.startLineNumber));Ne.modified.isEmpty||ee.push(Ne),_e=at.original.endLineNumberExclusive,Re=at.modified.endLineNumberExclusive}const Ge=new vE(new Jl(_e,I+1),new Jl(Re,z+1));return Ge.modified.isEmpty||ee.push(Ge),ee}static clip(b,I,z){const ee=[];for(const _e of b){const Re=_e.original.intersect(I),Ge=_e.modified.intersect(z);Re&&!Re.isEmpty&&Ge&&!Ge.isEmpty&&ee.push(new vE(Re,Ge))}return ee}constructor(b,I){this.original=b,this.modified=I}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new vE(this.modified,this.original)}join(b){return new vE(this.original.join(b.original),this.modified.join(b.modified))}toRangeMapping(){const b=this.original.toInclusiveRange(),I=this.modified.toInclusiveRange();if(b&&I)return new Dx(b,I);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new tS("not a valid diff");return new Dx(new Tl(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Tl(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Dx(new Tl(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Tl(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}}class cA extends vE{static fromRangeMappings(b){const I=Jl.join(b.map(ee=>Jl.fromRangeInclusive(ee.originalRange))),z=Jl.join(b.map(ee=>Jl.fromRangeInclusive(ee.modifiedRange)));return new cA(I,z,b)}constructor(b,I,z){super(b,I),this.innerChanges=z}flip(){var b;return new cA(this.modified,this.original,(b=this.innerChanges)===null||b===void 0?void 0:b.map(I=>I.flip()))}withInnerChangesFromLineRanges(){return new cA(this.original,this.modified,[this.toRangeMapping()])}}class Dx{constructor(b,I){this.originalRange=b,this.modifiedRange=I}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Dx(this.modifiedRange,this.originalRange)}toTextEdit(b){const I=b.getValueOfRange(this.modifiedRange);return new L5e(this.originalRange,I)}}const k5e=3;class w5e{computeDiff(b,I,z){var ee;const Re=new F5e(b,I,{maxComputationTime:z.maxComputationTimeMs,shouldIgnoreTrimWhitespace:z.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Ge=[];let at=null;for(const Ne of Re.changes){let Xe;Ne.originalEndLineNumber===0?Xe=new Jl(Ne.originalStartLineNumber+1,Ne.originalStartLineNumber+1):Xe=new Jl(Ne.originalStartLineNumber,Ne.originalEndLineNumber+1);let $t;Ne.modifiedEndLineNumber===0?$t=new Jl(Ne.modifiedStartLineNumber+1,Ne.modifiedStartLineNumber+1):$t=new Jl(Ne.modifiedStartLineNumber,Ne.modifiedEndLineNumber+1);let Ht=new cA(Xe,$t,(ee=Ne.charChanges)===null||ee===void 0?void 0:ee.map(pn=>new Dx(new Tl(pn.originalStartLineNumber,pn.originalStartColumn,pn.originalEndLineNumber,pn.originalEndColumn),new Tl(pn.modifiedStartLineNumber,pn.modifiedStartColumn,pn.modifiedEndLineNumber,pn.modifiedEndColumn))));at&&(at.modified.endLineNumberExclusive===Ht.modified.startLineNumber||at.original.endLineNumberExclusive===Ht.original.startLineNumber)&&(Ht=new cA(at.original.join(Ht.original),at.modified.join(Ht.modified),at.innerChanges&&Ht.innerChanges?at.innerChanges.concat(Ht.innerChanges):void 0),Ge.pop()),Ge.push(Ht),at=Ht}return kB(()=>X0e(Ge,(Ne,Xe)=>Xe.original.startLineNumber-Ne.original.endLineNumberExclusive===Xe.modified.startLineNumber-Ne.modified.endLineNumberExclusive&&Ne.original.endLineNumberExclusive<Xe.original.startLineNumber&&Ne.modified.endLineNumberExclusive<Xe.modified.startLineNumber)),new wB(Ge,[],Re.quitEarly)}}function Q0e(g,b,I,z){return new Tx(g,b,I).ComputeDiff(z)}let Z0e=class{constructor(b){const I=[],z=[];for(let ee=0,_e=b.length;ee<_e;ee++)I[ee]=Bte(b[ee],1),z[ee]=Gte(b[ee],1);this.lines=b,this._startColumns=I,this._endColumns=z}getElements(){const b=[];for(let I=0,z=this.lines.length;I<z;I++)b[I]=this.lines[I].substring(this._startColumns[I]-1,this._endColumns[I]-1);return b}getStrictElement(b){return this.lines[b]}getStartLineNumber(b){return b+1}getEndLineNumber(b){return b+1}createCharSequence(b,I,z){const ee=[],_e=[],Re=[];let Ge=0;for(let at=I;at<=z;at++){const Ne=this.lines[at],Xe=b?this._startColumns[at]:1,$t=b?this._endColumns[at]:Ne.length+1;for(let Ht=Xe;Ht<$t;Ht++)ee[Ge]=Ne.charCodeAt(Ht-1),_e[Ge]=at+1,Re[Ge]=Ht,Ge++;!b&&at<z&&(ee[Ge]=10,_e[Ge]=at+1,Re[Ge]=Ne.length+1,Ge++)}return new O5e(ee,_e,Re)}};class O5e{constructor(b,I,z){this._charCodes=b,this._lineNumbers=I,this._columns=z}toString(){return"["+this._charCodes.map((b,I)=>(b===10?"\\n":String.fromCharCode(b))+`-(${this._lineNumbers[I]},${this._columns[I]})`).join(", ")+"]"}_assertIndex(b,I){if(b<0||b>=I.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(b){return b>0&&b===this._lineNumbers.length?this.getEndLineNumber(b-1):(this._assertIndex(b,this._lineNumbers),this._lineNumbers[b])}getEndLineNumber(b){return b===-1?this.getStartLineNumber(b+1):(this._assertIndex(b,this._lineNumbers),this._charCodes[b]===10?this._lineNumbers[b]+1:this._lineNumbers[b])}getStartColumn(b){return b>0&&b===this._columns.length?this.getEndColumn(b-1):(this._assertIndex(b,this._columns),this._columns[b])}getEndColumn(b){return b===-1?this.getStartColumn(b+1):(this._assertIndex(b,this._columns),this._charCodes[b]===10?1:this._columns[b]+1)}}class x2{constructor(b,I,z,ee,_e,Re,Ge,at){this.originalStartLineNumber=b,this.originalStartColumn=I,this.originalEndLineNumber=z,this.originalEndColumn=ee,this.modifiedStartLineNumber=_e,this.modifiedStartColumn=Re,this.modifiedEndLineNumber=Ge,this.modifiedEndColumn=at}static createFromDiffChange(b,I,z){const ee=I.getStartLineNumber(b.originalStart),_e=I.getStartColumn(b.originalStart),Re=I.getEndLineNumber(b.originalStart+b.originalLength-1),Ge=I.getEndColumn(b.originalStart+b.originalLength-1),at=z.getStartLineNumber(b.modifiedStart),Ne=z.getStartColumn(b.modifiedStart),Xe=z.getEndLineNumber(b.modifiedStart+b.modifiedLength-1),$t=z.getEndColumn(b.modifiedStart+b.modifiedLength-1);return new x2(ee,_e,Re,Ge,at,Ne,Xe,$t)}}function W5e(g){if(g.length<=1)return g;const b=[g[0]];let I=b[0];for(let z=1,ee=g.length;z<ee;z++){const _e=g[z],Re=_e.originalStart-(I.originalStart+I.originalLength),Ge=_e.modifiedStart-(I.modifiedStart+I.modifiedLength);Math.min(Re,Ge)<k5e?(I.originalLength=_e.originalStart+_e.originalLength-I.originalStart,I.modifiedLength=_e.modifiedStart+_e.modifiedLength-I.modifiedStart):(b.push(_e),I=_e)}return b}class m6{constructor(b,I,z,ee,_e){this.originalStartLineNumber=b,this.originalEndLineNumber=I,this.modifiedStartLineNumber=z,this.modifiedEndLineNumber=ee,this.charChanges=_e}static createFromDiffResult(b,I,z,ee,_e,Re,Ge){let at,Ne,Xe,$t,Ht;if(I.originalLength===0?(at=z.getStartLineNumber(I.originalStart)-1,Ne=0):(at=z.getStartLineNumber(I.originalStart),Ne=z.getEndLineNumber(I.originalStart+I.originalLength-1)),I.modifiedLength===0?(Xe=ee.getStartLineNumber(I.modifiedStart)-1,$t=0):(Xe=ee.getStartLineNumber(I.modifiedStart),$t=ee.getEndLineNumber(I.modifiedStart+I.modifiedLength-1)),Re&&I.originalLength>0&&I.originalLength<20&&I.modifiedLength>0&&I.modifiedLength<20&&_e()){const pn=z.createCharSequence(b,I.originalStart,I.originalStart+I.originalLength-1),Pr=ee.createCharSequence(b,I.modifiedStart,I.modifiedStart+I.modifiedLength-1);if(pn.getElements().length>0&&Pr.getElements().length>0){let gi=Q0e(pn,Pr,_e,!0).changes;Ge&&(gi=W5e(gi)),Ht=[];for(let io=0,Jn=gi.length;io<Jn;io++)Ht.push(x2.createFromDiffChange(gi[io],pn,Pr))}}return new m6(at,Ne,Xe,$t,Ht)}}class F5e{constructor(b,I,z){this.shouldComputeCharChanges=z.shouldComputeCharChanges,this.shouldPostProcessCharChanges=z.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=z.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=z.shouldMakePrettyDiff,this.originalLines=b,this.modifiedLines=I,this.original=new Z0e(b),this.modified=new Z0e(I),this.continueLineDiff=eEe(z.maxComputationTime),this.continueCharDiff=eEe(z.maxComputationTime===0?0:Math.min(z.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 b=Q0e(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),I=b.changes,z=b.quitEarly;if(this.shouldIgnoreTrimWhitespace){const Ge=[];for(let at=0,Ne=I.length;at<Ne;at++)Ge.push(m6.createFromDiffResult(this.shouldIgnoreTrimWhitespace,I[at],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:z,changes:Ge}}const ee=[];let _e=0,Re=0;for(let Ge=-1,at=I.length;Ge<at;Ge++){const Ne=Ge+1<at?I[Ge+1]:null,Xe=Ne?Ne.originalStart:this.originalLines.length,$t=Ne?Ne.modifiedStart:this.modifiedLines.length;for(;_e<Xe&&Re<$t;){const Ht=this.originalLines[_e],pn=this.modifiedLines[Re];if(Ht!==pn){{let Pr=Bte(Ht,1),gi=Bte(pn,1);for(;Pr>1&&gi>1;){const io=Ht.charCodeAt(Pr-2),Jn=pn.charCodeAt(gi-2);if(io!==Jn)break;Pr--,gi--}(Pr>1||gi>1)&&this._pushTrimWhitespaceCharChange(ee,_e+1,1,Pr,Re+1,1,gi)}{let Pr=Gte(Ht,1),gi=Gte(pn,1);const io=Ht.length+1,Jn=pn.length+1;for(;Pr<io&&gi<Jn;){const In=Ht.charCodeAt(Pr-1),oi=Ht.charCodeAt(gi-1);if(In!==oi)break;Pr++,gi++}(Pr<io||gi<Jn)&&this._pushTrimWhitespaceCharChange(ee,_e+1,Pr,io,Re+1,gi,Jn)}}_e++,Re++}Ne&&(ee.push(m6.createFromDiffResult(this.shouldIgnoreTrimWhitespace,Ne,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),_e+=Ne.originalLength,Re+=Ne.modifiedLength)}return{quitEarly:z,changes:ee}}_pushTrimWhitespaceCharChange(b,I,z,ee,_e,Re,Ge){if(this._mergeTrimWhitespaceCharChange(b,I,z,ee,_e,Re,Ge))return;let at;this.shouldComputeCharChanges&&(at=[new x2(I,z,I,ee,_e,Re,_e,Ge)]),b.push(new m6(I,I,_e,_e,at))}_mergeTrimWhitespaceCharChange(b,I,z,ee,_e,Re,Ge){const at=b.length;if(at===0)return!1;const Ne=b[at-1];return Ne.originalEndLineNumber===0||Ne.modifiedEndLineNumber===0?!1:Ne.originalEndLineNumber===I&&Ne.modifiedEndLineNumber===_e?(this.shouldComputeCharChanges&&Ne.charChanges&&Ne.charChanges.push(new x2(I,z,I,ee,_e,Re,_e,Ge)),!0):Ne.originalEndLineNumber+1===I&&Ne.modifiedEndLineNumber+1===_e?(Ne.originalEndLineNumber=I,Ne.modifiedEndLineNumber=_e,this.shouldComputeCharChanges&&Ne.charChanges&&Ne.charChanges.push(new x2(I,z,I,ee,_e,Re,_e,Ge)),!0):!1}}function Bte(g,b){const I=p7e(g);return I===-1?b:I+1}function Gte(g,b){const I=f7e(g);return I===-1?b:I+2}function eEe(g){if(g===0)return()=>!0;const b=Date.now();return()=>Date.now()-b<g}class uA{static trivial(b,I){return new uA([new Yp(rc.ofLength(b.length),rc.ofLength(I.length))],!1)}static trivialTimedOut(b,I){return new uA([new Yp(rc.ofLength(b.length),rc.ofLength(I.length))],!0)}constructor(b,I){this.diffs=b,this.hitTimeout=I}}class Yp{static invert(b,I){const z=[];return K7e(b,(ee,_e)=>{z.push(Yp.fromOffsetPairs(ee?ee.getEndExclusives():yy.zero,_e?_e.getStarts():new yy(I,(ee?ee.seq2Range.endExclusive-ee.seq1Range.endExclusive:0)+I)))}),z}static fromOffsetPairs(b,I){return new Yp(new rc(b.offset1,I.offset1),new rc(b.offset2,I.offset2))}constructor(b,I){this.seq1Range=b,this.seq2Range=I}swap(){return new Yp(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(b){return new Yp(this.seq1Range.join(b.seq1Range),this.seq2Range.join(b.seq2Range))}delta(b){return b===0?this:new Yp(this.seq1Range.delta(b),this.seq2Range.delta(b))}deltaStart(b){return b===0?this:new Yp(this.seq1Range.deltaStart(b),this.seq2Range.deltaStart(b))}deltaEnd(b){return b===0?this:new Yp(this.seq1Range.deltaEnd(b),this.seq2Range.deltaEnd(b))}intersect(b){const I=this.seq1Range.intersect(b.seq1Range),z=this.seq2Range.intersect(b.seq2Range);if(!(!I||!z))return new Yp(I,z)}getStarts(){return new yy(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new yy(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class yy{constructor(b,I){this.offset1=b,this.offset2=I}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(b){return b===0?this:new yy(this.offset1+b,this.offset2+b)}equals(b){return this.offset1===b.offset1&&this.offset2===b.offset2}}yy.zero=new yy(0,0),yy.max=new yy(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class _6{isValid(){return!0}}_6.instance=new _6;class z5e{constructor(b){if(this.timeout=b,this.startTime=Date.now(),this.valid=!0,b<=0)throw new tS("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class Vte{constructor(b,I){this.width=b,this.height=I,this.array=[],this.array=new Array(b*I)}get(b,I){return this.array[b+I*this.width]}set(b,I,z){this.array[b+I*this.width]=z}}function jte(g){return g===32||g===9}class R2{static getKey(b){let I=this.chrKeys.get(b);return I===void 0&&(I=this.chrKeys.size,this.chrKeys.set(b,I)),I}constructor(b,I,z){this.range=b,this.lines=I,this.source=z,this.histogram=[];let ee=0;for(let _e=b.startLineNumber-1;_e<b.endLineNumberExclusive-1;_e++){const Re=I[_e];for(let at=0;at<Re.length;at++){ee++;const Ne=Re[at],Xe=R2.getKey(Ne);this.histogram[Xe]=(this.histogram[Xe]||0)+1}ee++;const Ge=R2.getKey(`
`);this.histogram[Ge]=(this.histogram[Ge]||0)+1}this.totalCount=ee}computeSimilarity(b){var I,z;let ee=0;const _e=Math.max(this.histogram.length,b.histogram.length);for(let Re=0;Re<_e;Re++)ee+=Math.abs(((I=this.histogram[Re])!==null&&I!==void 0?I:0)-((z=b.histogram[Re])!==null&&z!==void 0?z:0));return 1-ee/(this.totalCount+b.totalCount)}}R2.chrKeys=new Map;class B5e{compute(b,I,z=_6.instance,ee){if(b.length===0||I.length===0)return uA.trivial(b,I);const _e=new Vte(b.length,I.length),Re=new Vte(b.length,I.length),Ge=new Vte(b.length,I.length);for(let Pr=0;Pr<b.length;Pr++)for(let gi=0;gi<I.length;gi++){if(!z.isValid())return uA.trivialTimedOut(b,I);const io=Pr===0?0:_e.get(Pr-1,gi),Jn=gi===0?0:_e.get(Pr,gi-1);let In;b.getElement(Pr)===I.getElement(gi)?(Pr===0||gi===0?In=0:In=_e.get(Pr-1,gi-1),Pr>0&&gi>0&&Re.get(Pr-1,gi-1)===3&&(In+=Ge.get(Pr-1,gi-1)),In+=ee?ee(Pr,gi):1):In=-1;const oi=Math.max(io,Jn,In);if(oi===In){const mi=Pr>0&&gi>0?Ge.get(Pr-1,gi-1):0;Ge.set(Pr,gi,mi+1),Re.set(Pr,gi,3)}else oi===io?(Ge.set(Pr,gi,0),Re.set(Pr,gi,1)):oi===Jn&&(Ge.set(Pr,gi,0),Re.set(Pr,gi,2));_e.set(Pr,gi,oi)}const at=[];let Ne=b.length,Xe=I.length;function $t(Pr,gi){(Pr+1!==Ne||gi+1!==Xe)&&at.push(new Yp(new rc(Pr+1,Ne),new rc(gi+1,Xe))),Ne=Pr,Xe=gi}let Ht=b.length-1,pn=I.length-1;for(;Ht>=0&&pn>=0;)Re.get(Ht,pn)===3?($t(Ht,pn),Ht--,pn--):Re.get(Ht,pn)===1?Ht--:pn--;return $t(-1,-1),at.reverse(),new uA(at,!1)}}class tEe{compute(b,I,z=_6.instance){if(b.length===0||I.length===0)return uA.trivial(b,I);const ee=b,_e=I;function Re(gi,io){for(;gi<ee.length&&io<_e.length&&ee.getElement(gi)===_e.getElement(io);)gi++,io++;return gi}let Ge=0;const at=new G5e;at.set(0,Re(0,0));const Ne=new V5e;Ne.set(0,at.get(0)===0?null:new nEe(null,0,0,at.get(0)));let Xe=0;e:for(;;){if(Ge++,!z.isValid())return uA.trivialTimedOut(ee,_e);const gi=-Math.min(Ge,_e.length+Ge%2),io=Math.min(Ge,ee.length+Ge%2);for(Xe=gi;Xe<=io;Xe+=2){const Jn=Xe===io?-1:at.get(Xe+1),In=Xe===gi?-1:at.get(Xe-1)+1,oi=Math.min(Math.max(Jn,In),ee.length),mi=oi-Xe;if(oi>ee.length||mi>_e.length)continue;const Yi=Re(oi,mi);at.set(Xe,Yi);const ja=oi===Jn?Ne.get(Xe+1):Ne.get(Xe-1);if(Ne.set(Xe,Yi!==oi?new nEe(ja,oi,mi,Yi-oi):ja),at.get(Xe)===ee.length&&at.get(Xe)-Xe===_e.length)break e}}let $t=Ne.get(Xe);const Ht=[];let pn=ee.length,Pr=_e.length;for(;;){const gi=$t?$t.x+$t.length:0,io=$t?$t.y+$t.length:0;if((gi!==pn||io!==Pr)&&Ht.push(new Yp(new rc(gi,pn),new rc(io,Pr))),!$t)break;pn=$t.x,Pr=$t.y,$t=$t.prev}return Ht.reverse(),new uA(Ht,!1)}}class nEe{constructor(b,I,z,ee){this.prev=b,this.x=I,this.y=z,this.length=ee}}class G5e{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(b){return b<0?(b=-b-1,this.negativeArr[b]):this.positiveArr[b]}set(b,I){if(b<0){if(b=-b-1,b>=this.negativeArr.length){const z=this.negativeArr;this.negativeArr=new Int32Array(z.length*2),this.negativeArr.set(z)}this.negativeArr[b]=I}else{if(b>=this.positiveArr.length){const z=this.positiveArr;this.positiveArr=new Int32Array(z.length*2),this.positiveArr.set(z)}this.positiveArr[b]=I}}}class V5e{constructor(){this.positiveArr=[],this.negativeArr=[]}get(b){return b<0?(b=-b-1,this.negativeArr[b]):this.positiveArr[b]}set(b,I){b<0?(b=-b-1,this.negativeArr[b]=I):this.positiveArr[b]=I}}class OB{constructor(b,I,z){this.lines=b,this.considerWhitespaceChanges=z,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let ee=!1;I.start>0&&I.endExclusive>=b.length&&(I=new rc(I.start-1,I.endExclusive),ee=!0),this.lineRange=I,this.firstCharOffsetByLine[0]=0;for(let _e=this.lineRange.start;_e<this.lineRange.endExclusive;_e++){let Re=b[_e],Ge=0;if(ee)Ge=Re.length,Re="",ee=!1;else if(!z){const at=Re.trimStart();Ge=Re.length-at.length,Re=at.trimEnd()}this.additionalOffsetByLine.push(Ge);for(let at=0;at<Re.length;at++)this.elements.push(Re.charCodeAt(at));_e<b.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[_e-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new rc(0,this.length))}getText(b){return this.elements.slice(b.start,b.endExclusive).map(I=>String.fromCharCode(I)).join("")}getElement(b){return this.elements[b]}get length(){return this.elements.length}getBoundaryScore(b){const I=iEe(b>0?this.elements[b-1]:-1),z=iEe(b<this.elements.length?this.elements[b]:-1);if(I===7&&z===8)return 0;if(I===8)return 150;let ee=0;return I!==z&&(ee+=10,I===0&&z===1&&(ee+=1)),ee+=rEe(I),ee+=rEe(z),ee}translateOffset(b){if(this.lineRange.isEmpty)return new ih(this.lineRange.start+1,1);const I=p6(this.firstCharOffsetByLine,z=>z<=b);return new ih(this.lineRange.start+I+1,b-this.firstCharOffsetByLine[I]+this.additionalOffsetByLine[I]+1)}translateRange(b){return Tl.fromPositions(this.translateOffset(b.start),this.translateOffset(b.endExclusive))}findWordContaining(b){if(b<0||b>=this.elements.length||!Ute(this.elements[b]))return;let I=b;for(;I>0&&Ute(this.elements[I-1]);)I--;let z=b;for(;z<this.elements.length&&Ute(this.elements[z]);)z++;return new rc(I,z)}countLinesIn(b){return this.translateOffset(b.endExclusive).lineNumber-this.translateOffset(b.start).lineNumber}isStronglyEqual(b,I){return this.elements[b]===this.elements[I]}extendToFullLines(b){var I,z;const ee=(I=I2(this.firstCharOffsetByLine,Re=>Re<=b.start))!==null&&I!==void 0?I:0,_e=(z=M5e(this.firstCharOffsetByLine,Re=>b.endExclusive<=Re))!==null&&z!==void 0?z:this.elements.length;return new rc(ee,_e)}}function Ute(g){return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57}const j5e={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function rEe(g){return j5e[g]}function iEe(g){return g===10?8:g===13?7:jte(g)?6:g>=97&&g<=122?0:g>=65&&g<=90?1:g>=48&&g<=57?2:g===-1?3:g===44||g===59?5:4}function U5e(g,b,I,z,ee,_e){let{moves:Re,excludedChanges:Ge}=q5e(g,b,I,_e);if(!_e.isValid())return[];const at=g.filter(Xe=>!Ge.has(Xe)),Ne=J5e(at,z,ee,b,I,_e);return Y7e(Re,Ne),Re=K5e(Re),Re=Re.filter(Xe=>{const $t=Xe.original.toOffsetRange().slice(b).map(pn=>pn.trim());return $t.join(`
`).length>=15&&H5e($t,pn=>pn.length>=2)>=2}),Re=X5e(g,Re),Re}function H5e(g,b){let I=0;for(const z of g)b(z)&&I++;return I}function q5e(g,b,I,z){const ee=[],_e=g.filter(at=>at.modified.isEmpty&&at.original.length>=3).map(at=>new R2(at.original,b,at)),Re=new Set(g.filter(at=>at.original.isEmpty&&at.modified.length>=3).map(at=>new R2(at.modified,I,at))),Ge=new Set;for(const at of _e){let Ne=-1,Xe;for(const $t of Re){const Ht=at.computeSimilarity($t);Ht>Ne&&(Ne=Ht,Xe=$t)}if(Ne>.9&&Xe&&(Re.delete(Xe),ee.push(new vE(at.range,Xe.range)),Ge.add(at.source),Ge.add(Xe.source)),!z.isValid())return{moves:ee,excludedChanges:Ge}}return{moves:ee,excludedChanges:Ge}}function J5e(g,b,I,z,ee,_e){const Re=[],Ge=new T5e;for(const Ht of g)for(let pn=Ht.original.startLineNumber;pn<Ht.original.endLineNumberExclusive-2;pn++){const Pr=`${b[pn-1]}:${b[pn+1-1]}:${b[pn+2-1]}`;Ge.add(Pr,{range:new Jl(pn,pn+3)})}const at=[];g.sort(DB(Ht=>Ht.modified.startLineNumber,NB));for(const Ht of g){let pn=[];for(let Pr=Ht.modified.startLineNumber;Pr<Ht.modified.endLineNumberExclusive-2;Pr++){const gi=`${I[Pr-1]}:${I[Pr+1-1]}:${I[Pr+2-1]}`,io=new Jl(Pr,Pr+3),Jn=[];Ge.forEach(gi,({range:In})=>{for(const mi of pn)if(mi.originalLineRange.endLineNumberExclusive+1===In.endLineNumberExclusive&&mi.modifiedLineRange.endLineNumberExclusive+1===io.endLineNumberExclusive){mi.originalLineRange=new Jl(mi.originalLineRange.startLineNumber,In.endLineNumberExclusive),mi.modifiedLineRange=new Jl(mi.modifiedLineRange.startLineNumber,io.endLineNumberExclusive),Jn.push(mi);return}const oi={modifiedLineRange:io,originalLineRange:In};at.push(oi),Jn.push(oi)}),pn=Jn}if(!_e.isValid())return[]}at.sort($7e(DB(Ht=>Ht.modifiedLineRange.length,NB)));const Ne=new rS,Xe=new rS;for(const Ht of at){const pn=Ht.modifiedLineRange.startLineNumber-Ht.originalLineRange.startLineNumber,Pr=Ne.subtractFrom(Ht.modifiedLineRange),gi=Xe.subtractFrom(Ht.originalLineRange).getWithDelta(pn),io=Pr.getIntersection(gi);for(const Jn of io.ranges){if(Jn.length<3)continue;const In=Jn,oi=Jn.delta(-pn);Re.push(new vE(oi,In)),Ne.addRange(In),Xe.addRange(oi)}}Re.sort(DB(Ht=>Ht.original.startLineNumber,NB));const $t=new f6(g);for(let Ht=0;Ht<Re.length;Ht++){const pn=Re[Ht],Pr=$t.findLastMonotonous(ja=>ja.original.startLineNumber<=pn.original.startLineNumber),gi=I2(g,ja=>ja.modified.startLineNumber<=pn.modified.startLineNumber),io=Math.max(pn.original.startLineNumber-Pr.original.startLineNumber,pn.modified.startLineNumber-gi.modified.startLineNumber),Jn=$t.findLastMonotonous(ja=>ja.original.startLineNumber<pn.original.endLineNumberExclusive),In=I2(g,ja=>ja.modified.startLineNumber<pn.modified.endLineNumberExclusive),oi=Math.max(Jn.original.endLineNumberExclusive-pn.original.endLineNumberExclusive,In.modified.endLineNumberExclusive-pn.modified.endLineNumberExclusive);let mi;for(mi=0;mi<io;mi++){const ja=pn.original.startLineNumber-mi-1,Or=pn.modified.startLineNumber-mi-1;if(ja>z.length||Or>ee.length||Ne.contains(Or)||Xe.contains(ja)||!oEe(z[ja-1],ee[Or-1],_e))break}mi>0&&(Xe.addRange(new Jl(pn.original.startLineNumber-mi,pn.original.startLineNumber)),Ne.addRange(new Jl(pn.modified.startLineNumber-mi,pn.modified.startLineNumber)));let Yi;for(Yi=0;Yi<oi;Yi++){const ja=pn.original.endLineNumberExclusive+Yi,Or=pn.modified.endLineNumberExclusive+Yi;if(ja>z.length||Or>ee.length||Ne.contains(Or)||Xe.contains(ja)||!oEe(z[ja-1],ee[Or-1],_e))break}Yi>0&&(Xe.addRange(new Jl(pn.original.endLineNumberExclusive,pn.original.endLineNumberExclusive+Yi)),Ne.addRange(new Jl(pn.modified.endLineNumberExclusive,pn.modified.endLineNumberExclusive+Yi))),(mi>0||Yi>0)&&(Re[Ht]=new vE(new Jl(pn.original.startLineNumber-mi,pn.original.endLineNumberExclusive+Yi),new Jl(pn.modified.startLineNumber-mi,pn.modified.endLineNumberExclusive+Yi)))}return Re}function oEe(g,b,I){if(g.trim()===b.trim())return!0;if(g.length>300&&b.length>300)return!1;const ee=new tEe().compute(new OB([g],new rc(0,1),!1),new OB([b],new rc(0,1),!1),I);let _e=0;const Re=Yp.invert(ee.diffs,g.length);for(const Xe of Re)Xe.seq1Range.forEach($t=>{jte(g.charCodeAt($t))||_e++});function Ge(Xe){let $t=0;for(let Ht=0;Ht<g.length;Ht++)jte(Xe.charCodeAt(Ht))||$t++;return $t}const at=Ge(g.length>b.length?g:b);return _e/at>.6&&at>10}function K5e(g){if(g.length===0)return g;g.sort(DB(I=>I.original.startLineNumber,NB));const b=[g[0]];for(let I=1;I<g.length;I++){const z=b[b.length-1],ee=g[I],_e=ee.original.startLineNumber-z.original.endLineNumberExclusive,Re=ee.modified.startLineNumber-z.modified.endLineNumberExclusive;if(_e>=0&&Re>=0&&_e+Re<=2){b[b.length-1]=z.join(ee);continue}b.push(ee)}return b}function X5e(g,b){const I=new f6(g);return b=b.filter(z=>{const ee=I.findLastMonotonous(Ge=>Ge.original.startLineNumber<z.original.endLineNumberExclusive)||new vE(new Jl(1,1),new Jl(1,1)),_e=I2(g,Ge=>Ge.modified.startLineNumber<z.modified.endLineNumberExclusive);return ee!==_e}),b}function aEe(g,b,I){let z=I;return z=sEe(g,b,z),z=sEe(g,b,z),z=Y5e(g,b,z),z}function sEe(g,b,I){if(I.length===0)return I;const z=[];z.push(I[0]);for(let _e=1;_e<I.length;_e++){const Re=z[z.length-1];let Ge=I[_e];if(Ge.seq1Range.isEmpty||Ge.seq2Range.isEmpty){const at=Ge.seq1Range.start-Re.seq1Range.endExclusive;let Ne;for(Ne=1;Ne<=at&&!(g.getElement(Ge.seq1Range.start-Ne)!==g.getElement(Ge.seq1Range.endExclusive-Ne)||b.getElement(Ge.seq2Range.start-Ne)!==b.getElement(Ge.seq2Range.endExclusive-Ne));Ne++);if(Ne--,Ne===at){z[z.length-1]=new Yp(new rc(Re.seq1Range.start,Ge.seq1Range.endExclusive-at),new rc(Re.seq2Range.start,Ge.seq2Range.endExclusive-at));continue}Ge=Ge.delta(-Ne)}z.push(Ge)}const ee=[];for(let _e=0;_e<z.length-1;_e++){const Re=z[_e+1];let Ge=z[_e];if(Ge.seq1Range.isEmpty||Ge.seq2Range.isEmpty){const at=Re.seq1Range.start-Ge.seq1Range.endExclusive;let Ne;for(Ne=0;Ne<at&&!(!g.isStronglyEqual(Ge.seq1Range.start+Ne,Ge.seq1Range.endExclusive+Ne)||!b.isStronglyEqual(Ge.seq2Range.start+Ne,Ge.seq2Range.endExclusive+Ne));Ne++);if(Ne===at){z[_e+1]=new Yp(new rc(Ge.seq1Range.start+at,Re.seq1Range.endExclusive),new rc(Ge.seq2Range.start+at,Re.seq2Range.endExclusive));continue}Ne>0&&(Ge=Ge.delta(Ne))}ee.push(Ge)}return z.length>0&&ee.push(z[z.length-1]),ee}function Y5e(g,b,I){if(!g.getBoundaryScore||!b.getBoundaryScore)return I;for(let z=0;z<I.length;z++){const ee=z>0?I[z-1]:void 0,_e=I[z],Re=z+1<I.length?I[z+1]:void 0,Ge=new rc(ee?ee.seq1Range.endExclusive+1:0,Re?Re.seq1Range.start-1:g.length),at=new rc(ee?ee.seq2Range.endExclusive+1:0,Re?Re.seq2Range.start-1:b.length);_e.seq1Range.isEmpty?I[z]=lEe(_e,g,b,Ge,at):_e.seq2Range.isEmpty&&(I[z]=lEe(_e.swap(),b,g,at,Ge).swap())}return I}function lEe(g,b,I,z,ee){let Re=1;for(;g.seq1Range.start-Re>=z.start&&g.seq2Range.start-Re>=ee.start&&I.isStronglyEqual(g.seq2Range.start-Re,g.seq2Range.endExclusive-Re)&&Re<100;)Re++;Re--;let Ge=0;for(;g.seq1Range.start+Ge<z.endExclusive&&g.seq2Range.endExclusive+Ge<ee.endExclusive&&I.isStronglyEqual(g.seq2Range.start+Ge,g.seq2Range.endExclusive+Ge)&&Ge<100;)Ge++;if(Re===0&&Ge===0)return g;let at=0,Ne=-1;for(let Xe=-Re;Xe<=Ge;Xe++){const $t=g.seq2Range.start+Xe,Ht=g.seq2Range.endExclusive+Xe,pn=g.seq1Range.start+Xe,Pr=b.getBoundaryScore(pn)+I.getBoundaryScore($t)+I.getBoundaryScore(Ht);Pr>Ne&&(Ne=Pr,at=Xe)}return g.delta(at)}function $5e(g,b,I){const z=[];for(const ee of I){const _e=z[z.length-1];if(!_e){z.push(ee);continue}ee.seq1Range.start-_e.seq1Range.endExclusive<=2||ee.seq2Range.start-_e.seq2Range.endExclusive<=2?z[z.length-1]=new Yp(_e.seq1Range.join(ee.seq1Range),_e.seq2Range.join(ee.seq2Range)):z.push(ee)}return z}function Q5e(g,b,I){const z=Yp.invert(I,g.length),ee=[];let _e=new yy(0,0);function Re(at,Ne){if(at.offset1<_e.offset1||at.offset2<_e.offset2)return;const Xe=g.findWordContaining(at.offset1),$t=b.findWordContaining(at.offset2);if(!Xe||!$t)return;let Ht=new Yp(Xe,$t);const pn=Ht.intersect(Ne);let Pr=pn.seq1Range.length,gi=pn.seq2Range.length;for(;z.length>0;){const io=z[0];if(!(io.seq1Range.intersects(Ht.seq1Range)||io.seq2Range.intersects(Ht.seq2Range)))break;const In=g.findWordContaining(io.seq1Range.start),oi=b.findWordContaining(io.seq2Range.start),mi=new Yp(In,oi),Yi=mi.intersect(io);if(Pr+=Yi.seq1Range.length,gi+=Yi.seq2Range.length,Ht=Ht.join(mi),Ht.seq1Range.endExclusive>=io.seq1Range.endExclusive)z.shift();else break}Pr+gi<(Ht.seq1Range.length+Ht.seq2Range.length)*2/3&&ee.push(Ht),_e=Ht.getEndExclusives()}for(;z.length>0;){const at=z.shift();at.seq1Range.isEmpty||(Re(at.getStarts(),at),Re(at.getEndExclusives().delta(-1),at))}return Z5e(I,ee)}function Z5e(g,b){const I=[];for(;g.length>0||b.length>0;){const z=g[0],ee=b[0];let _e;z&&(!ee||z.seq1Range.start<ee.seq1Range.start)?_e=g.shift():_e=b.shift(),I.length>0&&I[I.length-1].seq1Range.endExclusive>=_e.seq1Range.start?I[I.length-1]=I[I.length-1].join(_e):I.push(_e)}return I}function eze(g,b,I){let z=I;if(z.length===0)return z;let ee=0,_e;do{_e=!1;const Re=[z[0]];for(let Ge=1;Ge<z.length;Ge++){let Xe=function(Ht,pn){const Pr=new rc(Ne.seq1Range.endExclusive,at.seq1Range.start);return g.getText(Pr).replace(/\s/g,"").length<=4&&(Ht.seq1Range.length+Ht.seq2Range.length>5||pn.seq1Range.length+pn.seq2Range.length>5)};const at=z[Ge],Ne=Re[Re.length-1];Xe(Ne,at)?(_e=!0,Re[Re.length-1]=Re[Re.length-1].join(at)):Re.push(at)}z=Re}while(ee++<10&&_e);return z}function tze(g,b,I){let z=I;if(z.length===0)return z;let ee=0,_e;do{_e=!1;const Ge=[z[0]];for(let at=1;at<z.length;at++){let $t=function(pn,Pr){const gi=new rc(Xe.seq1Range.endExclusive,Ne.seq1Range.start);if(g.countLinesIn(gi)>5||gi.length>500)return!1;const Jn=g.getText(gi).trim();if(Jn.length>20||Jn.split(/\r\n|\r|\n/).length>1)return!1;const In=g.countLinesIn(pn.seq1Range),oi=pn.seq1Range.length,mi=b.countLinesIn(pn.seq2Range),Yi=pn.seq2Range.length,ja=g.countLinesIn(Pr.seq1Range),Or=Pr.seq1Range.length,Ba=b.countLinesIn(Pr.seq2Range),Jc=Pr.seq2Range.length,ou=2*40+50;function mn(li){return Math.min(li,ou)}return Math.pow(Math.pow(mn(In*40+oi),1.5)+Math.pow(mn(mi*40+Yi),1.5),1.5)+Math.pow(Math.pow(mn(ja*40+Or),1.5)+Math.pow(mn(Ba*40+Jc),1.5),1.5)>(ou**1.5)**1.5*1.3};const Ne=z[at],Xe=Ge[Ge.length-1];$t(Xe,Ne)?(_e=!0,Ge[Ge.length-1]=Ge[Ge.length-1].join(Ne)):Ge.push(Ne)}z=Ge}while(ee++<10&&_e);const Re=[];return X7e(z,(Ge,at,Ne)=>{let Xe=at;function $t(Jn){return Jn.length>0&&Jn.trim().length<=3&&at.seq1Range.length+at.seq2Range.length>100}const Ht=g.extendToFullLines(at.seq1Range),pn=g.getText(new rc(Ht.start,at.seq1Range.start));$t(pn)&&(Xe=Xe.deltaStart(-pn.length));const Pr=g.getText(new rc(at.seq1Range.endExclusive,Ht.endExclusive));$t(Pr)&&(Xe=Xe.deltaEnd(Pr.length));const gi=Yp.fromOffsetPairs(Ge?Ge.getEndExclusives():yy.zero,Ne?Ne.getStarts():yy.max),io=Xe.intersect(gi);Re.length>0&&io.getStarts().equals(Re[Re.length-1].getEndExclusives())?Re[Re.length-1]=Re[Re.length-1].join(io):Re.push(io)}),Re}class cEe{constructor(b,I){this.trimmedHash=b,this.lines=I}getElement(b){return this.trimmedHash[b]}get length(){return this.trimmedHash.length}getBoundaryScore(b){const I=b===0?0:uEe(this.lines[b-1]),z=b===this.lines.length?0:uEe(this.lines[b]);return 1e3-(I+z)}getText(b){return this.lines.slice(b.start,b.endExclusive).join(`
`)}isStronglyEqual(b,I){return this.lines[b]===this.lines[I]}}function uEe(g){let b=0;for(;b<g.length&&(g.charCodeAt(b)===32||g.charCodeAt(b)===9);)b++;return b}class nze{constructor(){this.dynamicProgrammingDiffing=new B5e,this.myersDiffingAlgorithm=new tEe}computeDiff(b,I,z){if(b.length<=1&&q7e(b,I,(Yi,ja)=>Yi===ja))return new wB([],[],!1);if(b.length===1&&b[0].length===0||I.length===1&&I[0].length===0)return new wB([new cA(new Jl(1,b.length+1),new Jl(1,I.length+1),[new Dx(new Tl(1,1,b.length,b[b.length-1].length+1),new Tl(1,1,I.length,I[I.length-1].length+1))])],[],!1);const ee=z.maxComputationTimeMs===0?_6.instance:new z5e(z.maxComputationTimeMs),_e=!z.ignoreTrimWhitespace,Re=new Map;function Ge(Yi){let ja=Re.get(Yi);return ja===void 0&&(ja=Re.size,Re.set(Yi,ja)),ja}const at=b.map(Yi=>Ge(Yi.trim())),Ne=I.map(Yi=>Ge(Yi.trim())),Xe=new cEe(at,b),$t=new cEe(Ne,I),Ht=Xe.length+$t.length<1700?this.dynamicProgrammingDiffing.compute(Xe,$t,ee,(Yi,ja)=>b[Yi]===I[ja]?I[ja].length===0?.1:1+Math.log(1+I[ja].length):.99):this.myersDiffingAlgorithm.compute(Xe,$t,ee);let pn=Ht.diffs,Pr=Ht.hitTimeout;pn=aEe(Xe,$t,pn),pn=eze(Xe,$t,pn);const gi=[],io=Yi=>{if(_e)for(let ja=0;ja<Yi;ja++){const Or=Jn+ja,Ba=In+ja;if(b[Or]!==I[Ba]){const Jc=this.refineDiff(b,I,new Yp(new rc(Or,Or+1),new rc(Ba,Ba+1)),ee,_e);for(const ou of Jc.mappings)gi.push(ou);Jc.hitTimeout&&(Pr=!0)}}};let Jn=0,In=0;for(const Yi of pn){kB(()=>Yi.seq1Range.start-Jn===Yi.seq2Range.start-In);const ja=Yi.seq1Range.start-Jn;io(ja),Jn=Yi.seq1Range.endExclusive,In=Yi.seq2Range.endExclusive;const Or=this.refineDiff(b,I,Yi,ee,_e);Or.hitTimeout&&(Pr=!0);for(const Ba of Or.mappings)gi.push(Ba)}io(b.length-Jn);const oi=dEe(gi,b,I);let mi=[];return z.computeMoves&&(mi=this.computeMoves(oi,b,I,at,Ne,ee,_e)),kB(()=>{function Yi(Or,Ba){if(Or.lineNumber<1||Or.lineNumber>Ba.length)return!1;const Jc=Ba[Or.lineNumber-1];return!(Or.column<1||Or.column>Jc.length+1)}function ja(Or,Ba){return!(Or.startLineNumber<1||Or.startLineNumber>Ba.length+1||Or.endLineNumberExclusive<1||Or.endLineNumberExclusive>Ba.length+1)}for(const Or of oi){if(!Or.innerChanges)return!1;for(const Ba of Or.innerChanges)if(!(Yi(Ba.modifiedRange.getStartPosition(),I)&&Yi(Ba.modifiedRange.getEndPosition(),I)&&Yi(Ba.originalRange.getStartPosition(),b)&&Yi(Ba.originalRange.getEndPosition(),b)))return!1;if(!ja(Or.modified,I)||!ja(Or.original,b))return!1}return!0}),new wB(oi,mi,Pr)}computeMoves(b,I,z,ee,_e,Re,Ge){return U5e(b,I,z,ee,_e,Re).map(Xe=>{const $t=this.refineDiff(I,z,new Yp(Xe.original.toOffsetRange(),Xe.modified.toOffsetRange()),Re,Ge),Ht=dEe($t.mappings,I,z,!0);return new P5e(Xe,Ht)})}refineDiff(b,I,z,ee,_e){const Re=new OB(b,z.seq1Range,_e),Ge=new OB(I,z.seq2Range,_e),at=Re.length+Ge.length<500?this.dynamicProgrammingDiffing.compute(Re,Ge,ee):this.myersDiffingAlgorithm.compute(Re,Ge,ee);let Ne=at.diffs;return Ne=aEe(Re,Ge,Ne),Ne=Q5e(Re,Ge,Ne),Ne=$5e(Re,Ge,Ne),Ne=tze(Re,Ge,Ne),{mappings:Ne.map($t=>new Dx(Re.translateRange($t.seq1Range),Ge.translateRange($t.seq2Range))),hitTimeout:at.hitTimeout}}}function dEe(g,b,I,z=!1){const ee=[];for(const _e of J7e(g.map(Re=>rze(Re,b,I)),(Re,Ge)=>Re.original.overlapOrTouch(Ge.original)||Re.modified.overlapOrTouch(Ge.modified))){const Re=_e[0],Ge=_e[_e.length-1];ee.push(new cA(Re.original.join(Ge.original),Re.modified.join(Ge.modified),_e.map(at=>at.innerChanges[0])))}return kB(()=>!z&&ee.length>0&&(ee[0].modified.startLineNumber!==ee[0].original.startLineNumber||I.length-ee[ee.length-1].modified.endLineNumberExclusive!==b.length-ee[ee.length-1].original.endLineNumberExclusive)?!1:X0e(ee,(_e,Re)=>Re.original.startLineNumber-_e.original.endLineNumberExclusive===Re.modified.startLineNumber-_e.modified.endLineNumberExclusive&&_e.original.endLineNumberExclusive<Re.original.startLineNumber&&_e.modified.endLineNumberExclusive<Re.modified.startLineNumber)),ee}function rze(g,b,I){let z=0,ee=0;g.modifiedRange.endColumn===1&&g.originalRange.endColumn===1&&g.originalRange.startLineNumber+z<=g.originalRange.endLineNumber&&g.modifiedRange.startLineNumber+z<=g.modifiedRange.endLineNumber&&(ee=-1),g.modifiedRange.startColumn-1>=I[g.modifiedRange.startLineNumber-1].length&&g.originalRange.startColumn-1>=b[g.originalRange.startLineNumber-1].length&&g.originalRange.startLineNumber<=g.originalRange.endLineNumber+ee&&g.modifiedRange.startLineNumber<=g.modifiedRange.endLineNumber+ee&&(z=1);const _e=new Jl(g.originalRange.startLineNumber+z,g.originalRange.endLineNumber+1+ee),Re=new Jl(g.modifiedRange.startLineNumber+z,g.modifiedRange.endLineNumber+1+ee);return new cA(_e,Re,[g])}const pEe={getLegacy:()=>new w5e,getDefault:()=>new nze};function Nx(g,b){const I=Math.pow(10,b);return Math.round(g*I)/I}class Um{constructor(b,I,z,ee=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,b))|0,this.g=Math.min(255,Math.max(0,I))|0,this.b=Math.min(255,Math.max(0,z))|0,this.a=Nx(Math.max(Math.min(1,ee),0),3)}static equals(b,I){return b.r===I.r&&b.g===I.g&&b.b===I.b&&b.a===I.a}}class qb{constructor(b,I,z,ee){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,b),0)|0,this.s=Nx(Math.max(Math.min(1,I),0),3),this.l=Nx(Math.max(Math.min(1,z),0),3),this.a=Nx(Math.max(Math.min(1,ee),0),3)}static equals(b,I){return b.h===I.h&&b.s===I.s&&b.l===I.l&&b.a===I.a}static fromRGBA(b){const I=b.r/255,z=b.g/255,ee=b.b/255,_e=b.a,Re=Math.max(I,z,ee),Ge=Math.min(I,z,ee);let at=0,Ne=0;const Xe=(Ge+Re)/2,$t=Re-Ge;if($t>0){switch(Ne=Math.min(Xe<=.5?$t/(2*Xe):$t/(2-2*Xe),1),Re){case I:at=(z-ee)/$t+(z<ee?6:0);break;case z:at=(ee-I)/$t+2;break;case ee:at=(I-z)/$t+4;break}at*=60,at=Math.round(at)}return new qb(at,Ne,Xe,_e)}static _hue2rgb(b,I,z){return z<0&&(z+=1),z>1&&(z-=1),z<1/6?b+(I-b)*6*z:z<1/2?I:z<2/3?b+(I-b)*(2/3-z)*6:b}static toRGBA(b){const I=b.h/360,{s:z,l:ee,a:_e}=b;let Re,Ge,at;if(z===0)Re=Ge=at=ee;else{const Ne=ee<.5?ee*(1+z):ee+z-ee*z,Xe=2*ee-Ne;Re=qb._hue2rgb(Xe,Ne,I+1/3),Ge=qb._hue2rgb(Xe,Ne,I),at=qb._hue2rgb(Xe,Ne,I-1/3)}return new Um(Math.round(Re*255),Math.round(Ge*255),Math.round(at*255),_e)}}class D2{constructor(b,I,z,ee){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,b),0)|0,this.s=Nx(Math.max(Math.min(1,I),0),3),this.v=Nx(Math.max(Math.min(1,z),0),3),this.a=Nx(Math.max(Math.min(1,ee),0),3)}static equals(b,I){return b.h===I.h&&b.s===I.s&&b.v===I.v&&b.a===I.a}static fromRGBA(b){const I=b.r/255,z=b.g/255,ee=b.b/255,_e=Math.max(I,z,ee),Re=Math.min(I,z,ee),Ge=_e-Re,at=_e===0?0:Ge/_e;let Ne;return Ge===0?Ne=0:_e===I?Ne=((z-ee)/Ge%6+6)%6:_e===z?Ne=(ee-I)/Ge+2:Ne=(I-z)/Ge+4,new D2(Math.round(Ne*60),at,_e,b.a)}static toRGBA(b){const{h:I,s:z,v:ee,a:_e}=b,Re=ee*z,Ge=Re*(1-Math.abs(I/60%2-1)),at=ee-Re;let[Ne,Xe,$t]=[0,0,0];return I<60?(Ne=Re,Xe=Ge):I<120?(Ne=Ge,Xe=Re):I<180?(Xe=Re,$t=Ge):I<240?(Xe=Ge,$t=Re):I<300?(Ne=Ge,$t=Re):I<=360&&(Ne=Re,$t=Ge),Ne=Math.round((Ne+at)*255),Xe=Math.round((Xe+at)*255),$t=Math.round(($t+at)*255),new Um(Ne,Xe,$t,_e)}}class hu{static fromHex(b){return hu.Format.CSS.parseHex(b)||hu.red}static equals(b,I){return!b&&!I?!0:!b||!I?!1:b.equals(I)}get hsla(){return this._hsla?this._hsla:qb.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:D2.fromRGBA(this.rgba)}constructor(b){if(b)if(b instanceof Um)this.rgba=b;else if(b instanceof qb)this._hsla=b,this.rgba=qb.toRGBA(b);else if(b instanceof D2)this._hsva=b,this.rgba=D2.toRGBA(b);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(b){return!!b&&Um.equals(this.rgba,b.rgba)&&qb.equals(this.hsla,b.hsla)&&D2.equals(this.hsva,b.hsva)}getRelativeLuminance(){const b=hu._relativeLuminanceForComponent(this.rgba.r),I=hu._relativeLuminanceForComponent(this.rgba.g),z=hu._relativeLuminanceForComponent(this.rgba.b),ee=.2126*b+.7152*I+.0722*z;return Nx(ee,4)}static _relativeLuminanceForComponent(b){const I=b/255;return I<=.03928?I/12.92:Math.pow((I+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(b){const I=this.getRelativeLuminance(),z=b.getRelativeLuminance();return I>z}isDarkerThan(b){const I=this.getRelativeLuminance(),z=b.getRelativeLuminance();return I<z}lighten(b){return new hu(new qb(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*b,this.hsla.a))}darken(b){return new hu(new qb(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*b,this.hsla.a))}transparent(b){const{r:I,g:z,b:ee,a:_e}=this.rgba;return new hu(new Um(I,z,ee,_e*b))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new hu(new Um(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(b){if(this.isOpaque()||b.rgba.a!==1)return this;const{r:I,g:z,b:ee,a:_e}=this.rgba;return new hu(new Um(b.rgba.r-_e*(b.rgba.r-I),b.rgba.g-_e*(b.rgba.g-z),b.rgba.b-_e*(b.rgba.b-ee),1))}toString(){return this._toString||(this._toString=hu.Format.CSS.format(this)),this._toString}static getLighterColor(b,I,z){if(b.isLighterThan(I))return b;z=z||.5;const ee=b.getRelativeLuminance(),_e=I.getRelativeLuminance();return z=z*(_e-ee)/_e,b.lighten(z)}static getDarkerColor(b,I,z){if(b.isDarkerThan(I))return b;z=z||.5;const ee=b.getRelativeLuminance(),_e=I.getRelativeLuminance();return z=z*(ee-_e)/ee,b.darken(z)}}hu.white=new hu(new Um(255,255,255,1)),hu.black=new hu(new Um(0,0,0,1)),hu.red=new hu(new Um(255,0,0,1)),hu.blue=new hu(new Um(0,0,255,1)),hu.green=new hu(new Um(0,255,0,1)),hu.cyan=new hu(new Um(0,255,255,1)),hu.lightgrey=new hu(new Um(211,211,211,1)),hu.transparent=new hu(new Um(0,0,0,0)),function(g){(function(b){(function(I){function z(pn){return pn.rgba.a===1?`rgb(${pn.rgba.r}, ${pn.rgba.g}, ${pn.rgba.b})`:g.Format.CSS.formatRGBA(pn)}I.formatRGB=z;function ee(pn){return`rgba(${pn.rgba.r}, ${pn.rgba.g}, ${pn.rgba.b}, ${+pn.rgba.a.toFixed(2)})`}I.formatRGBA=ee;function _e(pn){return pn.hsla.a===1?`hsl(${pn.hsla.h}, ${(pn.hsla.s*100).toFixed(2)}%, ${(pn.hsla.l*100).toFixed(2)}%)`:g.Format.CSS.formatHSLA(pn)}I.formatHSL=_e;function Re(pn){return`hsla(${pn.hsla.h}, ${(pn.hsla.s*100).toFixed(2)}%, ${(pn.hsla.l*100).toFixed(2)}%, ${pn.hsla.a.toFixed(2)})`}I.formatHSLA=Re;function Ge(pn){const Pr=pn.toString(16);return Pr.length!==2?"0"+Pr:Pr}function at(pn){return`#${Ge(pn.rgba.r)}${Ge(pn.rgba.g)}${Ge(pn.rgba.b)}`}I.formatHex=at;function Ne(pn,Pr=!1){return Pr&&pn.rgba.a===1?g.Format.CSS.formatHex(pn):`#${Ge(pn.rgba.r)}${Ge(pn.rgba.g)}${Ge(pn.rgba.b)}${Ge(Math.round(pn.rgba.a*255))}`}I.formatHexA=Ne;function Xe(pn){return pn.isOpaque()?g.Format.CSS.formatHex(pn):g.Format.CSS.formatRGBA(pn)}I.format=Xe;function $t(pn){const Pr=pn.length;if(Pr===0||pn.charCodeAt(0)!==35)return null;if(Pr===7){const gi=16*Ht(pn.charCodeAt(1))+Ht(pn.charCodeAt(2)),io=16*Ht(pn.charCodeAt(3))+Ht(pn.charCodeAt(4)),Jn=16*Ht(pn.charCodeAt(5))+Ht(pn.charCodeAt(6));return new g(new Um(gi,io,Jn,1))}if(Pr===9){const gi=16*Ht(pn.charCodeAt(1))+Ht(pn.charCodeAt(2)),io=16*Ht(pn.charCodeAt(3))+Ht(pn.charCodeAt(4)),Jn=16*Ht(pn.charCodeAt(5))+Ht(pn.charCodeAt(6)),In=16*Ht(pn.charCodeAt(7))+Ht(pn.charCodeAt(8));return new g(new Um(gi,io,Jn,In/255))}if(Pr===4){const gi=Ht(pn.charCodeAt(1)),io=Ht(pn.charCodeAt(2)),Jn=Ht(pn.charCodeAt(3));return new g(new Um(16*gi+gi,16*io+io,16*Jn+Jn))}if(Pr===5){const gi=Ht(pn.charCodeAt(1)),io=Ht(pn.charCodeAt(2)),Jn=Ht(pn.charCodeAt(3)),In=Ht(pn.charCodeAt(4));return new g(new Um(16*gi+gi,16*io+io,16*Jn+Jn,(16*In+In)/255))}return null}I.parseHex=$t;function Ht(pn){switch(pn){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}})(b.CSS||(b.CSS={}))})(g.Format||(g.Format={}))}(hu||(hu={}));function fEe(g){const b=[];for(const I of g){const z=Number(I);(z||z===0&&I.replace(/\s/g,"")!=="")&&b.push(z)}return b}function Hte(g,b,I,z){return{red:g/255,blue:I/255,green:b/255,alpha:z}}function h6(g,b){const I=b.index,z=b[0].length;if(!I)return;const ee=g.positionAt(I);return{startLineNumber:ee.lineNumber,startColumn:ee.column,endLineNumber:ee.lineNumber,endColumn:ee.column+z}}function ize(g,b){if(!g)return;const I=hu.Format.CSS.parseHex(b);if(I)return{range:g,color:Hte(I.rgba.r,I.rgba.g,I.rgba.b,I.rgba.a)}}function mEe(g,b,I){if(!g||b.length!==1)return;const ee=b[0].values(),_e=fEe(ee);return{range:g,color:Hte(_e[0],_e[1],_e[2],I?_e[3]:1)}}function _Ee(g,b,I){if(!g||b.length!==1)return;const ee=b[0].values(),_e=fEe(ee),Re=new hu(new qb(_e[0],_e[1]/100,_e[2]/100,I?_e[3]:1));return{range:g,color:Hte(Re.rgba.r,Re.rgba.g,Re.rgba.b,Re.rgba.a)}}function g6(g,b){return typeof g=="string"?[...g.matchAll(b)]:g.findMatches(b)}function oze(g){const b=[],z=g6(g,/\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(z.length>0)for(const ee of z){const _e=ee.filter(Ne=>Ne!==void 0),Re=_e[1],Ge=_e[2];if(!Ge)continue;let at;if(Re==="rgb"){const Ne=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;at=mEe(h6(g,ee),g6(Ge,Ne),!1)}else if(Re==="rgba"){const Ne=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;at=mEe(h6(g,ee),g6(Ge,Ne),!0)}else if(Re==="hsl"){const Ne=/^\(\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;at=_Ee(h6(g,ee),g6(Ge,Ne),!1)}else if(Re==="hsla"){const Ne=/^\(\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;at=_Ee(h6(g,ee),g6(Ge,Ne),!0)}else Re==="#"&&(at=ize(h6(g,ee),Re+Ge));at&&b.push(at)}return b}function aze(g){return!g||typeof g.getValue!="function"||typeof g.positionAt!="function"?[]:oze(g)}const hEe=new RegExp("\\bMARK:\\s*(.*)$","d"),sze=/^-+|-+$/g;function lze(g,b){var I;let z=[];if(b.findRegionSectionHeaders&&(!((I=b.foldingRules)===null||I===void 0)&&I.markers)){const ee=cze(g,b);z=z.concat(ee)}if(b.findMarkSectionHeaders){const ee=uze(g);z=z.concat(ee)}return z}function cze(g,b){const I=[],z=g.getLineCount();for(let ee=1;ee<=z;ee++){const _e=g.getLineContent(ee),Re=_e.match(b.foldingRules.markers.start);if(Re){const Ge={startLineNumber:ee,startColumn:Re[0].length+1,endLineNumber:ee,endColumn:_e.length+1};if(Ge.endColumn>Ge.startColumn){const at={range:Ge,...gEe(_e.substring(Re[0].length)),shouldBeInComments:!1};(at.text||at.hasSeparatorLine)&&I.push(at)}}}return I}function uze(g){const b=[],I=g.getLineCount();for(let z=1;z<=I;z++){const ee=g.getLineContent(z);dze(ee,z,b)}return b}function dze(g,b,I){hEe.lastIndex=0;const z=hEe.exec(g);if(z){const ee=z.indices[1][0]+1,_e=z.indices[1][1]+1,Re={startLineNumber:b,startColumn:ee,endLineNumber:b,endColumn:_e};if(Re.endColumn>Re.startColumn){const Ge={range:Re,...gEe(z[1]),shouldBeInComments:!0};(Ge.text||Ge.hasSeparatorLine)&&I.push(Ge)}}}function gEe(g){g=g.trim();const b=g.startsWith("-");return g=g.replace(sze,""),{text:g,hasSeparatorLine:b}}class pze extends e5e{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(b){const I=[];for(let z=0;z<this._lines.length;z++){const ee=this._lines[z],_e=this.offsetAt(new ih(z+1,1)),Re=ee.matchAll(b);for(const Ge of Re)(Ge.index||Ge.index===0)&&(Ge.index=Ge.index+_e),I.push(Ge)}return I}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(b){return this._lines[b-1]}getWordAtPosition(b,I){const z=Dte(b.column,Bbe(I),this._lines[b.lineNumber-1],0);return z?new Tl(b.lineNumber,z.startColumn,b.lineNumber,z.endColumn):null}words(b){const I=this._lines,z=this._wordenize.bind(this);let ee=0,_e="",Re=0,Ge=[];return{*[Symbol.iterator](){for(;;)if(Re<Ge.length){const at=_e.substring(Ge[Re].start,Ge[Re].end);Re+=1,yield at}else if(ee<I.length)_e=I[ee],Ge=z(_e,b),Re=0,ee+=1;else break}}}getLineWords(b,I){const z=this._lines[b-1],ee=this._wordenize(z,I),_e=[];for(const Re of ee)_e.push({word:z.substring(Re.start,Re.end),startColumn:Re.start+1,endColumn:Re.end+1});return _e}_wordenize(b,I){const z=[];let ee;for(I.lastIndex=0;(ee=I.exec(b))&&ee[0].length!==0;)z.push({start:ee.index,end:ee.index+ee[0].length});return z}getValueInRange(b){if(b=this._validateRange(b),b.startLineNumber===b.endLineNumber)return this._lines[b.startLineNumber-1].substring(b.startColumn-1,b.endColumn-1);const I=this._eol,z=b.startLineNumber-1,ee=b.endLineNumber-1,_e=[];_e.push(this._lines[z].substring(b.startColumn-1));for(let Re=z+1;Re<ee;Re++)_e.push(this._lines[Re]);return _e.push(this._lines[ee].substring(0,b.endColumn-1)),_e.join(I)}offsetAt(b){return b=this._validatePosition(b),this._ensureLineStarts(),this._lineStarts.getPrefixSum(b.lineNumber-2)+(b.column-1)}positionAt(b){b=Math.floor(b),b=Math.max(0,b),this._ensureLineStarts();const I=this._lineStarts.getIndexOf(b),z=this._lines[I.index].length;return{lineNumber:1+I.index,column:1+Math.min(I.remainder,z)}}_validateRange(b){const I=this._validatePosition({lineNumber:b.startLineNumber,column:b.startColumn}),z=this._validatePosition({lineNumber:b.endLineNumber,column:b.endColumn});return I.lineNumber!==b.startLineNumber||I.column!==b.startColumn||z.lineNumber!==b.endLineNumber||z.column!==b.endColumn?{startLineNumber:I.lineNumber,startColumn:I.column,endLineNumber:z.lineNumber,endColumn:z.column}:b}_validatePosition(b){if(!ih.isIPosition(b))throw new Error("bad position");let{lineNumber:I,column:z}=b,ee=!1;if(I<1)I=1,z=1,ee=!0;else if(I>this._lines.length)I=this._lines.length,z=this._lines[I-1].length+1,ee=!0;else{const _e=this._lines[I-1].length+1;z<1?(z=1,ee=!0):z>_e&&(z=_e,ee=!0)}return ee?{lineNumber:I,column:z}:b}}class VN{constructor(b,I){this._host=b,this._models=Object.create(null),this._foreignModuleFactory=I,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(b){return this._models[b]}_getModels(){const b=[];return Object.keys(this._models).forEach(I=>b.push(this._models[I])),b}acceptNewModel(b){this._models[b.url]=new pze(GN.parse(b.url),b.lines,b.EOL,b.versionId)}acceptModelChanged(b,I){if(!this._models[b])return;this._models[b].onEvents(I)}acceptRemovedModel(b){this._models[b]&&delete this._models[b]}async computeUnicodeHighlights(b,I,z){const ee=this._getModel(b);return ee?N5e.computeUnicodeHighlights(ee,I,z):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(b,I){const z=this._getModel(b);return z?lze(z,I):[]}async computeDiff(b,I,z,ee){const _e=this._getModel(b),Re=this._getModel(I);return!_e||!Re?null:VN.computeDiff(_e,Re,z,ee)}static computeDiff(b,I,z,ee){const _e=ee==="advanced"?pEe.getDefault():pEe.getLegacy(),Re=b.getLinesContent(),Ge=I.getLinesContent(),at=_e.computeDiff(Re,Ge,z),Ne=at.changes.length>0?!1:this._modelsAreIdentical(b,I);function Xe($t){return $t.map(Ht=>{var pn;return[Ht.original.startLineNumber,Ht.original.endLineNumberExclusive,Ht.modified.startLineNumber,Ht.modified.endLineNumberExclusive,(pn=Ht.innerChanges)===null||pn===void 0?void 0:pn.map(Pr=>[Pr.originalRange.startLineNumber,Pr.originalRange.startColumn,Pr.originalRange.endLineNumber,Pr.originalRange.endColumn,Pr.modifiedRange.startLineNumber,Pr.modifiedRange.startColumn,Pr.modifiedRange.endLineNumber,Pr.modifiedRange.endColumn])]})}return{identical:Ne,quitEarly:at.hitTimeout,changes:Xe(at.changes),moves:at.moves.map($t=>[$t.lineRangeMapping.original.startLineNumber,$t.lineRangeMapping.original.endLineNumberExclusive,$t.lineRangeMapping.modified.startLineNumber,$t.lineRangeMapping.modified.endLineNumberExclusive,Xe($t.changes)])}}static _modelsAreIdentical(b,I){const z=b.getLineCount(),ee=I.getLineCount();if(z!==ee)return!1;for(let _e=1;_e<=z;_e++){const Re=b.getLineContent(_e),Ge=I.getLineContent(_e);if(Re!==Ge)return!1}return!0}async computeMoreMinimalEdits(b,I,z){const ee=this._getModel(b);if(!ee)return I;const _e=[];let Re;I=I.slice(0).sort((at,Ne)=>{if(at.range&&Ne.range)return Tl.compareRangesUsingStarts(at.range,Ne.range);const Xe=at.range?0:1,$t=Ne.range?0:1;return Xe-$t});let Ge=0;for(let at=1;at<I.length;at++)Tl.getEndPosition(I[Ge].range).equals(Tl.getStartPosition(I[at].range))?(I[Ge].range=Tl.fromPositions(Tl.getStartPosition(I[Ge].range),Tl.getEndPosition(I[at].range)),I[Ge].text+=I[at].text):(Ge++,I[Ge]=I[at]);I.length=Ge+1;for(let{range:at,text:Ne,eol:Xe}of I){if(typeof Xe=="number"&&(Re=Xe),Tl.isEmpty(at)&&!Ne)continue;const $t=ee.getValueInRange(at);if(Ne=Ne.replace(/\r\n|\n|\r/g,ee.eol),$t===Ne)continue;if(Math.max(Ne.length,$t.length)>VN._diffLimit){_e.push({range:at,text:Ne});continue}const Ht=D7e($t,Ne,z),pn=ee.offsetAt(Tl.lift(at).getStartPosition());for(const Pr of Ht){const gi=ee.positionAt(pn+Pr.originalStart),io=ee.positionAt(pn+Pr.originalStart+Pr.originalLength),Jn={text:Ne.substr(Pr.modifiedStart,Pr.modifiedLength),range:{startLineNumber:gi.lineNumber,startColumn:gi.column,endLineNumber:io.lineNumber,endColumn:io.column}};ee.getValueInRange(Jn.range)!==Jn.text&&_e.push(Jn)}}return typeof Re=="number"&&_e.push({eol:Re,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),_e}async computeLinks(b){const I=this._getModel(b);return I?l5e(I):null}async computeDefaultDocumentColors(b){const I=this._getModel(b);return I?aze(I):null}async textualSuggest(b,I,z,ee){const _e=new TB,Re=new RegExp(z,ee),Ge=new Set;e:for(const at of b){const Ne=this._getModel(at);if(Ne){for(const Xe of Ne.words(Re))if(!(Xe===I||!isNaN(Number(Xe)))&&(Ge.add(Xe),Ge.size>VN._suggestionsLimit))break e}}return{words:Array.from(Ge),duration:_e.elapsed()}}async computeWordRanges(b,I,z,ee){const _e=this._getModel(b);if(!_e)return Object.create(null);const Re=new RegExp(z,ee),Ge=Object.create(null);for(let at=I.startLineNumber;at<I.endLineNumber;at++){const Ne=_e.getLineWords(at,Re);for(const Xe of Ne){if(!isNaN(Number(Xe.word)))continue;let $t=Ge[Xe.word];$t||($t=[],Ge[Xe.word]=$t),$t.push({startLineNumber:at,startColumn:Xe.startColumn,endLineNumber:at,endColumn:Xe.endColumn})}}return Ge}async navigateValueSet(b,I,z,ee,_e){const Re=this._getModel(b);if(!Re)return null;const Ge=new RegExp(ee,_e);I.startColumn===I.endColumn&&(I={startLineNumber:I.startLineNumber,startColumn:I.startColumn,endLineNumber:I.endLineNumber,endColumn:I.endColumn+1});const at=Re.getValueInRange(I),Ne=Re.getWordAtPosition({lineNumber:I.startLineNumber,column:I.startColumn},Ge);if(!Ne)return null;const Xe=Re.getValueInRange(Ne);return Pte.INSTANCE.navigateValueSet(I,at,Ne,Xe,z)}loadForeignModule(b,I,z){const Re={host:e7e(z,(Ge,at)=>this._host.fhr(Ge,at)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Re,I),Promise.resolve(hte(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(b,I){if(!this._foreignModule||typeof this._foreignModule[b]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+b));try{return Promise.resolve(this._foreignModule[b].apply(this._foreignModule,I))}catch(z){return Promise.reject(z)}}}VN._diffLimit=1e5,VN._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=y5e());let qte=!1;function vEe(g){if(qte)return;qte=!0;const b=new x7e(I=>{globalThis.postMessage(I)},I=>new VN(I,g));globalThis.onmessage=I=>{b.onmessage(I.data)}}globalThis.onmessage=g=>{qte||vEe(null)};var jN={};/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/var fze=Object.defineProperty,mze=(g,b)=>{for(var I in b)fze(g,I,{get:b[I],enumerable:!0})},yEe={};mze(yEe,{EndOfLineState:()=>gze,IndentStyle:()=>yze,ScriptKind:()=>UN,ScriptTarget:()=>bze,TokenClass:()=>Eze,createClassifier:()=>_ze,createLanguageService:()=>bEe,displayPartsToString:()=>hze,flattenDiagnosticMessageText:()=>vze,typescript:()=>EEe});var yE=void 0,WB={exports:{}},bE=(()=>{var g=Object.defineProperty,b=Object.getOwnPropertyNames,I=(e,t)=>function(){return e&&(t=(0,e[b(e)[0]])(e=0)),t},z=(e,t)=>function(){return t||(0,e[b(e)[0]])((t={exports:{}}).exports,t),t.exports},ee=(e,t)=>{for(var r in t)g(e,r,{get:t[r],enumerable:!0})},_e,Re,Ge,at=I({"src/compiler/corePublic.ts"(){_e="5.4",Re="5.4.5",Ge=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Ge||{})}});function Ne(e){return e?e.length:0}function Xe(e,t){if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}}function $t(e,t){if(e)for(let r=e.length-1;r>=0;r--){const i=t(e[r],r);if(i)return i}}function Ht(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 pn(e,t){for(const r of e){const i=t(r);if(i!==void 0)return i}}function Pr(e,t,r){let i=r;if(e){let o=0;for(const s of e)i=t(i,s,o),o++}return i}function gi(e,t,r){const i=[];N.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)i.push(r(e[o],t[o],o));return i}function io(e,t){if(e.length<=1)return e;const r=[];for(let i=0,o=e.length;i<o;i++)i&&r.push(t),r.push(e[i]);return r}function Jn(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function In(e,t,r){if(e!==void 0)for(let i=r??0;i<e.length;i++){const o=e[i];if(t(o,i))return o}}function oi(e,t,r){if(e!==void 0)for(let i=r??e.length-1;i>=0;i--){const o=e[i];if(t(o,i))return o}}function mi(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 Yi(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 ja(e,t){for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}return N.fail()}function Or(e,t,r=xv){if(e){for(const i of e)if(r(i,t))return!0}return!1}function Ba(e,t,r=xv){return e.length===t.length&&e.every((i,o)=>r(i,t[o]))}function Jc(e,t,r){for(let i=r||0;i<e.length;i++)if(Or(t,e.charCodeAt(i)))return i;return-1}function ou(e,t){let r=0;if(e)for(let i=0;i<e.length;i++){const o=e[i];t(o,i)&&r++}return r}function mn(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;if(i<r){const o=e.slice(0,i);for(i++;i<r;){const s=e[i];t(s)&&o.push(s),i++}return o}}return e}function li(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 jo(e){e.length=0}function Wt(e,t){let r;if(e){r=[];for(let i=0;i<e.length;i++)r.push(t(e[i],i))}return r}function*Qa(e,t){for(const r of e)yield t(r)}function Zo(e,t){if(e)for(let r=0;r<e.length;r++){const i=e[r],o=t(i,r);if(i!==o){const s=e.slice(0,r);for(s.push(o),r++;r<e.length;r++)s.push(t(e[r],r));return s}}return e}function Cs(e){const t=[];for(const r of e)r&&(To(r)?qr(t,r):t.push(r));return t}function Do(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(To(o)?r=qr(r,o):r=Rn(r,o))}return r||et}function kp(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(To(o)?qr(r,o):r.push(o))}return r}function*EE(e,t){for(const r of e){const i=t(r);i&&(yield*i)}}function Cx(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=e[i],s=t(o,i);(r||o!==s||To(s))&&(r||(r=e.slice(0,i)),To(s)?qr(r,s):r.push(s))}return r||e}function Jb(e,t){const r=[];for(let i=0;i<e.length;i++){const o=t(e[i],i);if(o===void 0)return;r.push(o)}return r}function eo(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o!==void 0&&r.push(o)}return r}function*Kb(e,t){for(const r of e){const i=t(r);i!==void 0&&(yield i)}}function v6(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const s=t(o,i);if(s!==void 0){const[l,u]=s;l!==void 0&&u!==void 0&&r.set(l,u)}}),r}function dA(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function Xb(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Jte(e){yield e}function FB(e,t,r){let i;if(e){i=[];const o=e.length;let s,l,u=0,p=0;for(;u<o;){for(;p<o;){const h=e[p];if(l=t(h,p),p===0)s=l;else if(l!==s)break;p++}if(u<p){const h=r(e.slice(u,p),s,u,p);h&&i.push(h),u=p}s=l,p++}}return i}function Kte(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const[s,l]=t(o,i);r.set(s,l)}),r}function bt(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function zB(e,t,r){let i;for(let o=0;o<e.length;o++)t(e[o])?i=i===void 0?o:i:i!==void 0&&(r(i,o),i=void 0);i!==void 0&&r(i,e.length)}function So(e,t){return bt(t)?bt(e)?[...e,...t]:t:e}function Tze(e,t){return t}function N2(e){return e.map(Tze)}function Aze(e,t,r){const i=N2(e);TEe(e,i,r);let o=e[i[0]];const s=[i[0]];for(let l=1;l<i.length;l++){const u=i[l],p=e[u];t(o,p)||(s.push(u),o=p)}return s.sort(),s.map(l=>e[l])}function Ize(e,t){const r=[];for(const i of e)Ef(r,i,t);return r}function SE(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?Aze(e,t,r):Ize(e,t)}function xze(e,t){if(e.length===0)return et;let r=e[0];const i=[r];for(let o=1;o<e.length;o++){const s=e[o];switch(t(s,r)){case!0:case 0:continue;case-1:return N.fail("Array is unsorted.")}i.push(r=s)}return i}function BB(){return[]}function by(e,t,r,i){if(e.length===0)return e.push(t),!0;const o=Tv(e,t,tl,r);return o<0?(e.splice(~o,0,t),!0):i?(e.splice(o,0,t),!0):!1}function HN(e,t,r){return xze(iS(e,t),r||t||Uu)}function y6(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 qN(e,t,r,i){let o=3;if(e.length<2)return o;let s=t(e[0]);for(let l=1,u=e.length;l<u&&o!==0;l++){const p=t(e[l]);o&1&&r(s,p)>0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function Hm(e,t,r=xv){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 C2(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 Xte(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;const i=[];e:for(let o=0,s=0;s<t.length;s++){s>0&&N.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(const l=o;o<e.length;o++)switch(o>l&&N.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function Rn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Px(e,t){return e===void 0?t:t===void 0?e:To(e)?To(t)?So(e,t):Rn(e,t):To(t)?Rn(t,e):[e,t]}function Yte(e,t){return t<0?e.length+t:t}function qr(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:Yte(t,r),i=i===void 0?t.length:Yte(t,i);for(let o=r;o<i&&o<t.length;o++)t[o]!==void 0&&e.push(t[o]);return e}function Ef(e,t,r){return Or(e,t,r)?!1:(e.push(t),!0)}function Rg(e,t,r){return e?(Ef(e,t,r),e):[t]}function TEe(e,t,r){t.sort((i,o)=>r(e[i],e[o])||nl(i,o))}function iS(e,t){return e.length===0?e:e.slice().sort(t)}function*GB(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Sv(e,t){const r=N2(e);return TEe(e,r,t),r.map(i=>e[i])}function VB(e,t,r,i){for(;r<i;){if(e[r]!==t[r])return!1;r++}return!0}function Kc(e){return e===void 0||e.length===0?void 0:e[0]}function b6(e){if(e)for(const t of e)return t}function Ua(e){return N.assert(e.length!==0),e[0]}function jB(e){for(const t of e)return t;N.fail("iterator is empty")}function el(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Xa(e){return N.assert(e.length!==0),e[e.length-1]}function oh(e){return e&&e.length===1?e[0]:void 0}function UB(e){return N.checkDefined(oh(e))}function ah(e){return e&&e.length===1?e[0]:e}function HB(e,t,r){const i=e.slice(0);return i[t]=r,i}function Tv(e,t,r,i,o){return pA(e,r(t),r,i,o)}function pA(e,t,r,i,o){if(!bt(e))return-1;let s=o||0,l=e.length-1;for(;s<=l;){const u=s+(l-s>>1),p=r(e[u],u);switch(i(p,t)){case-1:s=u+1;break;case 0:return u;case 1:l=u-1;break}}return~s}function rd(e,t,r,i,o){if(e&&e.length>0){const s=e.length;if(s>0){let l=i===void 0||i<0?0:i;const u=o===void 0||l+o>s-1?s-1:l+o;let p;for(arguments.length<=2?(p=e[l],l++):p=r;l<=u;)p=t(p,e[l],l),l++;return p}}return r}function Is(e,t){return Ty.call(e,t)}function E6(e,t){return Ty.call(e,t)?e[t]:void 0}function Hh(e){const t=[];for(const r in e)Ty.call(e,r)&&t.push(r);return t}function AEe(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)Ef(t,i)}while(e=Object.getPrototypeOf(e));return t}function fA(e){const t=[];for(const r in e)Ty.call(e,r)&&t.push(e[r]);return t}function $te(e,t){const r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i);return r}function zo(e,t){const r=[];for(const i of e)r.push(t?t(i):i);return r}function Mx(e,...t){for(const r of t)if(r!==void 0)for(const i in r)Is(r,i)&&(e[i]=r[i]);return e}function Qte(e,t,r=xv){if(e===t)return!0;if(!e||!t)return!1;for(const i in e)if(Ty.call(e,i)&&(!Ty.call(t,i)||!r(e[i],t[i])))return!1;for(const i in t)if(Ty.call(t,i)&&!Ty.call(e,i))return!1;return!0}function TE(e,t,r=tl){const i=new Map;for(const o of e){const s=t(o);s!==void 0&&i.set(s,r(o))}return i}function Zte(e,t,r=tl){const i=[];for(const o of e)i[t(o)]=r(o);return i}function P2(e,t,r=tl){const i=$p();for(const o of e)i.add(t(o),r(o));return i}function JN(e,t,r=tl){return zo(P2(e,t).values(),r)}function S6(e,t){const r={};if(e)for(const i of e){const o=`${t(i)}`;(r[o]??(r[o]=[])).push(i)}return r}function qB(e){const t={};for(const r in e)Ty.call(e,r)&&(t[r]=e[r]);return t}function T6(e,t){const r={};for(const i in t)Ty.call(t,i)&&(r[i]=t[i]);for(const i in e)Ty.call(e,i)&&(r[i]=e[i]);return r}function JB(e,t){for(const r in t)Ty.call(t,r)&&(e[r]=t[r])}function ia(e,t){return t?t.bind(e):void 0}function $p(){const e=new Map;return e.add=Rze,e.remove=Dze,e}function Rze(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function Dze(e,t){const r=this.get(e);r&&(_A(r,t),r.length||this.delete(e))}function M2(e){const t=(e==null?void 0:e.slice())||[];let r=0;function i(){return r===t.length}function o(...l){t.push(...l)}function s(){if(i())throw new Error("Queue is empty");const l=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){const u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function KB(e,t){const r=new Map;let i=0;function*o(){for(const l of r.values())To(l)?yield*l:yield l}const s={has(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(!To(p))return t(p,l);for(const h of p)if(t(h,l))return!0;return!1},add(l){const u=e(l);if(r.has(u)){const p=r.get(u);if(To(p))Or(p,l,t)||(p.push(l),i++);else{const h=p;t(h,l)||(r.set(u,[h,l]),i++)}}else r.set(u,l),i++;return this},delete(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(To(p)){for(let h=0;h<p.length;h++)if(t(p[h],l))return p.length===1?r.delete(u):p.length===2?r.set(u,p[1-h]):$B(p,h),i--,!0}else if(t(p,l))return r.delete(u),i--,!0;return!1},clear(){r.clear(),i=0},get size(){return i},forEach(l){for(const u of zo(r.values()))if(To(u))for(const p of u)l(p,p,s);else{const p=u;l(p,p,s)}},keys(){return o()},values(){return o()},*entries(){for(const l of o())yield[l,l]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function To(e){return Array.isArray(e)}function mA(e){return To(e)?e:[e]}function Mo(e){return typeof e=="string"}function Av(e){return typeof e=="number"}function ri(e,t){return e!==void 0&&t(e)?e:void 0}function oa(e,t){return e!==void 0&&t(e)?e:N.fail(`Invalid cast. The supplied value ${e} did not pass the test '${N.getFunctionName(t)}'.`)}function Ya(e){}function qm(){return!1}function Iv(){return!0}function Yb(){}function tl(e){return e}function ene(e){return e.toLowerCase()}function sh(e){return pne.test(e)?e.replace(pne,ene):e}function Jo(){throw new Error("Not implemented")}function Sd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function lh(e){const t=new Map;return r=>{const i=`${typeof r}:${r}`;let o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function IEe(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 tne(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 xEe(e,t,r,i,o){if(o){const s=[];for(let l=0;l<arguments.length;l++)s[l]=arguments[l];return l=>rd(s,(u,p)=>p(u),l)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function xv(e,t){return e===t}function $b(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function oS(e,t){return xv(e,t)}function REe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function nl(e,t){return REe(e,t)}function A6(e,t){return nl(e==null?void 0:e.start,t==null?void 0:t.start)||nl(e==null?void 0:e.length,t==null?void 0:t.length)}function XB(e,t){return rd(e,(r,i)=>t(r,i)===-1?r:i)}function I6(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 nne(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 Uu(e,t){return REe(e,t)}function Lx(e){return e?I6:Uu}function rne(){return rG}function ine(e){rG!==e&&(rG=e,fne=void 0)}function L2(e,t){return(fne||(fne=CEe(rG)))(e,t)}function one(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Ey(e,t){return nl(e?1:0,t?1:0)}function KN(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let o=Math.floor(e.length*.4)+1,s;for(const l of t){const u=r(l);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const p=Nze(e,u,o-.1);if(p===void 0)continue;N.assert(p<o),o=p,s=l}}return s}function Nze(e,t,r){let i=new Array(t.length+1),o=new Array(t.length+1);const s=r+.01;for(let u=0;u<=t.length;u++)i[u]=u;for(let u=1;u<=e.length;u++){const p=e.charCodeAt(u-1),h=Math.ceil(u>r?u-r:1),m=Math.floor(t.length>r+u?r+u:t.length);o[0]=u;let y=u;for(let A=1;A<h;A++)o[A]=s;for(let A=h;A<=m;A++){const R=e[u-1].toLowerCase()===t[A-1].toLowerCase()?i[A-1]+.1:i[A-1]+2,M=p===t.charCodeAt(A-1)?i[A-1]:Math.min(i[A]+1,o[A-1]+1,R);o[A]=M,y=Math.min(y,M)}for(let A=m+1;A<=t.length;A++)o[A]=s;if(y>r)return;const T=i;i=o,o=T}const l=i[t.length];return l>r?void 0:l}function Al(e,t,r){const i=e.length-t.length;return i>=0&&(r?$b(e.slice(i),t):e.indexOf(t,i)===i)}function kx(e,t){return Al(e,t)?e.slice(0,e.length-t.length):e}function ane(e,t){return Al(e,t)?e.slice(0,e.length-t.length):void 0}function YB(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 wx(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return Sy(e,r),!0;return!1}function Sy(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function $B(e,t){e[t]=e[e.length-1],e.pop()}function _A(e,t){return Cze(e,r=>r===t)}function Cze(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return $B(e,r),!0;return!1}function Mu(e){return e?tl:sh}function sne({prefix:e,suffix:t}){return`${e}*${t}`}function lne(e,t){return N.assert(x6(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function QB(e,t,r){let i,o=-1;for(const s of e){const l=t(s);x6(l,r)&&l.prefix.length>o&&(o=l.prefix.length,i=s)}return i}function uo(e,t,r){return r?$b(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function XN(e,t){return uo(e,t)?e.substr(t.length):e}function ZB(e,t,r=tl){return uo(r(e),r(t))?e.substring(t.length):void 0}function x6({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&uo(r,e)&&Al(r,t)}function R6(e,t){return r=>e(r)&&t(r)}function Jm(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function D6(e){return(...t)=>!e(...t)}function DEe(e){}function hA(e){return e===void 0?void 0:[e]}function N6(e,t,r,i,o,s){s=s||Ya;let l=0,u=0;const p=e.length,h=t.length;let m=!1;for(;l<p&&u<h;){const y=e[l],T=t[u],A=r(y,T);A===-1?(i(y),l++,m=!0):A===1?(o(T),u++,m=!0):(s(T,y),l++,u++)}for(;l<p;)i(e[l++]),m=!0;for(;u<h;)o(t[u++]),m=!0;return m}function cne(e){const t=[];return NEe(e,t,void 0,0),t}function NEe(e,t,r,i){for(const o of e[i]){let s;r?(s=r.slice(),s.push(o)):s=[o],i===e.length-1?t.push(s):NEe(e,t,s,i+1)}}function C6(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(0,i)}}function une(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(i)}}function eG(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof WB=="object"}var et,P6,dne,tG,Rv,Ty,pne,nG,CEe,fne,rG,Pze=I({"src/compiler/core.ts"(){ra(),et=[],P6=new Map,dne=new Set,tG=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(tG||{}),Rv=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=Yte(e,t),t<e.length))return e[t]},Ty=Object.prototype.hasOwnProperty,pne=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,nG=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(nG||{}),CEe=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;const s=o(r,i);return s<0?-1:s>0?1:0}function t(r){const i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),iG,N,Mze=I({"src/compiler/debug.ts"(){ra(),ra(),iG=(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))(iG||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(sn){return e.currentLogLevel<=sn}e.shouldLog=r;function i(sn,tt){e.loggingHost&&r(sn)&&e.loggingHost.log(sn,tt)}function o(sn){i(3,sn)}e.log=o,(sn=>{function tt(yi){i(1,yi)}sn.error=tt;function zt(yi){i(2,yi)}sn.warn=zt;function Dn(yi){i(3,yi)}sn.log=Dn;function ci(yi){i(4,yi)}sn.trace=ci})(o=e.log||(e.log={}));const s={};function l(){return t}e.getAssertionLevel=l;function u(sn){const tt=t;if(t=sn,sn>tt)for(const zt of Hh(s)){const Dn=s[zt];Dn!==void 0&&e[zt]!==Dn.assertion&&sn>=Dn.level&&(e[zt]=Dn,s[zt]=void 0)}}e.setAssertionLevel=u;function p(sn){return t>=sn}e.shouldAssert=p;function h(sn,tt){return p(sn)?!0:(s[tt]={level:sn,assertion:e[tt]},e[tt]=Ya,!1)}function m(sn,tt){const zt=new Error(sn?`Debug Failure. ${sn}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(zt,tt||m),zt}e.fail=m;function y(sn,tt,zt){return m(`${tt||"Unexpected node."}\r
Node ${ve(sn.kind)} was unexpected.`,zt||y)}e.failBadSyntaxKind=y;function T(sn,tt,zt,Dn){sn||(tt=tt?`False expression: ${tt}`:"False expression.",zt&&(tt+=`\r
Verbose Debug Information: `+(typeof zt=="string"?zt:zt())),m(tt,Dn||T))}e.assert=T;function A(sn,tt,zt,Dn,ci){if(sn!==tt){const yi=zt?Dn?`${zt} ${Dn}`:zt:"";m(`Expected ${sn} === ${tt}. ${yi}`,ci||A)}}e.assertEqual=A;function R(sn,tt,zt,Dn){sn>=tt&&m(`Expected ${sn} < ${tt}. ${zt||""}`,Dn||R)}e.assertLessThan=R;function M(sn,tt,zt){sn>tt&&m(`Expected ${sn} <= ${tt}`,zt||M)}e.assertLessThanOrEqual=M;function C(sn,tt,zt){sn<tt&&m(`Expected ${sn} >= ${tt}`,zt||C)}e.assertGreaterThanOrEqual=C;function O(sn,tt,zt){sn==null&&m(tt,zt||O)}e.assertIsDefined=O;function U(sn,tt,zt){return O(sn,tt,zt||U),sn}e.checkDefined=U;function K(sn,tt,zt){for(const Dn of sn)O(Dn,tt,zt||K)}e.assertEachIsDefined=K;function Q(sn,tt,zt){return K(sn,tt,zt||Q),sn}e.checkEachDefined=Q;function V(sn,tt="Illegal value:",zt){const Dn=typeof sn=="object"&&Is(sn,"kind")&&Is(sn,"pos")?"SyntaxKind: "+ve(sn.kind):JSON.stringify(sn);return m(`${tt} ${Dn}`,zt||V)}e.assertNever=V;function se(sn,tt,zt,Dn){h(1,"assertEachNode")&&T(tt===void 0||Jn(sn,tt),zt||"Unexpected node.",()=>`Node array did not pass test '${oe(tt)}'.`,Dn||se)}e.assertEachNode=se;function G(sn,tt,zt,Dn){h(1,"assertNode")&&T(sn!==void 0&&(tt===void 0||tt(sn)),zt||"Unexpected node.",()=>`Node ${ve(sn==null?void 0:sn.kind)} did not pass test '${oe(tt)}'.`,Dn||G)}e.assertNode=G;function ne(sn,tt,zt,Dn){h(1,"assertNotNode")&&T(sn===void 0||tt===void 0||!tt(sn),zt||"Unexpected node.",()=>`Node ${ve(sn.kind)} should not have passed test '${oe(tt)}'.`,Dn||ne)}e.assertNotNode=ne;function he(sn,tt,zt,Dn){h(1,"assertOptionalNode")&&T(tt===void 0||sn===void 0||tt(sn),zt||"Unexpected node.",()=>`Node ${ve(sn==null?void 0:sn.kind)} did not pass test '${oe(tt)}'.`,Dn||he)}e.assertOptionalNode=he;function ye(sn,tt,zt,Dn){h(1,"assertOptionalToken")&&T(tt===void 0||sn===void 0||sn.kind===tt,zt||"Unexpected node.",()=>`Node ${ve(sn==null?void 0:sn.kind)} was not a '${ve(tt)}' token.`,Dn||ye)}e.assertOptionalToken=ye;function Y(sn,tt,zt){h(1,"assertMissingNode")&&T(sn===void 0,tt||"Unexpected node.",()=>`Node ${ve(sn.kind)} was unexpected'.`,zt||Y)}e.assertMissingNode=Y;function X(sn){}e.type=X;function oe(sn){if(typeof sn!="function")return"";if(Is(sn,"name"))return sn.name;{const tt=Function.prototype.toString.call(sn),zt=/^function\s+([\w$]+)\s*\(/.exec(tt);return zt?zt[1]:""}}e.getFunctionName=oe;function pe(sn){return`{ name: ${Vi(sn.escapedName)}; flags: ${At(sn.flags)}; declarations: ${Wt(sn.declarations,tt=>ve(tt.kind))} }`}e.formatSymbol=pe;function Ce(sn=0,tt,zt){const Dn=ie(tt);if(sn===0)return Dn.length>0&&Dn[0][0]===0?Dn[0][1]:"0";if(zt){const ci=[];let yi=sn;for(const[Qi,Io]of Dn){if(Qi>sn)break;Qi!==0&&Qi&sn&&(ci.push(Io),yi&=~Qi)}if(yi===0)return ci.join("|")}else for(const[ci,yi]of Dn)if(ci===sn)return yi;return sn.toString()}e.formatEnum=Ce;const de=new Map;function ie(sn){const tt=de.get(sn);if(tt)return tt;const zt=[];for(const ci in sn){const yi=sn[ci];typeof yi=="number"&&zt.push([yi,ci])}const Dn=Sv(zt,(ci,yi)=>nl(ci[0],yi[0]));return de.set(sn,Dn),Dn}function ve(sn){return Ce(sn,L6,!1)}e.formatSyntaxKind=ve;function Le(sn){return Ce(sn,q6,!1)}e.formatSnippetKind=Le;function Ue(sn){return Ce(sn,U6,!1)}e.formatScriptKind=Ue;function Ee(sn){return Ce(sn,k6,!0)}e.formatNodeFlags=Ee;function De(sn){return Ce(sn,w6,!0)}e.formatModifierFlags=De;function Me(sn){return Ce(sn,H6,!0)}e.formatTransformFlags=Me;function We(sn){return Ce(sn,J6,!0)}e.formatEmitFlags=We;function At(sn){return Ce(sn,B6,!0)}e.formatSymbolFlags=At;function Se(sn){return Ce(sn,G6,!0)}e.formatTypeFlags=Se;function je(sn){return Ce(sn,j6,!0)}e.formatSignatureFlags=je;function ot(sn){return Ce(sn,V6,!0)}e.formatObjectFlags=ot;function Bt(sn){return Ce(sn,W2,!0)}e.formatFlowFlags=Bt;function vt(sn){return Ce(sn,O6,!0)}e.formatRelationComparisonResult=vt;function $e(sn){return Ce(sn,WF,!0)}e.formatCheckMode=$e;function It(sn){return Ce(sn,FF,!0)}e.formatSignatureCheckMode=It;function tn(sn){return Ce(sn,OF,!0)}e.formatTypeFacts=tn;let rn=!1,Mn;function $n(sn){"__debugFlowFlags"in sn||Object.defineProperties(sn,{__tsDebuggerDisplay:{value(){const tt=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",zt=this.flags&-2048;return`${tt}${zt?` (${Bt(zt)})`:""}`}},__debugFlowFlags:{get(){return Ce(this.flags,W2,!0)}},__debugToString:{value(){return Ar(this)}}})}function gn(sn){rn&&(typeof Object.setPrototypeOf=="function"?(Mn||(Mn=Object.create(Object.prototype),$n(Mn)),Object.setPrototypeOf(sn,Mn)):$n(sn))}e.attachFlowNodeDebugInfo=gn;let Qt;function Yt(sn){"__tsDebuggerDisplay"in sn||Object.defineProperties(sn,{__tsDebuggerDisplay:{value(tt){return tt=String(tt).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${tt}`}}})}function vi(sn){rn&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Array.prototype),Yt(Qt)),Object.setPrototypeOf(sn,Qt)):Yt(sn))}e.attachNodeArrayDebugInfo=vi;function so(){if(rn)return;const sn=new WeakMap,tt=new WeakMap;Object.defineProperties(su.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const Dn=this.flags&33554432?"TransientSymbol":"Symbol",ci=this.flags&-33554433;return`${Dn} '${El(this)}'${ci?` (${At(ci)})`:""}`}},__debugFlags:{get(){return At(this.flags)}}}),Object.defineProperties(su.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const Dn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",ci=this.flags&524288?this.objectFlags&-1344:0;return`${Dn}${this.symbol?` '${El(this.symbol)}'`:""}${ci?` (${ot(ci)})`:""}`}},__debugFlags:{get(){return Se(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?ot(this.objectFlags):""}},__debugTypeToString:{value(){let Dn=sn.get(this);return Dn===void 0&&(Dn=this.checker.typeToString(this),sn.set(this,Dn)),Dn}}}),Object.defineProperties(su.getSignatureConstructor().prototype,{__debugFlags:{get(){return je(this.flags)}},__debugSignatureToString:{value(){var Dn;return(Dn=this.checker)==null?void 0:Dn.signatureToString(this)}}});const zt=[su.getNodeConstructor(),su.getIdentifierConstructor(),su.getTokenConstructor(),su.getSourceFileConstructor()];for(const Dn of zt)Is(Dn.prototype,"__debugKind")||Object.defineProperties(Dn.prototype,{__tsDebuggerDisplay:{value(){return`${al(this)?"GeneratedIdentifier":Ve(this)?`Identifier '${Sr(this)}'`:qi(this)?`PrivateIdentifier '${Sr(this)}'`:Na(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:hp(this)?`NumericLiteral ${this.text}`:WW(this)?`BigIntLiteral ${this.text}n`:hl(this)?"TypeParameterDeclaration":Ao(this)?"ParameterDeclaration":Ml(this)?"ConstructorDeclaration":tf(this)?"GetAccessorDeclaration":vp(this)?"SetAccessorDeclaration":ZA(this)?"CallSignatureDeclaration":Bk(this)?"ConstructSignatureDeclaration":XE(this)?"IndexSignatureDeclaration":Gk(this)?"TypePredicateNode":Df(this)?"TypeReferenceNode":yh(this)?"FunctionTypeNode":zR(this)?"ConstructorTypeNode":eI(this)?"TypeQueryNode":yp(this)?"TypeLiteralNode":Vk(this)?"ArrayTypeNode":tI(this)?"TupleTypeNode":VW(this)?"OptionalTypeNode":jW(this)?"RestTypeNode":qy(this)?"UnionTypeNode":nI(this)?"IntersectionTypeNode":rI(this)?"ConditionalTypeNode":kS(this)?"InferTypeNode":wS(this)?"ParenthesizedTypeNode":jk(this)?"ThisTypeNode":OS(this)?"TypeOperatorNode":WS(this)?"IndexedAccessTypeNode":GR(this)?"MappedTypeNode":Jy(this)?"LiteralTypeNode":BR(this)?"NamedTupleMember":ag(this)?"ImportTypeNode":ve(this.kind)}${this.flags?` (${Ee(this.flags)})`:""}`}},__debugKind:{get(){return ve(this.kind)}},__debugNodeFlags:{get(){return Ee(this.flags)}},__debugModifierFlags:{get(){return De(Bie(this))}},__debugTransformFlags:{get(){return Me(this.transformFlags)}},__debugIsParseTreeNode:{get(){return aC(this)}},__debugEmitFlags:{get(){return We(Ga(this))}},__debugGetText:{value(ci){if(Ys(this))return"";let yi=tt.get(this);if(yi===void 0){const Qi=No(this),Io=Qi&&Un(Qi);yi=Io?CE(Io,Qi,ci):"",tt.set(this,yi)}return yi}}});rn=!0}e.enableDebugInfo=so;function Wi(sn){const tt=sn&7;let zt=tt===0?"in out":tt===3?"[bivariant]":tt===2?"in":tt===1?"out":tt===4?"[independent]":"";return sn&8?zt+=" (unmeasurable)":sn&16&&(zt+=" (unreliable)"),zt}e.formatVariance=Wi;class Co{__debugToString(){var tt;switch(this.kind){case 3:return((tt=this.debugInfo)==null?void 0:tt.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return gi(this.sources,this.targets||Wt(this.sources,()=>"any"),(zt,Dn)=>`${zt.__debugTypeToString()} -> ${typeof Dn=="string"?Dn:Dn.__debugTypeToString()}`).join(", ");case 2:return gi(this.sources,this.targets,(zt,Dn)=>`${zt.__debugTypeToString()} -> ${Dn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return V(this)}}}e.DebugTypeMapper=Co;function Ln(sn){return e.isDebugging?Object.setPrototypeOf(sn,Co.prototype):sn}e.attachDebugPrototypeIfDebug=Ln;function Ci(sn){return console.log(Ar(sn))}e.printControlFlowGraph=Ci;function Ar(sn){let tt=-1;function zt(L){return L.id||(L.id=tt,tt--),L.id}let Dn;(L=>{L.lr="─",L.ud="│",L.dr="╭",L.dl="╮",L.ul="╯",L.ur="╰",L.udr="├",L.udl="┤",L.dlr="┬",L.ulr="┴",L.udlr="╫"})(Dn||(Dn={}));let ci;(L=>{L[L.None=0]="None",L[L.Up=1]="Up",L[L.Down=2]="Down",L[L.Left=4]="Left",L[L.Right=8]="Right",L[L.UpDown=3]="UpDown",L[L.LeftRight=12]="LeftRight",L[L.UpLeft=5]="UpLeft",L[L.UpRight=9]="UpRight",L[L.DownLeft=6]="DownLeft",L[L.DownRight=10]="DownRight",L[L.UpDownLeft=7]="UpDownLeft",L[L.UpDownRight=11]="UpDownRight",L[L.UpLeftRight=13]="UpLeftRight",L[L.DownLeftRight=14]="DownLeftRight",L[L.UpDownLeftRight=15]="UpDownLeftRight",L[L.NoChildren=16]="NoChildren"})(ci||(ci={}));const yi=2032,Qi=882,Io=Object.create(null),fa=[],ka=pt(sn,new Set);for(const L of fa)L.text=fn(L.flowNode,L.circular),it(L);const Tn=Rt(ka),wn=Ye(Tn);return _t(ka,0),hn();function He(L){return!!(L.flags&128)}function mt(L){return!!(L.flags&12)&&!!L.antecedents}function ft(L){return!!(L.flags&yi)}function Ct(L){return!!(L.flags&Qi)}function le(L){const me=[];for(const J of L.edges)J.source===L&&me.push(J.target);return me}function Fe(L){const me=[];for(const J of L.edges)J.target===L&&me.push(J.source);return me}function pt(L,me){const J=zt(L);let fe=Io[J];if(fe&&me.has(L))return fe.circular=!0,fe={id:-1,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},fa.push(fe),fe;if(me.add(L),!fe)if(Io[J]=fe={id:J,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},fa.push(fe),mt(L))for(const Be of L.antecedents)j(fe,Be,me);else ft(L)&&j(fe,L.antecedent,me);return me.delete(L),fe}function j(L,me,J){const fe=pt(me,J),Be={source:L,target:fe};L.edges.push(Be),fe.edges.push(Be)}function it(L){if(L.level!==-1)return L.level;let me=0;for(const J of Fe(L))me=Math.max(me,it(J)+1);return L.level=me}function Rt(L){let me=0;for(const J of le(L))me=Math.max(me,Rt(J));return me+1}function Ye(L){const me=Oe(Array(L),0);for(const J of fa)me[J.level]=Math.max(me[J.level],J.text.length);return me}function _t(L,me){if(L.lane===-1){L.lane=me,L.endLane=me;const J=le(L);for(let fe=0;fe<J.length;fe++){fe>0&&me++;const Be=J[fe];_t(Be,me),Be.endLane>L.endLane&&(me=Be.endLane)}L.endLane=me}}function Gt(L){if(L&2)return"Start";if(L&4)return"Branch";if(L&8)return"Loop";if(L&16)return"Assignment";if(L&32)return"True";if(L&64)return"False";if(L&128)return"SwitchClause";if(L&256)return"ArrayMutation";if(L&512)return"Call";if(L&1024)return"ReduceLabel";if(L&1)return"Unreachable";throw new Error}function yn(L){const me=Un(L);return CE(me,L,!1)}function fn(L,me){let J=Gt(L.flags);if(me&&(J=`${J}#${zt(L)}`),Ct(L))L.node&&(J+=` (${yn(L.node)})`);else if(He(L)){const fe=[];for(let Be=L.clauseStart;Be<L.clauseEnd;Be++){const ke=L.switchStatement.caseBlock.clauses[Be];EP(ke)?fe.push("default"):fe.push(yn(ke.expression))}J+=` (${fe.join(", ")})`}return me==="circularity"?`Circular(${J})`:J}function hn(){const L=wn.length,me=fa.reduce((Tt,kt)=>Math.max(Tt,kt.lane),0)+1,J=Oe(Array(me),""),fe=wn.map(()=>Array(me)),Be=wn.map(()=>Oe(Array(me),0));for(const Tt of fa){fe[Tt.level][Tt.lane]=Tt;const kt=le(Tt);for(let En=0;En<kt.length;En++){const Gn=kt[En];let qn=8;Gn.lane===Tt.lane&&(qn|=4),En>0&&(qn|=1),En<kt.length-1&&(qn|=2),Be[Tt.level][Gn.lane]|=qn}kt.length===0&&(Be[Tt.level][Tt.lane]|=16);const en=Fe(Tt);for(let En=0;En<en.length;En++){const Gn=en[En];let qn=4;En>0&&(qn|=1),En<en.length-1&&(qn|=2),Be[Tt.level-1][Gn.lane]|=qn}}for(let Tt=0;Tt<L;Tt++)for(let kt=0;kt<me;kt++){const en=Tt>0?Be[Tt-1][kt]:0,En=kt>0?Be[Tt][kt-1]:0;let Gn=Be[Tt][kt];Gn||(en&8&&(Gn|=12),En&2&&(Gn|=3),Be[Tt][kt]=Gn)}for(let Tt=0;Tt<L;Tt++)for(let kt=0;kt<J.length;kt++){const en=Be[Tt][kt],En=en&4?"─":" ",Gn=fe[Tt][kt];Gn?(ke(kt,Gn.text),Tt<L-1&&(ke(kt," "),ke(kt,Lt(En,wn[Tt]-Gn.text.length)))):Tt<L-1&&ke(kt,Lt(En,wn[Tt]+1)),ke(kt,q(en)),ke(kt,en&8&&Tt<L-1&&!fe[Tt+1][kt]?"─":" ")}return`
${J.join(`
`)}
`;function ke(Tt,kt){J[Tt]+=kt}}function q(L){switch(L){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function Oe(L,me){if(L.fill)L.fill(me);else for(let J=0;J<L.length;J++)L[J]=me;return L}function Lt(L,me){if(L.repeat)return me>0?L.repeat(me):"";let J="";for(;J.length<me;)J+=L;return J}}e.formatControlFlowGraph=Ar})(N||(N={}))}});function PEe(e){const t=LEe.exec(e);if(!t)return;const[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!kEe.test(s))&&!(l&&!OEe.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function Lze(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 o=e[i],s=t[i];if(o===s)continue;const l=_ne.test(o),u=_ne.test(s);if(l||u){if(l!==u)return l?-1:1;const p=nl(+o,+s);if(p)return p}else{const p=Uu(o,s);if(p)return p}}return nl(e.length,t.length)}function MEe(e){const t=[];for(let r of e.trim().split(FEe)){if(!r)continue;const i=[];r=r.trim();const o=GEe.exec(r);if(o){if(!kze(o[1],o[2],i))return}else for(const s of r.split(zEe)){const l=VEe.exec(s.trim());if(!l||!wze(l[1],l[2],i))return}t.push(i)}return t}function mne(e){const t=BEe.exec(e);if(!t)return;const[,r,i="*",o="*",s,l]=t;return{version:new hm(qf(r)?0:parseInt(r,10),qf(r)||qf(i)?0:parseInt(i,10),qf(r)||qf(i)||qf(o)?0:parseInt(o,10),s,l),major:r,minor:i,patch:o}}function kze(e,t,r){const i=mne(e);if(!i)return!1;const o=mne(t);return o?(qf(i.major)||r.push(ch(">=",i.version)),qf(o.major)||r.push(qf(o.minor)?ch("<",o.version.increment("major")):qf(o.patch)?ch("<",o.version.increment("minor")):ch("<=",o.version)),!0):!1}function wze(e,t,r){const i=mne(t);if(!i)return!1;const{version:o,major:s,minor:l,patch:u}=i;if(qf(s))(e==="<"||e===">")&&r.push(ch("<",hm.zero));else switch(e){case"~":r.push(ch(">=",o)),r.push(ch("<",o.increment(qf(l)?"major":"minor")));break;case"^":r.push(ch(">=",o)),r.push(ch("<",o.increment(o.major>0||qf(l)?"major":o.minor>0||qf(u)?"minor":"patch")));break;case"<":case">=":r.push(qf(l)||qf(u)?ch(e,o.with({prerelease:"0"})):ch(e,o));break;case"<=":case">":r.push(qf(l)?ch(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):qf(u)?ch(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):ch(e,o));break;case"=":case void 0:qf(l)||qf(u)?(r.push(ch(">=",o.with({prerelease:"0"}))),r.push(ch("<",o.increment(qf(l)?"major":"minor").with({prerelease:"0"})))):r.push(ch("=",o));break;default:return!1}return!0}function qf(e){return e==="*"||e==="x"||e==="X"}function ch(e,t){return{operator:e,operand:t}}function Oze(e,t){if(t.length===0)return!0;for(const r of t)if(Wze(e,r))return!0;return!1}function Wze(e,t){for(const r of t)if(!Fze(e,r.operator,r.operand))return!1;return!0}function Fze(e,t,r){const i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return N.assertNever(t)}}function zze(e){return Wt(e,Bze).join(" || ")||"*"}function Bze(e){return Wt(e,Gze).join(" ")}function Gze(e){return`${e.operator}${e.operand}`}var LEe,kEe,wEe,OEe,WEe,_ne,oG,hm,k2,FEe,zEe,BEe,GEe,VEe,Vze=I({"src/compiler/semver.ts"(){ra(),LEe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,kEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,wEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,OEe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,WEe=/^[a-z0-9-]+$/i,_ne=/^(0|[1-9]\d*)$/,oG=class a6{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=N.checkDefined(PEe(t),"Invalid version")),N.assert(t>=0,"Invalid argument: major"),N.assert(r>=0,"Invalid argument: minor"),N.assert(i>=0,"Invalid argument: patch");const l=o?To(o)?o:o.split("."):et,u=s?To(s)?s:s.split("."):et;N.assert(Jn(l,p=>wEe.test(p)),"Invalid argument: prerelease"),N.assert(Jn(u,p=>WEe.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){const r=PEe(t);if(!r)return;const{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new a6(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:nl(this.major,t.major)||nl(this.minor,t.minor)||nl(this.patch,t.patch)||Lze(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new a6(this.major+1,0,0);case"minor":return new a6(this.major,this.minor+1,0);case"patch":return new a6(this.major,this.minor,this.patch+1);default:return N.assertNever(t)}}with(t){const{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new a6(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return bt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),bt(this.build)&&(t+=`+${this.build.join(".")}`),t}},oG.zero=new oG(0,0,0,["0"]),hm=oG,k2=class PFe{constructor(t){this._alternatives=t?N.checkDefined(MEe(t),"Invalid range spec."):et}static tryParse(t){const r=MEe(t);if(r){const i=new PFe("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new hm(t)),Oze(t,this._alternatives)}toString(){return zze(this._alternatives)}},FEe=/\|\|/g,zEe=/\s+/g,BEe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,GEe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,VEe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function jEe(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 jze(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&jEe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Uze(){if(eG())try{const{performance:e,PerformanceObserver:t}=yE("perf_hooks");if(jEe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function hne(){return aG}var aG,gne,Xs,Hze=I({"src/compiler/performanceCore.ts"(){ra(),aG=jze()||Uze(),gne=aG==null?void 0:aG.performance,Xs=gne?()=>gne.now():Date.now?Date.now:()=>+new Date}}),M6,id,qze=I({"src/compiler/perfLogger.ts"(){try{const e=jN.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";M6=yE(e)}catch{M6=void 0}id=M6!=null&&M6.logEvent?M6:void 0}});function UEe(e,t,r,i){return e?sG(t,r,i):lG}function sG(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&rl(t)}function s(){--i===0?(rl(r),Qp(e,t,r)):i<0&&N.fail("enter/exit count does not match.")}}function rl(e){if(Ox){const t=YN.get(e)??0;YN.set(e,t+1),Wx.set(e,Xs()),aS==null||aS.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Qp(e,t,r){if(Ox){const i=(r!==void 0?Wx.get(r):void 0)??Xs(),o=(t!==void 0?Wx.get(t):void 0)??vne,s=Fx.get(e)||0;Fx.set(e,s+(i-o)),aS==null||aS.measure(e,t,r)}}function Jze(e){return YN.get(e)||0}function Kze(e){return Fx.get(e)||0}function Xze(e){Fx.forEach((t,r)=>e(r,t))}function Yze(e){Wx.forEach((t,r)=>e(r))}function $ze(e){e!==void 0?Fx.delete(e):Fx.clear(),aS==null||aS.clearMeasures(e)}function Qze(e){e!==void 0?(YN.delete(e),Wx.delete(e)):(YN.clear(),Wx.clear()),aS==null||aS.clearMarks(e)}function Zze(){return Ox}function e9e(e=gu){var t;return Ox||(Ox=!0,w2||(w2=hne()),w2&&(vne=w2.performance.timeOrigin,(w2.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(aS=w2.performance))),!0}function t9e(){Ox&&(Wx.clear(),YN.clear(),Fx.clear(),aS=void 0,Ox=!1)}var w2,aS,lG,Ox,vne,Wx,YN,Fx,n9e=I({"src/compiler/performance.ts"(){ra(),lG={enter:Ya,exit:Ya},Ox=!1,vne=Xs(),Wx=new Map,YN=new Map,Fx=new Map}}),yne={};ee(yne,{clearMarks:()=>Qze,clearMeasures:()=>$ze,createTimer:()=>sG,createTimerIf:()=>UEe,disable:()=>t9e,enable:()=>e9e,forEachMark:()=>Yze,forEachMeasure:()=>Xze,getCount:()=>Jze,getDuration:()=>Kze,isEnabled:()=>Zze,mark:()=>rl,measure:()=>Qp,nullTimer:()=>lG});var sS=I({"src/compiler/_namespaces/ts.performance.ts"(){n9e()}}),sr,O2,bne,Ene,r9e=I({"src/compiler/tracing.ts"(){ra(),sS(),(e=>{let t,r=0,i=0,o;const s=[];let l;const u=[];function p(se,G,ne){if(N.assert(!sr,"Tracing already started"),t===void 0)try{t=yE("fs")}catch(oe){throw new Error(`tracing requires having fs
(original error: ${oe.message||oe})`)}o=se,s.length=0,l===void 0&&(l=$r(G,"legend.json")),t.existsSync(G)||t.mkdirSync(G,{recursive:!0});const he=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",ye=$r(G,`trace${he}.json`),Y=$r(G,`types${he}.json`);u.push({configFilePath:ne,tracePath:ye,typesPath:Y}),i=t.openSync(ye,"w"),sr=e;const X={cat:"__metadata",ph:"M",ts:1e3*Xs(),pid:1,tid:1};t.writeSync(i,`[
`+[{name:"process_name",args:{name:"tsc"},...X},{name:"thread_name",args:{name:"Main"},...X},{name:"TracingStartedInBrowser",...X,cat:"disabled-by-default-devtools.timeline"}].map(oe=>JSON.stringify(oe)).join(`,
`))}e.startTracing=p;function h(){N.assert(sr,"Tracing is not in progress"),N.assert(!!s.length==(o!=="server")),t.writeSync(i,`
]
`),t.closeSync(i),sr=void 0,s.length?Q(s):u[u.length-1].typesPath=void 0}e.stopTracing=h;function m(se){o!=="server"&&s.push(se)}e.recordType=m,(se=>{se.Parse="parse",se.Program="program",se.Bind="bind",se.Check="check",se.CheckTypes="checkTypes",se.Emit="emit",se.Session="session"})(e.Phase||(e.Phase={}));function y(se,G,ne){U("I",se,G,ne,'"s":"g"')}e.instant=y;const T=[];function A(se,G,ne,he=!1){he&&U("B",se,G,ne),T.push({phase:se,name:G,args:ne,time:1e3*Xs(),separateBeginAndEnd:he})}e.push=A;function R(se){N.assert(T.length>0),O(T.length-1,1e3*Xs(),se),T.length--}e.pop=R;function M(){const se=1e3*Xs();for(let G=T.length-1;G>=0;G--)O(G,se);T.length=0}e.popAll=M;const C=1e3*10;function O(se,G,ne){const{phase:he,name:ye,args:Y,time:X,separateBeginAndEnd:oe}=T[se];oe?(N.assert(!ne,"`results` are not supported for events with `separateBeginAndEnd`"),U("E",he,ye,Y,void 0,G)):C-X%C<=G-X&&U("X",he,ye,{...Y,results:ne},`"dur":${G-X}`,X)}function U(se,G,ne,he,ye,Y=1e3*Xs()){o==="server"&&G==="checkTypes"||(rl("beginTracing"),t.writeSync(i,`,
{"pid":1,"tid":1,"ph":"${se}","cat":"${G}","ts":${Y},"name":"${ne}"`),ye&&t.writeSync(i,`,${ye}`),he&&t.writeSync(i,`,"args":${JSON.stringify(he)}`),t.writeSync(i,"}"),rl("endTracing"),Qp("Tracing","beginTracing","endTracing"))}function K(se){const G=Un(se);return G?{path:G.path,start:ne(ys(G,se.pos)),end:ne(ys(G,se.end))}:void 0;function ne(he){return{line:he.line+1,character:he.character+1}}}function Q(se){var G,ne,he,ye,Y,X,oe,pe,Ce,de,ie,ve,Le,Ue,Ee,De,Me,We,At;rl("beginDumpTypes");const Se=u[u.length-1].typesPath,je=t.openSync(Se,"w"),ot=new Map;t.writeSync(je,"[");const Bt=se.length;for(let vt=0;vt<Bt;vt++){const $e=se[vt],It=$e.objectFlags,tn=$e.aliasSymbol??$e.symbol;let rn;if(It&16|$e.flags&2944)try{rn=(G=$e.checker)==null?void 0:G.typeToString($e)}catch{rn=void 0}let Mn={};if($e.flags&8388608){const Ln=$e;Mn={indexedAccessObjectType:(ne=Ln.objectType)==null?void 0:ne.id,indexedAccessIndexType:(he=Ln.indexType)==null?void 0:he.id}}let $n={};if(It&4){const Ln=$e;$n={instantiatedType:(ye=Ln.target)==null?void 0:ye.id,typeArguments:(Y=Ln.resolvedTypeArguments)==null?void 0:Y.map(Ci=>Ci.id),referenceLocation:K(Ln.node)}}let gn={};if($e.flags&16777216){const Ln=$e;gn={conditionalCheckType:(X=Ln.checkType)==null?void 0:X.id,conditionalExtendsType:(oe=Ln.extendsType)==null?void 0:oe.id,conditionalTrueType:((pe=Ln.resolvedTrueType)==null?void 0:pe.id)??-1,conditionalFalseType:((Ce=Ln.resolvedFalseType)==null?void 0:Ce.id)??-1}}let Qt={};if($e.flags&33554432){const Ln=$e;Qt={substitutionBaseType:(de=Ln.baseType)==null?void 0:de.id,constraintType:(ie=Ln.constraint)==null?void 0:ie.id}}let Yt={};if(It&1024){const Ln=$e;Yt={reverseMappedSourceType:(ve=Ln.source)==null?void 0:ve.id,reverseMappedMappedType:(Le=Ln.mappedType)==null?void 0:Le.id,reverseMappedConstraintType:(Ue=Ln.constraintType)==null?void 0:Ue.id}}let vi={};if(It&256){const Ln=$e;vi={evolvingArrayElementType:Ln.elementType.id,evolvingArrayFinalType:(Ee=Ln.finalArrayType)==null?void 0:Ee.id}}let so;const Wi=$e.checker.getRecursionIdentity($e);Wi&&(so=ot.get(Wi),so||(so=ot.size,ot.set(Wi,so)));const Co={id:$e.id,intrinsicName:$e.intrinsicName,symbolName:(tn==null?void 0:tn.escapedName)&&Vi(tn.escapedName),recursionId:so,isTuple:It&8?!0:void 0,unionTypes:$e.flags&1048576?(De=$e.types)==null?void 0:De.map(Ln=>Ln.id):void 0,intersectionTypes:$e.flags&2097152?$e.types.map(Ln=>Ln.id):void 0,aliasTypeArguments:(Me=$e.aliasTypeArguments)==null?void 0:Me.map(Ln=>Ln.id),keyofType:$e.flags&4194304?(We=$e.type)==null?void 0:We.id:void 0,...Mn,...$n,...gn,...Qt,...Yt,...vi,destructuringPattern:K($e.pattern),firstDeclaration:K((At=tn==null?void 0:tn.declarations)==null?void 0:At[0]),flags:N.formatTypeFlags($e.flags).split("|"),display:rn};t.writeSync(je,JSON.stringify(Co)),vt<Bt-1&&t.writeSync(je,`,
`)}t.writeSync(je,`]
`),t.closeSync(je),rl("endDumpTypes"),Qp("Dump types","beginDumpTypes","endDumpTypes")}function V(){l&&t.writeFileSync(l,JSON.stringify(u))}e.dumpLegend=V})(O2||(O2={})),bne=O2.startTracing,Ene=O2.dumpLegend}});function lS(e,t=!0){const r=F2[e.category];return t?r.toLowerCase():r}var L6,k6,w6,cG,O6,W6,uG,W2,dG,zx,F6,pG,fG,z6,mG,_G,hG,gG,vG,yG,bG,EG,SG,TG,AG,B6,IG,xG,RG,DG,G6,V6,NG,CG,PG,MG,LG,kG,j6,wG,OG,WG,FG,zG,BG,F2,Bx,GG,VG,jG,UG,$N,HG,qG,JG,U6,KG,XG,YG,$G,QG,H6,q6,J6,ZG,eV,tV,nV,rV,iV,oV,aV,z2,sV,HEe=I({"src/compiler/types.ts"(){L6=(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.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(L6||{}),k6=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(k6||{}),w6=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(w6||{}),cG=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(cG||{}),O6=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(O6||{}),W6=(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))(W6||{}),uG=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(uG||{}),W2=(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))(W2||{}),dG=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(dG||{}),zx=class{},F6=(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))(F6||{}),pG=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(pG||{}),fG=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(fG||{}),z6=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(z6||{}),mG=(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))(mG||{}),_G=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(_G||{}),hG=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(hG||{}),gG=(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))(gG||{}),vG=(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))(vG||{}),yG=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(yG||{}),bG=(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))(bG||{}),EG=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(EG||{}),SG=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(SG||{}),TG=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(TG||{}),AG=(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))(AG||{}),B6=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(B6||{}),IG=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(IG||{}),xG=(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))(xG||{}),RG=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(RG||{}),DG=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(DG||{}),G6=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(G6||{}),V6=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(V6||{}),NG=(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))(NG||{}),CG=(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))(CG||{}),PG=(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))(PG||{}),MG=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(MG||{}),LG=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(LG||{}),kG=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(kG||{}),j6=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(j6||{}),wG=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(wG||{}),OG=(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))(OG||{}),WG=(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))(WG||{}),FG=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(FG||{}),zG=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(zG||{}),BG=(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))(BG||{}),F2=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(F2||{}),Bx=(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))(Bx||{}),GG=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(GG||{}),VG=(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))(VG||{}),jG=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(jG||{}),UG=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(UG||{}),$N=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))($N||{}),HG=(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))(HG||{}),qG=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(qG||{}),JG=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(JG||{}),U6=(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))(U6||{}),KG=(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))(KG||{}),XG=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(XG||{}),YG=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(YG||{}),$G=(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))($G||{}),QG=(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))(QG||{}),H6=(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))(H6||{}),q6=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(q6||{}),J6=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(J6||{}),ZG=(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))(ZG||{}),eV=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(eV||{}),tV=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(tV||{}),nV=(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))(nV||{}),rV=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(rV||{}),iV=(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))(iV||{}),oV=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(oV||{}),aV=(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))(aV||{}),z2={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}},sV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(sV||{})}});function QN(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}function qEe(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function gA(e,t){return e.getModifiedTime(t)||wp}function Sne(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function i9e(e){if(!e.getEnvironmentVariable)return;const t=o("TSC_WATCH_POLLINGINTERVAL",K6);Y6=s("TSC_WATCH_POLLINGCHUNKSIZE",X6)||Y6,G2=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",X6)||G2;function r(l,u){return e.getEnvironmentVariable(`${l}_${u.toUpperCase()}`)}function i(l){let u;return p("Low"),p("Medium"),p("High"),u;function p(h){const m=r(l,h);m&&((u||(u={}))[h]=Number(m))}}function o(l,u){const p=i(l);if(p)return h("Low"),h("Medium"),h("High"),!0;return!1;function h(m){u[m]=p[m]||u[m]}}function s(l,u){const p=i(l);return(t||p)&&Sne(p?{...u,...p}:u)}}function JEe(e,t,r,i,o){let s=r;for(let u=t.length;i&&u;l(),u--){const p=t[r];if(p){if(p.isClosed){t[r]=void 0;continue}}else continue;i--;const h=l9e(p,gA(e,p.fileName));if(p.isClosed){t[r]=void 0;continue}o==null||o(p,r,h),t[r]&&(s<r&&(t[s]=p,t[r]=void 0),s++)}return r;function l(){r++,r===t.length&&(s<r&&(t.length=s),r=0,s=0)}}function o9e(e){const t=[],r=[],i=u(250),o=u(500),s=u(2e3);return l;function l(C,O,U){const K={fileName:C,callback:O,unchangedPolls:0,mtime:gA(e,C)};return t.push(K),T(K,U),{close:()=>{K.isClosed=!0,_A(t,K)}}}function u(C){const O=[];return O.pollingInterval=C,O.pollIndex=0,O.pollScheduled=!1,O}function p(C,O){O.pollIndex=m(O,O.pollingInterval,O.pollIndex,Y6[O.pollingInterval]),O.length?M(O.pollingInterval):(N.assert(O.pollIndex===0),O.pollScheduled=!1)}function h(C,O){m(r,250,0,r.length),p(C,O),!O.pollScheduled&&r.length&&M(250)}function m(C,O,U,K){return JEe(e,C,U,K,Q);function Q(V,se,G){G?(V.unchangedPolls=0,C!==r&&(C[se]=void 0,A(V))):V.unchangedPolls!==G2[O]?V.unchangedPolls++:C===r?(V.unchangedPolls=1,C[se]=void 0,T(V,250)):O!==2e3&&(V.unchangedPolls++,C[se]=void 0,T(V,O===250?500:2e3))}}function y(C){switch(C){case 250:return i;case 500:return o;case 2e3:return s}}function T(C,O){y(O).push(C),R(O)}function A(C){r.push(C),R(250)}function R(C){y(C).pollScheduled||M(C)}function M(C){y(C).pollScheduled=e.setTimeout(C===250?h:p,C,C===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(C))}}function a9e(e,t,r,i){const o=$p(),s=i?new Map:void 0,l=new Map,u=Mu(t);return p;function p(m,y,T,A){const R=u(m);o.add(R,y).length===1&&s&&s.set(R,r(m)||wp);const M=ai(R)||".",C=l.get(M)||h(ai(m)||".",M,A);return C.referenceCount++,{close:()=>{C.referenceCount===1?(C.close(),l.delete(M)):C.referenceCount--,o.remove(R,y)}}}function h(m,y,T){const A=e(m,1,(R,M)=>{if(!Mo(M))return;const C=go(M,m),O=u(C),U=C&&o.get(O);if(U){let K,Q=1;if(s){const V=s.get(O);if(R==="change"&&(K=r(C)||wp,K.getTime()===V.getTime()))return;K||(K=r(C)||wp),s.set(O,K),V===wp?Q=0:K===wp&&(Q=2)}for(const V of U)V(C,Q,K)}},!1,500,T);return A.referenceCount=0,l.set(y,A),A}}function s9e(e){const t=[];let r=0,i;return o;function o(u,p){const h={fileName:u,callback:p,mtime:gA(e,u)};return t.push(h),l(),{close:()=>{h.isClosed=!0,_A(t,h)}}}function s(){i=void 0,r=JEe(e,t,r,Y6[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function KEe(e,t,r,i,o){const l=Mu(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((p,h,m)=>{var y;return(y=e.get(l))==null?void 0:y.callbacks.slice().forEach(T=>T(p,h,m))}),callbacks:[i]}),{close:()=>{const p=e.get(l);p&&(!wx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Cf(p)))}}}function l9e(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,lV(r,i),t),!0):!1}function lV(e,t){return e===0?0:t===0?2:1}function B2(e){return xne(e)}function Tne(e){xne=e}function c9e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){const p=new Map,h=$p(),m=new Map;let y;const T=Lx(!t),A=Mu(t);return(G,ne,he,ye)=>he?R(G,ye,ne):e(G,ne,he,ye);function R(G,ne,he){const ye=A(G);let Y=p.get(ye);Y?Y.refCount++:(Y={watcher:e(G,oe=>{V(oe,ne)||(ne!=null&&ne.synchronousWatchDirectory?(M(ye,oe),Q(G,ye,ne)):C(G,ye,oe,ne))},!1,ne),refCount:1,childWatches:et},p.set(ye,Y),Q(G,ye,ne));const X=he&&{dirName:G,callback:he};return X&&h.add(ye,X),{dirName:G,close:()=>{const oe=N.checkDefined(p.get(ye));X&&h.remove(ye,X),oe.refCount--,!oe.refCount&&(p.delete(ye),Cf(oe),oe.childWatches.forEach(Xm))}}}function M(G,ne,he){let ye,Y;Mo(ne)?ye=ne:Y=ne,h.forEach((X,oe)=>{if(!(Y&&Y.get(oe)===!0)&&(oe===G||uo(G,oe)&&G[oe.length]===ol))if(Y)if(he){const pe=Y.get(oe);pe?pe.push(...he):Y.set(oe,he.slice())}else Y.set(oe,!0);else X.forEach(({callback:pe})=>pe(ye))})}function C(G,ne,he,ye){const Y=p.get(ne);if(Y&&o(G,1)){O(G,ne,he,ye);return}M(ne,he),K(Y)}function O(G,ne,he,ye){const Y=m.get(ne);Y?Y.fileNames.push(he):m.set(ne,{dirName:G,options:ye,fileNames:[he]}),y&&(u(y),y=void 0),y=l(U,1e3,"timerToUpdateChildWatches")}function U(){y=void 0,B2(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);const G=Xs(),ne=new Map;for(;!y&&m.size;){const ye=m.entries().next();N.assert(!ye.done);const{value:[Y,{dirName:X,options:oe,fileNames:pe}]}=ye;m.delete(Y);const Ce=Q(X,Y,oe);M(Y,ne,Ce?void 0:pe)}B2(`sysLog:: invokingWatchers:: Elapsed:: ${Xs()-G}ms:: ${m.size}`),h.forEach((ye,Y)=>{const X=ne.get(Y);X&&ye.forEach(({callback:oe,dirName:pe})=>{To(X)?X.forEach(oe):oe(pe)})});const he=Xs()-G;B2(`sysLog:: Elapsed:: ${he}ms:: onTimerToUpdateChildWatches:: ${m.size} ${y}`)}function K(G){if(!G)return;const ne=G.childWatches;G.childWatches=et;for(const he of ne)he.close(),K(p.get(A(he.dirName)))}function Q(G,ne,he){const ye=p.get(ne);if(!ye)return!1;let Y;const X=N6(o(G,1)?eo(i(G),Ce=>{const de=go(Ce,G);return!V(de,he)&&T(de,ha(s(de)))===0?de:void 0}):et,ye.childWatches,(Ce,de)=>T(Ce,de.dirName),oe,Xm,pe);return ye.childWatches=Y||et,X;function oe(Ce){const de=R(Ce,he);pe(de)}function pe(Ce){(Y||(Y=[])).push(Ce)}}function V(G,ne){return bt(V2,he=>se(G,he))||XEe(G,ne,t,r)}function se(G,ne){return G.includes(ne)?!0:t?!1:A(G).includes(ne)}}function u9e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function d9e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||wp),t(e,s!==wp?0:2,s)):t(e,1,s)}}function XEe(e,t,r,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(mF(e,t==null?void 0:t.excludeFiles,r,i())||mF(e,t==null?void 0:t.excludeDirectories,r,i()))}function YEe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){const u=l?ha($r(e,l)):e;(!l||!XEe(u,r,i,o))&&t(u)}}}function Ane({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:h,realpath:m,tscWatchFile:y,useNonPollingWatchers:T,tscWatchDirectory:A,inodeWatching:R,fsWatchWithTimestamp:M,sysLog:C}){const O=new Map,U=new Map,K=new Map;let Q,V,se,G,ne=!1;return{watchFile:he,watchDirectory:pe};function he(Ee,De,Me,We){We=X(We,T);const At=N.checkDefined(We.watchFile);switch(At){case 0:return ie(Ee,De,250,void 0);case 1:return ie(Ee,De,Me,void 0);case 2:return ye()(Ee,De,Me,void 0);case 3:return Y()(Ee,De,void 0,void 0);case 4:return ve(Ee,0,d9e(Ee,De,t),!1,Me,Ow(We));case 5:return se||(se=a9e(ve,l,t,M)),se(Ee,De,Me,Ow(We));default:N.assertNever(At)}}function ye(){return Q||(Q=o9e({getModifiedTime:t,setTimeout:r}))}function Y(){return V||(V=s9e({getModifiedTime:t,setTimeout:r}))}function X(Ee,De){if(Ee&&Ee.watchFile!==void 0)return Ee;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return oe(4,1,Ee);case"UseFsEventsWithFallbackDynamicPolling":return oe(4,2,Ee);case"UseFsEventsOnParentDirectory":De=!0;default:return De?oe(5,1,Ee):{watchFile:4}}}function oe(Ee,De,Me){const We=Me==null?void 0:Me.fallbackPolling;return{watchFile:Ee,fallbackPolling:We===void 0?De:We}}function pe(Ee,De,Me,We){return p?ve(Ee,1,YEe(Ee,De,We,l,u),Me,500,Ow(We)):(G||(G=c9e({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:Ce,realpath:m,setTimeout:r,clearTimeout:i})),G(Ee,De,Me,We))}function Ce(Ee,De,Me,We){N.assert(!Me);const At=de(We),Se=N.checkDefined(At.watchDirectory);switch(Se){case 1:return ie(Ee,()=>De(Ee),500,void 0);case 2:return ye()(Ee,()=>De(Ee),500,void 0);case 3:return Y()(Ee,()=>De(Ee),void 0,void 0);case 0:return ve(Ee,1,YEe(Ee,De,We,l,u),Me,500,Ow(At));default:N.assertNever(Se)}}function de(Ee){if(Ee&&Ee.watchDirectory!==void 0)return Ee;switch(A){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const De=Ee==null?void 0:Ee.fallbackPolling;return{watchDirectory:0,fallbackPolling:De!==void 0?De:void 0}}}function ie(Ee,De,Me,We){return KEe(O,l,Ee,De,At=>e(Ee,At,Me,We))}function ve(Ee,De,Me,We,At,Se){return KEe(We?K:U,l,Ee,Me,je=>Le(Ee,De,je,We,At,Se))}function Le(Ee,De,Me,We,At,Se){let je,ot;R&&(je=Ee.substring(Ee.lastIndexOf(ol)),ot=je.slice(ol.length));let Bt=s(Ee,De)?$e():rn();return{close:()=>{Bt&&(Bt.close(),Bt=void 0)}};function vt(Mn){Bt&&(C(`sysLog:: ${Ee}:: Changing watcher to ${Mn===$e?"Present":"Missing"}FileSystemEntryWatcher`),Bt.close(),Bt=Mn())}function $e(){if(ne)return C(`sysLog:: ${Ee}:: Defaulting to watchFile`),tn();try{const Mn=(De===1||!M?o:Ue)(Ee,We,R?It:Me);return Mn.on("error",()=>{Me("rename",""),vt(rn)}),Mn}catch(Mn){return ne||(ne=Mn.code==="ENOSPC"),C(`sysLog:: ${Ee}:: Changing to watchFile`),tn()}}function It(Mn,$n){let gn;if($n&&Al($n,"~")&&(gn=$n,$n=$n.slice(0,$n.length-1)),Mn==="rename"&&(!$n||$n===ot||Al($n,je))){const Qt=t(Ee)||wp;gn&&Me(Mn,gn,Qt),Me(Mn,$n,Qt),R?vt(Qt===wp?rn:$e):Qt===wp&&vt(rn)}else gn&&Me(Mn,gn),Me(Mn,$n)}function tn(){return he(Ee,u9e(Me),At,Se)}function rn(){return he(Ee,(Mn,$n,gn)=>{$n===0&&(gn||(gn=t(Ee)||wp),gn!==wp&&(Me("rename","",gn),vt($e)))},At,Se)}}function Ue(Ee,De,Me){let We=t(Ee)||wp;return o(Ee,De,(At,Se,je)=>{At==="change"&&(je||(je=t(Ee)||wp),je.getTime()===We.getTime())||(We=je||t(Ee)||wp,Me(At,Se,We))})}}function Ine(e){const t=e.writeFile;e.writeFile=(r,i,o)=>Hj(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}function $Ee(e){gu=e}var cV,K6,wp,X6,Y6,G2,V2,xne,uV,gu,p9e=I({"src/compiler/sys.ts"(){ra(),cV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(cV||{}),K6=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(K6||{}),wp=new Date(0),X6={Low:32,Medium:64,High:256},Y6=Sne(X6),G2=Sne(X6),V2=["/node_modules/.","/.git","/.#"],xne=Ya,uV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(uV||{}),gu=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=yE("fs"),s=yE("path"),l=yE("os");let u;try{u=yE("crypto")}catch{u=void 0}let p,h="./profile.cpuprofile";const m=yE("buffer").Buffer,y=process.platform==="darwin",T=process.platform==="linux"||y,A=l.platform(),R=Y(),M=o.realpathSync.native?process.platform==="win32"?We:o.realpathSync.native:o.realpathSync,C=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,O=process.platform==="win32"||y,U=Sd(()=>process.cwd()),{watchFile:K,watchDirectory:Q}=Ane({pollingWatchFileWorker:oe,getModifiedTime:Se,setTimeout,clearTimeout,fsWatchWorker:pe,useCaseSensitiveFileNames:R,getCurrentDirectory:U,fileSystemEntryExists:Ue,fsSupportsRecursiveFsWatch:O,getAccessibleSortedChildDirectories:vt=>ve(vt).directories,realpath:At,tscWatchFile:jN.TSC_WATCHFILE,useNonPollingWatchers:!!jN.TSC_NONPOLLING_WATCHER,tscWatchDirectory:jN.TSC_WATCHDIRECTORY,inodeWatching:T,fsWatchWithTimestamp:y,sysLog:B2}),V={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:R,write(vt){process.stdout.write(vt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:de,writeFile:ie,watchFile:K,watchDirectory:Q,resolvePath:vt=>s.resolve(vt),fileExists:Ee,directoryExists:De,getAccessibleFileSystemEntries:ve,createDirectory(vt){if(!V.directoryExists(vt))try{o.mkdirSync(vt)}catch($e){if($e.code!=="EEXIST")throw $e}},getExecutingFilePath(){return C},getCurrentDirectory:U,getDirectories:Me,getEnvironmentVariable(vt){return jN[vt]||""},readDirectory:Le,getModifiedTime:Se,setModifiedTime:je,deleteFile:ot,createHash:u?Bt:QN,createSHA256Hash:u?Bt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(vt){try{const $e=se(vt);if($e!=null&&$e.isFile())return $e.size}catch{}return 0},exit(vt){he(()=>process.exit(vt))},enableCPUProfiler:G,disableCPUProfiler:he,cpuProfilingEnabled:()=>!!p||Or(process.execArgv,"--cpu-prof")||Or(process.execArgv,"--prof"),realpath:At,debugMode:!!jN.NODE_INSPECTOR_IPC||!!jN.VSCODE_INSPECTOR_OPTIONS||bt(process.execArgv,vt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(vt))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{yE("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var vt;const $e=(vt=process.stdout)==null?void 0:vt._handle;$e&&$e.setBlocking&&$e.setBlocking(!0)},bufferFrom:ye,base64decode:vt=>ye(vt,"base64").toString("utf8"),base64encode:vt=>ye(vt).toString("base64"),require:(vt,$e)=>{try{const It=bse($e,vt,V);return{module:yE(It),modulePath:It,error:void 0}}catch(It){return{module:void 0,modulePath:void 0,error:It}}}};return V;function se(vt){return o.statSync(vt,{throwIfNoEntry:!1})}function G(vt,$e){if(p)return $e(),!1;const It=yE("inspector");if(!It||!It.Session)return $e(),!1;const tn=new It.Session;return tn.connect(),tn.post("Profiler.enable",()=>{tn.post("Profiler.start",()=>{p=tn,h=vt,$e()})}),!0}function ne(vt){let $e=0;const It=new Map,tn=Lu(s.dirname(C)),rn=`file://${uh(tn)===1?"":"/"}${tn}`;for(const Mn of vt.nodes)if(Mn.callFrame.url){const $n=Lu(Mn.callFrame.url);gm(rn,$n,R)?Mn.callFrame.url=yA(rn,$n,rn,Mu(R),!0):i.test($n)||(Mn.callFrame.url=(It.has($n)?It:It.set($n,`external${$e}.js`)).get($n),$e++)}return vt}function he(vt){if(p&&p!=="stopping"){const $e=p;return p.post("Profiler.stop",(It,{profile:tn})=>{var rn;if(!It){try{(rn=se(h))!=null&&rn.isDirectory()&&(h=s.join(h,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(h),{recursive:!0})}catch{}o.writeFileSync(h,JSON.stringify(ne(tn)))}p=void 0,$e.disconnect(),vt()}),p="stopping",!0}else return vt(),!1}function ye(vt,$e){return m.from&&m.from!==Int8Array.from?m.from(vt,$e):new m(vt,$e)}function Y(){return A==="win32"||A==="win64"?!1:!Ee(X(__filename))}function X(vt){return vt.replace(/\w/g,$e=>{const It=$e.toUpperCase();return $e===It?$e.toLowerCase():It})}function oe(vt,$e,It){o.watchFile(vt,{persistent:!0,interval:It},rn);let tn;return{close:()=>o.unwatchFile(vt,rn)};function rn(Mn,$n){const gn=+$n.mtime==0||tn===2;if(+Mn.mtime==0){if(gn)return;tn=2}else if(gn)tn=0;else{if(+Mn.mtime==+$n.mtime)return;tn=1}$e(vt,tn,Mn.mtime)}}function pe(vt,$e,It){return o.watch(vt,O?{persistent:!0,recursive:!!$e}:{persistent:!0},It)}function Ce(vt,$e){let It;try{It=o.readFileSync(vt)}catch{return}let tn=It.length;if(tn>=2&&It[0]===254&&It[1]===255){tn&=-2;for(let rn=0;rn<tn;rn+=2){const Mn=It[rn];It[rn]=It[rn+1],It[rn+1]=Mn}return It.toString("utf16le",2)}return tn>=2&&It[0]===255&&It[1]===254?It.toString("utf16le",2):tn>=3&&It[0]===239&&It[1]===187&&It[2]===191?It.toString("utf8",3):It.toString("utf8")}function de(vt,$e){var It,tn;(It=id)==null||It.logStartReadFile(vt);const rn=Ce(vt);return(tn=id)==null||tn.logStopReadFile(),rn}function ie(vt,$e,It){var tn;(tn=id)==null||tn.logEvent("WriteFile: "+vt),It&&($e=e+$e);let rn;try{rn=o.openSync(vt,"w"),o.writeSync(rn,$e,void 0,"utf8")}finally{rn!==void 0&&o.closeSync(rn)}}function ve(vt){var $e;($e=id)==null||$e.logEvent("ReadDir: "+(vt||"."));try{const It=o.readdirSync(vt||".",{withFileTypes:!0}),tn=[],rn=[];for(const Mn of It){const $n=typeof Mn=="string"?Mn:Mn.name;if($n==="."||$n==="..")continue;let gn;if(typeof Mn=="string"||Mn.isSymbolicLink()){const Qt=$r(vt,$n);try{if(gn=se(Qt),!gn)continue}catch{continue}}else gn=Mn;gn.isFile()?tn.push($n):gn.isDirectory()&&rn.push($n)}return tn.sort(),rn.sort(),{files:tn,directories:rn}}catch{return iW}}function Le(vt,$e,It,tn,rn){return mU(vt,$e,It,tn,R,process.cwd(),rn,ve,At)}function Ue(vt,$e){const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const tn=se(vt);if(!tn)return!1;switch($e){case 0:return tn.isFile();case 1:return tn.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=It}}function Ee(vt){return Ue(vt,0)}function De(vt){return Ue(vt,1)}function Me(vt){return ve(vt).directories.slice()}function We(vt){return vt.length<260?o.realpathSync.native(vt):o.realpathSync(vt)}function At(vt){try{return M(vt)}catch{return vt}}function Se(vt){var $e;const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return($e=se(vt))==null?void 0:$e.mtime}catch{return}finally{Error.stackTraceLimit=It}}function je(vt,$e){try{o.utimesSync(vt,$e,$e)}catch{return}}function ot(vt){try{return o.unlinkSync(vt)}catch{return}}function Bt(vt){const $e=u.createHash("sha256");return $e.update(vt),$e.digest("hex")}}let r;return eG()&&(r=t()),r&&Ine(r),r})(),gu&&gu.getEnvironmentVariable&&(i9e(gu),N.setAssertionLevel(/^development$/i.test(gu.getEnvironmentVariable("NODE_ENV"))?1:0)),gu&&gu.debugMode&&(N.isDebugging=!0)}});function dV(e){return e===47||e===92}function Rne(e){return $6(e)<0}function dp(e){return $6(e)>0}function pV(e){const t=$6(e);return t>0&&t===e.length}function ZN(e){return $6(e)!==0}function Op(e){return/^\.\.?($|[\\/])/.test(e)}function fV(e){return!ZN(e)&&!Op(e)}function vA(e){return ic(e).includes(".")}function Il(e,t){return e.length>t.length&&Al(e,t)}function Sc(e,t){for(const r of t)if(Il(e,r))return!0;return!1}function Dv(e){return e.length>0&&dV(e.charCodeAt(e.length-1))}function QEe(e){return e>=97&&e<=122||e>=65&&e<=90}function f9e(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 $6(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?ol:q2,2);return i<0?e.length:i+1}if(QEe(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(Cne);if(r!==-1){const i=r+Cne.length,o=e.indexOf(ol,i);if(o!==-1){const s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&QEe(e.charCodeAt(o+1))){const u=f9e(e,o+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(o+1)}return~e.length}return 0}function uh(e){const t=$6(e);return t<0?~t:t}function ai(e){e=Lu(e);const t=uh(e);return t===e.length?e:(e=Qb(e),e.slice(0,Math.max(t,e.lastIndexOf(ol))))}function ic(e,t,r){if(e=Lu(e),uh(e)===e.length)return"";e=Qb(e);const o=e.slice(Math.max(uh(e),e.lastIndexOf(ol)+1)),s=t!==void 0&&r!==void 0?Gx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function ZEe(e,t,r){if(uo(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 m9e(e,t,r){if(typeof t=="string")return ZEe(e,t,r)||"";for(const i of t){const o=ZEe(e,i,r);if(o)return o}return""}function Gx(e,t,r){if(t)return m9e(Qb(e),t,r?$b:oS);const i=ic(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function _9e(e,t){const r=e.substring(0,t),i=e.substring(t).split(ol);return i.length&&!el(i)&&i.pop(),[r,...i]}function Wc(e,t=""){return e=$r(t,e),_9e(e,uh(e))}function Ay(e,t){return e.length===0?"":(e[0]&&Fc(e[0]))+e.slice(1,t).join(ol)}function Lu(e){return e.includes("\\")?e.replace(n1e,ol):e}function cS(e){if(!bt(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 $r(e,...t){e&&(e=Lu(e));for(let r of t)r&&(r=Lu(r),!e||uh(r)!==0?e=r:e=Fc(e)+r);return e}function Iy(e,...t){return ha(bt(t)?$r(e,...t):Lu(e))}function j2(e,t){return cS(Wc(e,t))}function go(e,t){return Ay(j2(e,t))}function ha(e){if(e=Lu(e),!Z6.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Z6.test(e)))return e;const r=Ay(cS(Wc(e)));return r&&Dv(e)?Fc(r):r}function h9e(e){return e.length===0?"":e.slice(1).join(ol)}function mV(e,t){return h9e(j2(e,t))}function il(e,t,r){const i=dp(e)?ha(e):go(e,t);return r(i)}function Qb(e){return Dv(e)?e.substr(0,e.length-1):e}function Fc(e){return Dv(e)?e:e+ol}function AE(e){return!ZN(e)&&!Op(e)?"./"+e:e}function U2(e,t,r,i){const o=r!==void 0&&i!==void 0?Gx(e,r,i):Gx(e);return o?e.slice(0,e.length-o.length)+(uo(t,".")?t:"."+t):e}function Dne(e,t){const r=wH(e);return r?e.slice(0,e.length-r.length)+(uo(t,".")?t:"."+t):U2(e,t)}function Nne(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,uh(e)),o=t.substring(0,uh(t)),s=I6(i,o);if(s!==0)return s;const l=e.substring(i.length),u=t.substring(o.length);if(!Z6.test(l)&&!Z6.test(u))return r(l,u);const p=cS(Wc(e)),h=cS(Wc(t)),m=Math.min(p.length,h.length);for(let y=1;y<m;y++){const T=r(p[y],h[y]);if(T!==0)return T}return nl(p.length,h.length)}function e1e(e,t){return Nne(e,t,Uu)}function t1e(e,t){return Nne(e,t,I6)}function Dg(e,t,r,i){return typeof r=="string"?(e=$r(r,e),t=$r(r,t)):typeof r=="boolean"&&(i=r),Nne(e,t,Lx(i))}function gm(e,t,r,i){if(typeof r=="string"?(e=$r(r,e),t=$r(r,t)):typeof r=="boolean"&&(i=r),e===void 0||t===void 0)return!1;if(e===t)return!0;const o=cS(Wc(e)),s=cS(Wc(t));if(s.length<o.length)return!1;const l=i?$b:oS;for(let u=0;u<o.length;u++)if(!(u===0?$b:l)(o[u],s[u]))return!1;return!0}function _V(e,t,r){const i=r(e),o=r(t);return uo(i,o+"/")||uo(i,o+"\\")}function hV(e,t,r,i){const o=cS(Wc(e)),s=cS(Wc(t));let l;for(l=0;l<o.length&&l<s.length;l++){const h=i(o[l]),m=i(s[l]);if(!(l===0?$b:r)(h,m))break}if(l===0)return s;const u=s.slice(l),p=[];for(;l<o.length;l++)p.push("..");return["",...p,...u]}function vm(e,t,r){N.assert(uh(e)>0==uh(t)>0,"Paths must either both be absolute or both be relative");const s=hV(e,t,(typeof r=="boolean"?r:!1)?$b:oS,typeof r=="function"?r:tl);return Ay(s)}function eC(e,t,r){return dp(e)?yA(t,e,t,r,!1):e}function H2(e,t,r){return AE(vm(ai(e),t,r))}function yA(e,t,r,i,o){const s=hV(Iy(r,e),Iy(r,t),oS,i),l=s[0];if(o&&dp(l)){const u=l.charAt(0)===ol?"file://":"file:///";s[0]=u+l}return Ay(s)}function ym(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=ai(e);if(i===e)return;e=i}}function Q6(e){return Al(e,"/node_modules")}var ol,q2,Cne,n1e,Z6,g9e=I({"src/compiler/path.ts"(){ra(),ol="/",q2="\\",Cne="://",n1e=/\\/g,Z6=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function S(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var f,v9e=I({"src/compiler/diagnosticInformationMap.generated.ts"(){HEe(),f={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}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:S(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise<T> type."),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."),_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."),Private_field_0_must_be_declared_in_an_enclosing_class:S(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: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_Use_the_syntax_0:S(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty: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."),_0_declarations_must_be_initialized:S(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:S(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' 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."),Abstract_properties_can_only_appear_within_an_abstract_class:S(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference: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."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:S(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:S(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block: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'."),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_nodenext_or_preserve_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', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: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_nodenext_or_preserve_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', 'nodenext', or 'preserve', 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_set_of_attributes_as_arguments:S(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression: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_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"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:S(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:S(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output: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."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:S(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:S(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:S(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:S(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:S(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:S(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:S(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:S(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:S(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:S(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types: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}'."),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_undefined_void_nor_any_must_return_a_value:S(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type: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_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:S(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: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."),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."),React_components_cannot_include_JSX_namespace_names:S(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: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_nodenext_or_preserve:S(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports: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."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:S(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1: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_compile_to_CommonJS_require_calls:S(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions: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_It_can_only_extend_other_named_object_types:S(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation: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?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:S(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:S(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:S(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:S(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:S(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:S(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:S(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:S(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:S(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:S(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:S(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:S(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:S(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:S(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:S(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:S(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:S(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:S(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:S(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:S(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1: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'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:S(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:S(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option: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_cannot_be_specified_when_module_is_set_to_none_system_or_umd:S(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0: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}'."),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_preserve_or_to_es2015_or_later:S(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set: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."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:S(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:S(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file: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."),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."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:S(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages: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_0:S(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),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."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:S(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:S(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve: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.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:S(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:S(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation: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."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:S(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:S(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: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."),Signature_declarations_can_only_be_used_in_TypeScript_files:S(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files: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'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:S(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit: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}'?"),Unicode_escape_sequence_cannot_appear_here:S(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),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."),JSDoc_typedef_may_be_converted_to_TypeScript_type:S(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:S(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),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_concatenations_and_string_literals:S(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements: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."),Convert_typedef_to_TypeScript_type:S(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:S(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:S(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:S(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:S(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:S(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:S(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:S(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:S(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:S(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:S(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:S(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:S(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:S(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:S(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:S(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:S(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:S(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: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."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:S(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:S(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:S(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function od(e){return e>=80}function Pne(e){return e===32||od(e)}function J2(e,t){if(e<t[0])return!1;let r=0,i=t.length,o;for(;r+1<i;){if(o=r+(i-r)/2,o-=o%2,t[o]<=e&&e<=t[o+1])return!0;e<t[o]?i=o:r=o+2}return!1}function e4(e,t){return t>=2?J2(e,u1e):t===1?J2(e,l1e):J2(e,a1e)}function y9e(e,t){return t>=2?J2(e,d1e):t===1?J2(e,c1e):J2(e,s1e)}function b9e(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function pa(e){return _1e[e]}function IE(e){return wne.get(e)}function bA(e){const t=[];let r=0,i=0;for(;r<e.length;){const o=e.charCodeAt(r);switch(r++,o){case 13:e.charCodeAt(r)===10&&r++;case 10:t.push(i),i=r;break;default:o>127&&Hu(o)&&(t.push(i),i=r);break}}return t.push(i),t}function K2(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):t4(Ng(e),t,r,e.text,i)}function t4(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:N.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Ba(e,bA(i)):"unknown"}`));const s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t<e.length-1?N.assert(s<e[t+1]):i!==void 0&&N.assert(s<=i.length),s)}function Ng(e){return e.lineMap||(e.lineMap=bA(e.text))}function Vx(e,t){const r=tC(e,t);return{line:r,character:t-e[r]}}function tC(e,t,r){let i=Tv(e,t,tl,nl,r);return i<0&&(i=~i-1,N.assert(i!==-1,"position cannot precede the beginning of the file")),i}function nC(e,t,r){if(t===r)return 0;const i=Ng(e),o=Math.min(t,r),s=o===r,l=s?t:r,u=tC(i,o),p=tC(i,l,u);return s?u-p:p-u}function ys(e,t){return Vx(Ng(e),t)}function Cg(e){return E_(e)||Hu(e)}function E_(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 Hu(e){return e===10||e===13||e===8232||e===8233}function rC(e){return e>=48&&e<=57}function r1e(e){return rC(e)||e>=65&&e<=70||e>=97&&e<=102}function E9e(e){return e<=1114111}function n4(e){return e>=48&&e<=55}function Mne(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 Pa(e,t,r,i,o){if(Ym(t))return t;let s=!1;for(;;){const l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!Hu(e.charCodeAt(t));)t++;s=!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++}s=!1;continue}break;case 60:case 124:case 61:case 62:if(iC(e,t)){t=X2(e,t),s=!1;continue}break;case 35:if(t===0&&gV(e,t)){t=vV(e,t),s=!1;continue}break;case 42:if(s){t++,s=!1;continue}break;default:if(l>127&&Cg(l)){t++;continue}break}return t}}function iC(e,t){if(N.assert(t>=0),t===0||Hu(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+i4<e.length){for(let i=0;i<i4;i++)if(e.charCodeAt(t+i)!==r)return!1;return r===61||e.charCodeAt(t+i4)===32}}return!1}function X2(e,t,r){r&&r(f.Merge_conflict_marker_encountered,t,i4);const i=e.charCodeAt(t),o=e.length;if(i===60||i===62)for(;t<o&&!Hu(e.charCodeAt(t));)t++;else for(N.assert(i===124||i===61);t<o;){const s=e.charCodeAt(t);if((s===61||s===62)&&s!==i&&iC(e,t))break;t++}return t}function gV(e,t){return N.assert(t===0),bV.test(e)}function vV(e,t){const r=bV.exec(e)[0];return t=t+r.length,t}function yV(e,t,r,i,o,s,l){let u,p,h,m,y=!1,T=i,A=l;if(r===0){T=!0;const R=r4(t);R&&(r=R.length)}e:for(;r>=0&&r<t.length;){const R=t.charCodeAt(r);switch(R){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)break e;T=!0,y&&(m=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:const M=t.charCodeAt(r+1);let C=!1;if(M===47||M===42){const O=M===47?2:3,U=r;if(r+=2,M===47)for(;r<t.length;){if(Hu(t.charCodeAt(r))){C=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(T){if(y&&(A=o(u,p,h,m,s,A),!e&&A))return A;u=U,p=r,h=O,m=C,y=!0}continue}break e;default:if(R>127&&Cg(R)){y&&Hu(R)&&(m=!0),r++;continue}break e}}return y&&(A=o(u,p,h,m,s,A)),A}function Y2(e,t,r,i){return yV(!1,e,t,!1,r,i)}function $2(e,t,r,i){return yV(!1,e,t,!0,r,i)}function Lne(e,t,r,i,o){return yV(!0,e,t,!1,r,i,o)}function kne(e,t,r,i,o){return yV(!0,e,t,!0,r,i,o)}function i1e(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function qh(e,t){return Lne(e,t,i1e,void 0,void 0)}function Zb(e,t){return kne(e,t,i1e,void 0,void 0)}function r4(e){const t=bV.exec(e);if(t)return t[0]}function Jh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&e4(e,t)}function e0(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&&y9e(e,t)}function Zp(e,t,r){let i=xy(e,0);if(!Jh(i,t))return!1;for(let o=t0(i);o<e.length;o+=t0(i))if(!e0(i=xy(e,o),t,r))return!1;return!0}function Nv(e,t,r=0,i,o,s,l){var u=i,p,h,m,y,T,A,R,M,C=0,O=0,U=0;zt(u,s,l);var K={getTokenFullStart:()=>m,getStartPos:()=>m,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>T,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>u.substring(y,p),getTokenValue:()=>A,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,isIdentifier:()=>T===80||T>118,isReservedWord:()=>T>=83&&T<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>M,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:Se,reScanAsteriskEqualsToken:je,reScanSlashToken:ot,reScanTemplateToken:$e,reScanTemplateHeadOrNoSubstitutionTemplate:It,scanJsxIdentifier:Qt,scanJsxAttributeValue:Yt,reScanJsxAttributeValue:vi,reScanJsxToken:tn,reScanLessThanToken:rn,reScanHashToken:Mn,reScanQuestionToken:$n,reScanInvalidIdentifier:We,scanJsxToken:gn,scanJsDocToken:Wi,scanJSDocCommentTextToken:so,scan:De,getText:sn,clearCommentDirectives:tt,setText:zt,setScriptTarget:ci,setLanguageVariant:yi,setScriptKind:Qi,setJSDocParsingMode:Io,setOnError:Dn,resetTokenState:fa,setTextPos:fa,setInJSDocType:ka,tryScan:Ar,lookAhead:Ci,scanRange:Ln};return N.isDebugging&&Object.defineProperty(K,"__debugShowCurrentPositionInText",{get:()=>{const Tn=K.getText();return Tn.slice(0,K.getTokenFullStart())+"║"+Tn.slice(K.getTokenFullStart())}}),K;function Q(Tn,wn=p,He,mt){if(o){const ft=p;p=wn,o(Tn,He||0,mt),p=ft}}function V(){let Tn=p,wn=!1,He=!1,mt="";for(;;){const ft=u.charCodeAt(p);if(ft===95){R|=512,wn?(wn=!1,He=!0,mt+=u.substring(Tn,p)):(R|=16384,Q(He?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1)),p++,Tn=p;continue}if(rC(ft)){wn=!0,He=!1,p++;continue}break}return u.charCodeAt(p-1)===95&&(R|=16384,Q(f.Numeric_separators_are_not_allowed_here,p-1,1)),mt+u.substring(Tn,p)}function se(){let Tn=p,wn;if(u.charCodeAt(p)===48)if(p++,u.charCodeAt(p)===95)R|=16896,Q(f.Numeric_separators_are_not_allowed_here,p,1),p--,wn=V();else if(!ne())R|=8192,wn=""+ +A;else if(!A)wn="0";else{A=""+parseInt(A,8),R|=32;const le=T===41,Fe=(le?"-":"")+"0o"+(+A).toString(8);return le&&Tn--,Q(f.Octal_literals_are_not_allowed_Use_the_syntax_0,Tn,p-Tn,Fe),9}else wn=V();let He,mt;u.charCodeAt(p)===46&&(p++,He=V());let ft=p;if(u.charCodeAt(p)===69||u.charCodeAt(p)===101){p++,R|=16,(u.charCodeAt(p)===43||u.charCodeAt(p)===45)&&p++;const le=p,Fe=V();Fe?(mt=u.substring(ft,le)+Fe,ft=p):Q(f.Digit_expected)}let Ct;if(R&512?(Ct=wn,He&&(Ct+="."+He),mt&&(Ct+=mt)):Ct=u.substring(Tn,ft),R&8192)return Q(f.Decimals_with_leading_zeros_are_not_allowed,Tn,ft-Tn),A=""+ +Ct,9;if(He!==void 0||R&16)return G(Tn,He===void 0&&!!(R&16)),A=""+ +Ct,9;{A=Ct;const le=Ee();return G(Tn),le}}function G(Tn,wn){if(!Jh(xy(u,p),e))return;const He=p,{length:mt}=ve();mt===1&&u[He]==="n"?Q(wn?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,Tn,He-Tn+1):(Q(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,He,mt),p=He)}function ne(){const Tn=p;let wn=!0;for(;rC(u.charCodeAt(p));)n4(u.charCodeAt(p))||(wn=!1),p++;return A=u.substring(Tn,p),wn}function he(Tn,wn){const He=Y(Tn,!1,wn);return He?parseInt(He,16):-1}function ye(Tn,wn){return Y(Tn,!0,wn)}function Y(Tn,wn,He){let mt=[],ft=!1,Ct=!1;for(;mt.length<Tn||wn;){let le=u.charCodeAt(p);if(He&&le===95){R|=512,ft?(ft=!1,Ct=!0):Q(Ct?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(ft=He,le>=65&&le<=70)le+=32;else if(!(le>=48&&le<=57||le>=97&&le<=102))break;mt.push(le),p++,Ct=!1}return mt.length<Tn&&(mt=[]),u.charCodeAt(p-1)===95&&Q(f.Numeric_separators_are_not_allowed_here,p-1,1),String.fromCharCode(...mt)}function X(Tn=!1){const wn=u.charCodeAt(p);p++;let He="",mt=p;for(;;){if(p>=h){He+=u.substring(mt,p),R|=4,Q(f.Unterminated_string_literal);break}const ft=u.charCodeAt(p);if(ft===wn){He+=u.substring(mt,p),p++;break}if(ft===92&&!Tn){He+=u.substring(mt,p),He+=pe(!0),mt=p;continue}if((ft===10||ft===13)&&!Tn){He+=u.substring(mt,p),R|=4,Q(f.Unterminated_string_literal);break}p++}return He}function oe(Tn){const wn=u.charCodeAt(p)===96;p++;let He=p,mt="",ft;for(;;){if(p>=h){mt+=u.substring(He,p),R|=4,Q(f.Unterminated_template_literal),ft=wn?15:18;break}const Ct=u.charCodeAt(p);if(Ct===96){mt+=u.substring(He,p),p++,ft=wn?15:18;break}if(Ct===36&&p+1<h&&u.charCodeAt(p+1)===123){mt+=u.substring(He,p),p+=2,ft=wn?16:17;break}if(Ct===92){mt+=u.substring(He,p),mt+=pe(Tn),He=p;continue}if(Ct===13){mt+=u.substring(He,p),p++,p<h&&u.charCodeAt(p)===10&&p++,mt+=`
`,He=p;continue}p++}return N.assert(ft!==void 0),A=mt,ft}function pe(Tn){const wn=p;if(p++,p>=h)return Q(f.Unexpected_end_of_text),"";const He=u.charCodeAt(p);switch(p++,He){case 48:if(p>=h||!rC(u.charCodeAt(p)))return"\0";case 49:case 50:case 51:p<h&&n4(u.charCodeAt(p))&&p++;case 52:case 53:case 54:case 55:if(p<h&&n4(u.charCodeAt(p))&&p++,R|=2048,Tn){const mt=parseInt(u.substring(wn+1,p),8);return Q(f.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,wn,p-wn,"\\x"+mt.toString(16).padStart(2,"0")),String.fromCharCode(mt)}return u.substring(wn,p);case 56:case 57:return R|=2048,Tn?(Q(f.Escape_sequence_0_is_not_allowed,wn,p-wn,u.substring(wn,p)),String.fromCharCode(He)):u.substring(wn,p);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(p<h&&u.charCodeAt(p)===123){p++;const mt=ye(1,!1),ft=mt?parseInt(mt,16):-1;return ft<0?(R|=2048,Tn&&Q(f.Hexadecimal_digit_expected),u.substring(wn,p)):E9e(ft)?p>=h?(R|=2048,Tn&&Q(f.Unexpected_end_of_text),u.substring(wn,p)):u.charCodeAt(p)!==125?(R|=2048,Tn&&Q(f.Unterminated_Unicode_escape_sequence),u.substring(wn,p)):(p++,R|=8,jx(ft)):(R|=2048,Tn&&Q(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(wn,p))}for(;p<wn+6;p++)if(!(p<h&&r1e(u.charCodeAt(p))))return R|=2048,Tn&&Q(f.Hexadecimal_digit_expected),u.substring(wn,p);return R|=1024,String.fromCharCode(parseInt(u.substring(wn+2,p),16));case 120:for(;p<wn+4;p++)if(!(p<h&&r1e(u.charCodeAt(p))))return R|=2048,Tn&&Q(f.Hexadecimal_digit_expected),u.substring(wn,p);return R|=4096,String.fromCharCode(parseInt(u.substring(wn+2,p),16));case 13:p<h&&u.charCodeAt(p)===10&&p++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(He)}}function Ce(){const Tn=ye(1,!1),wn=Tn?parseInt(Tn,16):-1;let He=!1;return wn<0?(Q(f.Hexadecimal_digit_expected),He=!0):wn>1114111&&(Q(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),He=!0),p>=h?(Q(f.Unexpected_end_of_text),He=!0):u.charCodeAt(p)===125?p++:(Q(f.Unterminated_Unicode_escape_sequence),He=!0),He?"":jx(wn)}function de(){if(p+5<h&&u.charCodeAt(p+1)===117){const Tn=p;p+=2;const wn=he(4,!1);return p=Tn,wn}return-1}function ie(){if(xy(u,p+1)===117&&xy(u,p+2)===123){const Tn=p;p+=3;const wn=ye(1,!1),He=wn?parseInt(wn,16):-1;return p=Tn,He}return-1}function ve(){let Tn="",wn=p;for(;p<h;){let He=xy(u,p);if(e0(He,e))p+=t0(He);else if(He===92){if(He=ie(),He>=0&&e0(He,e)){p+=3,R|=8,Tn+=Ce(),wn=p;continue}if(He=de(),!(He>=0&&e0(He,e)))break;R|=1024,Tn+=u.substring(wn,p),Tn+=jx(He),p+=6,wn=p}else break}return Tn+=u.substring(wn,p),Tn}function Le(){const Tn=A.length;if(Tn>=2&&Tn<=12){const wn=A.charCodeAt(0);if(wn>=97&&wn<=122){const He=o1e.get(A);if(He!==void 0)return T=He}}return T=80}function Ue(Tn){let wn="",He=!1,mt=!1;for(;;){const ft=u.charCodeAt(p);if(ft===95){R|=512,He?(He=!1,mt=!0):Q(mt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(He=!0,!rC(ft)||ft-48>=Tn)break;wn+=u[p],p++,mt=!1}return u.charCodeAt(p-1)===95&&Q(f.Numeric_separators_are_not_allowed_here,p-1,1),wn}function Ee(){return u.charCodeAt(p)===110?(A+="n",R&384&&(A=$C(A)+"n"),p++,10):(A=""+(R&128?parseInt(A.slice(2),2):R&256?parseInt(A.slice(2),8):+A),9)}function De(){m=p,R=0;let Tn=!1;for(;;){if(y=p,p>=h)return T=1;const wn=xy(u,p);if(p===0){if(u.slice(0,256).includes("�"))return Q(f.File_appears_to_be_binary),p=h,T=8;if(wn===35&&gV(u,p)){if(p=vV(u,p),t)continue;return T=6}}switch(wn){case 10:case 13:if(R|=1,t){p++;continue}else return wn===13&&p+1<h&&u.charCodeAt(p+1)===10?p+=2:p++,T=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){p++;continue}else{for(;p<h&&E_(u.charCodeAt(p));)p++;return T=5}case 33:return u.charCodeAt(p+1)===61?u.charCodeAt(p+2)===61?(p+=3,T=38):(p+=2,T=36):(p++,T=54);case 34:case 39:return A=X(),T=11;case 96:return T=oe(!1);case 37:return u.charCodeAt(p+1)===61?(p+=2,T=70):(p++,T=45);case 38:return u.charCodeAt(p+1)===38?u.charCodeAt(p+2)===61?(p+=3,T=77):(p+=2,T=56):u.charCodeAt(p+1)===61?(p+=2,T=74):(p++,T=51);case 40:return p++,T=21;case 41:return p++,T=22;case 42:if(u.charCodeAt(p+1)===61)return p+=2,T=67;if(u.charCodeAt(p+1)===42)return u.charCodeAt(p+2)===61?(p+=3,T=68):(p+=2,T=43);if(p++,C&&!Tn&&R&1){Tn=!0;continue}return T=42;case 43:return u.charCodeAt(p+1)===43?(p+=2,T=46):u.charCodeAt(p+1)===61?(p+=2,T=65):(p++,T=40);case 44:return p++,T=28;case 45:return u.charCodeAt(p+1)===45?(p+=2,T=47):u.charCodeAt(p+1)===61?(p+=2,T=66):(p++,T=41);case 46:return rC(u.charCodeAt(p+1))?(se(),T=9):u.charCodeAt(p+1)===46&&u.charCodeAt(p+2)===46?(p+=3,T=26):(p++,T=25);case 47:if(u.charCodeAt(p+1)===47){for(p+=2;p<h&&!Hu(u.charCodeAt(p));)p++;if(M=Bt(M,u.slice(y,p),p1e,y),t)continue;return T=2}if(u.charCodeAt(p+1)===42){p+=2;const Fe=u.charCodeAt(p)===42&&u.charCodeAt(p+1)!==47;let pt=!1,j=y;for(;p<h;){const it=u.charCodeAt(p);if(it===42&&u.charCodeAt(p+1)===47){p+=2,pt=!0;break}p++,Hu(it)&&(j=p,R|=1)}if(Fe&&Me()&&(R|=2),M=Bt(M,u.slice(j,p),f1e,j),pt||Q(f.Asterisk_Slash_expected),t)continue;return pt||(R|=4),T=3}return u.charCodeAt(p+1)===61?(p+=2,T=69):(p++,T=44);case 48:if(p+2<h&&(u.charCodeAt(p+1)===88||u.charCodeAt(p+1)===120))return p+=2,A=ye(1,!0),A||(Q(f.Hexadecimal_digit_expected),A="0"),A="0x"+A,R|=64,T=Ee();if(p+2<h&&(u.charCodeAt(p+1)===66||u.charCodeAt(p+1)===98))return p+=2,A=Ue(2),A||(Q(f.Binary_digit_expected),A="0"),A="0b"+A,R|=128,T=Ee();if(p+2<h&&(u.charCodeAt(p+1)===79||u.charCodeAt(p+1)===111))return p+=2,A=Ue(8),A||(Q(f.Octal_digit_expected),A="0"),A="0o"+A,R|=256,T=Ee();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return T=se();case 58:return p++,T=59;case 59:return p++,T=27;case 60:if(iC(u,p)){if(p=X2(u,p,Q),t)continue;return T=7}return u.charCodeAt(p+1)===60?u.charCodeAt(p+2)===61?(p+=3,T=71):(p+=2,T=48):u.charCodeAt(p+1)===61?(p+=2,T=33):r===1&&u.charCodeAt(p+1)===47&&u.charCodeAt(p+2)!==42?(p+=2,T=31):(p++,T=30);case 61:if(iC(u,p)){if(p=X2(u,p,Q),t)continue;return T=7}return u.charCodeAt(p+1)===61?u.charCodeAt(p+2)===61?(p+=3,T=37):(p+=2,T=35):u.charCodeAt(p+1)===62?(p+=2,T=39):(p++,T=64);case 62:if(iC(u,p)){if(p=X2(u,p,Q),t)continue;return T=7}return p++,T=32;case 63:return u.charCodeAt(p+1)===46&&!rC(u.charCodeAt(p+2))?(p+=2,T=29):u.charCodeAt(p+1)===63?u.charCodeAt(p+2)===61?(p+=3,T=78):(p+=2,T=61):(p++,T=58);case 91:return p++,T=23;case 93:return p++,T=24;case 94:return u.charCodeAt(p+1)===61?(p+=2,T=79):(p++,T=53);case 123:return p++,T=19;case 124:if(iC(u,p)){if(p=X2(u,p,Q),t)continue;return T=7}return u.charCodeAt(p+1)===124?u.charCodeAt(p+2)===61?(p+=3,T=76):(p+=2,T=57):u.charCodeAt(p+1)===61?(p+=2,T=75):(p++,T=52);case 125:return p++,T=20;case 126:return p++,T=55;case 64:return p++,T=60;case 92:const He=ie();if(He>=0&&Jh(He,e))return p+=3,R|=8,A=Ce()+ve(),T=Le();const mt=de();return mt>=0&&Jh(mt,e)?(p+=6,R|=1024,A=String.fromCharCode(mt)+ve(),T=Le()):(Q(f.Invalid_character),p++,T=0);case 35:if(p!==0&&u[p+1]==="!")return Q(f.can_only_be_used_at_the_start_of_a_file),p++,T=0;const ft=xy(u,p+1);if(ft===92){p++;const Fe=ie();if(Fe>=0&&Jh(Fe,e))return p+=3,R|=8,A="#"+Ce()+ve(),T=81;const pt=de();if(pt>=0&&Jh(pt,e))return p+=6,R|=1024,A="#"+String.fromCharCode(pt)+ve(),T=81;p--}return Jh(ft,e)?(p++,At(ft,e)):(A="#",Q(f.Invalid_character,p++,t0(wn))),T=81;default:const Ct=At(wn,e);if(Ct)return T=Ct;if(E_(wn)){p+=t0(wn);continue}else if(Hu(wn)){R|=1,p+=t0(wn);continue}const le=t0(wn);return Q(f.Invalid_character,p,le),p+=le,T=0}}}function Me(){switch(U){case 0:return!0;case 1:return!1}return O!==3&&O!==4?!0:U===3?!1:m1e.test(u.slice(m,p))}function We(){N.assert(T===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=y=m,R=0;const Tn=xy(u,p),wn=At(Tn,99);return wn?T=wn:(p+=t0(Tn),T)}function At(Tn,wn){let He=Tn;if(Jh(He,wn)){for(p+=t0(He);p<h&&e0(He=xy(u,p),wn);)p+=t0(He);return A=u.substring(y,p),He===92&&(A+=ve()),Le()}}function Se(){if(T===32){if(u.charCodeAt(p)===62)return u.charCodeAt(p+1)===62?u.charCodeAt(p+2)===61?(p+=3,T=73):(p+=2,T=50):u.charCodeAt(p+1)===61?(p+=2,T=72):(p++,T=49);if(u.charCodeAt(p)===61)return p++,T=34}return T}function je(){return N.assert(T===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),p=y+1,T=64}function ot(){if(T===44||T===69){let Tn=y+1,wn=!1,He=!1;for(;;){if(Tn>=h){R|=4,Q(f.Unterminated_regular_expression_literal);break}const mt=u.charCodeAt(Tn);if(Hu(mt)){R|=4,Q(f.Unterminated_regular_expression_literal);break}if(wn)wn=!1;else if(mt===47&&!He){Tn++;break}else mt===91?He=!0:mt===92?wn=!0:mt===93&&(He=!1);Tn++}for(;Tn<h&&e0(u.charCodeAt(Tn),e);)Tn++;p=Tn,A=u.substring(y,p),T=14}return T}function Bt(Tn,wn,He,mt){const ft=vt(wn.trimStart(),He);return ft===void 0?Tn:Rn(Tn,{range:{pos:mt,end:p},type:ft})}function vt(Tn,wn){const He=wn.exec(Tn);if(He)switch(He[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function $e(Tn){return p=y,T=oe(!Tn)}function It(){return p=y,T=oe(!0)}function tn(Tn=!0){return p=y=m,T=gn(Tn)}function rn(){return T===48?(p=y+1,T=30):T}function Mn(){return T===81?(p=y+1,T=63):T}function $n(){return N.assert(T===61,"'reScanQuestionToken' should only be called on a '??'"),p=y+1,T=58}function gn(Tn=!0){if(m=y=p,p>=h)return T=1;let wn=u.charCodeAt(p);if(wn===60)return u.charCodeAt(p+1)===47?(p+=2,T=31):(p++,T=30);if(wn===123)return p++,T=19;let He=0;for(;p<h&&(wn=u.charCodeAt(p),wn!==123);){if(wn===60){if(iC(u,p))return p=X2(u,p,Q),T=7;break}if(wn===62&&Q(f.Unexpected_token_Did_you_mean_or_gt,p,1),wn===125&&Q(f.Unexpected_token_Did_you_mean_or_rbrace,p,1),Hu(wn)&&He===0)He=-1;else{if(!Tn&&Hu(wn)&&He>0)break;Cg(wn)||(He=p)}p++}return A=u.substring(m,p),He===-1?13:12}function Qt(){if(od(T)){for(;p<h;){if(u.charCodeAt(p)===45){A+="-",p++;continue}const wn=p;if(A+=ve(),p===wn)break}return Le()}return T}function Yt(){switch(m=p,u.charCodeAt(p)){case 34:case 39:return A=X(!0),T=11;default:return De()}}function vi(){return p=y=m,Yt()}function so(Tn){if(m=y=p,R=0,p>=h)return T=1;for(let wn=u.charCodeAt(p);p<h&&!Hu(wn)&&wn!==96;wn=xy(u,++p))if(!Tn){if(wn===123)break;if(wn===64&&p-1>=0&&E_(u.charCodeAt(p-1))&&!(p+1<h&&Cg(u.charCodeAt(p+1))))break}return p===y?Wi():(A=u.substring(y,p),T=82)}function Wi(){if(m=y=p,R=0,p>=h)return T=1;const Tn=xy(u,p);switch(p+=t0(Tn),Tn){case 9:case 11:case 12:case 32:for(;p<h&&E_(u.charCodeAt(p));)p++;return T=5;case 64:return T=60;case 13:u.charCodeAt(p)===10&&p++;case 10:return R|=1,T=4;case 42:return T=42;case 123:return T=19;case 125:return T=20;case 91:return T=23;case 93:return T=24;case 60:return T=30;case 62:return T=32;case 61:return T=64;case 44:return T=28;case 46:return T=25;case 96:return T=62;case 35:return T=63;case 92:p--;const wn=ie();if(wn>=0&&Jh(wn,e))return p+=3,R|=8,A=Ce()+ve(),T=Le();const He=de();return He>=0&&Jh(He,e)?(p+=6,R|=1024,A=String.fromCharCode(He)+ve(),T=Le()):(p++,T=0)}if(Jh(Tn,e)){let wn=Tn;for(;p<h&&e0(wn=xy(u,p),e)||u.charCodeAt(p)===45;)p+=t0(wn);return A=u.substring(y,p),wn===92&&(A+=ve()),T=Le()}else return T=0}function Co(Tn,wn){const He=p,mt=m,ft=y,Ct=T,le=A,Fe=R,pt=Tn();return(!pt||wn)&&(p=He,m=mt,y=ft,T=Ct,A=le,R=Fe),pt}function Ln(Tn,wn,He){const mt=h,ft=p,Ct=m,le=y,Fe=T,pt=A,j=R,it=M;zt(u,Tn,wn);const Rt=He();return h=mt,p=ft,m=Ct,y=le,T=Fe,A=pt,R=j,M=it,Rt}function Ci(Tn){return Co(Tn,!0)}function Ar(Tn){return Co(Tn,!1)}function sn(){return u}function tt(){M=void 0}function zt(Tn,wn,He){u=Tn||"",h=He===void 0?u.length:wn+He,fa(wn||0)}function Dn(Tn){o=Tn}function ci(Tn){e=Tn}function yi(Tn){r=Tn}function Qi(Tn){O=Tn}function Io(Tn){U=Tn}function fa(Tn){N.assert(Tn>=0),p=Tn,m=Tn,y=Tn,T=0,A=void 0,R=0}function ka(Tn){C+=Tn?1:-1}}function xy(e,t){return e.codePointAt(t)}function t0(e){return e>=65536?2:1}function S9e(e){if(N.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function jx(e){return h1e(e)}var Q2,o1e,wne,a1e,s1e,l1e,c1e,u1e,d1e,p1e,f1e,m1e,_1e,i4,bV,h1e,T9e=I({"src/compiler/scanner.ts"(){ra(),Q2={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},o1e=new Map(Object.entries(Q2)),wne=new Map(Object.entries({...Q2,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,"</":31,">>":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),a1e=[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],s1e=[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],l1e=[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],c1e=[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],u1e=[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],d1e=[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],p1e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,f1e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,m1e=/@(?:see|link)/i,_1e=b9e(wne),i4=7,bV=/^#!.*/,h1e=String.fromCodePoint?e=>String.fromCodePoint(e):S9e}});function Xc(e){return Op(e)||dp(e)}function Ux(e){return HN(e,HC)}function Z2(e){switch(os(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 Kl(e){return e.start+e.length}function One(e){return e.length===0}function EV(e,t){return t>=e.start&&t<Kl(e)}function eL(e,t){return t>=e.pos&&t<=e.end}function Wne(e,t){return t.start>=e.start&&Kl(t)<=Kl(e)}function g1e(e,t){return Fne(e,t)!==void 0}function Fne(e,t){const r=Bne(e,t);return r&&r.length===0?void 0:r}function v1e(e,t){return tL(e.start,e.length,t.start,t.length)}function o4(e,t,r){return tL(e.start,e.length,t,r)}function tL(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function zne(e,t){return t<=Kl(e)&&t>=e.start}function Bne(e,t){const r=Math.max(e.start,t.start),i=Math.min(Kl(e),Kl(t));return r<=i?pc(r,i):void 0}function vu(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function pc(e,t){return vu(e,t-e)}function oC(e){return vu(e.span.start,e.newLength)}function Gne(e){return One(e.span)&&e.newLength===0}function nL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Vne(e){if(e.length===0)return vL;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=Kl(t.span),o=r+t.newLength;for(let s=1;s<e.length;s++){const l=e[s],u=r,p=i,h=o,m=l.span.start,y=Kl(l.span),T=m+l.newLength;r=Math.min(u,m),i=Math.max(p,p+(y-h)),o=Math.max(T,T+(h-y))}return nL(pc(r,i),o-r)}function y1e(e){if(e&&e.kind===168){for(let t=e;t;t=t.parent)if(ea(t)||di(t)||t.kind===264)return t}}function pp(e,t){return Ao(e)&&Qr(e,31)&&t.kind===176}function jne(e){return ta(e)?Jn(e.elements,Une):!1}function Une(e){return Gc(e)?!0:jne(e.name)}function Hx(e){let t=e.parent;for(;$a(t.parent);)t=t.parent.parent;return t.parent}function Hne(e,t){$a(e)&&(e=Hx(e));let r=t(e);return e.kind===260&&(e=e.parent),e&&e.kind===261&&(r|=t(e),e=e.parent),e&&e.kind===243&&(r|=t(e)),r}function n0(e){return Hne(e,ud)}function SV(e){return Hne(e,zie)}function Cv(e){return Hne(e,A9e)}function A9e(e){return e.flags}function b1e(e,t,r){const i=e.toLowerCase(),o=/^([a-z]+)([_-]([a-z]+))?$/.exec(i);if(!o){r&&r.push(Ul(f.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}const s=o[1],l=o[3];Or(qV,i)&&!u(s,l,r)&&u(s,void 0,r),ine(e);function u(p,h,m){const y=ha(t.getExecutingFilePath()),T=ai(y);let A=$r(T,p);if(h&&(A=A+"-"+h),A=t.resolvePath($r(A,"diagnosticMessages.generated.json")),!t.fileExists(A))return!1;let R="";try{R=t.readFile(A)}catch{return m&&m.push(Ul(f.Unable_to_open_file_0,A)),!1}try{aoe(JSON.parse(R))}catch{return m&&m.push(Ul(f.Corrupted_locale_file_0,A)),!1}return!0}}function Pl(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function Vn(e,t){for(;e;){const r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function aC(e){return(e.flags&16)===0}function No(e,t){if(e===void 0||aC(e))return e;for(e=e.original;e;){if(aC(e))return!t||t(e)?e:void 0;e=e.original}}function _l(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Vi(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 Sr(e){return Vi(e.escapedText)}function r0(e){const t=IE(e.escapedText);return t?ri(t,Bd):void 0}function El(e){return e.valueDeclaration&&sd(e.valueDeclaration)?Sr(e.valueDeclaration.name):Vi(e.escapedName)}function E1e(e){const t=e.parent.parent;if(t){if(Ju(t))return TV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return TV(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:const i=r.argumentExpression;if(Ve(i))return i}break;case 217:return TV(t.expression);case 256:{if(Ju(t.statement)||yt(t.statement))return TV(t.statement);break}}}}function TV(e){const t=Lo(e);return t&&Ve(t)?t:void 0}function rL(e,t){return!!(ad(e)&&Ve(e.name)&&Sr(e.name)===Sr(t)||Ll(e)&&bt(e.declarationList.declarations,r=>rL(r,t)))}function qne(e){return e.name||E1e(e)}function ad(e){return!!e.name}function a4(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{const r=e;switch(zl(r)){case 1:case 4:case 5:case 3:return n3(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return qne(e);case 347:return E1e(e);case 277:{const{expression:r}=e;return Ve(r)?r:void 0}case 212:const t=e;if(t3(t))return t.argumentExpression}return e.name}function Lo(e){if(e!==void 0)return a4(e)||(Os(e)||Gs(e)||Qc(e)?s4(e):void 0)}function s4(e){if(e.parent){if(hc(e.parent)||$a(e.parent))return e.parent.name;if(mr(e.parent)&&e===e.parent.right){if(Ve(e.parent.left))return e.parent.left;if(ws(e.parent.left))return n3(e.parent.left)}else if(Oi(e.parent)&&Ve(e.parent.name))return e.parent.name}else return}function Ry(e){if(Tf(e))return mn(e.modifiers,Eu)}function xE(e){if(Qr(e,98303))return mn(e.modifiers,Aa)}function S1e(e,t){if(e.name)if(Ve(e.name)){const r=e.name.escapedText;return oL(e.parent,t).filter(i=>e_(i)&&Ve(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);N.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=oL(e.parent,t).filter(e_);if(r<i.length)return[i[r]]}return et}function qx(e){return S1e(e,!1)}function Jne(e){return S1e(e,!0)}function T1e(e,t){const r=e.name.escapedText;return oL(e.parent,t).filter(i=>om(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Kne(e){return T1e(e,!1)}function Xne(e){return T1e(e,!0)}function Yne(e){return!!Jf(e,e_)}function $ne(e){return Jf(e,uI)}function Qne(e){return c4(e,QW)}function AV(e){return Jf(e,Tae)}function A1e(e){return Jf(e,_H)}function Zne(e){return Jf(e,_H,!0)}function I1e(e){return Jf(e,hH)}function ere(e){return Jf(e,hH,!0)}function x1e(e){return Jf(e,gH)}function tre(e){return Jf(e,gH,!0)}function R1e(e){return Jf(e,vH)}function nre(e){return Jf(e,vH,!0)}function rre(e){return Jf(e,YW,!0)}function IV(e){return Jf(e,yH)}function ire(e){return Jf(e,yH,!0)}function xV(e){return Jf(e,Jk)}function l4(e){return Jf(e,bH)}function ore(e){return Jf(e,$W)}function D1e(e){return Jf(e,om)}function RV(e){return Jf(e,ZW)}function i0(e){const t=Jf(e,TP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function o0(e){let t=Jf(e,TP);return!t&&Ao(e)&&(t=In(qx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function iL(e){const t=ore(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=i0(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(yp(i)){const o=In(i.members,ZA);return o&&o.type}if(yh(i)||qR(i))return i.type}}function oL(e,t){var r;if(!JL(e))return et;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const o=Tj(e,t);N.assert(o.length<2||o[0]!==o[1]),i=Do(o,s=>Zm(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function a0(e){return oL(e,!1)}function N1e(e){return oL(e,!0)}function Jf(e,t,r){return In(oL(e,r),t)}function c4(e,t){return a0(e).filter(t)}function C1e(e,t){return a0(e).filter(r=>r.kind===t)}function aL(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===328?t.text:I9e(t)).join("")}function I9e(e){const t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?fp(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Dy(e){if(E0(e)){if(JR(e.parent)){const t=hR(e.parent);if(t&&Ne(t.tags))return Do(t.tags,r=>om(r)?r.typeParameters:void 0)}return et}if($f(e))return N.assert(e.parent.kind===327),Do(e.parent.tags,t=>om(t)?t.typeParameters:void 0);if(e.typeParameters||kae(e)&&e.typeParameters)return e.typeParameters;if(lr(e)){const t=h3(e);if(t.length)return t;const r=o0(e);if(r&&yh(r)&&r.typeParameters)return r.typeParameters}return et}function Jx(e){return e.constraint?e.constraint:om(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Kh(e){return e.kind===80||e.kind===81}function u4(e){return e.kind===178||e.kind===177}function d4(e){return Fr(e)&&!!(e.flags&64)}function DV(e){return $s(e)&&!!(e.flags&64)}function uS(e){return sa(e)&&!!(e.flags&64)}function qu(e){const t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function sC(e){return qu(e)&&!oI(e)&&!!e.questionDotToken}function p4(e){return sC(e.parent)&&e.parent.expression===e}function lC(e){return!qu(e.parent)||sC(e.parent)||e!==e.parent.expression}function NV(e){return e.kind===226&&e.operatorToken.kind===61}function Pg(e){return Df(e)&&Ve(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function bm(e){return $l(e,8)}function f4(e){return oI(e)&&!!(e.flags&64)}function cC(e){return e.kind===252||e.kind===251}function CV(e){return e.kind===280||e.kind===279}function are(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function PV(e){return are(e)||e.kind===307||e.kind===311}function uC(e){return e.kind===355||e.kind===348}function P1e(e){return sL(e.kind)}function sL(e){return e>=166}function MV(e){return e>=0&&e<=165}function EA(e){return MV(e.kind)}function RE(e){return Is(e,"pos")&&Is(e,"end")}function dC(e){return 9<=e&&e<=15}function DE(e){return dC(e.kind)}function LV(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Ny(e){return 15<=e&&e<=18}function sre(e){return Ny(e.kind)}function m4(e){const t=e.kind;return t===17||t===18}function SA(e){return tp(e)||Ku(e)}function lL(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function lre(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function s0(e){return lL(e)||lre(e)}function kV(e){return e.kind===11||Ny(e.kind)}function cre(e){return Na(e)||Ve(e)}function al(e){var t;return Ve(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function dS(e){var t;return qi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function cL(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function sd(e){return(qo(e)||AA(e))&&qi(e.name)}function Kx(e){return Fr(e)&&qi(e.name)}function Pv(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function pC(e){return!!(OA(e)&31)}function wV(e){return pC(e)||e===126||e===164||e===129}function Aa(e){return Pv(e.kind)}function Qd(e){const t=e.kind;return t===166||t===80}function oc(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===167}function pS(e){const t=e.kind;return t===80||t===206||t===207}function ea(e){return!!e&&TA(e.kind)}function Xx(e){return!!e&&(TA(e.kind)||Rl(e))}function Bs(e){return e&&M1e(e.kind)}function fC(e){return e.kind===112||e.kind===97}function M1e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function TA(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return M1e(e)}}function OV(e){return $i(e)||L_(e)||Ko(e)&&ea(e.parent)}function Yc(e){const t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function di(e){return e&&(e.kind===263||e.kind===231)}function Cy(e){return e&&(e.kind===177||e.kind===178)}function Wd(e){return qo(e)&&D_(e)}function ure(e){return lr(e)&&X3(e)?(!OE(e)||!zy(e.expression))&&!TS(e,!0):e.parent&&di(e.parent)&&qo(e)&&!D_(e)}function AA(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function L1e(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function sl(e){return Aa(e)||Eu(e)}function fS(e){const t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function _4(e){return fS(e)||Yc(e)}function Mg(e){const t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function ji(e){return aU(e.kind)}function dre(e){switch(e.kind){case 184:case 185:return!0}return!1}function ta(e){if(e){const t=e.kind;return t===207||t===206}return!1}function mC(e){const t=e.kind;return t===209||t===210}function h4(e){const t=e.kind;return t===208||t===232}function uL(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function pre(e){return Oi(e)||Ao(e)||pL(e)||fL(e)}function dL(e){return WV(e)||FV(e)}function WV(e){switch(e.kind){case 206:case 210:return!0}return!1}function pL(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function FV(e){switch(e.kind){case 207:case 209:return!0}return!1}function fL(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Pc(e,!0)}function fre(e){const t=e.kind;return t===211||t===166||t===205}function mre(e){const t=e.kind;return t===211||t===166}function zV(e){return NE(e)||qE(e)}function NE(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function S_(e){return e.kind===213||e.kind===214}function IA(e){const t=e.kind;return t===228||t===15}function Zd(e){return k1e(bm(e).kind)}function k1e(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function BV(e){return w1e(bm(e).kind)}function w1e(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return k1e(e)}}function _re(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function hre(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return DE(e)}}function yt(e){return x9e(bm(e).kind)}function x9e(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return w1e(e)}}function mS(e){const t=e.kind;return t===216||t===234}function O1e(e){return dH(e)||qW(e)}function Py(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Py(e.statement,t)}return!1}function gre(e){return kl(e)||Yl(e)}function vre(e){return bt(e,gre)}function g4(e){return!TL(e)&&!kl(e)&&!Qr(e,32)&&!ku(e)}function mL(e){return TL(e)||kl(e)||Qr(e,32)}function Yx(e){return e.kind===249||e.kind===250}function v4(e){return Ko(e)||yt(e)}function GV(e){return Ko(e)}function Sf(e){return Vc(e)||yt(e)}function yre(e){const t=e.kind;return t===268||t===267||t===80}function W1e(e){const t=e.kind;return t===268||t===267}function F1e(e){const t=e.kind;return t===80||t===267}function VV(e){const t=e.kind;return t===275||t===274}function _L(e){return e.kind===267||e.kind===266}function T_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function dh(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function R9e(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function bre(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function Ere(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function Ju(e){return e.kind===168?e.parent&&e.parent.kind!==352||lr(e):R9e(e.kind)}function Sre(e){return bre(e.kind)}function hL(e){return Ere(e.kind)}function Hi(e){const t=e.kind;return Ere(t)||bre(t)||D9e(e)}function D9e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!kE(e)}function Tre(e){const t=e.kind;return Ere(t)||bre(t)||t===241}function Are(e){const t=e.kind;return t===283||t===166||t===80}function _C(e){const t=e.kind;return t===110||t===80||t===211||t===295}function gL(e){const t=e.kind;return t===284||t===294||t===285||t===12||t===288}function y4(e){const t=e.kind;return t===291||t===293}function Ire(e){const t=e.kind;return t===11||t===294}function ld(e){const t=e.kind;return t===286||t===285}function b4(e){const t=e.kind;return t===296||t===297}function $x(e){return e.kind>=316&&e.kind<=357}function E4(e){return e.kind===327||e.kind===326||e.kind===328||xA(e)||Qx(e)||jS(e)||E0(e)}function Qx(e){return e.kind>=334&&e.kind<=357}function Mv(e){return e.kind===178}function My(e){return e.kind===177}function Wp(e){if(!JL(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function S4(e){return!!e.type}function Ly(e){return!!e.initializer}function _S(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function jV(e){return e.kind===291||e.kind===293||Mg(e)}function T4(e){return e.kind===183||e.kind===233}function xre(e){let t=Rre;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===Rre?void 0:t}function ls(e){return e.kind===11||e.kind===15}function xA(e){return e.kind===331||e.kind===332||e.kind===333}function UV(e){const t=el(e.parameters);return!!t&&Xh(t)}function Xh(e){const t=e_(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===325}function z1e(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function HV(e,t){t??(t=Un(e));const r=No(e);if(r&&r.kind===169){const o=r.parent.parameters.indexOf(r),s=o>0?r.parent.parameters[o-1]:void 0,l=t.text,u=s?So(Zb(l,Pa(l,s.end+1,!1,!0)),qh(l,e.pos)):Zb(l,Pa(l,e.pos,!1,!0));return bt(u)&&z1e(Xa(u),t)}const i=r&&uj(r,t);return!!Xe(i,o=>z1e(o,t))}var vL,qV,Rre,N9e=I({"src/compiler/utilitiesPublic.ts"(){ra(),vL=nL(vu(0,0),0),qV=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Rre=1073741823}});function pl(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function Dre(e,t){return mn(e.declarations||et,r=>r.kind===t)}function ca(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function ph(e){return(e.flags&33554432)!==0}function C9e(){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:Ya,decreaseIndent:Ya,clear:()=>e=""}}function A4(e,t){return e.configFilePath!==t.configFilePath||Nre(e,t)}function Nre(e,t){return Zx(e,t,hF)}function Cre(e,t){return Zx(e,t,tq)}function Zx(e,t,r){return e!==t&&r.some(i=>!j3(M3(e,i),M3(t,i)))}function Pre(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if($i(e))return;e=e.parent}}function zc(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function fh(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function I4(e,t){e.forEach((r,i)=>{t.set(i,r)})}function hC(e){const t=Tk.getText();try{return e(Tk),Tk.getText()}finally{Tk.clear(),Tk.writeKeyword(t)}}function yL(e){return e.end-e.pos}function JV(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Mre(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&&P9e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function x4(e,t,r,i,o){var s;const l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(pd(t.getCompilerOptions())===2?[f.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[l]]:[f.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[l,l.includes(Ah+"@types/")?`@types/${aD(o)}`:o]]),p=u?Vo(void 0,u[0],...u[1]):t.typesPackageExists(o)?Vo(void 0,f.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,aD(o)):t.packageBundlesTypes(o)?Vo(void 0,f.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,r):Vo(void 0,f.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,aD(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function P9e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function R4({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function ky(e){return`${R4(e)}@${e.version}`}function Lre(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 KV(e,t,r,i){N.assert(e.length===t.length);for(let o=0;o<e.length;o++){const s=t[o],l=e[o],u=r(l);if(u?!s||!i(u,s):s)return!0}return!1}function eR(e){return M9e(e),(e.flags&1048576)!==0}function M9e(e){e.flags&2097152||((e.flags&262144||Uo(e,eR))&&(e.flags|=1048576),e.flags|=2097152)}function Un(e){for(;e&&e.kind!==312;)e=e.parent;return e}function D4(e){return Un(e.valueDeclaration||nj(e))}function bL(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function kre(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function wy(e,t){return N.assert(e>=0),Ng(t)[e]}function B1e(e){const t=Un(e),r=ys(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function EL(e,t){N.assert(e>=0);const r=Ng(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{const s=r[i];let l=r[i+1]-1;for(N.assert(Hu(o.charCodeAt(l)));s<=l&&Hu(o.charCodeAt(l));)l--;return l}}function N4(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Fl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Kf(e){return!Fl(e)}function wre(e,t){return hl(e)?t===e.expression:Rl(e)?t===e.modifiers:gp(e)?t===e.initializer:qo(e)?t===e.questionToken&&Wd(e):hc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||SL(e.modifiers,t,sl):np(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||SL(e.modifiers,t,sl):Hl(e)?t===e.exclamationToken:Ml(e)?t===e.typeParameters||t===e.type||SL(e.typeParameters,t,hl):tf(e)?t===e.typeParameters||SL(e.typeParameters,t,hl):vp(e)?t===e.typeParameters||t===e.type||SL(e.typeParameters,t,hl):qk(e)?t===e.modifiers||SL(e.modifiers,t,sl):!1}function SL(e,t,r){return!e||To(t)||!r(t)?!1:Or(e,t)}function G1e(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 V1e(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 j1e(e){return Sm(e)||!!(Ga(e)&2097152)}function Yh(e,t){return G1e(e,t,Sm)}function XV(e,t){return G1e(e,t,j1e)}function U1e(e,t){return V1e(e,t,Sm)}function hS(e,t){return V1e(e,t,j1e)}function YV(e,t,r){if(e.charCodeAt(t+1)===47&&t+2<r&&e.charCodeAt(t+2)===47){const i=e.substring(t,r);return!!(xU.test(i)||RU.test(i)||PSe.test(i)||NSe.test(i)||CSe.test(i)||MSe.test(i))}return!1}function C4(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function Ore(e,t){const r=new Map(t.map(l=>[`${ys(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return zo(r.entries()).filter(([l,u])=>u.type===0&&!i.get(l)).map(([l,u])=>u)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function l0(e,t,r){return Fl(e)?e.pos:$x(e)||e.kind===12?Pa((t||Un(e)).text,e.pos,!1,!0):r&&Wp(e)?l0(e.jsDoc[0],t):e.kind===358&&e._children.length>0?l0(e._children[0],t,r):Pa((t||Un(e)).text,e.pos,!1,!1,kL(e))}function $V(e,t){const r=!Fl(e)&&Rm(e)?oi(e.modifiers,Eu):void 0;return r?Pa((t||Un(e)).text,r.end):l0(e,t)}function CE(e,t,r=!1){return gC(e.text,t,r)}function L9e(e){return!!Vn(e,o1)}function P4(e){return!!(Yl(e)&&e.exportClause&&Eh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function gC(e,t,r=!1){if(Fl(t))return"";let i=e.substring(r?t.pos:Pa(e,t.pos),t.end);return L9e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(`
`)),i}function fc(e,t=!1){return CE(Un(e),e,t)}function k9e(e){return e.pos}function tR(e,t){return Tv(e,t,k9e,nl)}function Ga(e){const t=e.emitNode;return t&&t.flags||0}function Em(e){const t=e.emitNode;return t&&t.internalFlags||0}function Wre(e,t,r){if(t&&w9e(e,r))return CE(t,e);switch(e.kind){case 11:{const i=r&2?Gj:r&1||Ga(e)&16777216?tg:ik;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const i=r&1||Ga(e)&16777216?tg:ik,o=e.rawText??zj(i(e.text,96));switch(e.kind){case 15:return"`"+o+"`";case 16:return"`"+o+"${";case 17:return"}"+o+"${";case 18:return"}"+o+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return N.fail(`Literal kind '${e.kind}' not accounted for.`)}function w9e(e,t){if(Ys(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(hp(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!WW(e)}function Fre(e){return Mo(e)?'"'+ik(e)+'"':""+e}function zre(e){return ic(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function QV(e){return(Cv(e)&7)!==0||ZV(e)}function ZV(e){const t=R_(e);return t.kind===260&&t.parent.kind===299}function ku(e){return Xl(e)&&(e.name.kind===11||A_(e))}function M4(e){return Xl(e)&&e.name.kind===11}function ej(e){return Xl(e)&&Na(e.name)}function Bre(e){return Xl(e)||Ve(e)}function vC(e){return O9e(e.valueDeclaration)}function O9e(e){return!!e&&e.kind===267&&!e.body}function Gre(e){return e.kind===312||e.kind===267||Xx(e)}function A_(e){return!!(e.flags&2048)}function PE(e){return ku(e)&&tj(e)}function tj(e){switch(e.parent.kind){case 312:return sc(e.parent);case 268:return ku(e.parent.parent)&&$i(e.parent.parent.parent)&&!sc(e.parent.parent.parent)}return!1}function nj(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!PE(r)&&!(Xl(r)&&A_(r)))}function W9e(e){return e===1||e===100||e===199}function RA(e,t){return sc(e)||W9e(wu(t))&&!!e.commonJsModuleIndicator}function rj(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:dd(t,"alwaysStrict")||Cae(e.statements)?!0:sc(e)||rm(t)?wu(t)>=5?!0:!t.noImplicitUseStrict:!1}function ij(e){return!!(e.flags&33554432)||Qr(e,128)}function oj(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!Xx(t)}return!1}function aj(e){switch(N.type(e),e.kind){case 345:case 353:case 330:return!0;default:return sj(e)}}function sj(e){switch(N.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function gS(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Vre(e){return gS(e)||wE(e)}function L4(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function jre(e){return TL(e)||Xl(e)||ag(e)||zp(e)}function TL(e){return gS(e)||Yl(e)}function lj(e){return Vn(e.parent,t=>!!(bq(t)&1))}function mh(e){return Vn(e.parent,t=>oj(t,t.parent))}function Ure(e,t){let r=mh(e);for(;r;)t(r),r=mh(r)}function xs(e){return!e||yL(e)===0?"(Missing)":fc(e)}function Hre(e){return e.declaration?xs(e.declaration.parameters[0].name):void 0}function AL(e){return e.kind===167&&!ef(e.expression)}function yC(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return _l(e.text);case 167:return ef(e.expression)?_l(e.expression.text):void 0;case 295:return VA(e);default:return N.assertNever(e)}}function nR(e){return N.checkDefined(yC(e))}function fp(e){switch(e.kind){case 110:return"this";case 81:case 80:return yL(e)===0?Sr(e):fc(e);case 166:return fp(e.left)+"."+fp(e.right);case 211:return Ve(e.name)||qi(e.name)?fp(e.expression)+"."+fp(e.name):N.assertNever(e.name);case 318:return fp(e.left)+fp(e.right);case 295:return fp(e.namespace)+":"+fp(e.name);default:return N.assertNever(e)}}function kr(e,t,...r){const i=Un(e);return Xf(i,e,t,...r)}function rR(e,t,r,...i){const o=Pa(e.text,t.pos);return $c(e,o,t.end-o,r,...i)}function Xf(e,t,r,...i){const o=vS(e,t);return $c(e,o.start,o.length,r,...i)}function Lg(e,t,r,i){const o=vS(e,t);return k4(e,o.start,o.length,r,i)}function IL(e,t,r,i){const o=Pa(e.text,t.pos);return k4(e,o,t.end-o,r,i)}function qre(e,t,r){N.assertGreaterThanOrEqual(t,0),N.assertGreaterThanOrEqual(r,0),N.assertLessThanOrEqual(t,e.length),N.assertLessThanOrEqual(t+r,e.length)}function k4(e,t,r,i,o){return qre(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function cj(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 Jre(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Kre(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function _h(e,t){const r=Nv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return pc(i,r.getTokenEnd())}function Xre(e,t){const r=Nv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function F9e(e,t){const r=Pa(e.text,t.pos);if(t.body&&t.body.kind===241){const{line:i}=ys(e,t.body.pos),{line:o}=ys(e,t.body.end);if(i<o)return vu(r,EL(i,e)-r+1)}return pc(r,t.end)}function vS(e,t){let r=t;switch(t.kind){case 312:{const s=Pa(e.text,0,!1);return s===e.text.length?vu(0,0):_h(e,s)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:r=t.name;break;case 219:return F9e(e,t);case 296:case 297:{const s=Pa(e.text,t.pos),l=t.statements.length>0?t.statements[0].pos:t.end;return pc(s,l)}case 253:case 229:{const s=Pa(e.text,t.pos);return _h(e,s)}case 238:{const s=Pa(e.text,t.expression.end);return _h(e,s)}case 357:{const s=Pa(e.text,t.tagName.pos);return _h(e,s)}}if(r===void 0)return _h(e,t.pos);N.assert(!Zm(r));const i=Fl(r),o=i||KA(t)?r.pos:Pa(e.text,r.pos);return i?(N.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(N.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),pc(o,r.end)}function Fp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Yf(e){return e.scriptKind===6}function ME(e){return!!(n0(e)&4096)}function w4(e){return!!(n0(e)&8&&!pp(e,e.parent))}function xL(e){return(Cv(e)&7)===6}function RL(e){return(Cv(e)&7)===4}function iR(e){return(Cv(e)&7)===2}function O4(e){return(Cv(e)&7)===1}function yS(e){return e.kind===213&&e.expression.kind===108}function zp(e){return e.kind===213&&e.expression.kind===102}function oR(e){return _P(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Oy(e){return ag(e)&&Jy(e.argument)&&Na(e.argument.literal)}function Sm(e){return e.kind===244&&e.expression.kind===11}function DL(e){return!!(Ga(e)&2097152)}function W4(e){return DL(e)&&Tc(e)}function z9e(e){return Ve(e.name)&&!e.initializer}function F4(e){return DL(e)&&Ll(e)&&Jn(e.declarationList.declarations,z9e)}function uj(e,t){return e.kind!==12?qh(t.text,e.pos):void 0}function dj(e,t){const r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?So(Zb(t,e.pos),qh(t,e.pos)):qh(t,e.pos);return mn(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function $h(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return H1e(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),N.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return H1e(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return Or(t.typeArguments,e)}}}return!1}function H1e(e){return QW(e.parent)||uI(e.parent)||nf(e.parent)&&!y3(e)}function q1e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function LE(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Uo(i,r)}}}function Yre(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);const o=i.expression;o&&r(o);return;case 266:case 264:case 267:case 265:return;default:if(ea(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else $h(i)||Uo(i,r)}}}function pj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?oh(e.typeArguments):void 0}function $re(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function aR(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Qre(e){return aR(e)||Cy(e)}function bC(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Zre(e){return lr(e)?La(e.parent)&&mr(e.parent.parent)&&zl(e.parent.parent)===2||z4(e.parent):!1}function z4(e){return lr(e)?mr(e)&&zl(e)===1:!1}function eie(e){return(Oi(e)?iR(e)&&Ve(e.name)&&bC(e):qo(e)?OC(e)&&mc(e):gp(e)&&OC(e))||z4(e)}function tie(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function fj(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function kE(e){return e&&e.kind===241&&ea(e.parent)}function Tm(e){return e&&e.kind===174&&e.parent.kind===210}function B4(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function nie(e){return e&&e.kind===1}function J1e(e){return e&&e.kind===0}function sR(e,t,r,i){return Xe(e==null?void 0:e.properties,o=>{if(!hc(o))return;const s=yC(o.name);return t===s||i&&i===s?r(o):void 0})}function rie(e,t,r){return sR(e,t,i=>fd(i.initializer)?In(i.initializer.elements,o=>Na(o)&&o.text===r):void 0)}function EC(e){if(e&&e.statements.length){const t=e.statements[0].expression;return ri(t,La)}}function G4(e,t,r){return NL(e,t,i=>fd(i.initializer)?In(i.initializer.elements,o=>Na(o)&&o.text===r):void 0)}function NL(e,t,r){return sR(EC(e),t,r)}function Bp(e){return Vn(e.parent,ea)}function iie(e){return Vn(e.parent,Bs)}function au(e){return Vn(e.parent,di)}function oie(e){return Vn(e.parent,t=>di(t)||ea(t)?"quit":Rl(t))}function V4(e){return Vn(e.parent,Xx)}function j4(e){const t=Vn(e.parent,r=>di(r)?"quit":Eu(r));return t&&di(t.parent)?au(t.parent):au(t??e)}function Fd(e,t,r){for(N.assert(e.kind!==312);;){if(e=e.parent,!e)return N.fail();switch(e.kind){case 167:if(r&&di(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Yc(e.parent.parent)?e=e.parent.parent:Yc(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function aie(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function U4(e){Ve(e)&&(Ac(e.parent)||Tc(e.parent))&&e.parent.name===e&&(e=e.parent);const t=Fd(e,!0,!1);return $i(t)}function sie(e){const t=Fd(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function CL(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&Yc(e.parent.parent)?e=e.parent.parent:Yc(e.parent)&&(e=e.parent);break}}}function bS(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function K1e(e){return e.kind===108||zd(e)}function zd(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function PL(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function H4(e){var t;return!!e&&Oi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function lie(e){return!!e&&(np(e)||hc(e))&&mr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function ML(e){switch(e.kind){case 183:return e.typeName;case 233:return Bl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function q4(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function J4(e,t,r,i){if(e&&ad(t)&&qi(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Ac(r):di(r)&&!jE(t)&&!Jj(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Ac(r):di(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&BE(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function lR(e,t,r,i){return Tf(t)&&J4(e,t,r,i)}function LL(e,t,r,i){return lR(e,t,r,i)||SC(e,t,r)}function SC(e,t,r){switch(t.kind){case 263:return bt(t.members,i=>LL(e,i,t,r));case 231:return!e&&bt(t.members,i=>LL(e,i,t,r));case 174:case 178:case 176:return bt(t.parameters,i=>lR(e,i,t,r));default:return!1}}function Lv(e,t){if(lR(e,t))return!0;const r=ng(t);return!!r&&SC(e,r,t)}function mj(e,t,r){let i;if(Cy(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:l}=NS(r.members,t),u=Tf(o)?o:s&&Tf(s)?s:void 0;if(!u||t!==u)return!1;i=l==null?void 0:l.parameters}else Hl(t)&&(i=t.parameters);if(lR(e,t,r))return!0;if(i){for(const o of i)if(!GE(o)&&lR(e,o,t,r))return!0}return!1}function _j(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return _j(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function cR(e){const{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function Qh(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!nf(e.parent)&&!uI(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||xA(e.parent)||SP(e.parent)||b0(e.parent)||cR(e);case 318:for(;b0(e.parent);)e=e.parent;return e.parent.kind===186||xA(e.parent)||SP(e.parent)||b0(e.parent)||cR(e);case 81:return mr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||xA(e.parent)||SP(e.parent)||b0(e.parent)||cR(e))return!0;case 9:case 10:case 11:case 15:case 110:return K4(e);default:return!1}}function K4(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:const i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!$h(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return Qh(t)}}function X4(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function cie(e){return Eh(e)&&!!e.parent.moduleSpecifier}function c0(e){return e.kind===271&&e.moduleReference.kind===283}function TC(e){return N.assert(c0(e)),e.moduleReference.expression}function hj(e){return wE(e)&&DR(e.initializer).arguments[0]}function uR(e){return e.kind===271&&e.moduleReference.kind!==283}function cd(e){return lr(e)}function X1e(e){return!lr(e)}function lr(e){return!!e&&!!(e.flags&524288)}function Y4(e){return!!e&&!!(e.flags&134217728)}function gj(e){return!Yf(e)}function kL(e){return!!e&&!!(e.flags&16777216)}function $4(e){return Df(e)&&Ve(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Td(e,t){if(e.kind!==213)return!1;const{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;const o=i[0];return!t||ls(o)}function Q4(e){return Y1e(e,!1)}function wE(e){return Y1e(e,!0)}function uie(e){return $a(e)&&wE(e.parent.parent)}function Y1e(e,t){return Oi(e)&&!!e.initializer&&Td(t?DR(e.initializer):e.initializer,!0)}function vj(e){return Ll(e)&&e.declarationList.declarations.length>0&&Jn(e.declarationList.declarations,t=>Q4(t))}function wL(e){return e===39||e===34}function Z4(e,t){return CE(t,e).charCodeAt(0)===34}function AC(e){return mr(e)||ws(e)||Ve(e)||sa(e)}function OL(e){return lr(e)&&e.initializer&&mr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Bl(e.name)&&dR(e.name,e.initializer.left)?e.initializer.right:e.initializer}function WL(e){const t=OL(e);return t&&u0(t,zy(e.name))}function B9e(e,t){return Xe(e.properties,r=>hc(r)&&Ve(r.name)&&r.name.escapedText==="value"&&r.initializer&&u0(r.initializer,t))}function DA(e){if(e&&e.parent&&mr(e.parent)&&e.parent.operatorToken.kind===64){const t=zy(e.parent.left);return u0(e.parent.right,t)||G9e(e.parent.left,e.parent.right,t)}if(e&&sa(e)&&SS(e)){const t=B9e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function u0(e,t){if(sa(e)){const r=hs(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||La(e)&&(e.properties.length===0||t))return e}function G9e(e,t,r){const i=mr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&u0(t.right,r);if(i&&dR(e,t.left))return i}function die(e){const t=Oi(e.parent)?e.parent.name:mr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&u0(e.right,zy(t))&&Bl(t)&&dR(t,e.left)}function yj(e){if(mr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&mr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ve(t.left))return t.left}else if(Oi(e.parent))return e.parent.name}function dR(e,t){return x_(e)&&x_(t)?Qf(e)===Qf(t):Kh(e)&&e3(t)&&(t.expression.kind===110||Ve(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?dR(e,BL(t)):e3(e)&&e3(t)?kg(e)===kg(t)&&dR(e.expression,t.expression):!1}function FL(e){for(;Pc(e,!0);)e=e.right;return e}function ES(e){return Ve(e)&&e.escapedText==="exports"}function bj(e){return Ve(e)&&e.escapedText==="module"}function Zh(e){return(Fr(e)||zL(e))&&bj(e.expression)&&kg(e)==="exports"}function zl(e){const t=V9e(e);return t===5||lr(e)?t:0}function SS(e){return Ne(e.arguments)===3&&Fr(e.expression)&&Ve(e.expression.expression)&&Sr(e.expression.expression)==="Object"&&Sr(e.expression.name)==="defineProperty"&&ef(e.arguments[1])&&TS(e.arguments[0],!0)}function e3(e){return Fr(e)||zL(e)}function zL(e){return $s(e)&&ef(e.argumentExpression)}function OE(e,t){return Fr(e)&&(!t&&e.expression.kind===110||Ve(e.name)&&TS(e.expression,!0))||t3(e,t)}function t3(e,t){return zL(e)&&(!t&&e.expression.kind===110||Bl(e.expression)||OE(e.expression,!0))}function TS(e,t){return Bl(e)||OE(e,t)}function BL(e){return Fr(e)?e.name:e.argumentExpression}function V9e(e){if(sa(e)){if(!SS(e))return 0;const t=e.arguments[0];return ES(t)||Zh(t)?8:OE(t)&&kg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!ws(e.left)||j9e(FL(e))?0:TS(e.left.expression,!0)&&kg(e.left)==="prototype"&&La(Ej(e))?6:GL(e.left)}function j9e(e){return iI(e)&&hp(e.expression)&&e.expression.text==="0"}function n3(e){if(Fr(e))return e.name;const t=hs(e.argumentExpression);return hp(t)||ls(t)?t:e}function kg(e){const t=n3(e);if(t){if(Ve(t))return t.escapedText;if(ls(t)||hp(t))return _l(t.text)}}function GL(e){if(e.expression.kind===110)return 4;if(Zh(e))return 2;if(TS(e.expression,!0)){if(zy(e.expression))return 3;let t=e;for(;!Ve(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&kg(t)==="exports")&&OE(e))return 1;if(TS(e,!0)||$s(e)&&l3(e))return 5}return 0}function Ej(e){for(;mr(e.right);)e=e.right;return e.right}function VL(e){return mr(e)&&zl(e)===3}function pie(e){return lr(e)&&e.parent&&e.parent.kind===244&&(!$s(e)||zL(e))&&!!i0(e.parent)}function jL(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!lr(t)&&!(r.flags&33554432))&&AC(r)&&!AC(t)||r.kind!==t.kind&&Bre(r))&&(e.valueDeclaration=t)}function fie(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===262||Oi(t)&&t.initializer&&ea(t.initializer)}function pR(e){var t,r;switch(e.kind){case 260:case 208:return(t=Vn(e.initializer,i=>Td(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ri(e.moduleSpecifier,ls);case 271:return ri((r=ri(e.moduleReference,Sh))==null?void 0:r.expression,ls);case 273:case 280:return ri(e.parent.moduleSpecifier,ls);case 274:case 281:return ri(e.parent.parent.moduleSpecifier,ls);case 276:return ri(e.parent.parent.parent.moduleSpecifier,ls);case 205:return Oy(e)?e.argument.literal:void 0;default:N.assertNever(e)}}function IC(e){return UL(e)||N.failBadSyntaxKind(e.parent)}function UL(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return zp(e.parent)||Td(e.parent,!1)?e.parent:void 0;case 201:return N.assert(Na(e)),ri(e.parent.parent,ag);default:return}}function fR(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return Oy(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return N.assertNever(e)}}function mR(e){switch(e.kind){case 272:return e.importClause&&ri(e.importClause.namedBindings,Yy);case 271:return e;case 278:return e.exportClause&&ri(e.exportClause,Eh);default:return N.assertNever(e)}}function NA(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function r3(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=Yy(e.namedBindings)?t(e.namedBindings):Xe(e.namedBindings.elements,t);if(r)return r}}function CA(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function _R(e){const t=qR(e)?Kc(e.parameters):void 0,r=ri(t&&t.name,Ve);return!!r&&r.escapedText==="new"}function $f(e){return e.kind===353||e.kind===345||e.kind===347}function HL(e){return $f(e)||xm(e)}function U9e(e){return Zc(e)&&mr(e.expression)&&e.expression.operatorToken.kind===64?FL(e.expression):void 0}function $1e(e){return Zc(e)&&mr(e.expression)&&zl(e.expression)!==0&&mr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function Sj(e){switch(e.kind){case 243:const t=PA(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function PA(e){return Ll(e)?Kc(e.declarationList.declarations):void 0}function Q1e(e){return Xl(e)&&e.body&&e.body.kind===267?e.body:void 0}function qL(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function JL(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function Tj(e,t){let r;aR(e)&&Ly(e)&&Wp(e.initializer)&&(r=qr(r,Z1e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(Wp(i)&&(r=qr(r,Z1e(e,i.jsDoc))),i.kind===169){r=qr(r,(t?Jne:qx)(i));break}if(i.kind===168){r=qr(r,(t?Xne:Kne)(i));break}i=Aj(i)}return r||et}function Z1e(e,t){const r=Xa(t);return Do(t,i=>{if(i===r){const o=mn(i.tags,s=>H9e(e,s));return i.tags===o?[i]:o}else return mn(i.tags,JR)})}function H9e(e,t){return!(TP(t)||ZW(t))||!t.parent||!Zm(t.parent)||!Gd(t.parent.parent)||t.parent.parent===e}function Aj(e){const t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||Q1e(t)||Pc(e))return t;if(t.parent&&(PA(t.parent)===e||Pc(t)))return t.parent;if(t.parent&&t.parent.parent&&(PA(t.parent.parent)||Sj(t.parent.parent)===e||$1e(t.parent.parent)))return t.parent.parent}function KL(e){if(e.symbol)return e.symbol;if(!Ve(e.name))return;const t=e.name.escapedText,r=d0(e);if(!r)return;const i=In(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function i3(e){if(Zm(e.parent)&&e.parent.tags){const t=In(e.parent.tags,$f);if(t)return t}return d0(e)}function Ij(e){return c4(e,JR)}function d0(e){const t=p0(e);if(t)return gp(t)&&t.type&&ea(t.type)?t.type:ea(t)?t:void 0}function p0(e){const t=AS(e);if(t)return $1e(t)||U9e(t)||Sj(t)||PA(t)||Q1e(t)||t}function AS(e){const t=hR(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===el(r.jsDoc))return r}function hR(e){return Vn(e.parent,Zm)}function mie(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&In(r,i=>i.name.escapedText===t)}function eSe(e){return!!e.typeArguments}function _ie(e){let t=e.parent;for(;;){switch(t.kind){case 226:const r=t,i=r.operatorToken.kind;return Ov(i)&&r.left===e?r:void 0;case 224:case 225:const o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:const l=t;return l.initializer===e?l:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function MA(e){const t=_ie(e);if(!t)return 0;switch(t.kind){case 226:const r=t.operatorToken.kind;return r===64||WC(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function eg(e){return!!_ie(e)}function q9e(e){const t=hs(e.right);return t.kind===226&&CH(t.operatorToken.kind)}function xj(e){const t=_ie(e);return!!t&&Pc(t,!0)&&q9e(t)}function hie(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function gie(e){return Os(e)||Gs(e)||AA(e)||Tc(e)||Ml(e)}function tSe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function XL(e){return tSe(e,196)}function kv(e){return tSe(e,217)}function vie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function YL(e){for(;wS(e);)e=e.type;return e}function hs(e,t){return $l(e,t?17:1)}function Rj(e){return e.kind!==211&&e.kind!==212?!1:(e=kv(e.parent),e&&e.kind===220)}function WE(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function wg(e){return!$i(e)&&!ta(e)&&Ju(e.parent)&&e.parent.name===e}function xC(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Za(t))return t.parent;case 80:if(Ju(t))return t.name===e?t:void 0;if(Id(t)){const r=t.parent;return e_(r)&&r.name===t?r:void 0}else{const r=t.parent;return mr(r)&&zl(r)!==0&&(r.left.symbol||r.symbol)&&Lo(r)===e?r:void 0}case 81:return Ju(t)&&t.name===e?t:void 0;default:return}}function $L(e){return ef(e)&&e.parent.kind===167&&Ju(e.parent.parent)}function yie(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function nSe(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&gR(e)?!0:lr(e)&&(mr(e)&&zl(e)===2&&gR(e)||Fr(e)&&mr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&QL(e.parent.right))}function Dj(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return Dj(e)}}function QL(e){return Bl(e)||Qc(e)}function gR(e){const t=Nj(e);return QL(t)}function Nj(e){return kl(e)?e.expression:e.right}function bie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function I_(e){const t=FE(e);if(t&&lr(e)){const r=$ne(e);if(r)return r.class}return t}function FE(e){const t=ZL(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function vR(e){if(lr(e))return Qne(e).map(t=>t.class);{const t=ZL(e.heritageClauses,119);return t==null?void 0:t.types}}function RC(e){return md(e)?DC(e)||et:di(e)&&So(hA(I_(e)),vR(e))||et}function DC(e){const t=ZL(e.heritageClauses,96);return t?t.types:void 0}function ZL(e,t){if(e){for(const r of e)if(r.token===t)return r}}function f0(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Bd(e){return 83<=e&&e<=165}function Cj(e){return 19<=e&&e<=79}function o3(e){return Bd(e)||Cj(e)}function a3(e){return 128<=e&&e<=165}function Pj(e){return Bd(e)&&!a3(e)}function rSe(e){return 119<=e&&e<=127}function LA(e){const t=IE(e);return t!==void 0&&Pj(t)}function iSe(e){const t=IE(e);return t!==void 0&&Bd(t)}function Mj(e){const t=r0(e);return!!t&&!a3(t)}function yR(e){return 2<=e&&e<=7}function Bc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Qr(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function NC(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Qr(e,1024)}return!1}function ef(e){return ls(e)||hp(e)}function s3(e){return Xy(e)&&(e.operator===40||e.operator===41)&&hp(e.operand)}function Wy(e){const t=Lo(e);return!!t&&l3(t)}function l3(e){if(!(e.kind===167||e.kind===212))return!1;const t=$s(e)?hs(e.argumentExpression):e.expression;return!ef(t)&&!s3(t)}function IS(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return _l(e.text);case 167:const t=e.expression;return ef(t)?_l(t.text):s3(t)?t.operator===41?pa(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return VA(e);default:return N.assertNever(e)}}function x_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Qf(e){return Kh(e)?Sr(e):Qm(e)?oP(e):e.text}function CC(e){return Kh(e)?e.escapedText:Qm(e)?VA(e):_l(e.text)}function oSe(e){return`__@${Sa(e)}@${e.escapedName}`}function ek(e,t){return`__#${Sa(e)}@${t}`}function tk(e){return uo(e.escapedName,"__@")}function Eie(e){return uo(e.escapedName,"__#")}function aSe(e){return e.kind===80&&e.escapedText==="Symbol"}function Sie(e){return Ve(e)?Sr(e)==="__proto__":Na(e)&&e.text==="__proto__"}function PC(e,t){switch(e=$l(e),e.kind){case 231:if(Vq(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function Lj(e){switch(e.kind){case 303:return!Sie(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ve(e.name)&&!!e.initializer;case 169:return Ve(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ve(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Ve(e.left)}break;case 277:return!0}return!1}function mp(e,t){if(!Lj(e))return!1;switch(e.kind){case 303:return PC(e.initializer,t);case 304:return PC(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return PC(e.initializer,t);case 226:return PC(e.right,t);case 277:return PC(e.expression,t)}}function kj(e){return e.escapedText==="push"||e.escapedText==="unshift"}function zE(e){return R_(e).kind===169}function R_(e){for(;e.kind===208;)e=e.parent.parent;return e}function wj(e){const t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Ys(e){return Ym(e.pos)||Ym(e.end)}function sSe(e){return No(e,$i)||e}function Oj(e){const t=Fj(e),r=e.kind===214&&e.arguments!==void 0;return Wj(e.kind,t,r)}function Wj(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function MC(e){const t=Fj(e),r=e.kind===214&&e.arguments!==void 0;return nk(e.kind,t,r)}function Fj(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function nk(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return rk(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function rk(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function bR(e){return mn(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function ER(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(p){let h;if(p.file?h=r.get(p.file.fileName):h=e,!h)return;const m=Tv(h,p,tl,N3);if(m>=0)return h[m]}function s(p){let h;p.file?(h=r.get(p.file.fileName),h||(h=[],r.set(p.file.fileName,h),by(t,p.file.fileName,Uu))):(i&&(i=!1,e=e.slice()),h=e),by(h,p,N3)}function l(){return i=!0,e}function u(p){if(p)return r.get(p)||[];const h=kp(t,m=>r.get(m));return e.length&&h.unshift(...e),h}}function zj(e){return e.replace(LSe,"\\${")}function Tie(e){return!!((e.templateFlags||0)&2048)}function Bj(e){return e&&!!(XA(e)?Tie(e):Tie(e.head)||bt(e.templateSpans,t=>Tie(t.literal)))}function lSe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function J9e(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return WSe.get(e)||lSe(e.charCodeAt(0))}function tg(e,t){const r=t===96?OSe:t===39?wSe:kSe;return e.replace(r,J9e)}function ik(e,t){return e=tg(e,t),Loe.test(e)?e.replace(Loe,r=>lSe(r.charCodeAt(0))):e}function K9e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function X9e(e){return e.charCodeAt(0)===0?"&#0;":BSe.get(e)||K9e(e.charCodeAt(0))}function Gj(e,t){const r=t===39?zSe:FSe;return e.replace(r,X9e)}function Zf(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&Y9e(e.charCodeAt(0))?e.substring(1,t-1):e}function Y9e(e){return e===39||e===34||e===96}function SR(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function c3(e){const t=aP[1];for(let r=aP.length;r<=e;r++)aP.push(aP[r-1]+t);return aP[e]}function TR(){return aP[1].length}function ok(e){var t,r,i,o,s,l=!1;function u(C){const O=bA(C);O.length>1?(o=o+O.length-1,s=t.length-C.length+Xa(O),i=s-t.length===0):i=!1}function p(C){C&&C.length&&(i&&(C=c3(r)+C,i=!1),t+=C,u(C))}function h(C){C&&(l=!1),p(C)}function m(C){C&&(l=!0),p(C)}function y(){t="",r=0,i=!0,o=0,s=0,l=!1}function T(C){C!==void 0&&(t+=C,u(C),l=!1)}function A(C){C&&C.length&&h(C)}function R(C){(!i||C)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function M(){return i?t.length:t.length+e.length}return y(),{write:h,rawWrite:T,writeLiteral:A,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*TR():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Cg(t.charCodeAt(t.length-1)),clear:y,writeKeyword:h,writeOperator:h,writeParameter:h,writeProperty:h,writePunctuation:h,writeSpace:h,writeStringLiteral:h,writeSymbol:(C,O)=>h(C),writeTrailingSemicolon:h,writeComment:m,getTextPosWithWriteLine:M}}function Vj(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,o){r(),e.writeSymbol(i,o)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function AR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function wv(e){return Mu(AR(e))}function u3(e,t,r){return t.moduleName||jj(e,t.fileName,r&&r.fileName)}function cSe(e,t){return e.getCanonicalFileName(go(t,e.getCurrentDirectory()))}function Aie(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=fR(r);if(!(o&&ls(o)&&!Op(o.text)&&!cSe(e,i.path).includes(cSe(e,Fc(e.getCommonSourceDirectory())))))return u3(e,i)}function jj(e,t,r){const i=p=>e.getCanonicalFileName(p),o=il(r?ai(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=go(t,e.getCurrentDirectory()),l=yA(o,s,o,i,!1),u=Ad(l);return r?AE(u):u}function Iie(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=Ad(m3(e,t,i.outDir)):o=Ad(e),o+r}function xie(e,t){return d3(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function d3(e,t,r,i,o){const s=t.declarationDir||t.outDir,l=s?_3(e,s,r,i,o):e,u=p3(l);return Ad(l)+u}function p3(e){return Sc(e,[".mjs",".mts"])?".d.mts":Sc(e,[".cjs",".cts"])?".d.cts":Sc(e,[".json"])?".d.json.ts":".d.ts"}function Rie(e){return Sc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Sc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Sc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ps(e){return e.outFile||e.out}function f3(e,t){var r;if(e.paths)return e.baseUrl??N.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Uj(e,t,r){const i=e.getCompilerOptions();if(Ps(i)){const o=wu(i),s=i.emitDeclarationOnly||o===2||o===4;return mn(e.getSourceFiles(),l=>(s||!sc(l))&&xS(l,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return mn(o,s=>xS(s,e,r))}}function xS(e,t,r){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&cd(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Yf(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(Ps(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){const o=go(KP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=_3(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Dg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function m3(e,t,r){return _3(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function _3(e,t,r,i,o){let s=go(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,$r(t,s)}function LC(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add(Ul(f.Could_not_write_file_0_Colon_1,r,u))},s,l)}function uSe(e,t,r){if(e.length>uh(e)&&!r(e)){const i=ai(e);uSe(i,t,r),t(e)}}function Hj(e,t,r,i,o,s){try{i(e,t,r)}catch{uSe(ai(ha(e)),o,s),i(e,t,r)}}function kC(e,t){const r=Ng(e);return tC(r,t)}function RS(e,t){return tC(e,t)}function ng(e){return In(e.members,t=>Ml(t)&&Kf(t.body))}function wC(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&GE(e.parameters[0]);return e.parameters[t?1:0]}}function Die(e){const t=wC(e);return t&&t.type}function BE(e){if(e.parameters.length&&!E0(e)){const t=e.parameters[0];if(GE(t))return t}}function GE(e){return VE(e.name)}function VE(e){return!!e&&e.kind===80&&qj(e)}function DS(e){return!!Vn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function kA(e){if(!VE(e))return!1;for(;Id(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function qj(e){return e.escapedText==="this"}function NS(e,t){let r,i,o,s;return Wy(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:N.fail("Accessor has wrong kind")):Xe(e,l=>{if(Cy(l)&&aa(l)===aa(t)){const u=IS(l.name),p=IS(t.name);u===p&&(r?i||(i=l):r=l,l.kind===177&&!o&&(o=l),l.kind===178&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function yu(e){if(!lr(e)&&Tc(e))return;const t=e.type;return t||!lr(e)?t:uC(e)?e.typeExpression&&e.typeExpression.type:o0(e)}function Nie(e){return e.type}function em(e){return E0(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(lr(e)?iL(e):void 0)}function h3(e){return Do(a0(e),t=>$9e(t)?t.typeParameters:void 0)}function $9e(e){return om(e)&&!(e.parent.kind===327&&(e.parent.tags.some($f)||e.parent.tags.some(JR)))}function Cie(e){const t=wC(e);return t&&yu(t)}function Pie(e,t,r,i){Mie(e,t,r.pos,i)}function Mie(e,t,r,i){i&&i.length&&r!==i[0].pos&&RS(e,r)!==RS(e,i[0].pos)&&t.writeLine()}function Lie(e,t,r,i){r!==i&&RS(e,r)!==RS(e,i)&&t.writeLine()}function kie(e,t,r,i,o,s,l,u){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(const h of i)p&&(r.writeSpace(" "),p=!1),u(e,t,r,h.pos,h.end,l),h.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function wie(e,t,r,i,o,s,l){let u,p;if(l?o.pos===0&&(u=mn(qh(e,o.pos),h)):u=qh(e,o.pos),u){const m=[];let y;for(const T of u){if(y){const A=RS(t,y.end);if(RS(t,T.pos)>=A+2)break}m.push(T),y=T}if(m.length){const T=RS(t,Xa(m).end);RS(t,Pa(e,o.pos))>=T+2&&(Pie(t,r,o,u),kie(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Xa(m).end})}}return p;function h(m){return C4(e,m.pos)}}function IR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const l=Vx(t,i),u=t.length;let p;for(let h=i,m=l.line;h<o;m++){const y=m+1===u?e.length+1:t[m+1];if(h!==i){p===void 0&&(p=dSe(e,t[l.line],i));const A=r.getIndent()*TR()-p+dSe(e,h,y);if(A>0){let R=A%TR();const M=c3((A-R)/TR());for(r.rawWrite(M);R;)r.rawWrite(" "),R--}else r.rawWrite("")}Q9e(e,o,r,s,h,y),h=y}}else r.writeComment(e.substring(i,o))}function Q9e(e,t,r,i,o,s){const l=Math.min(t,s-1),u=e.substring(o,l).trim();u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function dSe(e,t,r){let i=0;for(;t<r&&E_(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=TR()-i%TR():i++;return i}function g3(e){return ud(e)!==0}function Oie(e){return Fy(e)!==0}function _p(e,t){return!!wA(e,t)}function Qr(e,t){return!!Wie(e,t)}function aa(e){return Yc(e)&&mc(e)||Rl(e)}function mc(e){return Qr(e,256)}function v3(e){return _p(e,16)}function jE(e){return Qr(e,64)}function Jj(e){return Qr(e,128)}function D_(e){return Qr(e,512)}function OC(e){return _p(e,8)}function Tf(e){return Qr(e,32768)}function wA(e,t){return ud(e)&t}function Wie(e,t){return Fy(e)&t}function Fie(e,t,r){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Kj(e)|536870912),r||t&&lr(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=pSe(e)|268435456),fSe(e.modifierFlagsCache)):Z9e(e.modifierFlagsCache))}function ud(e){return Fie(e,!0)}function zie(e){return Fie(e,!0,!0)}function Fy(e){return Fie(e,!1)}function pSe(e){let t=0;return e.parent&&!Ao(e)&&(lr(e)&&(Zne(e)&&(t|=8388608),ere(e)&&(t|=16777216),tre(e)&&(t|=33554432),nre(e)&&(t|=67108864),rre(e)&&(t|=134217728)),ire(e)&&(t|=65536)),t}function Z9e(e){return e&65535}function fSe(e){return e&131071|(e&260046848)>>>23}function eBe(e){return fSe(pSe(e))}function Bie(e){return Kj(e)|eBe(e)}function Kj(e){let t=Rm(e)?N_(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function N_(e){let t=0;if(e)for(const r of e)t|=OA(r.kind);return t}function OA(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function mSe(e){return e===57||e===56}function Gie(e){return mSe(e)||e===54}function WC(e){return e===76||e===77||e===78}function Xj(e){return mr(e)&&WC(e.operatorToken.kind)}function ak(e){return mSe(e)||e===61}function sk(e){return mr(e)&&ak(e.operatorToken.kind)}function Ov(e){return e>=64&&e<=79}function Yj(e){const t=$j(e);return t&&!t.isImplements?t.class:void 0}function $j(e){if(Vv(e)){if(nf(e.parent)&&di(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(uI(e.parent)){const t=p0(e.parent);if(t&&di(t))return{class:t,isImplements:!1}}}}function Pc(e,t){return mr(e)&&(t?e.operatorToken.kind===64:Ov(e.operatorToken.kind))&&Zd(e.left)}function _Se(e){return Pc(e.parent)&&e.parent.left===e}function Wv(e){if(Pc(e,!0)){const t=e.left.kind;return t===210||t===209}return!1}function y3(e){return Yj(e)!==void 0}function Bl(e){return e.kind===80||lk(e)}function Gp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function FC(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&FC(e.expression)||e.kind===217&&FC(e.expression)}function lk(e){return Fr(e)&&Ve(e.name)&&Bl(e.expression)}function ck(e){if(Fr(e)){const t=ck(e.expression);if(t!==void 0)return t+"."+fp(e.name)}else if($s(e)){const t=ck(e.expression);if(t!==void 0&&oc(e.argumentExpression))return t+"."+IS(e.argumentExpression)}else{if(Ve(e))return Vi(e.escapedText);if(Qm(e))return oP(e)}}function zy(e){return OE(e)&&kg(e)==="prototype"}function zC(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function Qj(e){return!!e.parent&&(Fr(e.parent)&&e.parent.name===e||$s(e.parent)&&e.parent.argumentExpression===e)}function Vie(e){return Id(e.parent)&&e.parent.right===e||Fr(e.parent)&&e.parent.name===e||b0(e.parent)&&e.parent.right===e}function b3(e){return mr(e)&&e.operatorToken.kind===104}function jie(e){return b3(e.parent)&&e===e.parent.right}function Zj(e){return e.kind===210&&e.properties.length===0}function Uie(e){return e.kind===209&&e.elements.length===0}function xR(e){if(!(!tBe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function tBe(e){return e&&Ne(e.declarations)>0&&Qr(e.declarations[0],2048)}function E3(e){return In(HSe,t=>Il(e,t))}function nBe(e){const t=[],r=e.length;for(let i=0;i<r;i++){const o=e.charCodeAt(i);o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):N.assert(!1,"Unexpected code point")}return t}function Hie(e){let t="";const r=nBe(e);let i=0;const o=r.length;let s,l,u,p;for(;i<o;)s=r[i]>>2,l=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,p=r[i+2]&63,i+1>=o?u=p=64:i+2>=o&&(p=64),t+=PS.charAt(s)+PS.charAt(l)+PS.charAt(u)+PS.charAt(p),i+=3;return t}function rBe(e){let t="",r=0;const i=e.length;for(;r<i;){const o=e[r];if(o<128)t+=String.fromCharCode(o),r++;else if((o&192)===192){let s=o&63;r++;let l=e[r];for(;(l&192)===128;)s=s<<6|l&63,r++,l=e[r];t+=String.fromCharCode(s)}else t+=String.fromCharCode(o),r++}return t}function qie(e,t){return e&&e.base64encode?e.base64encode(t):Hie(t)}function Jie(e,t){if(e&&e.base64decode)return e.base64decode(t);const r=t.length,i=[];let o=0;for(;o<r&&t.charCodeAt(o)!==PS.charCodeAt(64);){const s=PS.indexOf(t[o]),l=PS.indexOf(t[o+1]),u=PS.indexOf(t[o+2]),p=PS.indexOf(t[o+3]),h=(s&63)<<2|l>>4&3,m=(l&15)<<4|u>>2&15,y=(u&3)<<6|p&63;m===0&&u!==0?i.push(h):y===0&&p!==0?i.push(h,m):i.push(h,m,y),o+=4}return rBe(i)}function eU(e,t){const r=Mo(t)?t:t.readFile(e);if(!r)return;const i=jH(e,r);return i.error?void 0:i.config}function BC(e,t){return eU(e,t)||{}}function S3(e){try{return JSON.parse(e)}catch{return}}function Km(e,t){return!t.directoryExists||t.directoryExists(e)}function Fv(e){switch(e.newLine){case 0:return GSe;case 1:case void 0:return VSe}}function Af(e,t=e){return N.assert(t>=e||t===-1),{pos:e,end:t}}function T3(e,t){return Af(e.pos,t)}function m0(e,t){return Af(t,e.end)}function Og(e){const t=Rm(e)?oi(e.modifiers,Eu):void 0;return t&&!Ym(t.end)?m0(e,t.end):e}function C_(e){if(qo(e)||Hl(e))return m0(e,e.name.pos);const t=Rm(e)?el(e.modifiers):void 0;return t&&!Ym(t.end)?m0(e,t.end):Og(e)}function hSe(e){return e.pos===e.end}function tU(e,t){return Af(e,e+pa(t).length)}function CS(e,t){return Xie(e,e,t)}function A3(e,t,r){return If(GC(e,r,!1),GC(t,r,!1),r)}function Kie(e,t,r){return If(e.end,t.end,r)}function Xie(e,t,r){return If(GC(e,r,!1),t.end,r)}function uk(e,t,r){return If(e.end,GC(t,r,!1),r)}function nU(e,t,r,i){const o=GC(t,r,i);return nC(r,e.end,o)}function gSe(e,t,r){return nC(r,e.end,t.end)}function Yie(e,t){return!If(e.pos,e.end,t)}function If(e,t,r){return nC(r,e,t)===0}function GC(e,t,r){return Ym(e.pos)?-1:Pa(t.text,e.pos,!1,r)}function $ie(e,t,r,i){const o=Pa(r.text,e,!1,i),s=iBe(o,t,r);return nC(r,s??t,o)}function Qie(e,t,r,i){const o=Pa(r.text,e,!1,i);return nC(r,e,Math.min(t,o))}function iBe(e,t=0,r){for(;e-- >t;)if(!Cg(r.text.charCodeAt(e)))return e}function rU(e){const t=No(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function VC(e){return mn(e.declarations,dk)}function dk(e){return Oi(e)&&e.initializer!==void 0}function vSe(e){return e.watch&&Is(e,"watch")}function Xm(e){e.close()}function xl(e){return e.flags&33554432?e.links.checkFlags:0}function xf(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&In(e.declarations,vp)||e.flags&32768&&In(e.declarations,tf)||e.valueDeclaration,i=n0(r);return e.parent&&e.parent.flags&32?i:i&-8}if(xl(e)&6){const r=e.links.checkFlags,i=r&1024?2:r&256?1:4,o=r&2048?256:0;return i|o}return e.flags&4194304?257:0}function bu(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function RR(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function I3(e){return jC(e)===1}function WA(e){return jC(e)!==0}function jC(e){const{parent:t}=e;switch(t==null?void 0:t.kind){case 217:return jC(t);case 225:case 224:const{operator:r}=t;return r===46||r===47?2:0;case 226:const{left:i,operatorToken:o}=t;return i===e&&Ov(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:jC(t);case 303:{const s=jC(t.parent);return e===t.name?oBe(s):s}case 304:return e===t.objectAssignmentInitializer?0:jC(t.parent);case 209:return jC(t);default:return 0}}function oBe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return N.assertNever(e)}}function iU(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(!iU(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function ep(e,t){e.forEach(t),e.clear()}function rg(e,t,r){const{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var u;t!=null&&t.has(l)?o&&o(s,(u=t.get)==null?void 0:u.call(t,l),l):(e.delete(l),i(s,l))})}function UC(e,t,r){rg(e,t,r);const{createNewValue:i}=r;t==null||t.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Zie(e){if(e.flags&32){const t=Wg(e);return!!t&&Qr(t,64)}return!1}function Wg(e){var t;return(t=e.declarations)==null?void 0:t.find(di)}function Wr(e){return e.flags&3899393?e.objectFlags:0}function ySe(e,t){return!!ym(e,r=>t(r)?!0:void 0)}function x3(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&qk(e.declarations[0])}function eoe({moduleSpecifier:e}){return Na(e)?e.text:fc(e)}function oU(e){let t;return Uo(e,r=>{Kf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Kf(r[i])){t=r[i];break}}),t}function Am(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function FA(e){return di(e)||md(e)||yp(e)}function aU(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function ws(e){return e.kind===211||e.kind===212}function sU(e){return e.kind===211?e.name:(N.assert(e.kind===212),e.argumentExpression)}function toe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function R3(e){return e.kind===275||e.kind===279}function DR(e){for(;ws(e);)e=e.expression;return e}function noe(e,t){if(ws(e.parent)&&Qj(e))return r(e.parent);function r(i){if(i.kind===211){const o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(Ve(i.argumentExpression)||ls(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(ws(i.expression))return r(i.expression);if(Ve(i.expression))return t(i.expression)}}function NR(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function aBe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function sBe(e,t){this.flags=t,(N.isDebugging||sr)&&(this.checker=e)}function lBe(e,t){this.flags=t,N.isDebugging&&(this.checker=e)}function roe(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 cBe(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 uBe(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 dBe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function ioe(e){koe.push(e),e(su)}function ooe(e){Object.assign(su,e),Xe(koe,t=>t(su))}function ig(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+N.checkDefined(t[+i]))}function aoe(e){eW=e}function soe(e){!eW&&e&&(eW=e())}function Wo(e){return eW&&eW[e.key]||e.message}function CR(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),qre(t,r,i);let l=Wo(o);return bt(s)&&(l=ig(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function pBe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function bSe(e,t){const r=t.fileName||"",i=t.text.length;N.assertEqual(e.fileName,r),N.assertLessThanOrEqual(e.start,i),N.assertLessThanOrEqual(e.start+e.length,i);const o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(const s of e.relatedInformation)pBe(s)&&s.fileName===r?(N.assertLessThanOrEqual(s.start,i),N.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(bSe(s,t))):o.relatedInformation.push(s)}return o}function zA(e,t){const r=[];for(const i of e)r.push(bSe(i,t));return r}function $c(e,t,r,i,...o){qre(e.text,t,r);let s=Wo(i);return bt(o)&&(s=ig(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function lU(e,...t){let r=Wo(e);return bt(t)&&(r=ig(r,t)),r}function Ul(e,...t){let r=Wo(e);return bt(t)&&(r=ig(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function D3(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 Vo(e,t,...r){let i=Wo(t);return bt(r)&&(i=ig(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function loe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function ESe(e){return e.file?e.file.path:void 0}function HC(e,t){return N3(e,t)||fBe(e,t)||0}function N3(e,t){return Uu(ESe(e),ESe(t))||nl(e.start,t.start)||nl(e.length,t.length)||nl(e.code,t.code)||SSe(e.messageText,t.messageText)||0}function fBe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?nl(e.relatedInformation.length,t.relatedInformation.length)||Xe(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return HC(r,o)})||0:e.relatedInformation?-1:1}function SSe(e,t){if(typeof e=="string"&&typeof t=="string")return Uu(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Uu(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let o=0;o<i;o++)if(r=SSe(e.next[o],t.next[o]),r)return r;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function pk(e){return e===4||e===2||e===1||e===6?1:0}function TSe(e){if(e.transformFlags&2)return ld(e)||t1(e)?e:Uo(e,TSe)}function mBe(e){return e.isDeclarationFile?void 0:TSe(e)}function _Be(e){return(e.impliedNodeFormat===99||Sc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function fk(e){switch(MU(e)){case 3:return o=>{o.externalModuleIndicator=rw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=rw(o)};case 2:const t=[rw];(e.jsx===4||e.jsx===5)&&t.push(mBe),t.push(_Be);const r=Jm(...t);return o=>void(o.externalModuleIndicator=r(o))}}function qyt(e){return e}function C3(e){return e>=5&&e<=99}function P3(e){switch(wu(e)){case 0:case 4:case 3:return!1}return!0}function cU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function coe(e){return e.allowUnreachableCode===!1}function uoe(e){return e.allowUnusedLabels===!1}function BA(e){return e>=3&&e<=99||e===100}function dd(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function doe(e){return e.useDefineForClassFields!==!1&&os(e)>=9}function poe(e,t){return Zx(t,e,QH)}function foe(e,t){return Zx(t,e,ZH)}function moe(e,t){return Zx(t,e,eq)}function M3(e,t){return t.strictFlag?dd(e,t.name):t.allowJsFlag?jy(e):e[t.name]}function L3(e){const t=e.jsx;return t===2||t===4||t===5}function k3(e,t){const r=t==null?void 0:t.pragmas.get("jsximportsource"),i=To(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function w3(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function uU(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 dU(e,t){let r,i,o,s=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,p)=>(o||(o=new Map)).set(u,p),setSymlinkedDirectory:(u,p)=>{let h=il(u,e,t);eP(h)||(h=Fc(h),p!==!1&&!(r!=null&&r.has(h))&&(i||(i=$p())).add(p.realPath,u),(r||(r=new Map)).set(h,p))},setSymlinksFromResolutions(u,p,h){N.assert(!s),s=!0,u(m=>l(this,m.resolvedModule)),p(m=>l(this,m.resolvedTypeReferenceDirective)),h.forEach(m=>l(this,m.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(u,p){if(!p||!p.originalPath||!p.resolvedFileName)return;const{resolvedFileName:h,originalPath:m}=p;u.setSymlinkedFile(il(m,e,t),h);const[y,T]=hBe(h,m,e,t)||et;y&&T&&u.setSymlinkedDirectory(T,{real:Fc(y),realPath:Fc(il(y,e,t))})}}function hBe(e,t,r,i){const o=Wc(go(e,r)),s=Wc(go(t,r));let l=!1;for(;o.length>=2&&s.length>=2&&!ASe(o[o.length-2],i)&&!ASe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Ay(o),Ay(s)]:void 0}function ASe(e,t){return e!==void 0&&(t(e)==="node_modules"||uo(e,"@"))}function gBe(e){return dV(e.charCodeAt(0))?e.slice(1):void 0}function pU(e,t,r){const i=ZB(e,t,r);return i===void 0?void 0:gBe(i)}function ISe(e){return e.replace(LU,vBe)}function vBe(e){return"\\"+e}function qC(e,t,r){const i=O3(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function O3(e,t,r){if(!(e===void 0||e.length===0))return Do(e,i=>i&&W3(i,t,r,OU[r]))}function fU(e){return!/[.*?]/.test(e)}function _oe(e,t,r){const i=e&&W3(e,t,r,OU[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function W3(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=OU[r]){let l="",u=!1;const p=j2(e,t),h=Xa(p);if(r!=="exclude"&&h==="**")return;p[0]=Qb(p[0]),fU(h)&&p.push("**","*");let m=0;for(let y of p){if(y==="**")l+=o;else if(r==="directories"&&(l+="(",m++),u&&(l+=ol),r!=="exclude"){let T="";y.charCodeAt(0)===42?(T+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(T+="[^./]",y=y.substr(1)),T+=y.replace(LU,s),T!==y&&(l+=wU),l+=T}else l+=y.replace(LU,s);u=!0}for(;m>0;)l+=")?",m--;return l}function hoe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function F3(e,t,r,i,o){e=ha(e),o=ha(o);const s=$r(o,e);return{includeFilePatterns:Wt(O3(r,s,"files"),l=>`^${l}$`),includeFilePattern:qC(r,s,"files"),includeDirectoryPattern:qC(r,s,"directories"),excludePattern:qC(t,s,"exclude"),basePaths:yBe(e,r,i)}}function By(e,t){return new RegExp(e,t?"":"i")}function mU(e,t,r,i,o,s,l,u,p){e=ha(e),s=ha(s);const h=F3(e,r,i,o,s),m=h.includeFilePatterns&&h.includeFilePatterns.map(O=>By(O,o)),y=h.includeDirectoryPattern&&By(h.includeDirectoryPattern,o),T=h.excludePattern&&By(h.excludePattern,o),A=m?m.map(()=>[]):[[]],R=new Map,M=Mu(o);for(const O of h.basePaths)C(O,$r(s,O),l);return Cs(A);function C(O,U,K){const Q=M(p(U));if(R.has(Q))return;R.set(Q,!0);const{files:V,directories:se}=u(O);for(const G of iS(V,Uu)){const ne=$r(O,G),he=$r(U,G);if(!(t&&!Sc(ne,t))&&!(T&&T.test(he)))if(!m)A[0].push(ne);else{const ye=mi(m,Y=>Y.test(he));ye!==-1&&A[ye].push(ne)}}if(!(K!==void 0&&(K--,K===0)))for(const G of iS(se,Uu)){const ne=$r(O,G),he=$r(U,G);(!y||y.test(he))&&(!T||!T.test(he))&&C(ne,he,K)}}}function yBe(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const l=dp(s)?s:ha($r(e,s));o.push(bBe(l))}o.sort(Lx(!r));for(const s of o)Jn(i,l=>!gm(l,s,e,!r))&&i.push(s)}return i}function bBe(e){const t=Jc(e,jSe);return t<0?vA(e)?Qb(ai(e)):e:e.substring(0,e.lastIndexOf(ol,t))}function z3(e,t){return t||B3(e)||3}function B3(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 JC(e,t){const r=e&&jy(e);if(!t||t.length===0)return r?rW:wR;const i=r?rW:wR,o=Cs(i);return[...i,...eo(t,l=>l.scriptKind===7||r&&EBe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function mk(e,t){return!e||!g0(e)?t:t===rW?qSe:t===wR?USe:[...t,[".json"]]}function EBe(e){return e===1||e===2}function UE(e){return bt(OR,t=>Il(e,t))}function GA(e){return bt(WU,t=>Il(e,t))}function goe({imports:e},t=Jm(UE,GA)){return Ht(e,({text:r})=>Op(r)&&!Sc(r,Rk)?t(r):void 0)||!1}function voe(e,t,r,i){const o=pd(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return sD(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!sD(r))return goe(i)?2:0;return l();function l(){let u=!1;const p=i.imports.length?i.imports:cd(i)?SBe(i).map(h=>h.arguments[0]):et;for(const h of p)if(Op(h.text)){if(s&&t===1&&mJ(i,h,r)===99||Sc(h.text,Rk))continue;if(GA(h.text))return 3;UE(h.text)&&(u=!0)}return u?2:0}}function SBe(e){let t=0,r;for(const i of e.statements){if(t>3)break;vj(i)?r=So(r,i.declarationList.declarations.map(o=>o.initializer)):Zc(i)&&Td(i.expression,!0)?r=Rn(r,i.expression):t++}return r||et}function yoe(e,t,r){if(!e)return!1;const i=JC(t,r);for(const o of Cs(mk(t,i)))if(Il(e,o))return!0;return!1}function xSe(e){const t=e.match(/\//g);return t?t.length:0}function _k(e,t){return nl(xSe(e),xSe(t))}function Ad(e){for(const t of BU){const r=boe(e,t);if(r!==void 0)return r}return e}function boe(e,t){return Il(e,t)?hk(e,t):void 0}function hk(e,t){return e.substring(0,e.length-t.length)}function _0(e,t){return U2(e,t,BU,!1)}function PR(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 G3(e){return eo(Hh(e),t=>PR(t))}function Ym(e){return!(e>=0)}function V3(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||uo(e,".d.")&&Al(e,".ts")}function KC(e){return V3(e)||e===".json"}function XC(e){const t=Fg(e);return t!==void 0?t:N.fail(`File ${e} has unknown extension.`)}function RSe(e){return Fg(e)!==void 0}function Fg(e){return In(BU,t=>Il(e,t))}function gk(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function _U(e,t){const r=[];for(const i of e){if(i===t)return t;Mo(i)||r.push(i)}return QB(r,i=>i,t)}function hU(e,t){const r=e.indexOf(t);return N.assert(r!==-1),e.slice(r)}function Ma(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),N.assert(e.relatedInformation!==et,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Eoe(e,t){N.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;o<e.length;o++){const s=t(e[o]);s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function gU(e){return{pos:l0(e),end:e.end}}function vU(e,t){const r=t.pos-1,i=Math.min(e.text.length,Pa(e.text,t.end)+1);return{pos:r,end:i}}function YC(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function j3(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&Qte(e,t,j3)}function $C(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const h=e.length-1;let m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,h)||"0"}const r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let h=i-1,m=0;h>=r;h--,m+=t){const y=m>>>4,T=e.charCodeAt(h),R=(T<=57?T-48:10+T-(T<=70?65:97))<<(m&15);s[y]|=R;const M=R>>>16;M&&(s[y+1]|=M)}let l="",u=s.length-1,p=!0;for(;p;){let h=0;p=!1;for(let m=u;m>=0;m--){const y=h<<16|s[m],T=y/10|0;s[m]=T,h=y-T*10,T&&!p&&(u=m,p=!0)}l=h+l}return l}function HE({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Soe(e){if(U3(e,!1))return yU(e)}function yU(e){const t=e.startsWith("-"),r=$C(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function U3(e,t){if(e==="")return!1;const r=Nv(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan();const s=o===41;s&&(o=r.scan());const l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===HE({negative:s,base10Value:$C(r.getTokenValue())}))}function h0(e){return!!(e.flags&33554432)||X4(e)||IBe(e)||ABe(e)||!(Qh(e)||TBe(e))}function TBe(e){return Ve(e)&&np(e.parent)&&e.parent.name===e}function ABe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Qr(e.parent,64))return!0;const t=e.parent.parent.kind;return t===264||t===187}function IBe(e){if(e.kind!==80)return!1;const t=Vn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===264}function Toe(e){return Df(e)&&Ve(e.typeName)}function Aoe(e,t=xv){if(e.length<2)return!0;const r=e[0];for(let i=1,o=e.length;i<o;i++){const s=e[i];if(!t(r,s))return!1}return!0}function QC(e,t){return e.pos=t,e}function MR(e,t){return e.end=t,e}function hh(e,t,r){return MR(QC(e,t),r)}function ZC(e,t,r){return hh(e,t,t+r)}function Ioe(e,t){return e&&(e.flags=t),e}function Ha(e,t){return e&&t&&(e.parent=t),e}function LR(e,t){if(e)for(const r of e)Ha(r,t);return e}function Gy(e,t){if(!e)return e;return RP(e,$x(e)?r:o),e;function r(s,l){if(t&&s.parent===l)return"skip";Ha(s,l)}function i(s){if(Wp(s))for(const l of s.jsDoc)r(l,s),RP(l,r)}function o(s,l){return r(s,l)||i(s)}}function xBe(e){return!Gc(e)}function bU(e){return fd(e)&&Jn(e.elements,xBe)}function xoe(e){for(N.assertIsDefined(e.parent);;){const t=e.parent;if(Gd(t)){e=t;continue}if(Zc(t)||iI(t)||zS(t)&&(t.initializer===e||t.incrementor===e))return!0;if(hP(t)){if(e!==Xa(t.elements))return!0;e=t;continue}if(mr(t)&&t.operatorToken.kind===28){if(e===t.left)return!0;e=t;continue}return!1}}function eP(e){return bt(V2,t=>e.includes(t))}function Roe(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:i}=e;return qS(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(Qx(e))return jS(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return fS(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return ji(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return gL(e)?t.children:void 0;case 286:case 285:return ji(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return Yc(e)?t.members:void 0;case 266:return i1(e)?t.members:void 0;case 312:return t.statements}}function H3(e){if(!e.typeParameters){if(bt(e.parameters,t=>!yu(t)))return!0;if(e.kind!==219){const t=Kc(e.parameters);if(!(t&&GE(t)))return!0}}return!1}function tP(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Doe(e){return e.kind===260&&e.parent.kind===299}function qE(e){return e.kind===218||e.kind===219}function JE(e){return e.replace(/\$/gm,()=>"\\$")}function og(e){return(+e).toString()===e}function q3(e,t,r,i,o){const s=o&&e==="new";return!s&&Zp(e,t)?w.createIdentifier(e):!i&&!s&&og(e)&&+e>=0?w.createNumericLiteral(+e):w.createStringLiteral(e,!!r)}function nP(e){return!!(e.flags&262144&&e.isThisType)}function J3(e){let t=0,r=0,i=0,o=0,s;(h=>{h[h.BeforeNodeModules=0]="BeforeNodeModules",h[h.NodeModules=1]="NodeModules",h[h.Scope=2]="Scope",h[h.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,u=0,p=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),p){case 0:e.indexOf(Ah,l)===l&&(t=l,r=u,p=1);break;case 1:case 2:p===1&&e.charAt(l+1)==="@"?p=2:(i=u,p=3);break;case 3:e.indexOf(Ah,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function DSe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function kR(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function vk(e){return y0(e)||Ll(e)||Tc(e)||Ac(e)||md(e)||kR(e)||Xl(e)&&!PE(e)&&!A_(e)}function yk(e){if(!uC(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function EU(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&Jh(e.charCodeAt(1),t):Jh(r,t)}function Noe(e){var t;return((t=XU(e))==null?void 0:t.kind)===0}function bk(e){return lr(e)&&(e.type&&e.type.kind===323||qx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function rP(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||bk(e);case 355:case 348:return yk(e);default:return!1}}function Coe(e){const t=e.kind;return(t===211||t===212)&&oI(e.expression)}function SU(e){return lr(e)&&Gd(e)&&Wp(e)&&!!RV(e)}function TU(e){return N.checkDefined(K3(e))}function K3(e){const t=RV(e);return t&&t.typeExpression&&t.typeExpression.type}function iP(e){return Ve(e)?e.escapedText:VA(e)}function Ek(e){return Ve(e)?Sr(e):oP(e)}function Poe(e){const t=e.kind;return t===80||t===295}function VA(e){return`${e.namespace.escapedText}:${Sr(e.name)}`}function oP(e){return`${Sr(e.namespace)}:${Sr(e.name)}`}function AU(e){return Ve(e)?Sr(e):oP(e)}function tm(e){return!!(e.flags&8576)}function nm(e){return e.flags&8192?e.escapedName:e.flags&384?_l(""+e.value):N.fail()}function X3(e){return!!e&&(Fr(e)||$s(e)||mr(e))}function Moe(e){return e===void 0?!1:!!uD(e.attributes)}function jA(e,t){return JSe.call(e,"*",t)}function Y3(e){return Ve(e.name)?e.name.escapedText:_l(e.name.text)}var $3,Vy,Sk,Q3,Tk,Z3,IU,xU,NSe,CSe,RU,PSe,MSe,DU,NU,CU,PU,LSe,kSe,wSe,OSe,WSe,Loe,FSe,zSe,BSe,aP,PS,GSe,VSe,su,koe,eW,_c,os,wu,pd,MU,rm,gh,MS,tW,nW,g0,Rf,KE,sP,Ak,jy,lP,LU,jSe,kU,wU,woe,Ooe,Woe,OU,wR,WU,USe,HSe,FU,OR,rW,qSe,Ik,xk,Rk,zU,BU,iW,JSe,RBe=I({"src/compiler/utilities.ts"(){ra(),$3=[],Vy="tslib",Sk=160,Q3=1e6,Tk=C9e(),Z3=Sd(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:et})),AsyncIterator:new Map(Object.entries({es2015:et})),Atomics:new Map(Object.entries({es2017:et})),SharedArrayBuffer:new Map(Object.entries({es2017:et})),AsyncIterable:new Map(Object.entries({es2018:et})),AsyncIterableIterator:new Map(Object.entries({es2018:et})),AsyncGenerator:new Map(Object.entries({es2018:et})),AsyncGeneratorFunction:new Map(Object.entries({es2018:et})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:et,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:et})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),IU=(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))(IU||{}),xU=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,NSe=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,CSe=/^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,RU=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,PSe=/^\/\/\/\s*<amd-module\s+.*?\/>/,MSe=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,DU=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(DU||{}),NU=(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))(NU||{}),CU=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(CU||{}),PU=(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))(PU||{}),LSe=/\$\{/g,kSe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,wSe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,OSe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,WSe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),Loe=/[^\u0000-\u007F]/g,FSe=/["\u0000-\u001f\u2028\u2029\u0085]/g,zSe=/['\u0000-\u001f\u2028\u2029\u0085]/g,BSe=new Map(Object.entries({'"':"&quot;","'":"&apos;"})),aP=[""," "],PS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",GSe=`\r
`,VSe=`
`,su={getNodeConstructor:()=>roe,getTokenConstructor:()=>cBe,getIdentifierConstructor:()=>uBe,getPrivateIdentifierConstructor:()=>roe,getSourceFileConstructor:()=>roe,getSymbolConstructor:()=>aBe,getTypeConstructor:()=>sBe,getSignatureConstructor:()=>lBe,getSourceMapSourceConstructor:()=>dBe},koe=[],_c={target:{dependencies:["module"],computeValue:e=>e.target??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:_c.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(_c.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(_c.module.computeValue(e)===100||_c.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(_c.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:_c.esModuleInterop.computeValue(e)||_c.module.computeValue(e)===4||_c.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=_c.moduleResolution.computeValue(e);if(!BA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=_c.moduleResolution.computeValue(e);if(!BA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:_c.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||_c.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&_c.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?_c.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>dd(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>dd(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>dd(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>dd(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>dd(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>dd(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>dd(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>dd(e,"useUnknownInCatchVariables")}},os=_c.target.computeValue,wu=_c.module.computeValue,pd=_c.moduleResolution.computeValue,MU=_c.moduleDetection.computeValue,rm=_c.isolatedModules.computeValue,gh=_c.esModuleInterop.computeValue,MS=_c.allowSyntheticDefaultImports.computeValue,tW=_c.resolvePackageJsonExports.computeValue,nW=_c.resolvePackageJsonImports.computeValue,g0=_c.resolveJsonModule.computeValue,Rf=_c.declaration.computeValue,KE=_c.preserveConstEnums.computeValue,sP=_c.incremental.computeValue,Ak=_c.declarationMap.computeValue,jy=_c.allowJs.computeValue,lP=_c.useDefineForClassFields.computeValue,LU=/[^\w\s/]/g,jSe=[42,63],kU=["node_modules","bower_components","jspm_packages"],wU=`(?!(${kU.join("|")})(/|$))`,woe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${wU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>hoe(e,woe.singleAsteriskRegexFragment)},Ooe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${wU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>hoe(e,Ooe.singleAsteriskRegexFragment)},Woe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>hoe(e,Woe.singleAsteriskRegexFragment)},OU={files:woe,directories:Ooe,exclude:Woe},wR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],WU=Cs(wR),USe=[...wR,[".json"]],HSe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],FU=[[".js",".jsx"],[".mjs"],[".cjs"]],OR=Cs(FU),rW=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],qSe=[...rW,[".json"]],Ik=[".d.ts",".d.cts",".d.mts"],xk=[".ts",".cts",".mts",".tsx"],Rk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],zU=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(zU||{}),BU=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],iW={files:et,directories:et},JSe=String.prototype.replace}});function Foe(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:p,createBaseNode:h};function s(m){return new(o||(o=su.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=su.getIdentifierConstructor()))(m,-1,-1)}function u(m){return new(i||(i=su.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=su.getTokenConstructor()))(m,-1,-1)}function h(m){return new(e||(e=su.getNodeConstructor()))(m,-1,-1)}}var DBe=I({"src/compiler/factory/baseNodeFactory.ts"(){ra()}});function zoe(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:T,parenthesizeBranchOfConditionalExpression:A,parenthesizeExpressionOfExportDefault:R,parenthesizeExpressionOfNew:M,parenthesizeLeftSideOfAccess:C,parenthesizeOperandOfPostfixUnary:O,parenthesizeOperandOfPrefixUnary:U,parenthesizeExpressionsOfCommaDelimitedList:K,parenthesizeExpressionForDisallowedComma:Q,parenthesizeExpressionOfExpressionStatement:V,parenthesizeConciseBodyOfArrowFunction:se,parenthesizeCheckTypeOfConditionalType:G,parenthesizeExtendsTypeOfConditionalType:ne,parenthesizeConstituentTypesOfUnionType:ye,parenthesizeConstituentTypeOfUnionType:he,parenthesizeConstituentTypesOfIntersectionType:X,parenthesizeConstituentTypeOfIntersectionType:Y,parenthesizeOperandOfTypeOperator:oe,parenthesizeOperandOfReadonlyTypeOperator:pe,parenthesizeNonArrayTypeOfPostfixType:Ce,parenthesizeElementTypesOfTupleType:de,parenthesizeElementTypeOfTupleType:ie,parenthesizeTypeOfOptionalType:Le,parenthesizeTypeArguments:De,parenthesizeLeadingTypeArgument:Ue};function i(Me){t||(t=new Map);let We=t.get(Me);return We||(We=At=>h(Me,At),t.set(Me,We)),We}function o(Me){r||(r=new Map);let We=r.get(Me);return We||(We=At=>m(Me,void 0,At),r.set(Me,We)),We}function s(Me,We,At,Se){const je=nk(226,Me),ot=Wj(226,Me),Bt=bm(We);if(!At&&We.kind===219&&je>3)return!0;const vt=MC(Bt);switch(nl(vt,je)){case-1:return!(!At&&ot===1&&We.kind===229);case 1:return!1;case 0:if(At)return ot===1;if(mr(Bt)&&Bt.operatorToken.kind===Me){if(l(Me))return!1;if(Me===40){const It=Se?u(Se):0;if(dC(It)&&It===u(Bt))return!1}}return Oj(Bt)===0}}function l(Me){return Me===42||Me===52||Me===51||Me===53||Me===28}function u(Me){if(Me=bm(Me),dC(Me.kind))return Me.kind;if(Me.kind===226&&Me.operatorToken.kind===40){if(Me.cachedLiteralKind!==void 0)return Me.cachedLiteralKind;const We=u(Me.left),At=dC(We)&&We===u(Me.right)?We:0;return Me.cachedLiteralKind=At,At}return 0}function p(Me,We,At,Se){return bm(We).kind===217?We:s(Me,We,At,Se)?e.createParenthesizedExpression(We):We}function h(Me,We){return p(Me,We,!0)}function m(Me,We,At){return p(Me,At,!1,We)}function y(Me){return AP(Me)?e.createParenthesizedExpression(Me):Me}function T(Me){const We=nk(227,58),At=bm(Me),Se=MC(At);return nl(Se,We)!==1?e.createParenthesizedExpression(Me):Me}function A(Me){const We=bm(Me);return AP(We)?e.createParenthesizedExpression(Me):Me}function R(Me){const We=bm(Me);let At=AP(We);if(!At)switch(NR(We,!1).kind){case 231:case 218:At=!0}return At?e.createParenthesizedExpression(Me):Me}function M(Me){const We=NR(Me,!0);switch(We.kind){case 213:return e.createParenthesizedExpression(Me);case 214:return We.arguments?Me:e.createParenthesizedExpression(Me)}return C(Me)}function C(Me,We){const At=bm(Me);return Zd(At)&&(At.kind!==214||At.arguments)&&(We||!qu(At))?Me:dt(e.createParenthesizedExpression(Me),Me)}function O(Me){return Zd(Me)?Me:dt(e.createParenthesizedExpression(Me),Me)}function U(Me){return BV(Me)?Me:dt(e.createParenthesizedExpression(Me),Me)}function K(Me){const We=Zo(Me,Q);return dt(e.createNodeArray(We,Me.hasTrailingComma),Me)}function Q(Me){const We=bm(Me),At=MC(We),Se=nk(226,28);return At>Se?Me:dt(e.createParenthesizedExpression(Me),Me)}function V(Me){const We=bm(Me);if(sa(We)){const Se=We.expression,je=bm(Se).kind;if(je===218||je===219){const ot=e.updateCallExpression(We,dt(e.createParenthesizedExpression(Se),Se),We.typeArguments,We.arguments);return e.restoreOuterExpressions(Me,ot,8)}}const At=NR(We,!1).kind;return At===210||At===218?dt(e.createParenthesizedExpression(Me),Me):Me}function se(Me){return!Ko(Me)&&(AP(Me)||NR(Me,!1).kind===210)?dt(e.createParenthesizedExpression(Me),Me):Me}function G(Me){switch(Me.kind){case 184:case 185:case 194:return e.createParenthesizedType(Me)}return Me}function ne(Me){switch(Me.kind){case 194:return e.createParenthesizedType(Me)}return Me}function he(Me){switch(Me.kind){case 192:case 193:return e.createParenthesizedType(Me)}return G(Me)}function ye(Me){return e.createNodeArray(Zo(Me,he))}function Y(Me){switch(Me.kind){case 192:case 193:return e.createParenthesizedType(Me)}return he(Me)}function X(Me){return e.createNodeArray(Zo(Me,Y))}function oe(Me){switch(Me.kind){case 193:return e.createParenthesizedType(Me)}return Y(Me)}function pe(Me){switch(Me.kind){case 198:return e.createParenthesizedType(Me)}return oe(Me)}function Ce(Me){switch(Me.kind){case 195:case 198:case 186:return e.createParenthesizedType(Me)}return oe(Me)}function de(Me){return e.createNodeArray(Zo(Me,ie))}function ie(Me){return ve(Me)?e.createParenthesizedType(Me):Me}function ve(Me){return HR(Me)?Me.postfix:BR(Me)||yh(Me)||zR(Me)||OS(Me)?ve(Me.type):rI(Me)?ve(Me.falseType):qy(Me)||nI(Me)?ve(Xa(Me.types)):kS(Me)?!!Me.typeParameter.constraint&&ve(Me.typeParameter.constraint):!1}function Le(Me){return ve(Me)?e.createParenthesizedType(Me):Ce(Me)}function Ue(Me){return dre(Me)&&Me.typeParameters?e.createParenthesizedType(Me):Me}function Ee(Me,We){return We===0?Ue(Me):Me}function De(Me){if(bt(Me))return e.createNodeArray(Zo(Me,Ee))}}var GU,NBe=I({"src/compiler/factory/parenthesizerRules.ts"(){ra(),GU={getParenthesizeLeftSideOfBinaryForOperator:e=>tl,getParenthesizeRightSideOfBinaryForOperator:e=>tl,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:tl,parenthesizeConditionOfConditionalExpression:tl,parenthesizeBranchOfConditionalExpression:tl,parenthesizeExpressionOfExportDefault:tl,parenthesizeExpressionOfNew:e=>oa(e,Zd),parenthesizeLeftSideOfAccess:e=>oa(e,Zd),parenthesizeOperandOfPostfixUnary:e=>oa(e,Zd),parenthesizeOperandOfPrefixUnary:e=>oa(e,BV),parenthesizeExpressionsOfCommaDelimitedList:e=>oa(e,RE),parenthesizeExpressionForDisallowedComma:tl,parenthesizeExpressionOfExpressionStatement:tl,parenthesizeConciseBodyOfArrowFunction:tl,parenthesizeCheckTypeOfConditionalType:tl,parenthesizeExtendsTypeOfConditionalType:tl,parenthesizeConstituentTypesOfUnionType:e=>oa(e,RE),parenthesizeConstituentTypeOfUnionType:tl,parenthesizeConstituentTypesOfIntersectionType:e=>oa(e,RE),parenthesizeConstituentTypeOfIntersectionType:tl,parenthesizeOperandOfTypeOperator:tl,parenthesizeOperandOfReadonlyTypeOperator:tl,parenthesizeNonArrayTypeOfPostfixType:tl,parenthesizeElementTypesOfTupleType:e=>oa(e,RE),parenthesizeElementTypeOfTupleType:tl,parenthesizeTypeOfOptionalType:tl,parenthesizeTypeArguments:e=>e&&oa(e,RE),parenthesizeLeadingTypeArgument:tl}}});function Boe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:h};function t(m,y){if(Ko(m))return m;const T=e.createReturnStatement(m);dt(T,m);const A=e.createBlock([T],y);return dt(A,m),A}function r(m){var y;if(!m.body)return N.fail("Cannot convert a FunctionDeclaration without a body");const T=e.createFunctionExpression((y=xE(m))==null?void 0:y.filter(A=>!$A(A)&&!GW(A)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return Nr(T,m),dt(T,m),cP(m)&&sW(T,!0),T}function i(m){var y;const T=e.createClassExpression((y=m.modifiers)==null?void 0:y.filter(A=>!$A(A)&&!GW(A)),m.name,m.typeParameters,m.heritageClauses,m.members);return Nr(T,m),dt(T,m),cP(m)&&sW(T,!0),T}function o(m){if($a(m)){if(m.dotDotDotToken)return N.assertNode(m.name,Ve),Nr(dt(e.createSpreadElement(m.name),m),m);const y=h(m.name);return m.initializer?Nr(dt(e.createAssignment(y,m.initializer),m),m):y}return oa(m,yt)}function s(m){if($a(m)){if(m.dotDotDotToken)return N.assertNode(m.name,Ve),Nr(dt(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){const y=h(m.name);return Nr(dt(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(y,m.initializer):y),m),m)}return N.assertNode(m.name,Ve),Nr(dt(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return oa(m,Mg)}function l(m){switch(m.kind){case 207:case 209:return p(m);case 206:case 210:return u(m)}}function u(m){return im(m)?Nr(dt(e.createObjectLiteralExpression(Wt(m.elements,s)),m),m):oa(m,La)}function p(m){return YE(m)?Nr(dt(e.createArrayLiteralExpression(Wt(m.elements,o)),m),m):oa(m,fd)}function h(m){return ta(m)?l(m):oa(m,yt)}}var VU,CBe=I({"src/compiler/factory/nodeConverters.ts"(){ra(),VU={convertToFunctionBlock:Jo,convertToFunctionExpression:Jo,convertToClassExpression:Jo,convertToArrayAssignmentElement:Jo,convertToObjectAssignmentElement:Jo,convertToAssignmentPattern:Jo,convertToObjectAssignmentPattern:Jo,convertToArrayAssignmentPattern:Jo,convertToAssignmentElementTarget:Jo}}});function KSe(e){Voe.push(e)}function Dk(e,t){const r=e&8?tl:Nr,i=Sd(()=>e&1?GU:zoe(O)),o=Sd(()=>e&2?VU:Boe(O)),s=lh(E=>(P,B)=>Te(P,E,B)),l=lh(E=>P=>ct(E,P)),u=lh(E=>P=>Vt(P,E)),p=lh(E=>()=>eN(E)),h=lh(E=>P=>yT(E,P)),m=lh(E=>(P,B)=>R1(E,P,B)),y=lh(E=>(P,B)=>tN(E,P,B)),T=lh(E=>(P,B)=>Qs(E,P,B)),A=lh(E=>(P,B)=>q0(E,P,B)),R=lh(E=>(P,B,ce)=>Of(E,P,B,ce)),M=lh(E=>(P,B,ce)=>hb(E,P,B,ce)),C=lh(E=>(P,B,ce,Qe)=>gb(E,P,B,ce,Qe)),O={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:U,createNumericLiteral:se,createBigIntLiteral:G,createStringLiteral:he,createStringLiteralFromNode:ye,createRegularExpressionLiteral:Y,createLiteralLikeNode:X,createIdentifier:Ce,createTempVariable:de,createLoopVariable:ie,createUniqueName:ve,getGeneratedNameForNode:Le,createPrivateIdentifier:Ee,createUniquePrivateName:Me,getGeneratedPrivateNameForNode:We,createToken:Se,createSuper:je,createThis:ot,createNull:Bt,createTrue:vt,createFalse:$e,createModifier:It,createModifiersFromModifierFlags:tn,createQualifiedName:rn,updateQualifiedName:Mn,createComputedPropertyName:$n,updateComputedPropertyName:gn,createTypeParameterDeclaration:Qt,updateTypeParameterDeclaration:Yt,createParameterDeclaration:vi,updateParameterDeclaration:so,createDecorator:Wi,updateDecorator:Co,createPropertySignature:Ln,updatePropertySignature:Ci,createPropertyDeclaration:sn,updatePropertyDeclaration:tt,createMethodSignature:zt,updateMethodSignature:Dn,createMethodDeclaration:ci,updateMethodDeclaration:yi,createConstructorDeclaration:Tn,updateConstructorDeclaration:wn,createGetAccessorDeclaration:mt,updateGetAccessorDeclaration:ft,createSetAccessorDeclaration:le,updateSetAccessorDeclaration:Fe,createCallSignature:j,updateCallSignature:it,createConstructSignature:Rt,updateConstructSignature:Ye,createIndexSignature:_t,updateIndexSignature:Gt,createClassStaticBlockDeclaration:Io,updateClassStaticBlockDeclaration:fa,createTemplateLiteralTypeSpan:yn,updateTemplateLiteralTypeSpan:fn,createKeywordTypeNode:hn,createTypePredicateNode:q,updateTypePredicateNode:Oe,createTypeReferenceNode:Lt,updateTypeReferenceNode:L,createFunctionTypeNode:me,updateFunctionTypeNode:J,createConstructorTypeNode:Be,updateConstructorTypeNode:kt,createTypeQueryNode:Gn,updateTypeQueryNode:qn,createTypeLiteralNode:Pi,updateTypeLiteralNode:xi,createArrayTypeNode:ir,updateArrayTypeNode:Vr,createTupleTypeNode:vo,updateTupleTypeNode:Mi,createNamedTupleMember:Ri,updateNamedTupleMember:Jr,createOptionalTypeNode:xo,updateOptionalTypeNode:Nn,createRestTypeNode:Fs,updateRestTypeNode:Ql,createUnionTypeNode:Vs,updateUnionTypeNode:gl,createIntersectionTypeNode:cu,updateIntersectionTypeNode:ho,createConditionalTypeNode:da,updateConditionalTypeNode:uu,createInferTypeNode:Ts,updateInferTypeNode:Ca,createImportTypeNode:lc,updateImportTypeNode:Nl,createParenthesizedType:cl,updateParenthesizedType:wo,createThisTypeNode:nn,createTypeOperatorNode:js,updateTypeOperatorNode:tu,createIndexedAccessTypeNode:du,updateIndexedAccessTypeNode:Tp,createMappedTypeNode:Ms,updateMappedTypeNode:xc,createLiteralTypeNode:ue,updateLiteralTypeNode:Z,createTemplateLiteralType:ml,updateTemplateLiteralType:Lf,createObjectBindingPattern:we,updateObjectBindingPattern:Et,createArrayBindingPattern:un,updateArrayBindingPattern:Er,createBindingElement:vr,updateBindingElement:jr,createArrayLiteralExpression:Di,updateArrayLiteralExpression:Mr,createObjectLiteralExpression:Yo,updateObjectLiteralExpression:Sl,createPropertyAccessExpression:e&4?(E,P)=>pr(Us(E,P),262144):Us,updatePropertyAccessExpression:vc,createPropertyAccessChain:e&4?(E,P,B)=>pr(Es(E,P,B),262144):Es,updatePropertyAccessChain:Uc,createElementAccessExpression:wc,updateElementAccessExpression:sm,createElementAccessChain:_d,updateElementAccessChain:Pe,createCallExpression:Xn,updateCallExpression:yo,createCallChain:$o,updateCallChain:na,createNewExpression:Zl,updateNewExpression:yc,createTaggedTemplateExpression:ul,updateTaggedTemplateExpression:vl,createTypeAssertion:Gl,updateTypeAssertion:ec,createParenthesizedExpression:Hc,updateParenthesizedExpression:df,createFunctionExpression:jd,updateFunctionExpression:Nd,createArrowFunction:kf,updateArrowFunction:G_,createDeleteExpression:Dh,updateDeleteExpression:qg,createTypeOfExpression:Bu,updateTypeOfExpression:Jg,createVoidExpression:Ap,updateVoidExpression:dg,createAwaitExpression:Ud,updateAwaitExpression:te,createPrefixUnaryExpression:ct,updatePrefixUnaryExpression:Ft,createPostfixUnaryExpression:Vt,updatePostfixUnaryExpression:W,createBinaryExpression:Te,updateBinaryExpression:qt,createConditionalExpression:rr,updateConditionalExpression:ii,createTemplateExpression:Yr,updateTemplateExpression:oo,createTemplateHead:Ip,createTemplateMiddle:Hd,createTemplateTail:ab,createNoSubstitutionTemplateLiteral:us,createTemplateLiteralLikeNode:Rc,createYieldExpression:Pm,updateYieldExpression:Mm,createSpreadElement:Ui,updateSpreadElement:Kg,createClassExpression:ey,updateClassExpression:Lm,createOmittedExpression:b1,createExpressionWithTypeArguments:E1,updateExpressionWithTypeArguments:pf,createAsExpression:V_,updateAsExpression:ff,createNonNullExpression:Xg,updateNonNullExpression:ze,createSatisfiesExpression:Ze,updateSatisfiesExpression:Mt,createNonNullChain:jt,updateNonNullChain:bn,createMetaProperty:Qn,updateMetaProperty:vn,createTemplateSpan:Zn,updateTemplateSpan:_i,createSemicolonClassElement:cr,createBlock:ni,updateBlock:fr,createVariableStatement:Qo,updateVariableStatement:Ja,createEmptyStatement:Zu,createExpressionStatement:fu,updateExpressionStatement:Yg,createIfStatement:O0,updateIfStatement:zI,createDoStatement:W0,updateDoStatement:qD,createWhileStatement:JD,updateWhileStatement:KD,createForStatement:uT,updateForStatement:S1,createForInStatement:BI,updateForInStatement:XD,createForOfStatement:GI,updateForOfStatement:VI,createContinueStatement:jI,updateContinueStatement:UI,createBreakStatement:dT,updateBreakStatement:HI,createReturnStatement:T1,updateReturnStatement:A1,createWithStatement:sb,updateWithStatement:lb,createSwitchStatement:pg,updateSwitchStatement:F0,createLabeledStatement:ts,updateLabeledStatement:pT,createThrowStatement:YD,updateThrowStatement:z0,createTryStatement:$g,updateTryStatement:Nh,createDebuggerStatement:wf,createVariableDeclaration:qd,updateVariableDeclaration:xp,createVariableDeclarationList:op,updateVariableDeclarationList:ty,createFunctionDeclaration:fT,updateFunctionDeclaration:$D,createClassDeclaration:cb,updateClassDeclaration:B0,createInterfaceDeclaration:JI,updateInterfaceDeclaration:bc,createTypeAliasDeclaration:ny,updateTypeAliasDeclaration:KI,createEnumDeclaration:r_,updateEnumDeclaration:mT,createModuleDeclaration:qe,updateModuleDeclaration:i_,createModuleBlock:mu,updateModuleBlock:G0,createCaseBlock:XI,updateCaseBlock:ub,createNamespaceExportDeclaration:ry,updateNamespaceExportDeclaration:iy,createImportEqualsDeclaration:Ka,updateImportEqualsDeclaration:o_,createImportDeclaration:_T,updateImportDeclaration:hT,createImportClause:V0,updateImportClause:gT,createAssertClause:lm,updateAssertClause:cm,createAssertEntry:Qg,updateAssertEntry:YI,createImportTypeAssertionContainer:a_,updateImportTypeAssertionContainer:QD,createImportAttributes:I1,updateImportAttributes:Ki,createImportAttribute:Zr,updateImportAttribute:Ch,createNamespaceImport:Jd,updateNamespaceImport:NM,createNamespaceExport:Zg,updateNamespaceExport:CM,createNamedImports:db,updateNamedImports:yl,createImportSpecifier:jp,updateImportSpecifier:fg,createExportAssignment:um,updateExportAssignment:pb,createExportDeclaration:km,updateExportDeclaration:ev,createNamedExports:vT,updateNamedExports:mg,createExportSpecifier:$I,updateExportSpecifier:_g,createMissingDeclaration:j_,createExternalModuleReference:oy,updateExternalModuleReference:ZD,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return y(322)},get updateJSDocNonNullableType(){return T(322)},get createJSDocNullableType(){return y(321)},get updateJSDocNullableType(){return T(321)},get createJSDocOptionalType(){return h(323)},get updateJSDocOptionalType(){return m(323)},get createJSDocVariadicType(){return h(325)},get updateJSDocVariadicType(){return m(325)},get createJSDocNamepathType(){return h(326)},get updateJSDocNamepathType(){return m(326)},createJSDocFunctionType:bT,updateJSDocFunctionType:wm,createJSDocTypeLiteral:fb,updateJSDocTypeLiteral:nN,createJSDocTypeExpression:ET,updateJSDocTypeExpression:PM,createJSDocSignature:hr,updateJSDocSignature:nu,createJSDocTemplateTag:U_,updateJSDocTemplateTag:ur,createJSDocTypedefTag:ST,updateJSDocTypedefTag:j0,createJSDocParameterTag:qc,updateJSDocParameterTag:Ph,createJSDocPropertyTag:Om,updateJSDocPropertyTag:D1,createJSDocCallbackTag:N1,updateJSDocCallbackTag:mb,createJSDocOverloadTag:tv,updateJSDocOverloadTag:TT,createJSDocAugmentsTag:Wm,updateJSDocAugmentsTag:U0,createJSDocImplementsTag:hg,updateJSDocImplementsTag:ap,createJSDocSeeTag:_b,updateJSDocSeeTag:QI,createJSDocNameReference:H0,updateJSDocNameReference:rN,createJSDocMemberName:C1,updateJSDocMemberName:AT,createJSDocLink:Up,updateJSDocLink:IT,createJSDocLinkCode:Vl,updateJSDocLinkCode:Oc,createJSDocLinkPlain:xT,updateJSDocLinkPlain:Au,get createJSDocTypeTag(){return M(351)},get updateJSDocTypeTag(){return C(351)},get createJSDocReturnTag(){return M(349)},get updateJSDocReturnTag(){return C(349)},get createJSDocThisTag(){return M(350)},get updateJSDocThisTag(){return C(350)},get createJSDocAuthorTag(){return A(337)},get updateJSDocAuthorTag(){return R(337)},get createJSDocClassTag(){return A(339)},get updateJSDocClassTag(){return R(339)},get createJSDocPublicTag(){return A(340)},get updateJSDocPublicTag(){return R(340)},get createJSDocPrivateTag(){return A(341)},get updateJSDocPrivateTag(){return R(341)},get createJSDocProtectedTag(){return A(342)},get updateJSDocProtectedTag(){return R(342)},get createJSDocReadonlyTag(){return A(343)},get updateJSDocReadonlyTag(){return R(343)},get createJSDocOverrideTag(){return A(344)},get updateJSDocOverrideTag(){return R(344)},get createJSDocDeprecatedTag(){return A(338)},get updateJSDocDeprecatedTag(){return R(338)},get createJSDocThrowsTag(){return M(356)},get updateJSDocThrowsTag(){return C(356)},get createJSDocSatisfiesTag(){return M(357)},get updateJSDocSatisfiesTag(){return C(357)},createJSDocEnumTag:Hp,updateJSDocEnumTag:RT,createJSDocUnknownTag:ru,updateJSDocUnknownTag:ZI,createJSDocText:DT,updateJSDocText:Hs,createJSDocComment:iN,updateJSDocComment:J0,createJsxElement:P1,updateJsxElement:MM,createJsxSelfClosingElement:hd,updateJsxSelfClosingElement:nv,createJsxOpeningElement:H_,updateJsxOpeningElement:ex,createJsxClosingElement:Rp,updateJsxClosingElement:tx,createJsxFragment:sp,createJsxText:sy,updateJsxText:NT,createJsxOpeningFragment:oN,createJsxJsxClosingFragment:aN,updateJsxFragment:nx,createJsxAttribute:CT,updateJsxAttribute:sN,createJsxAttributes:vb,updateJsxAttributes:Dp,createJsxSpreadAttribute:Mh,updateJsxSpreadAttribute:lN,createJsxExpression:PT,updateJsxExpression:rs,createJsxNamespacedName:Ir,updateJsxNamespacedName:_f,createCaseClause:Cd,updateCaseClause:M1,createDefaultClause:cN,updateDefaultClause:K0,createHeritageClause:L1,updateHeritageClause:MT,createCatchClause:gg,updateCatchClause:s_,createPropertyAssignment:hf,updatePropertyAssignment:Fm,createShorthandPropertyAssignment:vg,updateShorthandPropertyAssignment:yg,createSpreadAssignment:cc,updateSpreadAssignment:uN,createEnumMember:Wf,updateEnumMember:Lh,createSourceFile:gf,updateSourceFile:Ls,createRedirectedSourceFile:k1,createBundle:w1,updateBundle:O1,createUnparsedSource:iv,createUnparsedPrologue:Y0,createUnparsedPrepend:D,createUnparsedTextLike:ae,createUnparsedSyntheticReference:ht,createInputFiles:on,createSyntheticExpression:wr,createSyntaxList:wi,createNotEmittedStatement:bi,createPartiallyEmittedExpression:no,updatePartiallyEmittedExpression:ga,createCommaListExpression:Pd,updateCommaListExpression:Ff,createSyntheticReferenceExpression:bb,updateSyntheticReferenceExpression:Si,cloneNode:Sb,get createComma(){return s(28)},get createAssignment(){return s(64)},get createLogicalOr(){return s(57)},get createLogicalAnd(){return s(56)},get createBitwiseOr(){return s(52)},get createBitwiseXor(){return s(53)},get createBitwiseAnd(){return s(51)},get createStrictEquality(){return s(37)},get createStrictInequality(){return s(38)},get createEquality(){return s(35)},get createInequality(){return s(36)},get createLessThan(){return s(30)},get createLessThanEquals(){return s(33)},get createGreaterThan(){return s(32)},get createGreaterThanEquals(){return s(34)},get createLeftShift(){return s(48)},get createRightShift(){return s(49)},get createUnsignedRightShift(){return s(50)},get createAdd(){return s(40)},get createSubtract(){return s(41)},get createMultiply(){return s(42)},get createDivide(){return s(44)},get createModulo(){return s(45)},get createExponent(){return s(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:kT,createImmediatelyInvokedArrowFunction:W1,createVoidZero:q_,createExportDefault:wh,createExternalModuleExport:dN,createTypeCheck:wT,createIsNotTypeCheck:$z,createMethodCall:Tb,createGlobalMethodCall:l_,createFunctionBindCall:_8,createFunctionCallCall:h8,createFunctionApplyCall:$0,createArraySliceCall:LM,createArrayConcatCall:Oh,createObjectDefinePropertyCall:ax,createObjectGetOwnPropertyDescriptorCall:g8,createReflectGetCall:J_,createReflectSetCall:$,createPropertyDescriptor:Ke,createCallBinding:Ni,createAssignmentTargetWrapper:hi,inlineExpressions:Xi,getInternalName:Rs,getLocalName:es,getExportName:zf,getDeclarationName:K_,getNamespaceMemberName:bg,getExternalModuleOrNamespaceExportName:ov,restoreOuterExpressions:Jt,restoreEnclosingLabel:zr,createUseStrictPrologue:lp,copyPrologue:av,copyStandardPrologue:OT,copyCustomPrologue:pN,ensureUseStrict:kM,liftToBlock:wM,mergeLexicalEnvironment:sv,replaceModifiers:Ib,replaceDecoratorsAndModifiers:fN,replacePropertyName:qp};return Xe(Voe,E=>E(O)),O;function U(E,P){if(E===void 0||E===et)E=[];else if(RE(E)){if(P===void 0||E.hasTrailingComma===P)return E.transformFlags===void 0&&XSe(E),N.attachNodeArrayDebugInfo(E),E;const Qe=E.slice();return Qe.pos=E.pos,Qe.end=E.end,Qe.hasTrailingComma=P,Qe.transformFlags=E.transformFlags,N.attachNodeArrayDebugInfo(Qe),Qe}const B=E.length,ce=B>=1&&B<=4?E.slice():E;return ce.pos=-1,ce.end=-1,ce.hasTrailingComma=!!P,ce.transformFlags=0,XSe(ce),N.attachNodeArrayDebugInfo(ce),ce}function K(E){return t.createBaseNode(E)}function Q(E){const P=K(E);return P.symbol=void 0,P.localSymbol=void 0,P}function V(E,P){return E!==P&&(E.typeArguments=P.typeArguments),or(E,P)}function se(E,P=0){const B=typeof E=="number"?E+"":E;N.assert(B.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const ce=Q(9);return ce.text=B,ce.numericLiteralFlags=P,P&384&&(ce.transformFlags|=1024),ce}function G(E){const P=At(10);return P.text=typeof E=="string"?E:HE(E)+"n",P.transformFlags|=32,P}function ne(E,P){const B=Q(11);return B.text=E,B.singleQuote=P,B}function he(E,P,B){const ce=ne(E,P);return ce.hasExtendedUnicodeEscape=B,B&&(ce.transformFlags|=1024),ce}function ye(E){const P=ne(Qf(E),void 0);return P.textSourceNode=E,P}function Y(E){const P=At(14);return P.text=E,P}function X(E,P){switch(E){case 9:return se(P,0);case 10:return G(P);case 11:return he(P,void 0);case 12:return sy(P,!1);case 13:return sy(P,!0);case 14:return Y(P);case 15:return Rc(E,P,void 0,0)}}function oe(E){const P=t.createBaseIdentifierNode(80);return P.escapedText=E,P.jsDoc=void 0,P.flowNode=void 0,P.symbol=void 0,P}function pe(E,P,B,ce){const Qe=oe(_l(E));return kk(Qe,{flags:P,id:aW,prefix:B,suffix:ce}),aW++,Qe}function Ce(E,P,B){P===void 0&&E&&(P=IE(E)),P===80&&(P=void 0);const ce=oe(_l(E));return B&&(ce.flags|=256),ce.escapedText==="await"&&(ce.transformFlags|=67108864),ce.flags&256&&(ce.transformFlags|=1024),ce}function de(E,P,B,ce){let Qe=1;P&&(Qe|=8);const Kt=pe("",Qe,B,ce);return E&&E(Kt),Kt}function ie(E){let P=2;return E&&(P|=8),pe("",P,void 0,void 0)}function ve(E,P=0,B,ce){return N.assert(!(P&7),"Argument out of range: flags"),N.assert((P&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),pe(E,3|P,B,ce)}function Le(E,P=0,B,ce){N.assert(!(P&7),"Argument out of range: flags");const Qe=E?Kh(E)?S0(!1,B,E,ce,Sr):`generated@${as(E)}`:"";(B||ce)&&(P|=16);const Kt=pe(Qe,4|P,B,ce);return Kt.original=E,Kt}function Ue(E){const P=t.createBasePrivateIdentifierNode(81);return P.escapedText=E,P.transformFlags|=16777216,P}function Ee(E){return uo(E,"#")||N.fail("First character of private identifier must be #: "+E),Ue(_l(E))}function De(E,P,B,ce){const Qe=Ue(_l(E));return kk(Qe,{flags:P,id:aW,prefix:B,suffix:ce}),aW++,Qe}function Me(E,P,B){E&&!uo(E,"#")&&N.fail("First character of private identifier must be #: "+E);const ce=8|(E?3:1);return De(E??"",ce,P,B)}function We(E,P,B){const ce=Kh(E)?S0(!0,P,E,B,Sr):`#generated@${as(E)}`,Kt=De(ce,4|(P||B?16:0),P,B);return Kt.original=E,Kt}function At(E){return t.createBaseTokenNode(E)}function Se(E){N.assert(E>=0&&E<=165,"Invalid token"),N.assert(E<=15||E>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),N.assert(E<=9||E>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),N.assert(E!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const P=At(E);let B=0;switch(E){case 134:B=384;break;case 160:B=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:B=1;break;case 108:B=134218752,P.flowNode=void 0;break;case 126:B=1024;break;case 129:B=16777216;break;case 110:B=16384,P.flowNode=void 0;break}return B&&(P.transformFlags|=B),P}function je(){return Se(108)}function ot(){return Se(110)}function Bt(){return Se(106)}function vt(){return Se(112)}function $e(){return Se(97)}function It(E){return Se(E)}function tn(E){const P=[];return E&32&&P.push(It(95)),E&128&&P.push(It(138)),E&2048&&P.push(It(90)),E&4096&&P.push(It(87)),E&1&&P.push(It(125)),E&2&&P.push(It(123)),E&4&&P.push(It(124)),E&64&&P.push(It(128)),E&256&&P.push(It(126)),E&16&&P.push(It(164)),E&8&&P.push(It(148)),E&512&&P.push(It(129)),E&1024&&P.push(It(134)),E&8192&&P.push(It(103)),E&16384&&P.push(It(147)),P.length?P:void 0}function rn(E,P){const B=K(166);return B.left=E,B.right=uc(P),B.transformFlags|=Tr(B.left)|Nk(B.right),B.flowNode=void 0,B}function Mn(E,P,B){return E.left!==P||E.right!==B?or(rn(P,B),E):E}function $n(E){const P=K(167);return P.expression=i().parenthesizeExpressionOfComputedPropertyName(E),P.transformFlags|=Tr(P.expression)|1024|131072,P}function gn(E,P){return E.expression!==P?or($n(P),E):E}function Qt(E,P,B,ce){const Qe=Q(168);return Qe.modifiers=Va(E),Qe.name=uc(P),Qe.constraint=B,Qe.default=ce,Qe.transformFlags=1,Qe.expression=void 0,Qe.jsDoc=void 0,Qe}function Yt(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.constraint!==ce||E.default!==Qe?or(Qt(P,B,ce,Qe),E):E}function vi(E,P,B,ce,Qe,Kt){const yr=Q(169);return yr.modifiers=Va(E),yr.dotDotDotToken=P,yr.name=uc(B),yr.questionToken=ce,yr.type=Qe,yr.initializer=sx(Kt),VE(yr.name)?yr.transformFlags=1:yr.transformFlags=qa(yr.modifiers)|Tr(yr.dotDotDotToken)|Uy(yr.name)|Tr(yr.questionToken)|Tr(yr.initializer)|(yr.questionToken??yr.type?1:0)|(yr.dotDotDotToken??yr.initializer?1024:0)|(N_(yr.modifiers)&31?8192:0),yr.jsDoc=void 0,yr}function so(E,P,B,ce,Qe,Kt,yr){return E.modifiers!==P||E.dotDotDotToken!==B||E.name!==ce||E.questionToken!==Qe||E.type!==Kt||E.initializer!==yr?or(vi(P,B,ce,Qe,Kt,yr),E):E}function Wi(E){const P=K(170);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Tr(P.expression)|1|8192|33554432,P}function Co(E,P){return E.expression!==P?or(Wi(P),E):E}function Ln(E,P,B,ce){const Qe=Q(171);return Qe.modifiers=Va(E),Qe.name=uc(P),Qe.type=ce,Qe.questionToken=B,Qe.transformFlags=1,Qe.initializer=void 0,Qe.jsDoc=void 0,Qe}function Ci(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.type!==Qe?Ar(Ln(P,B,ce,Qe),E):E}function Ar(E,P){return E!==P&&(E.initializer=P.initializer),or(E,P)}function sn(E,P,B,ce,Qe){const Kt=Q(172);Kt.modifiers=Va(E),Kt.name=uc(P),Kt.questionToken=B&&Hy(B)?B:void 0,Kt.exclamationToken=B&&zk(B)?B:void 0,Kt.type=ce,Kt.initializer=sx(Qe);const yr=Kt.flags&33554432||N_(Kt.modifiers)&128;return Kt.transformFlags=qa(Kt.modifiers)|Uy(Kt.name)|Tr(Kt.initializer)|(yr||Kt.questionToken||Kt.exclamationToken||Kt.type?1:0)|(Za(Kt.name)||N_(Kt.modifiers)&256&&Kt.initializer?8192:0)|16777216,Kt.jsDoc=void 0,Kt}function tt(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.name!==B||E.questionToken!==(ce!==void 0&&Hy(ce)?ce:void 0)||E.exclamationToken!==(ce!==void 0&&zk(ce)?ce:void 0)||E.type!==Qe||E.initializer!==Kt?or(sn(P,B,ce,Qe,Kt),E):E}function zt(E,P,B,ce,Qe,Kt){const yr=Q(173);return yr.modifiers=Va(E),yr.name=uc(P),yr.questionToken=B,yr.typeParameters=Va(ce),yr.parameters=Va(Qe),yr.type=Kt,yr.transformFlags=1,yr.jsDoc=void 0,yr.locals=void 0,yr.nextContainer=void 0,yr.typeArguments=void 0,yr}function Dn(E,P,B,ce,Qe,Kt,yr){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.typeParameters!==Qe||E.parameters!==Kt||E.type!==yr?V(zt(P,B,ce,Qe,Kt,yr),E):E}function ci(E,P,B,ce,Qe,Kt,yr,ro){const qs=Q(174);if(qs.modifiers=Va(E),qs.asteriskToken=P,qs.name=uc(B),qs.questionToken=ce,qs.exclamationToken=void 0,qs.typeParameters=Va(Qe),qs.parameters=U(Kt),qs.type=yr,qs.body=ro,!qs.body)qs.transformFlags=1;else{const c_=N_(qs.modifiers)&1024,Rb=!!qs.asteriskToken,zm=c_&&Rb;qs.transformFlags=qa(qs.modifiers)|Tr(qs.asteriskToken)|Uy(qs.name)|Tr(qs.questionToken)|qa(qs.typeParameters)|qa(qs.parameters)|Tr(qs.type)|Tr(qs.body)&-67108865|(zm?128:c_?256:Rb?2048:0)|(qs.questionToken||qs.typeParameters||qs.type?1:0)|1024}return qs.typeArguments=void 0,qs.jsDoc=void 0,qs.locals=void 0,qs.nextContainer=void 0,qs.flowNode=void 0,qs.endFlowNode=void 0,qs.returnFlowNode=void 0,qs}function yi(E,P,B,ce,Qe,Kt,yr,ro,qs){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.questionToken!==Qe||E.typeParameters!==Kt||E.parameters!==yr||E.type!==ro||E.body!==qs?Qi(ci(P,B,ce,Qe,Kt,yr,ro,qs),E):E}function Qi(E,P){return E!==P&&(E.exclamationToken=P.exclamationToken),or(E,P)}function Io(E){const P=Q(175);return P.body=E,P.transformFlags=Tr(E)|16777216,P.modifiers=void 0,P.jsDoc=void 0,P.locals=void 0,P.nextContainer=void 0,P.endFlowNode=void 0,P.returnFlowNode=void 0,P}function fa(E,P){return E.body!==P?ka(Io(P),E):E}function ka(E,P){return E!==P&&(E.modifiers=P.modifiers),or(E,P)}function Tn(E,P,B){const ce=Q(176);return ce.modifiers=Va(E),ce.parameters=U(P),ce.body=B,ce.transformFlags=qa(ce.modifiers)|qa(ce.parameters)|Tr(ce.body)&-67108865|1024,ce.typeParameters=void 0,ce.type=void 0,ce.typeArguments=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.returnFlowNode=void 0,ce}function wn(E,P,B,ce){return E.modifiers!==P||E.parameters!==B||E.body!==ce?He(Tn(P,B,ce),E):E}function He(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function mt(E,P,B,ce,Qe){const Kt=Q(177);return Kt.modifiers=Va(E),Kt.name=uc(P),Kt.parameters=U(B),Kt.type=ce,Kt.body=Qe,Kt.body?Kt.transformFlags=qa(Kt.modifiers)|Uy(Kt.name)|qa(Kt.parameters)|Tr(Kt.type)|Tr(Kt.body)&-67108865|(Kt.type?1:0):Kt.transformFlags=1,Kt.typeArguments=void 0,Kt.typeParameters=void 0,Kt.jsDoc=void 0,Kt.locals=void 0,Kt.nextContainer=void 0,Kt.flowNode=void 0,Kt.endFlowNode=void 0,Kt.returnFlowNode=void 0,Kt}function ft(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.type!==Qe||E.body!==Kt?Ct(mt(P,B,ce,Qe,Kt),E):E}function Ct(E,P){return E!==P&&(E.typeParameters=P.typeParameters),V(E,P)}function le(E,P,B,ce){const Qe=Q(178);return Qe.modifiers=Va(E),Qe.name=uc(P),Qe.parameters=U(B),Qe.body=ce,Qe.body?Qe.transformFlags=qa(Qe.modifiers)|Uy(Qe.name)|qa(Qe.parameters)|Tr(Qe.body)&-67108865|(Qe.type?1:0):Qe.transformFlags=1,Qe.typeArguments=void 0,Qe.typeParameters=void 0,Qe.type=void 0,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe.endFlowNode=void 0,Qe.returnFlowNode=void 0,Qe}function Fe(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.body!==Qe?pt(le(P,B,ce,Qe),E):E}function pt(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function j(E,P,B){const ce=Q(179);return ce.typeParameters=Va(E),ce.parameters=Va(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function it(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(j(P,B,ce),E):E}function Rt(E,P,B){const ce=Q(180);return ce.typeParameters=Va(E),ce.parameters=Va(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Ye(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(Rt(P,B,ce),E):E}function _t(E,P,B){const ce=Q(181);return ce.modifiers=Va(E),ce.parameters=Va(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Gt(E,P,B,ce){return E.parameters!==B||E.type!==ce||E.modifiers!==P?V(_t(P,B,ce),E):E}function yn(E,P){const B=K(204);return B.type=E,B.literal=P,B.transformFlags=1,B}function fn(E,P,B){return E.type!==P||E.literal!==B?or(yn(P,B),E):E}function hn(E){return Se(E)}function q(E,P,B){const ce=K(182);return ce.assertsModifier=E,ce.parameterName=uc(P),ce.type=B,ce.transformFlags=1,ce}function Oe(E,P,B,ce){return E.assertsModifier!==P||E.parameterName!==B||E.type!==ce?or(q(P,B,ce),E):E}function Lt(E,P){const B=K(183);return B.typeName=uc(E),B.typeArguments=P&&i().parenthesizeTypeArguments(U(P)),B.transformFlags=1,B}function L(E,P,B){return E.typeName!==P||E.typeArguments!==B?or(Lt(P,B),E):E}function me(E,P,B){const ce=Q(184);return ce.typeParameters=Va(E),ce.parameters=Va(P),ce.type=B,ce.transformFlags=1,ce.modifiers=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function J(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?fe(me(P,B,ce),E):E}function fe(E,P){return E!==P&&(E.modifiers=P.modifiers),V(E,P)}function Be(...E){return E.length===4?ke(...E):E.length===3?Tt(...E):N.fail("Incorrect number of arguments specified.")}function ke(E,P,B,ce){const Qe=Q(185);return Qe.modifiers=Va(E),Qe.typeParameters=Va(P),Qe.parameters=Va(B),Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.typeArguments=void 0,Qe}function Tt(E,P,B){return ke(void 0,E,P,B)}function kt(...E){return E.length===5?en(...E):E.length===4?En(...E):N.fail("Incorrect number of arguments specified.")}function en(E,P,B,ce,Qe){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==Qe?V(Be(P,B,ce,Qe),E):E}function En(E,P,B,ce){return en(E,E.modifiers,P,B,ce)}function Gn(E,P){const B=K(186);return B.exprName=E,B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags=1,B}function qn(E,P,B){return E.exprName!==P||E.typeArguments!==B?or(Gn(P,B),E):E}function Pi(E){const P=Q(187);return P.members=U(E),P.transformFlags=1,P}function xi(E,P){return E.members!==P?or(Pi(P),E):E}function ir(E){const P=K(188);return P.elementType=i().parenthesizeNonArrayTypeOfPostfixType(E),P.transformFlags=1,P}function Vr(E,P){return E.elementType!==P?or(ir(P),E):E}function vo(E){const P=K(189);return P.elements=U(i().parenthesizeElementTypesOfTupleType(E)),P.transformFlags=1,P}function Mi(E,P){return E.elements!==P?or(vo(P),E):E}function Ri(E,P,B,ce){const Qe=Q(202);return Qe.dotDotDotToken=E,Qe.name=P,Qe.questionToken=B,Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe}function Jr(E,P,B,ce,Qe){return E.dotDotDotToken!==P||E.name!==B||E.questionToken!==ce||E.type!==Qe?or(Ri(P,B,ce,Qe),E):E}function xo(E){const P=K(190);return P.type=i().parenthesizeTypeOfOptionalType(E),P.transformFlags=1,P}function Nn(E,P){return E.type!==P?or(xo(P),E):E}function Fs(E){const P=K(191);return P.type=E,P.transformFlags=1,P}function Ql(E,P){return E.type!==P?or(Fs(P),E):E}function ko(E,P,B){const ce=K(E);return ce.types=O.createNodeArray(B(P)),ce.transformFlags=1,ce}function cs(E,P,B){return E.types!==P?or(ko(E.kind,P,B),E):E}function Vs(E){return ko(192,E,i().parenthesizeConstituentTypesOfUnionType)}function gl(E,P){return cs(E,P,i().parenthesizeConstituentTypesOfUnionType)}function cu(E){return ko(193,E,i().parenthesizeConstituentTypesOfIntersectionType)}function ho(E,P){return cs(E,P,i().parenthesizeConstituentTypesOfIntersectionType)}function da(E,P,B,ce){const Qe=K(194);return Qe.checkType=i().parenthesizeCheckTypeOfConditionalType(E),Qe.extendsType=i().parenthesizeExtendsTypeOfConditionalType(P),Qe.trueType=B,Qe.falseType=ce,Qe.transformFlags=1,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function uu(E,P,B,ce,Qe){return E.checkType!==P||E.extendsType!==B||E.trueType!==ce||E.falseType!==Qe?or(da(P,B,ce,Qe),E):E}function Ts(E){const P=K(195);return P.typeParameter=E,P.transformFlags=1,P}function Ca(E,P){return E.typeParameter!==P?or(Ts(P),E):E}function ml(E,P){const B=K(203);return B.head=E,B.templateSpans=U(P),B.transformFlags=1,B}function Lf(E,P,B){return E.head!==P||E.templateSpans!==B?or(ml(P,B),E):E}function lc(E,P,B,ce,Qe=!1){const Kt=K(205);return Kt.argument=E,Kt.attributes=P,Kt.assertions&&Kt.assertions.assertClause&&Kt.attributes&&(Kt.assertions.assertClause=Kt.attributes),Kt.qualifier=B,Kt.typeArguments=ce&&i().parenthesizeTypeArguments(ce),Kt.isTypeOf=Qe,Kt.transformFlags=1,Kt}function Nl(E,P,B,ce,Qe,Kt=E.isTypeOf){return E.argument!==P||E.attributes!==B||E.qualifier!==ce||E.typeArguments!==Qe||E.isTypeOf!==Kt?or(lc(P,B,ce,Qe,Kt),E):E}function cl(E){const P=K(196);return P.type=E,P.transformFlags=1,P}function wo(E,P){return E.type!==P?or(cl(P),E):E}function nn(){const E=K(197);return E.transformFlags=1,E}function js(E,P){const B=K(198);return B.operator=E,B.type=E===148?i().parenthesizeOperandOfReadonlyTypeOperator(P):i().parenthesizeOperandOfTypeOperator(P),B.transformFlags=1,B}function tu(E,P){return E.type!==P?or(js(E.operator,P),E):E}function du(E,P){const B=K(199);return B.objectType=i().parenthesizeNonArrayTypeOfPostfixType(E),B.indexType=P,B.transformFlags=1,B}function Tp(E,P,B){return E.objectType!==P||E.indexType!==B?or(du(P,B),E):E}function Ms(E,P,B,ce,Qe,Kt){const yr=Q(200);return yr.readonlyToken=E,yr.typeParameter=P,yr.nameType=B,yr.questionToken=ce,yr.type=Qe,yr.members=Kt&&U(Kt),yr.transformFlags=1,yr.locals=void 0,yr.nextContainer=void 0,yr}function xc(E,P,B,ce,Qe,Kt,yr){return E.readonlyToken!==P||E.typeParameter!==B||E.nameType!==ce||E.questionToken!==Qe||E.type!==Kt||E.members!==yr?or(Ms(P,B,ce,Qe,Kt,yr),E):E}function ue(E){const P=K(201);return P.literal=E,P.transformFlags=1,P}function Z(E,P){return E.literal!==P?or(ue(P),E):E}function we(E){const P=K(206);return P.elements=U(E),P.transformFlags|=qa(P.elements)|1024|524288,P.transformFlags&32768&&(P.transformFlags|=65664),P}function Et(E,P){return E.elements!==P?or(we(P),E):E}function un(E){const P=K(207);return P.elements=U(E),P.transformFlags|=qa(P.elements)|1024|524288,P}function Er(E,P){return E.elements!==P?or(un(P),E):E}function vr(E,P,B,ce){const Qe=Q(208);return Qe.dotDotDotToken=E,Qe.propertyName=uc(P),Qe.name=uc(B),Qe.initializer=sx(ce),Qe.transformFlags|=Tr(Qe.dotDotDotToken)|Uy(Qe.propertyName)|Uy(Qe.name)|Tr(Qe.initializer)|(Qe.dotDotDotToken?32768:0)|1024,Qe.flowNode=void 0,Qe}function jr(E,P,B,ce,Qe){return E.propertyName!==B||E.dotDotDotToken!==P||E.name!==ce||E.initializer!==Qe?or(vr(P,B,ce,Qe),E):E}function Di(E,P){const B=K(209),ce=E&&el(E),Qe=U(E,ce&&Gc(ce)?!0:void 0);return B.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Qe),B.multiLine=P,B.transformFlags|=qa(B.elements),B}function Mr(E,P){return E.elements!==P?or(Di(P,E.multiLine),E):E}function Yo(E,P){const B=Q(210);return B.properties=U(E),B.multiLine=P,B.transformFlags|=qa(B.properties),B.jsDoc=void 0,B}function Sl(E,P){return E.properties!==P?or(Yo(P,E.multiLine),E):E}function jc(E,P,B){const ce=Q(211);return ce.expression=E,ce.questionDotToken=P,ce.name=B,ce.transformFlags=Tr(ce.expression)|Tr(ce.questionDotToken)|(Ve(ce.name)?Nk(ce.name):Tr(ce.name)|536870912),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Us(E,P){const B=jc(i().parenthesizeLeftSideOfAccess(E,!1),void 0,uc(P));return fP(E)&&(B.transformFlags|=384),B}function vc(E,P,B){return d4(E)?Uc(E,P,E.questionDotToken,oa(B,Ve)):E.expression!==P||E.name!==B?or(Us(P,B),E):E}function Es(E,P,B){const ce=jc(i().parenthesizeLeftSideOfAccess(E,!0),P,uc(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Uc(E,P,B,ce){return N.assert(!!(E.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),E.expression!==P||E.questionDotToken!==B||E.name!==ce?or(Es(P,B,ce),E):E}function ip(E,P,B){const ce=Q(212);return ce.expression=E,ce.questionDotToken=P,ce.argumentExpression=B,ce.transformFlags|=Tr(ce.expression)|Tr(ce.questionDotToken)|Tr(ce.argumentExpression),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function wc(E,P){const B=ip(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Z0(P));return fP(E)&&(B.transformFlags|=384),B}function sm(E,P,B){return DV(E)?Pe(E,P,E.questionDotToken,B):E.expression!==P||E.argumentExpression!==B?or(wc(P,B),E):E}function _d(E,P,B){const ce=ip(i().parenthesizeLeftSideOfAccess(E,!0),P,Z0(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Pe(E,P,B,ce){return N.assert(!!(E.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),E.expression!==P||E.questionDotToken!==B||E.argumentExpression!==ce?or(_d(P,B,ce),E):E}function Ot(E,P,B,ce){const Qe=Q(213);return Qe.expression=E,Qe.questionDotToken=P,Qe.typeArguments=B,Qe.arguments=ce,Qe.transformFlags|=Tr(Qe.expression)|Tr(Qe.questionDotToken)|qa(Qe.typeArguments)|qa(Qe.arguments),Qe.typeArguments&&(Qe.transformFlags|=1),zd(Qe.expression)&&(Qe.transformFlags|=16384),Qe}function Xn(E,P,B){const ce=Ot(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Va(P),i().parenthesizeExpressionsOfCommaDelimitedList(U(B)));return mP(ce.expression)&&(ce.transformFlags|=8388608),ce}function yo(E,P,B,ce){return uS(E)?na(E,P,E.questionDotToken,B,ce):E.expression!==P||E.typeArguments!==B||E.arguments!==ce?or(Xn(P,B,ce),E):E}function $o(E,P,B,ce){const Qe=Ot(i().parenthesizeLeftSideOfAccess(E,!0),P,Va(B),i().parenthesizeExpressionsOfCommaDelimitedList(U(ce)));return Qe.flags|=64,Qe.transformFlags|=32,Qe}function na(E,P,B,ce,Qe){return N.assert(!!(E.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),E.expression!==P||E.questionDotToken!==B||E.typeArguments!==ce||E.arguments!==Qe?or($o(P,B,ce,Qe),E):E}function Zl(E,P,B){const ce=Q(214);return ce.expression=i().parenthesizeExpressionOfNew(E),ce.typeArguments=Va(P),ce.arguments=B?i().parenthesizeExpressionsOfCommaDelimitedList(B):void 0,ce.transformFlags|=Tr(ce.expression)|qa(ce.typeArguments)|qa(ce.arguments)|32,ce.typeArguments&&(ce.transformFlags|=1),ce}function yc(E,P,B,ce){return E.expression!==P||E.typeArguments!==B||E.arguments!==ce?or(Zl(P,B,ce),E):E}function ul(E,P,B){const ce=K(215);return ce.tag=i().parenthesizeLeftSideOfAccess(E,!1),ce.typeArguments=Va(P),ce.template=B,ce.transformFlags|=Tr(ce.tag)|qa(ce.typeArguments)|Tr(ce.template)|1024,ce.typeArguments&&(ce.transformFlags|=1),Bj(ce.template)&&(ce.transformFlags|=128),ce}function vl(E,P,B,ce){return E.tag!==P||E.typeArguments!==B||E.template!==ce?or(ul(P,B,ce),E):E}function Gl(E,P){const B=K(216);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.type=E,B.transformFlags|=Tr(B.expression)|Tr(B.type)|1,B}function ec(E,P,B){return E.type!==P||E.expression!==B?or(Gl(P,B),E):E}function Hc(E){const P=K(217);return P.expression=E,P.transformFlags=Tr(P.expression),P.jsDoc=void 0,P}function df(E,P){return E.expression!==P?or(Hc(P),E):E}function jd(E,P,B,ce,Qe,Kt,yr){const ro=Q(218);ro.modifiers=Va(E),ro.asteriskToken=P,ro.name=uc(B),ro.typeParameters=Va(ce),ro.parameters=U(Qe),ro.type=Kt,ro.body=yr;const qs=N_(ro.modifiers)&1024,c_=!!ro.asteriskToken,Rb=qs&&c_;return ro.transformFlags=qa(ro.modifiers)|Tr(ro.asteriskToken)|Uy(ro.name)|qa(ro.typeParameters)|qa(ro.parameters)|Tr(ro.type)|Tr(ro.body)&-67108865|(Rb?128:qs?256:c_?2048:0)|(ro.typeParameters||ro.type?1:0)|4194304,ro.typeArguments=void 0,ro.jsDoc=void 0,ro.locals=void 0,ro.nextContainer=void 0,ro.flowNode=void 0,ro.endFlowNode=void 0,ro.returnFlowNode=void 0,ro}function Nd(E,P,B,ce,Qe,Kt,yr,ro){return E.name!==ce||E.modifiers!==P||E.asteriskToken!==B||E.typeParameters!==Qe||E.parameters!==Kt||E.type!==yr||E.body!==ro?V(jd(P,B,ce,Qe,Kt,yr,ro),E):E}function kf(E,P,B,ce,Qe,Kt){const yr=Q(219);yr.modifiers=Va(E),yr.typeParameters=Va(P),yr.parameters=U(B),yr.type=ce,yr.equalsGreaterThanToken=Qe??Se(39),yr.body=i().parenthesizeConciseBodyOfArrowFunction(Kt);const ro=N_(yr.modifiers)&1024;return yr.transformFlags=qa(yr.modifiers)|qa(yr.typeParameters)|qa(yr.parameters)|Tr(yr.type)|Tr(yr.equalsGreaterThanToken)|Tr(yr.body)&-67108865|(yr.typeParameters||yr.type?1:0)|(ro?16640:0)|1024,yr.typeArguments=void 0,yr.jsDoc=void 0,yr.locals=void 0,yr.nextContainer=void 0,yr.flowNode=void 0,yr.endFlowNode=void 0,yr.returnFlowNode=void 0,yr}function G_(E,P,B,ce,Qe,Kt,yr){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==Qe||E.equalsGreaterThanToken!==Kt||E.body!==yr?V(kf(P,B,ce,Qe,Kt,yr),E):E}function Dh(E){const P=K(220);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Tr(P.expression),P}function qg(E,P){return E.expression!==P?or(Dh(P),E):E}function Bu(E){const P=K(221);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Tr(P.expression),P}function Jg(E,P){return E.expression!==P?or(Bu(P),E):E}function Ap(E){const P=K(222);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Tr(P.expression),P}function dg(E,P){return E.expression!==P?or(Ap(P),E):E}function Ud(E){const P=K(223);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Tr(P.expression)|256|128|2097152,P}function te(E,P){return E.expression!==P?or(Ud(P),E):E}function ct(E,P){const B=K(224);return B.operator=E,B.operand=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Tr(B.operand),(E===46||E===47)&&Ve(B.operand)&&!al(B.operand)&&!Gg(B.operand)&&(B.transformFlags|=268435456),B}function Ft(E,P){return E.operand!==P?or(ct(E.operator,P),E):E}function Vt(E,P){const B=K(225);return B.operator=P,B.operand=i().parenthesizeOperandOfPostfixUnary(E),B.transformFlags|=Tr(B.operand),Ve(B.operand)&&!al(B.operand)&&!Gg(B.operand)&&(B.transformFlags|=268435456),B}function W(E,P){return E.operand!==P?or(Vt(P,E.operator),E):E}function Te(E,P,B){const ce=Q(226),Qe=OM(P),Kt=Qe.kind;return ce.left=i().parenthesizeLeftSideOfBinary(Kt,E),ce.operatorToken=Qe,ce.right=i().parenthesizeRightSideOfBinary(Kt,ce.left,B),ce.transformFlags|=Tr(ce.left)|Tr(ce.operatorToken)|Tr(ce.right),Kt===61?ce.transformFlags|=32:Kt===64?La(ce.left)?ce.transformFlags|=5248|st(ce.left):fd(ce.left)&&(ce.transformFlags|=5120|st(ce.left)):Kt===43||Kt===68?ce.transformFlags|=512:WC(Kt)&&(ce.transformFlags|=16),Kt===103&&qi(ce.left)&&(ce.transformFlags|=536870912),ce.jsDoc=void 0,ce}function st(E){return nw(E)?65536:0}function qt(E,P,B,ce){return E.left!==P||E.operatorToken!==B||E.right!==ce?or(Te(P,B,ce),E):E}function rr(E,P,B,ce,Qe){const Kt=K(227);return Kt.condition=i().parenthesizeConditionOfConditionalExpression(E),Kt.questionToken=P??Se(58),Kt.whenTrue=i().parenthesizeBranchOfConditionalExpression(B),Kt.colonToken=ce??Se(59),Kt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Qe),Kt.transformFlags|=Tr(Kt.condition)|Tr(Kt.questionToken)|Tr(Kt.whenTrue)|Tr(Kt.colonToken)|Tr(Kt.whenFalse),Kt}function ii(E,P,B,ce,Qe,Kt){return E.condition!==P||E.questionToken!==B||E.whenTrue!==ce||E.colonToken!==Qe||E.whenFalse!==Kt?or(rr(P,B,ce,Qe,Kt),E):E}function Yr(E,P){const B=K(228);return B.head=E,B.templateSpans=U(P),B.transformFlags|=Tr(B.head)|qa(B.templateSpans)|1024,B}function oo(E,P,B){return E.head!==P||E.templateSpans!==B?or(Yr(P,B),E):E}function wa(E,P,B,ce=0){N.assert(!(ce&-7177),"Unsupported template flags.");let Qe;if(B!==void 0&&B!==P&&(Qe=PBe(E,B),typeof Qe=="object"))return N.fail("Invalid raw text");if(P===void 0){if(Qe===void 0)return N.fail("Arguments 'text' and 'rawText' may not both be undefined.");P=Qe}else Qe!==void 0&&N.assert(P===Qe,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return P}function Oa(E){let P=1024;return E&&(P|=128),P}function Ol(E,P,B,ce){const Qe=At(E);return Qe.text=P,Qe.rawText=B,Qe.templateFlags=ce&7176,Qe.transformFlags=Oa(Qe.templateFlags),Qe}function pu(E,P,B,ce){const Qe=Q(E);return Qe.text=P,Qe.rawText=B,Qe.templateFlags=ce&7176,Qe.transformFlags=Oa(Qe.templateFlags),Qe}function Rc(E,P,B,ce){return E===15?pu(E,P,B,ce):Ol(E,P,B,ce)}function Ip(E,P,B){return E=wa(16,E,P,B),Rc(16,E,P,B)}function Hd(E,P,B){return E=wa(16,E,P,B),Rc(17,E,P,B)}function ab(E,P,B){return E=wa(16,E,P,B),Rc(18,E,P,B)}function us(E,P,B){return E=wa(16,E,P,B),pu(15,E,P,B)}function Pm(E,P){N.assert(!E||!!P,"A `YieldExpression` with an asteriskToken must have an expression.");const B=K(229);return B.expression=P&&i().parenthesizeExpressionForDisallowedComma(P),B.asteriskToken=E,B.transformFlags|=Tr(B.expression)|Tr(B.asteriskToken)|1024|128|1048576,B}function Mm(E,P,B){return E.expression!==B||E.asteriskToken!==P?or(Pm(P,B),E):E}function Ui(E){const P=K(230);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Tr(P.expression)|1024|32768,P}function Kg(E,P){return E.expression!==P?or(Ui(P),E):E}function ey(E,P,B,ce,Qe){const Kt=Q(231);return Kt.modifiers=Va(E),Kt.name=uc(P),Kt.typeParameters=Va(B),Kt.heritageClauses=Va(ce),Kt.members=U(Qe),Kt.transformFlags|=qa(Kt.modifiers)|Uy(Kt.name)|qa(Kt.typeParameters)|qa(Kt.heritageClauses)|qa(Kt.members)|(Kt.typeParameters?1:0)|1024,Kt.jsDoc=void 0,Kt}function Lm(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==Qe||E.members!==Kt?or(ey(P,B,ce,Qe,Kt),E):E}function b1(){return K(232)}function E1(E,P){const B=K(233);return B.expression=i().parenthesizeLeftSideOfAccess(E,!1),B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags|=Tr(B.expression)|qa(B.typeArguments)|1024,B}function pf(E,P,B){return E.expression!==P||E.typeArguments!==B?or(E1(P,B),E):E}function V_(E,P){const B=K(234);return B.expression=E,B.type=P,B.transformFlags|=Tr(B.expression)|Tr(B.type)|1,B}function ff(E,P,B){return E.expression!==P||E.type!==B?or(V_(P,B),E):E}function Xg(E){const P=K(235);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Tr(P.expression)|1,P}function ze(E,P){return f4(E)?bn(E,P):E.expression!==P?or(Xg(P),E):E}function Ze(E,P){const B=K(238);return B.expression=E,B.type=P,B.transformFlags|=Tr(B.expression)|Tr(B.type)|1,B}function Mt(E,P,B){return E.expression!==P||E.type!==B?or(Ze(P,B),E):E}function jt(E){const P=K(235);return P.flags|=64,P.expression=i().parenthesizeLeftSideOfAccess(E,!0),P.transformFlags|=Tr(P.expression)|1,P}function bn(E,P){return N.assert(!!(E.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),E.expression!==P?or(jt(P),E):E}function Qn(E,P){const B=K(236);switch(B.keywordToken=E,B.name=P,B.transformFlags|=Tr(B.name),E){case 105:B.transformFlags|=1024;break;case 102:B.transformFlags|=32;break;default:return N.assertNever(E)}return B.flowNode=void 0,B}function vn(E,P){return E.name!==P?or(Qn(E.keywordToken,P),E):E}function Zn(E,P){const B=K(239);return B.expression=E,B.literal=P,B.transformFlags|=Tr(B.expression)|Tr(B.literal)|1024,B}function _i(E,P,B){return E.expression!==P||E.literal!==B?or(Zn(P,B),E):E}function cr(){const E=K(240);return E.transformFlags|=1024,E}function ni(E,P){const B=K(241);return B.statements=U(E),B.multiLine=P,B.transformFlags|=qa(B.statements),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B}function fr(E,P){return E.statements!==P?or(ni(P,E.multiLine),E):E}function Qo(E,P){const B=K(243);return B.modifiers=Va(E),B.declarationList=To(P)?op(P):P,B.transformFlags|=qa(B.modifiers)|Tr(B.declarationList),N_(B.modifiers)&128&&(B.transformFlags=1),B.jsDoc=void 0,B.flowNode=void 0,B}function Ja(E,P,B){return E.modifiers!==P||E.declarationList!==B?or(Qo(P,B),E):E}function Zu(){const E=K(242);return E.jsDoc=void 0,E}function fu(E){const P=K(244);return P.expression=i().parenthesizeExpressionOfExpressionStatement(E),P.transformFlags|=Tr(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function Yg(E,P){return E.expression!==P?or(fu(P),E):E}function O0(E,P,B){const ce=K(245);return ce.expression=E,ce.thenStatement=xb(P),ce.elseStatement=xb(B),ce.transformFlags|=Tr(ce.expression)|Tr(ce.thenStatement)|Tr(ce.elseStatement),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function zI(E,P,B,ce){return E.expression!==P||E.thenStatement!==B||E.elseStatement!==ce?or(O0(P,B,ce),E):E}function W0(E,P){const B=K(246);return B.statement=xb(E),B.expression=P,B.transformFlags|=Tr(B.statement)|Tr(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function qD(E,P,B){return E.statement!==P||E.expression!==B?or(W0(P,B),E):E}function JD(E,P){const B=K(247);return B.expression=E,B.statement=xb(P),B.transformFlags|=Tr(B.expression)|Tr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function KD(E,P,B){return E.expression!==P||E.statement!==B?or(JD(P,B),E):E}function uT(E,P,B,ce){const Qe=K(248);return Qe.initializer=E,Qe.condition=P,Qe.incrementor=B,Qe.statement=xb(ce),Qe.transformFlags|=Tr(Qe.initializer)|Tr(Qe.condition)|Tr(Qe.incrementor)|Tr(Qe.statement),Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe}function S1(E,P,B,ce,Qe){return E.initializer!==P||E.condition!==B||E.incrementor!==ce||E.statement!==Qe?or(uT(P,B,ce,Qe),E):E}function BI(E,P,B){const ce=K(249);return ce.initializer=E,ce.expression=P,ce.statement=xb(B),ce.transformFlags|=Tr(ce.initializer)|Tr(ce.expression)|Tr(ce.statement),ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.flowNode=void 0,ce}function XD(E,P,B,ce){return E.initializer!==P||E.expression!==B||E.statement!==ce?or(BI(P,B,ce),E):E}function GI(E,P,B,ce){const Qe=K(250);return Qe.awaitModifier=E,Qe.initializer=P,Qe.expression=i().parenthesizeExpressionForDisallowedComma(B),Qe.statement=xb(ce),Qe.transformFlags|=Tr(Qe.awaitModifier)|Tr(Qe.initializer)|Tr(Qe.expression)|Tr(Qe.statement)|1024,E&&(Qe.transformFlags|=128),Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe}function VI(E,P,B,ce,Qe){return E.awaitModifier!==P||E.initializer!==B||E.expression!==ce||E.statement!==Qe?or(GI(P,B,ce,Qe),E):E}function jI(E){const P=K(251);return P.label=uc(E),P.transformFlags|=Tr(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function UI(E,P){return E.label!==P?or(jI(P),E):E}function dT(E){const P=K(252);return P.label=uc(E),P.transformFlags|=Tr(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function HI(E,P){return E.label!==P?or(dT(P),E):E}function T1(E){const P=K(253);return P.expression=E,P.transformFlags|=Tr(P.expression)|128|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function A1(E,P){return E.expression!==P?or(T1(P),E):E}function sb(E,P){const B=K(254);return B.expression=E,B.statement=xb(P),B.transformFlags|=Tr(B.expression)|Tr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function lb(E,P,B){return E.expression!==P||E.statement!==B?or(sb(P,B),E):E}function pg(E,P){const B=K(255);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.caseBlock=P,B.transformFlags|=Tr(B.expression)|Tr(B.caseBlock),B.jsDoc=void 0,B.flowNode=void 0,B.possiblyExhaustive=!1,B}function F0(E,P,B){return E.expression!==P||E.caseBlock!==B?or(pg(P,B),E):E}function ts(E,P){const B=K(256);return B.label=uc(E),B.statement=xb(P),B.transformFlags|=Tr(B.label)|Tr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function pT(E,P,B){return E.label!==P||E.statement!==B?or(ts(P,B),E):E}function YD(E){const P=K(257);return P.expression=E,P.transformFlags|=Tr(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function z0(E,P){return E.expression!==P?or(YD(P),E):E}function $g(E,P,B){const ce=K(258);return ce.tryBlock=E,ce.catchClause=P,ce.finallyBlock=B,ce.transformFlags|=Tr(ce.tryBlock)|Tr(ce.catchClause)|Tr(ce.finallyBlock),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Nh(E,P,B,ce){return E.tryBlock!==P||E.catchClause!==B||E.finallyBlock!==ce?or($g(P,B,ce),E):E}function wf(){const E=K(259);return E.jsDoc=void 0,E.flowNode=void 0,E}function qd(E,P,B,ce){const Qe=Q(260);return Qe.name=uc(E),Qe.exclamationToken=P,Qe.type=B,Qe.initializer=sx(ce),Qe.transformFlags|=Uy(Qe.name)|Tr(Qe.initializer)|(Qe.exclamationToken??Qe.type?1:0),Qe.jsDoc=void 0,Qe}function xp(E,P,B,ce,Qe){return E.name!==P||E.type!==ce||E.exclamationToken!==B||E.initializer!==Qe?or(qd(P,B,ce,Qe),E):E}function op(E,P=0){const B=K(261);return B.flags|=P&7,B.declarations=U(E),B.transformFlags|=qa(B.declarations)|4194304,P&7&&(B.transformFlags|=263168),P&4&&(B.transformFlags|=4),B}function ty(E,P){return E.declarations!==P?or(op(P,E.flags),E):E}function fT(E,P,B,ce,Qe,Kt,yr){const ro=Q(262);if(ro.modifiers=Va(E),ro.asteriskToken=P,ro.name=uc(B),ro.typeParameters=Va(ce),ro.parameters=U(Qe),ro.type=Kt,ro.body=yr,!ro.body||N_(ro.modifiers)&128)ro.transformFlags=1;else{const qs=N_(ro.modifiers)&1024,c_=!!ro.asteriskToken,Rb=qs&&c_;ro.transformFlags=qa(ro.modifiers)|Tr(ro.asteriskToken)|Uy(ro.name)|qa(ro.typeParameters)|qa(ro.parameters)|Tr(ro.type)|Tr(ro.body)&-67108865|(Rb?128:qs?256:c_?2048:0)|(ro.typeParameters||ro.type?1:0)|4194304}return ro.typeArguments=void 0,ro.jsDoc=void 0,ro.locals=void 0,ro.nextContainer=void 0,ro.endFlowNode=void 0,ro.returnFlowNode=void 0,ro}function $D(E,P,B,ce,Qe,Kt,yr,ro){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.typeParameters!==Qe||E.parameters!==Kt||E.type!==yr||E.body!==ro?qI(fT(P,B,ce,Qe,Kt,yr,ro),E):E}function qI(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),V(E,P)}function cb(E,P,B,ce,Qe){const Kt=Q(263);return Kt.modifiers=Va(E),Kt.name=uc(P),Kt.typeParameters=Va(B),Kt.heritageClauses=Va(ce),Kt.members=U(Qe),N_(Kt.modifiers)&128?Kt.transformFlags=1:(Kt.transformFlags|=qa(Kt.modifiers)|Uy(Kt.name)|qa(Kt.typeParameters)|qa(Kt.heritageClauses)|qa(Kt.members)|(Kt.typeParameters?1:0)|1024,Kt.transformFlags&8192&&(Kt.transformFlags|=1)),Kt.jsDoc=void 0,Kt}function B0(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==Qe||E.members!==Kt?or(cb(P,B,ce,Qe,Kt),E):E}function JI(E,P,B,ce,Qe){const Kt=Q(264);return Kt.modifiers=Va(E),Kt.name=uc(P),Kt.typeParameters=Va(B),Kt.heritageClauses=Va(ce),Kt.members=U(Qe),Kt.transformFlags=1,Kt.jsDoc=void 0,Kt}function bc(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==Qe||E.members!==Kt?or(JI(P,B,ce,Qe,Kt),E):E}function ny(E,P,B,ce){const Qe=Q(265);return Qe.modifiers=Va(E),Qe.name=uc(P),Qe.typeParameters=Va(B),Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function KI(E,P,B,ce,Qe){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.type!==Qe?or(ny(P,B,ce,Qe),E):E}function r_(E,P,B){const ce=Q(266);return ce.modifiers=Va(E),ce.name=uc(P),ce.members=U(B),ce.transformFlags|=qa(ce.modifiers)|Tr(ce.name)|qa(ce.members)|1,ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function mT(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.members!==ce?or(r_(P,B,ce),E):E}function qe(E,P,B,ce=0){const Qe=Q(267);return Qe.modifiers=Va(E),Qe.flags|=ce&2088,Qe.name=P,Qe.body=B,N_(Qe.modifiers)&128?Qe.transformFlags=1:Qe.transformFlags|=qa(Qe.modifiers)|Tr(Qe.name)|Tr(Qe.body)|1,Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function i_(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.body!==ce?or(qe(P,B,ce,E.flags),E):E}function mu(E){const P=K(268);return P.statements=U(E),P.transformFlags|=qa(P.statements),P.jsDoc=void 0,P}function G0(E,P){return E.statements!==P?or(mu(P),E):E}function XI(E){const P=K(269);return P.clauses=U(E),P.transformFlags|=qa(P.clauses),P.locals=void 0,P.nextContainer=void 0,P}function ub(E,P){return E.clauses!==P?or(XI(P),E):E}function ry(E){const P=Q(270);return P.name=uc(E),P.transformFlags|=Nk(P.name)|1,P.modifiers=void 0,P.jsDoc=void 0,P}function iy(E,P){return E.name!==P?DM(ry(P),E):E}function DM(E,P){return E!==P&&(E.modifiers=P.modifiers),or(E,P)}function Ka(E,P,B,ce){const Qe=Q(271);return Qe.modifiers=Va(E),Qe.name=uc(B),Qe.isTypeOnly=P,Qe.moduleReference=ce,Qe.transformFlags|=qa(Qe.modifiers)|Nk(Qe.name)|Tr(Qe.moduleReference),Sh(Qe.moduleReference)||(Qe.transformFlags|=1),Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe}function o_(E,P,B,ce,Qe){return E.modifiers!==P||E.isTypeOnly!==B||E.name!==ce||E.moduleReference!==Qe?or(Ka(P,B,ce,Qe),E):E}function _T(E,P,B,ce){const Qe=K(272);return Qe.modifiers=Va(E),Qe.importClause=P,Qe.moduleSpecifier=B,Qe.attributes=Qe.assertClause=ce,Qe.transformFlags|=Tr(Qe.importClause)|Tr(Qe.moduleSpecifier),Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe}function hT(E,P,B,ce,Qe){return E.modifiers!==P||E.importClause!==B||E.moduleSpecifier!==ce||E.attributes!==Qe?or(_T(P,B,ce,Qe),E):E}function V0(E,P,B){const ce=Q(273);return ce.isTypeOnly=E,ce.name=P,ce.namedBindings=B,ce.transformFlags|=Tr(ce.name)|Tr(ce.namedBindings),E&&(ce.transformFlags|=1),ce.transformFlags&=-67108865,ce}function gT(E,P,B,ce){return E.isTypeOnly!==P||E.name!==B||E.namedBindings!==ce?or(V0(P,B,ce),E):E}function lm(E,P){const B=K(300);return B.elements=U(E),B.multiLine=P,B.token=132,B.transformFlags|=4,B}function cm(E,P,B){return E.elements!==P||E.multiLine!==B?or(lm(P,B),E):E}function Qg(E,P){const B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function YI(E,P,B){return E.name!==P||E.value!==B?or(Qg(P,B),E):E}function a_(E,P){const B=K(302);return B.assertClause=E,B.multiLine=P,B}function QD(E,P,B){return E.assertClause!==P||E.multiLine!==B?or(a_(P,B),E):E}function I1(E,P,B){const ce=K(300);return ce.token=B??118,ce.elements=U(E),ce.multiLine=P,ce.transformFlags|=4,ce}function Ki(E,P,B){return E.elements!==P||E.multiLine!==B?or(I1(P,B,E.token),E):E}function Zr(E,P){const B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function Ch(E,P,B){return E.name!==P||E.value!==B?or(Zr(P,B),E):E}function Jd(E){const P=Q(274);return P.name=E,P.transformFlags|=Tr(P.name),P.transformFlags&=-67108865,P}function NM(E,P){return E.name!==P?or(Jd(P),E):E}function Zg(E){const P=Q(280);return P.name=E,P.transformFlags|=Tr(P.name)|32,P.transformFlags&=-67108865,P}function CM(E,P){return E.name!==P?or(Zg(P),E):E}function db(E){const P=K(275);return P.elements=U(E),P.transformFlags|=qa(P.elements),P.transformFlags&=-67108865,P}function yl(E,P){return E.elements!==P?or(db(P),E):E}function jp(E,P,B){const ce=Q(276);return ce.isTypeOnly=E,ce.propertyName=P,ce.name=B,ce.transformFlags|=Tr(ce.propertyName)|Tr(ce.name),ce.transformFlags&=-67108865,ce}function fg(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?or(jp(P,B,ce),E):E}function um(E,P,B){const ce=Q(277);return ce.modifiers=Va(E),ce.isExportEquals=P,ce.expression=P?i().parenthesizeRightSideOfBinary(64,void 0,B):i().parenthesizeExpressionOfExportDefault(B),ce.transformFlags|=qa(ce.modifiers)|Tr(ce.expression),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function pb(E,P,B){return E.modifiers!==P||E.expression!==B?or(um(P,E.isExportEquals,B),E):E}function km(E,P,B,ce,Qe){const Kt=Q(278);return Kt.modifiers=Va(E),Kt.isTypeOnly=P,Kt.exportClause=B,Kt.moduleSpecifier=ce,Kt.attributes=Kt.assertClause=Qe,Kt.transformFlags|=qa(Kt.modifiers)|Tr(Kt.exportClause)|Tr(Kt.moduleSpecifier),Kt.transformFlags&=-67108865,Kt.jsDoc=void 0,Kt}function ev(E,P,B,ce,Qe,Kt){return E.modifiers!==P||E.isTypeOnly!==B||E.exportClause!==ce||E.moduleSpecifier!==Qe||E.attributes!==Kt?x1(km(P,B,ce,Qe,Kt),E):E}function x1(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),or(E,P)}function vT(E){const P=K(279);return P.elements=U(E),P.transformFlags|=qa(P.elements),P.transformFlags&=-67108865,P}function mg(E,P){return E.elements!==P?or(vT(P),E):E}function $I(E,P,B){const ce=K(281);return ce.isTypeOnly=E,ce.propertyName=uc(P),ce.name=uc(B),ce.transformFlags|=Tr(ce.propertyName)|Tr(ce.name),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function _g(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?or($I(P,B,ce),E):E}function j_(){const E=Q(282);return E.jsDoc=void 0,E}function oy(E){const P=K(283);return P.expression=E,P.transformFlags|=Tr(P.expression),P.transformFlags&=-67108865,P}function ZD(E,P){return E.expression!==P?or(oy(P),E):E}function eN(E){return K(E)}function tN(E,P,B=!1){const ce=yT(E,B?P&&i().parenthesizeNonArrayTypeOfPostfixType(P):P);return ce.postfix=B,ce}function yT(E,P){const B=K(E);return B.type=P,B}function Qs(E,P,B){return P.type!==B?or(tN(E,B,P.postfix),P):P}function R1(E,P,B){return P.type!==B?or(yT(E,B),P):P}function bT(E,P){const B=Q(324);return B.parameters=Va(E),B.type=P,B.transformFlags=qa(B.parameters)|(B.type?1:0),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.typeArguments=void 0,B}function wm(E,P,B){return E.parameters!==P||E.type!==B?or(bT(P,B),E):E}function fb(E,P=!1){const B=Q(329);return B.jsDocPropertyTags=Va(E),B.isArrayType=P,B}function nN(E,P,B){return E.jsDocPropertyTags!==P||E.isArrayType!==B?or(fb(P,B),E):E}function ET(E){const P=K(316);return P.type=E,P}function PM(E,P){return E.type!==P?or(ET(P),E):E}function hr(E,P,B){const ce=Q(330);return ce.typeParameters=Va(E),ce.parameters=U(P),ce.type=B,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce}function nu(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?or(hr(P,B,ce),E):E}function to(E){const P=jU(E.kind);return E.tagName.escapedText===_l(P)?E.tagName:Ce(P)}function mf(E,P,B){const ce=K(E);return ce.tagName=P,ce.comment=B,ce}function ay(E,P,B){const ce=Q(E);return ce.tagName=P,ce.comment=B,ce}function U_(E,P,B,ce){const Qe=mf(352,E??Ce("template"),ce);return Qe.constraint=P,Qe.typeParameters=U(B),Qe}function ur(E,P=to(E),B,ce,Qe){return E.tagName!==P||E.constraint!==B||E.typeParameters!==ce||E.comment!==Qe?or(U_(P,B,ce,Qe),E):E}function ST(E,P,B,ce){const Qe=ay(353,E??Ce("typedef"),ce);return Qe.typeExpression=P,Qe.fullName=B,Qe.name=DH(B),Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function j0(E,P=to(E),B,ce,Qe){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==Qe?or(ST(P,B,ce,Qe),E):E}function qc(E,P,B,ce,Qe,Kt){const yr=ay(348,E??Ce("param"),Kt);return yr.typeExpression=ce,yr.name=P,yr.isNameFirst=!!Qe,yr.isBracketed=B,yr}function Ph(E,P=to(E),B,ce,Qe,Kt,yr){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==Qe||E.isNameFirst!==Kt||E.comment!==yr?or(qc(P,B,ce,Qe,Kt,yr),E):E}function Om(E,P,B,ce,Qe,Kt){const yr=ay(355,E??Ce("prop"),Kt);return yr.typeExpression=ce,yr.name=P,yr.isNameFirst=!!Qe,yr.isBracketed=B,yr}function D1(E,P=to(E),B,ce,Qe,Kt,yr){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==Qe||E.isNameFirst!==Kt||E.comment!==yr?or(Om(P,B,ce,Qe,Kt,yr),E):E}function N1(E,P,B,ce){const Qe=ay(345,E??Ce("callback"),ce);return Qe.typeExpression=P,Qe.fullName=B,Qe.name=DH(B),Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function mb(E,P=to(E),B,ce,Qe){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==Qe?or(N1(P,B,ce,Qe),E):E}function tv(E,P,B){const ce=mf(346,E??Ce("overload"),B);return ce.typeExpression=P,ce}function TT(E,P=to(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?or(tv(P,B,ce),E):E}function Wm(E,P,B){const ce=mf(335,E??Ce("augments"),B);return ce.class=P,ce}function U0(E,P=to(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?or(Wm(P,B,ce),E):E}function hg(E,P,B){const ce=mf(336,E??Ce("implements"),B);return ce.class=P,ce}function _b(E,P,B){const ce=mf(354,E??Ce("see"),B);return ce.name=P,ce}function QI(E,P,B,ce){return E.tagName!==P||E.name!==B||E.comment!==ce?or(_b(P,B,ce),E):E}function H0(E){const P=K(317);return P.name=E,P}function rN(E,P){return E.name!==P?or(H0(P),E):E}function C1(E,P){const B=K(318);return B.left=E,B.right=P,B.transformFlags|=Tr(B.left)|Tr(B.right),B}function AT(E,P,B){return E.left!==P||E.right!==B?or(C1(P,B),E):E}function Up(E,P){const B=K(331);return B.name=E,B.text=P,B}function IT(E,P,B){return E.name!==P?or(Up(P,B),E):E}function Vl(E,P){const B=K(332);return B.name=E,B.text=P,B}function Oc(E,P,B){return E.name!==P?or(Vl(P,B),E):E}function xT(E,P){const B=K(333);return B.name=E,B.text=P,B}function Au(E,P,B){return E.name!==P?or(xT(P,B),E):E}function ap(E,P=to(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?or(hg(P,B,ce),E):E}function q0(E,P,B){return mf(E,P??Ce(jU(E)),B)}function Of(E,P,B=to(P),ce){return P.tagName!==B||P.comment!==ce?or(q0(E,B,ce),P):P}function hb(E,P,B,ce){const Qe=mf(E,P??Ce(jU(E)),ce);return Qe.typeExpression=B,Qe}function gb(E,P,B=to(P),ce,Qe){return P.tagName!==B||P.typeExpression!==ce||P.comment!==Qe?or(hb(E,B,ce,Qe),P):P}function ru(E,P){return mf(334,E,P)}function ZI(E,P,B){return E.tagName!==P||E.comment!==B?or(ru(P,B),E):E}function Hp(E,P,B){const ce=ay(347,E??Ce(jU(347)),B);return ce.typeExpression=P,ce.locals=void 0,ce.nextContainer=void 0,ce}function RT(E,P=to(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?or(Hp(P,B,ce),E):E}function DT(E){const P=K(328);return P.text=E,P}function Hs(E,P){return E.text!==P?or(DT(P),E):E}function iN(E,P){const B=K(327);return B.comment=E,B.tags=Va(P),B}function J0(E,P,B){return E.comment!==P||E.tags!==B?or(iN(P,B),E):E}function P1(E,P,B){const ce=K(284);return ce.openingElement=E,ce.children=U(P),ce.closingElement=B,ce.transformFlags|=Tr(ce.openingElement)|qa(ce.children)|Tr(ce.closingElement)|2,ce}function MM(E,P,B,ce){return E.openingElement!==P||E.children!==B||E.closingElement!==ce?or(P1(P,B,ce),E):E}function hd(E,P,B){const ce=K(285);return ce.tagName=E,ce.typeArguments=Va(P),ce.attributes=B,ce.transformFlags|=Tr(ce.tagName)|qa(ce.typeArguments)|Tr(ce.attributes)|2,ce.typeArguments&&(ce.transformFlags|=1),ce}function nv(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?or(hd(P,B,ce),E):E}function H_(E,P,B){const ce=K(286);return ce.tagName=E,ce.typeArguments=Va(P),ce.attributes=B,ce.transformFlags|=Tr(ce.tagName)|qa(ce.typeArguments)|Tr(ce.attributes)|2,P&&(ce.transformFlags|=1),ce}function ex(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?or(H_(P,B,ce),E):E}function Rp(E){const P=K(287);return P.tagName=E,P.transformFlags|=Tr(P.tagName)|2,P}function tx(E,P){return E.tagName!==P?or(Rp(P),E):E}function sp(E,P,B){const ce=K(288);return ce.openingFragment=E,ce.children=U(P),ce.closingFragment=B,ce.transformFlags|=Tr(ce.openingFragment)|qa(ce.children)|Tr(ce.closingFragment)|2,ce}function nx(E,P,B,ce){return E.openingFragment!==P||E.children!==B||E.closingFragment!==ce?or(sp(P,B,ce),E):E}function sy(E,P){const B=K(12);return B.text=E,B.containsOnlyTriviaWhiteSpaces=!!P,B.transformFlags|=2,B}function NT(E,P,B){return E.text!==P||E.containsOnlyTriviaWhiteSpaces!==B?or(sy(P,B),E):E}function oN(){const E=K(289);return E.transformFlags|=2,E}function aN(){const E=K(290);return E.transformFlags|=2,E}function CT(E,P){const B=Q(291);return B.name=E,B.initializer=P,B.transformFlags|=Tr(B.name)|Tr(B.initializer)|2,B}function sN(E,P,B){return E.name!==P||E.initializer!==B?or(CT(P,B),E):E}function vb(E){const P=Q(292);return P.properties=U(E),P.transformFlags|=qa(P.properties)|2,P}function Dp(E,P){return E.properties!==P?or(vb(P),E):E}function Mh(E){const P=K(293);return P.expression=E,P.transformFlags|=Tr(P.expression)|2,P}function lN(E,P){return E.expression!==P?or(Mh(P),E):E}function PT(E,P){const B=K(294);return B.dotDotDotToken=E,B.expression=P,B.transformFlags|=Tr(B.dotDotDotToken)|Tr(B.expression)|2,B}function rs(E,P){return E.expression!==P?or(PT(E.dotDotDotToken,P),E):E}function Ir(E,P){const B=K(295);return B.namespace=E,B.name=P,B.transformFlags|=Tr(B.namespace)|Tr(B.name)|2,B}function _f(E,P,B){return E.namespace!==P||E.name!==B?or(Ir(P,B),E):E}function Cd(E,P){const B=K(296);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.statements=U(P),B.transformFlags|=Tr(B.expression)|qa(B.statements),B.jsDoc=void 0,B}function M1(E,P,B){return E.expression!==P||E.statements!==B?or(Cd(P,B),E):E}function cN(E){const P=K(297);return P.statements=U(E),P.transformFlags=qa(P.statements),P}function K0(E,P){return E.statements!==P?or(cN(P),E):E}function L1(E,P){const B=K(298);switch(B.token=E,B.types=U(P),B.transformFlags|=qa(B.types),E){case 96:B.transformFlags|=1024;break;case 119:B.transformFlags|=1;break;default:return N.assertNever(E)}return B}function MT(E,P){return E.types!==P?or(L1(E.token,P),E):E}function gg(E,P){const B=K(299);return B.variableDeclaration=WM(E),B.block=P,B.transformFlags|=Tr(B.variableDeclaration)|Tr(B.block)|(E?0:64),B.locals=void 0,B.nextContainer=void 0,B}function s_(E,P,B){return E.variableDeclaration!==P||E.block!==B?or(gg(P,B),E):E}function hf(E,P){const B=Q(303);return B.name=uc(E),B.initializer=i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Uy(B.name)|Tr(B.initializer),B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Fm(E,P,B){return E.name!==P||E.initializer!==B?rv(hf(P,B),E):E}function rv(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken),or(E,P)}function vg(E,P){const B=Q(304);return B.name=uc(E),B.objectAssignmentInitializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Nk(B.name)|Tr(B.objectAssignmentInitializer)|1024,B.equalsToken=void 0,B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function yg(E,P,B){return E.name!==P||E.objectAssignmentInitializer!==B?rx(vg(P,B),E):E}function rx(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken,E.equalsToken=P.equalsToken),or(E,P)}function cc(E){const P=Q(305);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Tr(P.expression)|128|65536,P.jsDoc=void 0,P}function uN(E,P){return E.expression!==P?or(cc(P),E):E}function Wf(E,P){const B=Q(306);return B.name=uc(E),B.initializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Tr(B.name)|Tr(B.initializer)|1,B.jsDoc=void 0,B}function Lh(E,P,B){return E.name!==P||E.initializer!==B?or(Wf(P,B),E):E}function gf(E,P,B){const ce=t.createBaseSourceFileNode(312);return ce.statements=U(E),ce.endOfFileToken=P,ce.flags|=B,ce.text="",ce.fileName="",ce.path="",ce.resolvedPath="",ce.originalFileName="",ce.languageVersion=0,ce.languageVariant=0,ce.scriptKind=0,ce.isDeclarationFile=!1,ce.hasNoDefaultLib=!1,ce.transformFlags|=qa(ce.statements)|Tr(ce.endOfFileToken),ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.nodeCount=0,ce.identifierCount=0,ce.symbolCount=0,ce.parseDiagnostics=void 0,ce.bindDiagnostics=void 0,ce.bindSuggestionDiagnostics=void 0,ce.lineMap=void 0,ce.externalModuleIndicator=void 0,ce.setExternalModuleIndicator=void 0,ce.pragmas=void 0,ce.checkJsDirective=void 0,ce.referencedFiles=void 0,ce.typeReferenceDirectives=void 0,ce.libReferenceDirectives=void 0,ce.amdDependencies=void 0,ce.commentDirectives=void 0,ce.identifiers=void 0,ce.packageJsonLocations=void 0,ce.packageJsonScope=void 0,ce.imports=void 0,ce.moduleAugmentations=void 0,ce.ambientModuleNames=void 0,ce.classifiableNames=void 0,ce.impliedNodeFormat=void 0,ce}function k1(E){const P=Object.create(E.redirectTarget);return Object.defineProperties(P,{id:{get(){return this.redirectInfo.redirectTarget.id},set(B){this.redirectInfo.redirectTarget.id=B}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(B){this.redirectInfo.redirectTarget.symbol=B}}}),P.redirectInfo=E,P}function X0(E){const P=k1(E.redirectInfo);return P.flags|=E.flags&-17,P.fileName=E.fileName,P.path=E.path,P.resolvedPath=E.resolvedPath,P.originalFileName=E.originalFileName,P.packageJsonLocations=E.packageJsonLocations,P.packageJsonScope=E.packageJsonScope,P.emitNode=void 0,P}function ix(E){const P=t.createBaseSourceFileNode(312);P.flags|=E.flags&-17;for(const B in E)if(!(Is(P,B)||!Is(E,B))){if(B==="emitNode"){P.emitNode=void 0;continue}P[B]=E[B]}return P}function LT(E){const P=E.redirectInfo?X0(E):ix(E);return r(P,E),P}function vf(E,P,B,ce,Qe,Kt,yr){const ro=LT(E);return ro.statements=U(P),ro.isDeclarationFile=B,ro.referencedFiles=ce,ro.typeReferenceDirectives=Qe,ro.hasNoDefaultLib=Kt,ro.libReferenceDirectives=yr,ro.transformFlags=qa(ro.statements)|Tr(ro.endOfFileToken),ro}function Ls(E,P,B=E.isDeclarationFile,ce=E.referencedFiles,Qe=E.typeReferenceDirectives,Kt=E.hasNoDefaultLib,yr=E.libReferenceDirectives){return E.statements!==P||E.isDeclarationFile!==B||E.referencedFiles!==ce||E.typeReferenceDirectives!==Qe||E.hasNoDefaultLib!==Kt||E.libReferenceDirectives!==yr?or(vf(E,P,B,ce,Qe,Kt,yr),E):E}function w1(E,P=et){const B=K(313);return B.prepends=P,B.sourceFiles=E,B.syntheticFileReferences=void 0,B.syntheticTypeReferences=void 0,B.syntheticLibReferences=void 0,B.hasNoDefaultLib=void 0,B}function O1(E,P,B=et){return E.sourceFiles!==P||E.prepends!==B?or(w1(P,B),E):E}function iv(E,P,B){const ce=K(314);return ce.prologues=E,ce.syntheticReferences=P,ce.texts=B,ce.fileName="",ce.text="",ce.referencedFiles=et,ce.libReferenceDirectives=et,ce.getLineAndCharacterOfPosition=Qe=>ys(ce,Qe),ce}function yb(E,P){const B=K(E);return B.data=P,B}function Y0(E){return yb(307,E)}function D(E,P){const B=yb(308,E);return B.texts=P,B}function ae(E,P){return yb(P?310:309,E)}function ht(E){const P=K(311);return P.data=E.data,P.section=E,P}function on(){const E=K(315);return E.javascriptText="",E.declarationText="",E}function wr(E,P=!1,B){const ce=K(237);return ce.type=E,ce.isSpread=P,ce.tupleNameSource=B,ce}function wi(E){const P=K(358);return P._children=E,P}function bi(E){const P=K(359);return P.original=E,dt(P,E),P}function no(E,P){const B=K(360);return B.expression=E,B.original=P,B.transformFlags|=Tr(B.expression)|1,dt(B,P),B}function ga(E,P){return E.expression!==P?or(no(P,E.original),E):E}function ed(E){if(Ys(E)&&!aC(E)&&!E.original&&!E.emitNode&&!E.id){if(hP(E))return E.elements;if(mr(E)&&tae(E.operatorToken))return[E.left,E.right]}return E}function Pd(E){const P=K(361);return P.elements=U(Cx(E,ed)),P.transformFlags|=qa(P.elements),P}function Ff(E,P){return E.elements!==P?or(Pd(P),E):E}function bb(E,P){const B=K(362);return B.expression=E,B.thisArg=P,B.transformFlags|=Tr(B.expression)|Tr(B.thisArg),B}function Si(E,P,B){return E.expression!==P||E.thisArg!==B?or(bb(P,B),E):E}function kh(E){const P=oe(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),kk(P,{...E.emitNode.autoGenerate}),P}function Hn(E){const P=oe(E.escapedText);P.flags|=E.flags&-17,P.jsDoc=E.jsDoc,P.flowNode=E.flowNode,P.symbol=E.symbol,P.transformFlags=E.transformFlags,r(P,E);const B=LS(E);return B&&Gv(P,B),P}function ox(E){const P=Ue(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),kk(P,{...E.emitNode.autoGenerate}),P}function Eb(E){const P=Ue(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),P}function Sb(E){if(E===void 0)return E;if($i(E))return LT(E);if(al(E))return kh(E);if(Ve(E))return Hn(E);if(dS(E))return ox(E);if(qi(E))return Eb(E);const P=sL(E.kind)?t.createBaseNode(E.kind):t.createBaseTokenNode(E.kind);P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E);for(const B in E)Is(P,B)||!Is(E,B)||(P[B]=E[B]);return P}function kT(E,P,B){return Xn(jd(void 0,void 0,void 0,void 0,P?[P]:[],void 0,ni(E,!0)),void 0,B?[B]:[])}function W1(E,P,B){return Xn(kf(void 0,void 0,P?[P]:[],void 0,void 0,ni(E,!0)),void 0,B?[B]:[])}function q_(){return Ap(se("0"))}function wh(E){return um(void 0,!1,E)}function dN(E){return km(void 0,!1,vT([$I(!1,void 0,E)]))}function wT(E,P){return P==="null"?O.createStrictEquality(E,Bt()):P==="undefined"?O.createStrictEquality(E,q_()):O.createStrictEquality(Bu(E),he(P))}function $z(E,P){return P==="null"?O.createStrictInequality(E,Bt()):P==="undefined"?O.createStrictInequality(E,q_()):O.createStrictInequality(Bu(E),he(P))}function Tb(E,P,B){return uS(E)?$o(Es(E,void 0,P),void 0,void 0,B):Xn(Us(E,P),void 0,B)}function _8(E,P,B){return Tb(E,"bind",[P,...B])}function h8(E,P,B){return Tb(E,"call",[P,...B])}function $0(E,P,B){return Tb(E,"apply",[P,B])}function l_(E,P,B){return Tb(Ce(E),P,B)}function LM(E,P){return Tb(E,"slice",P===void 0?[]:[Z0(P)])}function Oh(E,P){return Tb(E,"concat",P)}function ax(E,P,B){return l_("Object","defineProperty",[E,Z0(P),B])}function g8(E,P){return l_("Object","getOwnPropertyDescriptor",[E,Z0(P)])}function J_(E,P,B){return l_("Reflect","get",B?[E,P,B]:[E,P])}function $(E,P,B,ce){return l_("Reflect","set",ce?[E,P,B,ce]:[E,P,B])}function xe(E,P,B){return B?(E.push(hf(P,B)),!0):!1}function Ke(E,P){const B=[];xe(B,"enumerable",Z0(E.enumerable)),xe(B,"configurable",Z0(E.configurable));let ce=xe(B,"writable",Z0(E.writable));ce=xe(B,"value",E.value)||ce;let Qe=xe(B,"get",E.get);return Qe=xe(B,"set",E.set)||Qe,N.assert(!(ce&&Qe),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Yo(B,!P)}function xt(E,P){switch(E.kind){case 217:return df(E,P);case 216:return ec(E,E.type,P);case 234:return ff(E,P,E.type);case 238:return Mt(E,P,E.type);case 235:return ze(E,P);case 360:return ga(E,P)}}function Nt(E){return Gd(E)&&Ys(E)&&Ys(Bv(E))&&Ys(M_(E))&&!bt(WR(E))&&!bt(Lk(E))}function Jt(E,P,B=15){return E&&rF(E,B)&&!Nt(E)?xt(E,Jt(E.expression,P)):P}function zr(E,P,B){if(!P)return E;const ce=pT(P,P.label,ZE(P.statement)?zr(E,P.statement):E);return B&&B(P),ce}function Fi(E,P){const B=hs(E);switch(B.kind){case 80:return P;case 110:case 9:case 10:case 11:return!1;case 209:return B.elements.length!==0;case 210:return B.properties.length>0;default:return!0}}function Ni(E,P,B,ce=!1){const Qe=$l(E,15);let Kt,yr;return zd(Qe)?(Kt=ot(),yr=Qe):fP(Qe)?(Kt=ot(),yr=B!==void 0&&B<2?dt(Ce("_super"),Qe):Qe):Ga(Qe)&8192?(Kt=q_(),yr=i().parenthesizeLeftSideOfAccess(Qe,!1)):Fr(Qe)?Fi(Qe.expression,ce)?(Kt=de(P),yr=Us(dt(O.createAssignment(Kt,Qe.expression),Qe.expression),Qe.name),dt(yr,Qe)):(Kt=Qe.expression,yr=Qe):$s(Qe)?Fi(Qe.expression,ce)?(Kt=de(P),yr=wc(dt(O.createAssignment(Kt,Qe.expression),Qe.expression),Qe.argumentExpression),dt(yr,Qe)):(Kt=Qe.expression,yr=Qe):(Kt=q_(),yr=i().parenthesizeLeftSideOfAccess(E,!1)),{target:yr,thisArg:Kt}}function hi(E,P){return Us(Hc(Yo([le(void 0,"value",[vi(void 0,void 0,E,void 0,void 0,void 0)],ni([fu(P)]))])),"value")}function Xi(E){return E.length>10?Pd(E):rd(E,O.createComma)}function ds(E,P,B,ce=0,Qe){const Kt=Qe?E&&a4(E):Lo(E);if(Kt&&Ve(Kt)&&!al(Kt)){const yr=Ha(dt(Sb(Kt),Kt),Kt.parent);return ce|=Ga(Kt),B||(ce|=96),P||(ce|=3072),ce&&pr(yr,ce),yr}return Le(E)}function Rs(E,P,B){return ds(E,P,B,98304)}function es(E,P,B,ce){return ds(E,P,B,32768,ce)}function zf(E,P,B){return ds(E,P,B,16384)}function K_(E,P,B){return ds(E,P,B)}function bg(E,P,B,ce){const Qe=Us(E,Ys(P)?P:Sb(P));dt(Qe,P);let Kt=0;return ce||(Kt|=96),B||(Kt|=3072),Kt&&pr(Qe,Kt),Qe}function ov(E,P,B,ce){return E&&Qr(P,32)?bg(E,ds(P),B,ce):zf(P,B,ce)}function av(E,P,B,ce){const Qe=OT(E,P,0,B);return pN(E,P,Qe,ce)}function Ab(E){return Na(E.expression)&&E.expression.text==="use strict"}function lp(){return Xu(fu(he("use strict")))}function OT(E,P,B=0,ce){N.assert(P.length===0,"Prologue directives should be at the first statement in the target statements array");let Qe=!1;const Kt=E.length;for(;B<Kt;){const yr=E[B];if(Sm(yr))Ab(yr)&&(Qe=!0),P.push(yr);else break;B++}return ce&&!Qe&&P.push(lp()),B}function pN(E,P,B,ce,Qe=Iv){const Kt=E.length;for(;B!==void 0&&B<Kt;){const yr=E[B];if(Ga(yr)&2097152&&Qe(yr))Rn(P,ce?nt(yr,ce,Hi):yr);else break;B++}return B}function kM(E){return IH(E)?E:dt(U([lp(),...E]),E)}function wM(E){return N.assert(Jn(E,Tre),"Cannot lift nodes to a Block."),oh(E)||ni(E)}function Q0(E,P,B){let ce=B;for(;ce<E.length&&P(E[ce]);)ce++;return ce}function sv(E,P){if(!bt(P))return E;const B=Q0(E,Sm,0),ce=Q0(E,W4,B),Qe=Q0(E,F4,ce),Kt=Q0(P,Sm,0),yr=Q0(P,W4,Kt),ro=Q0(P,F4,yr),qs=Q0(P,DL,ro);N.assert(qs===P.length,"Expected declarations to be valid standard or custom prologues");const c_=RE(E)?E.slice():E;if(qs>ro&&c_.splice(Qe,0,...P.slice(ro,qs)),ro>yr&&c_.splice(ce,0,...P.slice(yr,ro)),yr>Kt&&c_.splice(B,0,...P.slice(Kt,yr)),Kt>0)if(B===0)c_.splice(0,0,...P.slice(0,Kt));else{const Rb=new Map;for(let zm=0;zm<B;zm++){const eE=E[zm];Rb.set(eE.expression.text,!0)}for(let zm=Kt-1;zm>=0;zm--){const eE=P[zm];Rb.has(eE.expression.text)||c_.unshift(eE)}}return RE(E)?dt(U(c_,E.hasTrailingComma),E):E}function Ib(E,P){let B;return typeof P=="number"?B=tn(P):B=P,hl(E)?Yt(E,B,E.name,E.constraint,E.default):Ao(E)?so(E,B,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):zR(E)?en(E,B,E.typeParameters,E.parameters,E.type):gp(E)?Ci(E,B,E.name,E.questionToken,E.type):qo(E)?tt(E,B,E.name,E.questionToken??E.exclamationToken,E.type,E.initializer):vh(E)?Dn(E,B,E.name,E.questionToken,E.typeParameters,E.parameters,E.type):Hl(E)?yi(E,B,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):Ml(E)?wn(E,B,E.parameters,E.body):tf(E)?ft(E,B,E.name,E.parameters,E.type,E.body):vp(E)?Fe(E,B,E.name,E.parameters,E.body):XE(E)?Gt(E,B,E.parameters,E.type):Os(E)?Nd(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Gs(E)?G_(E,B,E.typeParameters,E.parameters,E.type,E.equalsGreaterThanToken,E.body):Qc(E)?Lm(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):Ll(E)?Ja(E,B,E.declarationList):Tc(E)?$D(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Ac(E)?B0(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):md(E)?bc(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):xm(E)?KI(E,B,E.name,E.typeParameters,E.type):y0(E)?mT(E,B,E.name,E.members):Xl(E)?i_(E,B,E.name,E.body):eu(E)?o_(E,B,E.isTypeOnly,E.name,E.moduleReference):Mc(E)?hT(E,B,E.importClause,E.moduleSpecifier,E.attributes):kl(E)?pb(E,B,E.expression):Yl(E)?ev(E,B,E.isTypeOnly,E.exportClause,E.moduleSpecifier,E.attributes):N.assertNever(E)}function fN(E,P){return Ao(E)?so(E,P,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):qo(E)?tt(E,P,E.name,E.questionToken??E.exclamationToken,E.type,E.initializer):Hl(E)?yi(E,P,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):tf(E)?ft(E,P,E.name,E.parameters,E.type,E.body):vp(E)?Fe(E,P,E.name,E.parameters,E.body):Qc(E)?Lm(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):Ac(E)?B0(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):N.assertNever(E)}function qp(E,P){switch(E.kind){case 177:return ft(E,E.modifiers,P,E.parameters,E.type,E.body);case 178:return Fe(E,E.modifiers,P,E.parameters,E.body);case 174:return yi(E,E.modifiers,E.asteriskToken,P,E.questionToken,E.typeParameters,E.parameters,E.type,E.body);case 173:return Dn(E,E.modifiers,P,E.questionToken,E.typeParameters,E.parameters,E.type);case 172:return tt(E,E.modifiers,P,E.questionToken??E.exclamationToken,E.type,E.initializer);case 171:return Ci(E,E.modifiers,P,E.questionToken,E.type);case 303:return Fm(E,P,E.initializer)}}function Va(E){return E?U(E):void 0}function uc(E){return typeof E=="string"?Ce(E):E}function Z0(E){return typeof E=="string"?he(E):typeof E=="number"?se(E):typeof E=="boolean"?E?vt():$e():E}function sx(E){return E&&i().parenthesizeExpressionForDisallowedComma(E)}function OM(E){return typeof E=="number"?Se(E):E}function xb(E){return E&&dH(E)?dt(r(Zu(),E),E):E}function WM(E){return typeof E=="string"||E&&!Oi(E)?qd(E,void 0,void 0,void 0):E}function or(E,P){return E!==P&&(r(E,P),dt(E,P)),E}}function jU(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return N.fail(`Unsupported kind: ${N.formatSyntaxKind(e)}`)}}function PBe(e,t){switch(zv||(zv=Nv(99,!1,0)),e){case 15:zv.setText("`"+t+"`");break;case 16:zv.setText("`"+t+"${");break;case 17:zv.setText("}"+t+"${");break;case 18:zv.setText("}"+t+"`");break}let r=zv.scan();if(r===20&&(r=zv.reScanTemplateToken(!1)),zv.isUnterminated())return zv.setText(void 0),joe;let i;switch(r){case 15:case 16:case 17:case 18:i=zv.getTokenValue();break}return i===void 0||zv.scan()!==1?(zv.setText(void 0),joe):(zv.setText(void 0),i)}function Uy(e){return e&&Ve(e)?Nk(e):Tr(e)}function Nk(e){return Tr(e)&-67108865}function MBe(e,t){return t|e.transformFlags&134234112}function Tr(e){if(!e)return 0;const t=e.transformFlags&~Goe(e.kind);return ad(e)&&oc(e.name)?MBe(e.name,t):t}function qa(e){return e?e.transformFlags:0}function XSe(e){let t=0;for(const r of e)t|=Tr(r);e.transformFlags=t}function Goe(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function oW(e){return e.flags|=16,e}function UU(e,t,r){let i,o,s,l,u,p,h,m,y,T;Mo(e)?(s="",l=e,u=e.length,p=t,h=r):(N.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(N.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,T=e.oldFileOfCurrentEmit));const A=T?kBe(N.checkDefined(o)):LBe(o,i,u);return A.fileName=s,A.sourceMapPath=p,A.oldFileOfCurrentEmit=T,m&&y?(Object.defineProperty(A,"text",{get:m}),Object.defineProperty(A,"sourceMapText",{get:y})):(N.assert(!T),A.text=l??"",A.sourceMapText=h),A}function LBe(e,t,r){let i,o,s,l,u,p,h,m;for(const T of e?e.sections:et)switch(T.kind){case"prologue":i=Rn(i,dt(w.createUnparsedPrologue(T.data),T));break;case"emitHelpers":o=Rn(o,ZU().get(T.data));break;case"no-default-lib":m=!0;break;case"reference":s=Rn(s,{pos:-1,end:-1,fileName:T.data});break;case"type":l=Rn(l,{pos:-1,end:-1,fileName:T.data});break;case"type-import":l=Rn(l,{pos:-1,end:-1,fileName:T.data,resolutionMode:99});break;case"type-require":l=Rn(l,{pos:-1,end:-1,fileName:T.data,resolutionMode:1});break;case"lib":u=Rn(u,{pos:-1,end:-1,fileName:T.data});break;case"prepend":let A;for(const R of T.texts)(!t||R.kind!=="internal")&&(A=Rn(A,dt(w.createUnparsedTextLike(R.data,R.kind==="internal"),R)));p=qr(p,A),h=Rn(h,w.createUnparsedPrepend(T.data,A??et));break;case"internal":if(t){h||(h=[]);break}case"text":h=Rn(h,dt(w.createUnparsedTextLike(T.data,T.kind==="internal"),T));break;default:N.assertNever(T)}if(!h){const T=w.createUnparsedTextLike(void 0,!1);ZC(T,0,typeof r=="function"?r():r),h=[T]}const y=Th.createUnparsedSource(i??et,void 0,h);return LR(i,y),LR(h,y),LR(p,y),y.hasNoDefaultLib=m,y.helpers=o,y.referencedFiles=s||et,y.typeReferenceDirectives=l,y.libReferenceDirectives=u||et,y}function kBe(e){let t,r;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=Rn(t,dt(w.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=Rn(r,dt(w.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:N.assertNever(o)}const i=w.createUnparsedSource(et,r,t??et);return LR(r,i),LR(t,i),i.helpers=Wt(e.sources&&e.sources.helpers,o=>ZU().get(o)),i}function YSe(e,t,r,i,o,s){return Mo(e)?qU(void 0,e,r,i,void 0,t,o,s):HU(e,t,r,i,o,s)}function HU(e,t,r,i,o,s,l,u){const p=Th.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;const h=new Map,m=R=>{if(R===void 0)return;let M=h.get(R);return M===void 0&&(M=e(R),h.set(R,M!==void 0?M:!1)),M!==!1?M:void 0},y=R=>{const M=m(R);return M!==void 0?M:`/* Input file ${R} was missing */\r
`};let T;return Object.defineProperties(p,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>y(N.checkDefined(i))},declarationMapText:{get:()=>m(o)},buildInfo:{get:()=>{if(T===void 0&&s)if(l!=null&&l.getBuildInfo)T=l.getBuildInfo(s,u.configFilePath)??!1;else{const R=m(s);T=R!==void 0?n7(s,R)??!1:!1}return T||void 0}}}),p}function qU(e,t,r,i,o,s,l,u,p,h,m){const y=Th.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=r,y.javascriptMapText=i,y.declarationPath=o,y.declarationText=s,y.declarationMapPath=l,y.declarationMapText=u,y.buildInfoPath=p,y.buildInfo=h,y.oldFileOfCurrentEmit=m,y}function $Se(e,t,r){return new(ZSe||(ZSe=su.getSourceMapSourceConstructor()))(e,t,r)}function Nr(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=wBe(r,e.emitNode))}return e}function wBe(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:p,constantValue:h,helpers:m,startsOnNewLine:y,snippetElement:T,classThis:A,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=qr(o.slice(),t.leadingComments)),s&&(t.trailingComments=qr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),p&&(t.tokenSourceMapRanges=OBe(p,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),m)for(const M of m)t.helpers=Rg(t.helpers,M);return y!==void 0&&(t.startsOnNewLine=y),T!==void 0&&(t.snippetElement=T),A&&(t.classThis=A),R&&(t.assignedName=R),t}function OBe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var aW,JU,Voe,zv,joe,Ck,QSe,w,ZSe,WBe=I({"src/compiler/factory/nodeFactory.ts"(){ra(),aW=0,JU=(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))(JU||{}),Voe=[],joe={},Ck=Foe(),QSe={createBaseSourceFileNode:e=>oW(Ck.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>oW(Ck.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>oW(Ck.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>oW(Ck.createBaseTokenNode(e)),createBaseNode:e=>oW(Ck.createBaseNode(e))},w=Dk(4,QSe)}});function Ou(e){if(e.emitNode)N.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(aC(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const t=Un(No(Un(e)))??N.fail("Could not determine parsed source file.");Ou(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function KU(e){var t,r;const i=(r=(t=Un(No(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function Pk(e){const t=Ou(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function pr(e,t){return Ou(e).flags=t,e}function P_(e,t){const r=Ou(e);return r.flags=r.flags|t,e}function Mk(e,t){return Ou(e).internalFlags=t,e}function UA(e,t){const r=Ou(e);return r.internalFlags=r.internalFlags|t,e}function Bv(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Da(e,t){return Ou(e).sourceMapRange=t,e}function eTe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Uoe(e,t,r){const i=Ou(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function cP(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function sW(e,t){return Ou(e).startsOnNewLine=t,e}function M_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function ac(e,t){return Ou(e).commentRange=t,e}function WR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function v0(e,t){return Ou(e).leadingComments=t,e}function uP(e,t,r,i){return v0(e,Rn(WR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Lk(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function HA(e,t){return Ou(e).trailingComments=t,e}function lW(e,t,r,i){return HA(e,Rn(Lk(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Hoe(e,t){v0(e,WR(t)),HA(e,Lk(t));const r=Ou(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function qoe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Joe(e,t){const r=Ou(e);return r.constantValue=t,e}function qA(e,t){const r=Ou(e);return r.helpers=Rn(r.helpers,t),e}function zg(e,t){if(bt(t)){const r=Ou(e);for(const i of t)r.helpers=Rg(r.helpers,i)}return e}function tTe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?wx(i,t):!1}function cW(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Koe(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!bt(o))return;const s=Ou(t);let l=0;for(let u=0;u<o.length;u++){const p=o[u];r(p)?(l++,s.helpers=Rg(s.helpers,p)):l>0&&(o[u-l]=p)}l>0&&(o.length-=l)}function XU(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function YU(e,t){const r=Ou(e);return r.snippetElement=t,e}function $U(e){return Ou(e).internalFlags|=4,e}function Xoe(e,t){const r=Ou(e);return r.typeNode=t,e}function Yoe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Gv(e,t){return Ou(e).identifierTypeArguments=t,e}function LS(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function kk(e,t){return Ou(e).autoGenerate=t,e}function nTe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function $oe(e,t){return Ou(e).generatedImportReference=t,e}function Qoe(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var FBe=I({"src/compiler/factory/emitNode.ts"(){ra()}});function Zoe(e){const t=e.factory,r=Sd(()=>Mk(t.createTrue(),8)),i=Sd(()=>Mk(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:M,createRunInitializersHelper:C,createAssignHelper:O,createAwaitHelper:U,createAsyncGeneratorHelper:K,createAsyncDelegatorHelper:Q,createAsyncValuesHelper:V,createRestHelper:se,createAwaiterHelper:G,createExtendsHelper:ne,createTemplateObjectHelper:he,createSpreadArrayHelper:ye,createPropKeyHelper:Y,createSetFunctionNameHelper:X,createValuesHelper:oe,createReadHelper:pe,createGeneratorHelper:Ce,createCreateBindingHelper:de,createImportStarHelper:ie,createImportStarCallbackHelper:ve,createImportDefaultHelper:Le,createExportStarHelper:Ue,createClassPrivateFieldGetHelper:Ee,createClassPrivateFieldSetHelper:De,createClassPrivateFieldInHelper:Me,createAddDisposableResourceHelper:We,createDisposeResourcesHelper:At};function o(Se){return pr(t.createIdentifier(Se),8196)}function s(Se,je,ot,Bt){e.requestEmitHelper(uW);const vt=[];return vt.push(t.createArrayLiteralExpression(Se,!0)),vt.push(je),ot&&(vt.push(ot),Bt&&vt.push(Bt)),t.createCallExpression(o("__decorate"),void 0,vt)}function l(Se,je){return e.requestEmitHelper(dW),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(Se),je])}function u(Se,je,ot){return e.requestEmitHelper(pW),dt(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(je+""),Se]),ot)}function p(Se){const je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),Se.name),t.createPropertyAssignment(t.createIdentifier("metadata"),Se.metadata)];return t.createObjectLiteralExpression(je)}function h(Se){const je=Se.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Se.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Se.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,je))}function m(Se){const je=Se.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Se.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Se.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(je,t.createIdentifier("value")))])))}function y(Se){const je=Se.computed?Se.name:Ve(Se.name)?t.createStringLiteralFromNode(Se.name):Se.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(je,103,t.createIdentifier("obj"))))}function T(Se,je){const ot=[];return ot.push(y(Se)),je.get&&ot.push(h(Se)),je.set&&ot.push(m(Se)),t.createObjectLiteralExpression(ot)}function A(Se){const je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(Se.kind)),t.createPropertyAssignment(t.createIdentifier("name"),Se.name.computed?Se.name.name:t.createStringLiteralFromNode(Se.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),Se.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),Se.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),T(Se.name,Se.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),Se.metadata)];return t.createObjectLiteralExpression(je)}function R(Se){return Se.kind==="class"?p(Se):A(Se)}function M(Se,je,ot,Bt,vt,$e){return e.requestEmitHelper(fW),t.createCallExpression(o("__esDecorate"),void 0,[Se??t.createNull(),je??t.createNull(),ot,R(Bt),vt,$e])}function C(Se,je,ot){return e.requestEmitHelper(mW),t.createCallExpression(o("__runInitializers"),void 0,ot?[Se,je,ot]:[Se,je])}function O(Se){return os(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,Se):(e.requestEmitHelper(_W),t.createCallExpression(o("__assign"),void 0,Se))}function U(Se){return e.requestEmitHelper(JA),t.createCallExpression(o("__await"),void 0,[Se])}function K(Se,je){return e.requestEmitHelper(JA),e.requestEmitHelper(hW),(Se.emitNode||(Se.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[je?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),Se])}function Q(Se){return e.requestEmitHelper(JA),e.requestEmitHelper(gW),t.createCallExpression(o("__asyncDelegator"),void 0,[Se])}function V(Se){return e.requestEmitHelper(vW),t.createCallExpression(o("__asyncValues"),void 0,[Se])}function se(Se,je,ot,Bt){e.requestEmitHelper(yW);const vt=[];let $e=0;for(let It=0;It<je.length-1;It++){const tn=RH(je[It]);if(tn)if(Za(tn)){N.assertIsDefined(ot,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const rn=ot[$e];$e++,vt.push(t.createConditionalExpression(t.createTypeCheck(rn,"symbol"),void 0,rn,void 0,t.createAdd(rn,t.createStringLiteral(""))))}else vt.push(t.createStringLiteralFromNode(tn))}return t.createCallExpression(o("__rest"),void 0,[Se,dt(t.createArrayLiteralExpression(vt),Bt)])}function G(Se,je,ot,Bt,vt){e.requestEmitHelper(bW);const $e=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,Bt??[],void 0,vt);return($e.emitNode||($e.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[Se?t.createThis():t.createVoidZero(),je??t.createVoidZero(),ot?Xk(t,ot):t.createVoidZero(),$e])}function ne(Se){return e.requestEmitHelper(EW),t.createCallExpression(o("__extends"),void 0,[Se,t.createUniqueName("_super",48)])}function he(Se,je){return e.requestEmitHelper(SW),t.createCallExpression(o("__makeTemplateObject"),void 0,[Se,je])}function ye(Se,je,ot){return e.requestEmitHelper(AW),t.createCallExpression(o("__spreadArray"),void 0,[Se,je,ot?r():i()])}function Y(Se){return e.requestEmitHelper(IW),t.createCallExpression(o("__propKey"),void 0,[Se])}function X(Se,je,ot){return e.requestEmitHelper(xW),e.factory.createCallExpression(o("__setFunctionName"),void 0,ot?[Se,je,e.factory.createStringLiteral(ot)]:[Se,je])}function oe(Se){return e.requestEmitHelper(RW),t.createCallExpression(o("__values"),void 0,[Se])}function pe(Se,je){return e.requestEmitHelper(TW),t.createCallExpression(o("__read"),void 0,je!==void 0?[Se,t.createNumericLiteral(je+"")]:[Se])}function Ce(Se){return e.requestEmitHelper(DW),t.createCallExpression(o("__generator"),void 0,[t.createThis(),Se])}function de(Se,je,ot){return e.requestEmitHelper(FR),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),Se,je,...ot?[ot]:[]])}function ie(Se){return e.requestEmitHelper(wk),t.createCallExpression(o("__importStar"),void 0,[Se])}function ve(){return e.requestEmitHelper(wk),o("__importStar")}function Le(Se){return e.requestEmitHelper(CW),t.createCallExpression(o("__importDefault"),void 0,[Se])}function Ue(Se,je=t.createIdentifier("exports")){return e.requestEmitHelper(PW),e.requestEmitHelper(FR),t.createCallExpression(o("__exportStar"),void 0,[Se,je])}function Ee(Se,je,ot,Bt){e.requestEmitHelper(MW);let vt;return Bt?vt=[Se,je,t.createStringLiteral(ot),Bt]:vt=[Se,je,t.createStringLiteral(ot)],t.createCallExpression(o("__classPrivateFieldGet"),void 0,vt)}function De(Se,je,ot,Bt,vt){e.requestEmitHelper(LW);let $e;return vt?$e=[Se,je,ot,t.createStringLiteral(Bt),vt]:$e=[Se,je,ot,t.createStringLiteral(Bt)],t.createCallExpression(o("__classPrivateFieldSet"),void 0,$e)}function Me(Se,je){return e.requestEmitHelper(kW),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[Se,je])}function We(Se,je,ot){return e.requestEmitHelper(wW),t.createCallExpression(o("__addDisposableResource"),void 0,[Se,je,ot?t.createTrue():t.createFalse()])}function At(Se){return e.requestEmitHelper(OW),t.createCallExpression(o("__disposeResources"),void 0,[Se])}}function eae(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:nl(e.priority,t.priority)}function QU(e,...t){return r=>{let i="";for(let o=0;o<t.length;o++)i+=e[o],i+=r(t[o]);return i+=e[e.length-1],i}}function ZU(){return rTe||(rTe=TE([uW,dW,pW,fW,mW,_W,JA,hW,gW,vW,yW,bW,EW,SW,AW,RW,TW,IW,xW,DW,wk,CW,PW,MW,LW,kW,FR,NW,wW,OW],e=>e.name))}function dP(e,t){return sa(e)&&Ve(e.expression)&&(Ga(e.expression)&8192)!==0&&e.expression.escapedText===t}var eH,uW,dW,pW,fW,mW,_W,JA,hW,gW,vW,yW,bW,EW,SW,TW,AW,IW,xW,RW,DW,FR,NW,wk,CW,PW,MW,LW,kW,wW,OW,rTe,Ok,Wk,zBe=I({"src/compiler/factory/emitHelpers.ts"(){ra(),eH=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(eH||{}),uW={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;
};`},dW={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);
};`},pW={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); }
};`},fW={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:`
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
var _, done = false;
for (var i = decorators.length - 1; i >= 0; i--) {
var context = {};
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
if (kind === "accessor") {
if (result === void 0) continue;
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
if (_ = accept(result.get)) descriptor.get = _;
if (_ = accept(result.set)) descriptor.set = _;
if (_ = accept(result.init)) initializers.unshift(_);
}
else if (_ = accept(result)) {
if (kind === "field") initializers.unshift(_);
else descriptor[key] = _;
}
}
if (target) Object.defineProperty(target, contextIn.name, descriptor);
done = true;
};`},mW={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;
};`},_W={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);
};`},JA={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); }`},hW={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[JA],text:`
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
};`},gW={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[JA],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; }
};`},vW={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); }
};`},yW={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;
};`},bW={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());
});
};`},EW={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 __());
};
})();`},SW={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;
};`},TW={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;
};`},AW={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));
};`},IW={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:`
var __propKey = (this && this.__propKey) || function (x) {
return typeof x === "symbol" ? x : "".concat(x);
};`},xW={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 });
};`},RW={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.");
};`},DW={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 };
}
};`},FR={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];
}));`},NW={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;
});`},wk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[FR,NW],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;
};`},CW={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};`},PW={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[FR],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);
};`},MW={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);
};`},LW={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;
};`},kW={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);
};`},wW={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:`
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
if (value !== null && value !== void 0) {
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
var dispose;
if (async) {
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
dispose = value[Symbol.asyncDispose];
}
if (dispose === void 0) {
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
dispose = value[Symbol.dispose];
}
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
env.stack.push({ value: value, dispose: dispose, async: async });
}
else if (async) {
env.stack.push({ async: true });
}
return value;
};`},OW={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:`
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
return function (env) {
function fail(e) {
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
env.hasError = true;
}
function next() {
while (env.stack.length) {
var rec = env.stack.pop();
try {
var result = rec.dispose && rec.dispose.call(rec.value);
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
}
catch (e) {
fail(e);
}
}
if (env.hasError) throw env.error;
}
return next();
};
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
});`},Ok={name:"typescript:async-super",scoped:!0,text:QU`
const ${"_superIndex"} = name => super[name];`},Wk={name:"typescript:advanced-async-super",scoped:!0,text:QU`
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 hp(e){return e.kind===9}function WW(e){return e.kind===10}function Na(e){return e.kind===11}function KA(e){return e.kind===12}function tH(e){return e.kind===14}function XA(e){return e.kind===15}function YA(e){return e.kind===16}function nH(e){return e.kind===17}function FW(e){return e.kind===18}function zW(e){return e.kind===26}function tae(e){return e.kind===28}function rH(e){return e.kind===40}function iH(e){return e.kind===41}function Fk(e){return e.kind===42}function zk(e){return e.kind===54}function Hy(e){return e.kind===58}function nae(e){return e.kind===59}function BW(e){return e.kind===29}function rae(e){return e.kind===39}function Ve(e){return e.kind===80}function qi(e){return e.kind===81}function $A(e){return e.kind===95}function GW(e){return e.kind===90}function pP(e){return e.kind===134}function iae(e){return e.kind===131}function oH(e){return e.kind===135}function oae(e){return e.kind===148}function QA(e){return e.kind===126}function aae(e){return e.kind===128}function sae(e){return e.kind===164}function lae(e){return e.kind===129}function fP(e){return e.kind===108}function mP(e){return e.kind===102}function cae(e){return e.kind===84}function Id(e){return e.kind===166}function Za(e){return e.kind===167}function hl(e){return e.kind===168}function Ao(e){return e.kind===169}function Eu(e){return e.kind===170}function gp(e){return e.kind===171}function qo(e){return e.kind===172}function vh(e){return e.kind===173}function Hl(e){return e.kind===174}function Rl(e){return e.kind===175}function Ml(e){return e.kind===176}function tf(e){return e.kind===177}function vp(e){return e.kind===178}function ZA(e){return e.kind===179}function Bk(e){return e.kind===180}function XE(e){return e.kind===181}function Gk(e){return e.kind===182}function Df(e){return e.kind===183}function yh(e){return e.kind===184}function zR(e){return e.kind===185}function eI(e){return e.kind===186}function yp(e){return e.kind===187}function Vk(e){return e.kind===188}function tI(e){return e.kind===189}function BR(e){return e.kind===202}function VW(e){return e.kind===190}function jW(e){return e.kind===191}function qy(e){return e.kind===192}function nI(e){return e.kind===193}function rI(e){return e.kind===194}function kS(e){return e.kind===195}function wS(e){return e.kind===196}function jk(e){return e.kind===197}function OS(e){return e.kind===198}function WS(e){return e.kind===199}function GR(e){return e.kind===200}function Jy(e){return e.kind===201}function ag(e){return e.kind===205}function aH(e){return e.kind===204}function uae(e){return e.kind===203}function im(e){return e.kind===206}function YE(e){return e.kind===207}function $a(e){return e.kind===208}function fd(e){return e.kind===209}function La(e){return e.kind===210}function Fr(e){return e.kind===211}function $s(e){return e.kind===212}function sa(e){return e.kind===213}function $E(e){return e.kind===214}function QE(e){return e.kind===215}function dae(e){return e.kind===216}function Gd(e){return e.kind===217}function Os(e){return e.kind===218}function Gs(e){return e.kind===219}function pae(e){return e.kind===220}function VR(e){return e.kind===221}function iI(e){return e.kind===222}function Ky(e){return e.kind===223}function Xy(e){return e.kind===224}function sH(e){return e.kind===225}function mr(e){return e.kind===226}function jR(e){return e.kind===227}function UW(e){return e.kind===228}function HW(e){return e.kind===229}function $m(e){return e.kind===230}function Qc(e){return e.kind===231}function Gc(e){return e.kind===232}function Vv(e){return e.kind===233}function Uk(e){return e.kind===234}function lH(e){return e.kind===238}function oI(e){return e.kind===235}function _P(e){return e.kind===236}function iTe(e){return e.kind===237}function qW(e){return e.kind===360}function hP(e){return e.kind===361}function gP(e){return e.kind===239}function fae(e){return e.kind===240}function Ko(e){return e.kind===241}function Ll(e){return e.kind===243}function cH(e){return e.kind===242}function Zc(e){return e.kind===244}function FS(e){return e.kind===245}function oTe(e){return e.kind===246}function aTe(e){return e.kind===247}function zS(e){return e.kind===248}function JW(e){return e.kind===249}function Hk(e){return e.kind===250}function sTe(e){return e.kind===251}function lTe(e){return e.kind===252}function Im(e){return e.kind===253}function mae(e){return e.kind===254}function vP(e){return e.kind===255}function ZE(e){return e.kind===256}function uH(e){return e.kind===257}function BS(e){return e.kind===258}function cTe(e){return e.kind===259}function Oi(e){return e.kind===260}function Vc(e){return e.kind===261}function Tc(e){return e.kind===262}function Ac(e){return e.kind===263}function md(e){return e.kind===264}function xm(e){return e.kind===265}function y0(e){return e.kind===266}function Xl(e){return e.kind===267}function L_(e){return e.kind===268}function yP(e){return e.kind===269}function qk(e){return e.kind===270}function eu(e){return e.kind===271}function Mc(e){return e.kind===272}function bh(e){return e.kind===273}function uTe(e){return e.kind===302}function _ae(e){return e.kind===300}function dTe(e){return e.kind===301}function aI(e){return e.kind===300}function hae(e){return e.kind===301}function Yy(e){return e.kind===274}function Eh(e){return e.kind===280}function Bg(e){return e.kind===275}function tp(e){return e.kind===276}function kl(e){return e.kind===277}function Yl(e){return e.kind===278}function Nf(e){return e.kind===279}function Ku(e){return e.kind===281}function pTe(e){return e.kind===282}function dH(e){return e.kind===359}function sI(e){return e.kind===362}function Sh(e){return e.kind===283}function sg(e){return e.kind===284}function GS(e){return e.kind===285}function k_(e){return e.kind===286}function e1(e){return e.kind===287}function t1(e){return e.kind===288}function lI(e){return e.kind===289}function gae(e){return e.kind===290}function w_(e){return e.kind===291}function n1(e){return e.kind===292}function cI(e){return e.kind===293}function bP(e){return e.kind===294}function Qm(e){return e.kind===295}function UR(e){return e.kind===296}function EP(e){return e.kind===297}function nf(e){return e.kind===298}function r1(e){return e.kind===299}function hc(e){return e.kind===303}function np(e){return e.kind===304}function jv(e){return e.kind===305}function i1(e){return e.kind===306}function vae(e){return e.kind===308}function $i(e){return e.kind===312}function pH(e){return e.kind===313}function VS(e){return e.kind===314}function o1(e){return e.kind===316}function SP(e){return e.kind===317}function b0(e){return e.kind===318}function yae(e){return e.kind===331}function bae(e){return e.kind===332}function fTe(e){return e.kind===333}function Eae(e){return e.kind===319}function Sae(e){return e.kind===320}function HR(e){return e.kind===321}function KW(e){return e.kind===322}function fH(e){return e.kind===323}function qR(e){return e.kind===324}function XW(e){return e.kind===325}function mTe(e){return e.kind===326}function Zm(e){return e.kind===327}function jS(e){return e.kind===329}function E0(e){return e.kind===330}function uI(e){return e.kind===335}function _Te(e){return e.kind===337}function Tae(e){return e.kind===339}function mH(e){return e.kind===345}function _H(e){return e.kind===340}function hH(e){return e.kind===341}function gH(e){return e.kind===342}function vH(e){return e.kind===343}function YW(e){return e.kind===344}function JR(e){return e.kind===346}function yH(e){return e.kind===338}function hTe(e){return e.kind===354}function Jk(e){return e.kind===347}function e_(e){return e.kind===348}function $W(e){return e.kind===349}function bH(e){return e.kind===350}function TP(e){return e.kind===351}function om(e){return e.kind===352}function US(e){return e.kind===353}function gTe(e){return e.kind===334}function Aae(e){return e.kind===355}function QW(e){return e.kind===336}function ZW(e){return e.kind===357}function vTe(e){return e.kind===356}function KR(e){return e.kind===358}var BBe=I({"src/compiler/factory/nodeTests.ts"(){ra()}});function Kk(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function HS(e,t,r,i){if(Za(r))return dt(e.createElementAccessExpression(t,r.expression),i);{const o=dt(Kh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return P_(o,128),o}}function Iae(e,t){const r=Th.createIdentifier(e||"React");return Ha(r,No(t)),r}function xae(e,t,r){if(Id(t)){const i=xae(e,t.left,r),o=e.createIdentifier(Sr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Iae(Sr(t),r)}function EH(e,t,r,i){return t?xae(e,t,i):e.createPropertyAccessExpression(Iae(r,i),"createElement")}function GBe(e,t,r,i){return t?xae(e,t,i):e.createPropertyAccessExpression(Iae(r,i),"Fragment")}function Rae(e,t,r,i,o,s){const l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(const u of o)Xu(u),l.push(u);else l.push(o[0]);return dt(e.createCallExpression(t,void 0,l),s)}function Dae(e,t,r,i,o,s,l){const p=[GBe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const h of o)Xu(h),p.push(h);else p.push(o[0]);return dt(e.createCallExpression(EH(e,t,i,s),void 0,p),l)}function SH(e,t,r){if(Vc(t)){const i=Ua(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return dt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{const i=dt(e.createAssignment(t,r),t);return dt(e.createExpressionStatement(i),t)}}function yTe(e,t,r){return Ko(t)?e.updateBlock(t,dt(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function Xk(e,t){if(Id(t)){const r=Xk(e,t.left),i=Ha(dt(e.cloneNode(t.right),t.right),t.right.parent);return dt(e.createPropertyAccessExpression(r,i),t)}else return Ha(dt(e.cloneNode(t),t),t.parent)}function TH(e,t){return Ve(t)?e.createStringLiteralFromNode(t):Za(t)?Ha(dt(e.cloneNode(t.expression),t.expression),t.expression.parent):Ha(dt(e.cloneNode(t),t),t.parent)}function VBe(e,t,r,i,o){const{firstAccessor:s,getAccessor:l,setAccessor:u}=NS(t,r);if(r===s)return dt(e.createObjectDefinePropertyCall(i,TH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&dt(Nr(e.createFunctionExpression(xE(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&dt(Nr(e.createFunctionExpression(xE(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function jBe(e,t,r){return Nr(dt(e.createAssignment(HS(e,r,t.name,t.name),t.initializer),t),t)}function UBe(e,t,r){return Nr(dt(e.createAssignment(HS(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function HBe(e,t,r){return Nr(dt(e.createAssignment(HS(e,r,t.name,t.name),Nr(dt(e.createFunctionExpression(xE(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Nae(e,t,r,i){switch(r.name&&qi(r.name)&&N.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return VBe(e,t.properties,r,i,!!t.multiLine);case 303:return jBe(e,r,i);case 304:return UBe(e,r,i);case 174:return HBe(e,r,i)}}function eF(e,t,r,i,o){const s=t.operator;N.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const l=e.createTempVariable(i);r=e.createAssignment(l,r),dt(r,t.operand);let u=Xy(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return dt(u,t),o&&(u=e.createAssignment(o,u),dt(u,t)),r=e.createComma(r,u),dt(r,t),sH(t)&&(r=e.createComma(r,l),dt(r,t)),r}function AH(e){return(Ga(e)&65536)!==0}function Gg(e){return(Ga(e)&32768)!==0}function tF(e){return(Ga(e)&16384)!==0}function bTe(e){return Na(e.expression)&&e.expression.text==="use strict"}function IH(e){for(const t of e)if(Sm(t)){if(bTe(t))return t}else break}function Cae(e){const t=Kc(e);return t!==void 0&&Sm(t)&&bTe(t)}function Yk(e){return e.kind===226&&e.operatorToken.kind===28}function AP(e){return Yk(e)||hP(e)}function XR(e){return Gd(e)&&lr(e)&&!!i0(e)}function nF(e){const t=o0(e);return N.assertIsDefined(t),t}function rF(e,t=15){switch(e.kind){case 217:return t&16&&XR(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function $l(e,t=15){for(;rF(e,t);)e=e.expression;return e}function Pae(e,t=15){let r=e.parent;for(;rF(r,t);)r=r.parent,N.assert(r);return r}function ETe(e){return $l(e,6)}function Xu(e){return sW(e,!0)}function $k(e){const t=Pl(e,$i),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Mae(e){const t=Pl(e,$i),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function xH(e,t,r,i,o,s,l){if(i.importHelpers&&RA(r,i)){let u;const p=wu(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){const h=cW(r);if(h){const m=[];for(const y of h)if(!y.scoped){const T=y.importName;T&&Ef(m,T)}if(bt(m)){m.sort(Uu),u=e.createNamedImports(Wt(m,A=>N4(r,A)?e.createImportSpecifier(!1,void 0,e.createIdentifier(A)):e.createImportSpecifier(!1,e.createIdentifier(A),t.getUnscopedHelperName(A))));const y=Pl(r,$i),T=Ou(y);T.externalHelpers=!0}}}else{const h=Lae(e,r,i,o,s||l);h&&(u=e.createNamespaceImport(h))}if(u){const h=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(Vy),void 0);return UA(h,2),h}}}function Lae(e,t,r,i,o){if(r.importHelpers&&RA(t,r)){const s=$k(t);if(s)return s;const l=wu(r);let u=(i||gh(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!u){const p=cW(t);if(p){for(const h of p)if(!h.scoped){u=!0;break}}}if(u){const p=Pl(t,$i),h=Ou(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(Vy))}}}function YR(e,t,r){const i=mR(t);if(i&&!NA(t)&&!P4(t)){const o=i.name;return al(o)?o:e.createIdentifier(CE(r,o)||Sr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function dI(e,t,r,i,o,s){const l=fR(t);if(l&&Na(l))return JBe(t,i,e,o,s)||qBe(e,l,r)||e.cloneNode(l)}function qBe(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Qk(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ps(i))return e.createStringLiteral(jj(r,t.fileName))}}function JBe(e,t,r,i,o){return Qk(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Zk(e){if(uL(e))return e.initializer;if(hc(e)){const t=e.initializer;return Pc(t,!0)?t.right:void 0}if(np(e))return e.objectAssignmentInitializer;if(Pc(e,!0))return e.right;if($m(e))return Zk(e.expression)}function $y(e){if(uL(e))return e.name;if(Mg(e)){switch(e.kind){case 303:return $y(e.initializer);case 304:return e.name;case 305:return $y(e.expression)}return}return Pc(e,!0)?$y(e.left):$m(e)?$y(e.expression):e}function iF(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function RH(e){const t=oF(e);return N.assert(!!t||jv(e),"Invalid property name for binding element."),t}function oF(e){switch(e.kind){case 208:if(e.propertyName){const r=e.propertyName;return qi(r)?N.failBadSyntaxKind(r):Za(r)&&STe(r.expression)?r.expression:r}break;case 303:if(e.name){const r=e.name;return qi(r)?N.failBadSyntaxKind(r):Za(r)&&STe(r.expression)?r.expression:r}break;case 305:return e.name&&qi(e.name)?N.failBadSyntaxKind(e.name):e.name}const t=$y(e);if(t&&oc(t))return t}function STe(e){const t=e.kind;return t===11||t===9}function $R(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function DH(e){if(e){let t=e;for(;;){if(Ve(t)||!t.body)return Ve(t)?t:t.name;t=t.body}}}function TTe(e){const t=e.kind;return t===176||t===178}function kae(e){const t=e.kind;return t===176||t===177||t===178}function NH(e){const t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function wae(e){const t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Oae(e){return Hy(e)||zk(e)}function Wae(e){return Ve(e)||jk(e)}function Fae(e){return oae(e)||rH(e)||iH(e)}function zae(e){return Hy(e)||rH(e)||iH(e)}function Bae(e){return Ve(e)||Na(e)}function ATe(e){const t=e.kind;return t===106||t===112||t===97||DE(e)||Xy(e)}function KBe(e){return e===43}function XBe(e){return e===42||e===44||e===45}function YBe(e){return KBe(e)||XBe(e)}function $Be(e){return e===40||e===41}function QBe(e){return $Be(e)||YBe(e)}function ZBe(e){return e===48||e===49||e===50}function CH(e){return ZBe(e)||QBe(e)}function eGe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function tGe(e){return eGe(e)||CH(e)}function nGe(e){return e===35||e===37||e===36||e===38}function rGe(e){return nGe(e)||tGe(e)}function iGe(e){return e===51||e===52||e===53}function oGe(e){return iGe(e)||rGe(e)}function aGe(e){return e===56||e===57}function sGe(e){return aGe(e)||oGe(e)}function lGe(e){return e===61||sGe(e)||Ov(e)}function cGe(e){return lGe(e)||e===28}function Gae(e){return cGe(e.kind)}function aF(e,t,r,i,o,s){const l=new RTe(e,t,r,i,o,s);return u;function u(p,h){const m={value:void 0},y=[MH.enter],T=[p],A=[void 0];let R=0;for(;y[R]!==MH.done;)R=y[R](l,R,y,T,A,m,h);return N.assertEqual(R,0),m.value}}function ITe(e){return e===95||e===90}function ew(e){const t=e.kind;return ITe(t)}function xTe(e){const t=e.kind;return Pv(t)&&!ITe(t)}function Vae(e,t){if(t!==void 0)return t.length===0?t:dt(e.createNodeArray([],t.hasTrailingComma),t)}function tw(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let o=e,s=o.original;for(;s;){o=s;const l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(Kh(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function QR(e,t){return typeof e=="object"?S0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function uGe(e,t){return typeof e=="string"?e:dGe(e,N.checkDefined(t))}function dGe(e,t){return dS(e)?t(e).slice(1):al(e)?t(e):qi(e)?e.escapedText.slice(1):Sr(e)}function S0(e,t,r,i,o){return t=QR(t,o),i=QR(i,o),r=uGe(r,o),`${e?"#":""}${t}${r}${i}`}function PH(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function jae(e,t,r,i,o=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Uae(e,t,r,i,o=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function sF(e){let t=e.expression;for(;;){if(t=$l(t),hP(t)){t=Xa(t.elements);continue}if(Yk(t)){t=t.right;continue}if(Pc(t,!0)&&al(t.left))return t;break}}function pGe(e){return Gd(e)&&Ys(e)&&!e.emitNode}function lF(e,t){if(pGe(e))lF(e.expression,t);else if(Yk(e))lF(e.left,t),lF(e.right,t);else if(hP(e))for(const r of e.elements)lF(r,t);else t.push(e)}function Hae(e){const t=[];return lF(e,t),t}function nw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of $R(e)){const r=$y(t);if(r&&mC(r)&&(r.transformFlags&65536||r.transformFlags&128&&nw(r)))return!0}return!1}var MH,RTe,fGe=I({"src/compiler/factory/utilities.ts"(){ra(),(e=>{function t(m,y,T,A,R,M,C){const O=y>0?R[y-1]:void 0;return N.assertEqual(T[y],t),R[y]=m.onEnter(A[y],O,C),T[y]=u(m,t),y}e.enter=t;function r(m,y,T,A,R,M,C){N.assertEqual(T[y],r),N.assertIsDefined(m.onLeft),T[y]=u(m,r);const O=m.onLeft(A[y].left,R[y],A[y]);return O?(h(y,A,O),p(y,T,A,R,O)):y}e.left=r;function i(m,y,T,A,R,M,C){return N.assertEqual(T[y],i),N.assertIsDefined(m.onOperator),T[y]=u(m,i),m.onOperator(A[y].operatorToken,R[y],A[y]),y}e.operator=i;function o(m,y,T,A,R,M,C){N.assertEqual(T[y],o),N.assertIsDefined(m.onRight),T[y]=u(m,o);const O=m.onRight(A[y].right,R[y],A[y]);return O?(h(y,A,O),p(y,T,A,R,O)):y}e.right=o;function s(m,y,T,A,R,M,C){N.assertEqual(T[y],s),T[y]=u(m,s);const O=m.onExit(A[y],R[y]);if(y>0){if(y--,m.foldState){const U=T[y]===s?"right":"left";R[y]=m.foldState(R[y],O,U)}}else M.value=O;return y}e.exit=s;function l(m,y,T,A,R,M,C){return N.assertEqual(T[y],l),y}e.done=l;function u(m,y){switch(y){case t:if(m.onLeft)return r;case r:if(m.onOperator)return i;case i:if(m.onRight)return o;case o:return s;case s:return l;case l:return l;default:N.fail("Invalid state")}}e.nextState=u;function p(m,y,T,A,R){return m++,y[m]=t,T[m]=R,A[m]=void 0,m}function h(m,y,T){if(N.shouldAssert(2))for(;m>=0;)N.assert(y[m]!==T,"Circular traversal detected."),m--}})(MH||(MH={})),RTe=class{constructor(e,t,r,i,o,s){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=o,this.foldState=s}}}});function dt(e,t){return t?hh(e,t.pos,t.end):e}function Rm(e){const t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function qS(e){const t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var mGe=I({"src/compiler/factory/utilitiesPublic.ts"(){ra()}});function Xt(e,t){return t&&e(t)}function Gi(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function LH(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function rw(e){return Xe(e.statements,_Ge)||hGe(e)}function _Ge(e){return Rm(e)&&gGe(e,95)||eu(e)&&Sh(e.moduleReference)||Mc(e)||kl(e)||Yl(e)?e:void 0}function hGe(e){return e.flags&8388608?DTe(e):void 0}function DTe(e){return vGe(e)?e:Uo(e,DTe)}function gGe(e,t){return bt(e.modifiers,r=>r.kind===t)}function vGe(e){return _P(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function NTe(e,t,r){return Gi(t,r,e.typeParameters)||Gi(t,r,e.parameters)||Xt(t,e.type)}function CTe(e,t,r){return Gi(t,r,e.types)}function PTe(e,t,r){return Xt(t,e.type)}function MTe(e,t,r){return Gi(t,r,e.elements)}function LTe(e,t,r){return Xt(t,e.expression)||Xt(t,e.questionDotToken)||Gi(t,r,e.typeArguments)||Gi(t,r,e.arguments)}function kTe(e,t,r){return Gi(t,r,e.statements)}function wTe(e,t,r){return Xt(t,e.label)}function OTe(e,t,r){return Gi(t,r,e.modifiers)||Xt(t,e.name)||Gi(t,r,e.typeParameters)||Gi(t,r,e.heritageClauses)||Gi(t,r,e.members)}function WTe(e,t,r){return Gi(t,r,e.elements)}function FTe(e,t,r){return Xt(t,e.propertyName)||Xt(t,e.name)}function zTe(e,t,r){return Xt(t,e.tagName)||Gi(t,r,e.typeArguments)||Xt(t,e.attributes)}function IP(e,t,r){return Xt(t,e.type)}function BTe(e,t,r){return Xt(t,e.tagName)||(e.isNameFirst?Xt(t,e.name)||Xt(t,e.typeExpression):Xt(t,e.typeExpression)||Xt(t,e.name))||(typeof e.comment=="string"?void 0:Gi(t,r,e.comment))}function xP(e,t,r){return Xt(t,e.tagName)||Xt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Gi(t,r,e.comment))}function qae(e,t,r){return Xt(t,e.name)}function ZR(e,t,r){return Xt(t,e.tagName)||(typeof e.comment=="string"?void 0:Gi(t,r,e.comment))}function yGe(e,t,r){return Xt(t,e.expression)}function Uo(e,t,r){if(e===void 0||e.kind<=165)return;const i=YTe[e.kind];return i===void 0?void 0:i(e,t,r)}function RP(e,t,r){const i=GTe(e),o=[];for(;o.length<i.length;)o.push(e);for(;i.length!==0;){const s=i.pop(),l=o.pop();if(To(s)){if(r){const u=r(s,l);if(u){if(u==="skip")continue;return u}}for(let u=s.length-1;u>=0;--u)i.push(s[u]),o.push(l)}else{const u=t(s,l);if(u){if(u==="skip")continue;return u}if(s.kind>=166)for(const p of GTe(s))i.push(p),o.push(s)}}}function GTe(e){const t=[];return Uo(e,r,r),t;function r(i){t.unshift(i)}}function VTe(e){e.externalModuleIndicator=rw(e)}function iw(e,t,r,i=!1,o){var s,l,u,p;(s=sr)==null||s.push(sr.Phase.Parse,"createSourceFile",{path:e},!0),rl("beforeParse");let h;(l=id)==null||l.logStartParseSourceFile(e);const{languageVersion:m,setExternalModuleIndicator:y,impliedNodeFormat:T,jsDocParsingMode:A}=typeof r=="object"?r:{languageVersion:r};if(m===100)h=A0.parseSourceFile(e,t,m,void 0,i,6,Ya,A);else{const R=T===void 0?y:M=>(M.impliedNodeFormat=T,(y||VTe)(M));h=A0.parseSourceFile(e,t,m,void 0,i,o,R,A)}return(u=id)==null||u.logStopParseSourceFile(),rl("afterParse"),Qp("Parse","beforeParse","afterParse"),(p=sr)==null||p.pop(),h}function pI(e,t){return A0.parseIsolatedEntityName(e,t)}function ow(e,t){return A0.parseJsonText(e,t)}function sc(e){return e.externalModuleIndicator!==void 0}function kH(e,t,r,i=!1){const o=zH.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Jae(e,t,r){const i=A0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&A0.fixupParentReferences(i.jsDoc),i}function jTe(e,t,r){return A0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Su(e){return wH(e)!==void 0}function wH(e){const t=Gx(e,Ik,!1);if(t)return t;if(Il(e,".ts")){const r=ic(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function bGe(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,f.resolution_mode_should_be_either_require_or_import)}}function OH(e,t){const r=[];for(const i of qh(t,0)||et){const o=t.substring(i.pos,i.end);SGe(r,i,o)}e.pragmas=new Map;for(const i of r){if(e.pragmas.has(i.name)){const o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function WH(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{const o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;Xe(mA(r),u=>{const{types:p,lib:h,path:m,["resolution-mode"]:y}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){const T=bGe(y,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...T?{resolutionMode:T}:{}})}else h?l.push({pos:h.pos,end:h.end,fileName:h.value}):m?o.push({pos:m.pos,end:m.end,fileName:m.value}):t(u.range.pos,u.range.end-u.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Wt(mA(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(const o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,f.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{Xe(mA(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:N.fail("Unhandled pragma kind")}})}function EGe(e){if(BH.has(e))return BH.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return BH.set(e,t),t}function SGe(e,t,r){const i=t.kind===2&&$Te.exec(r);if(i){const s=i[1].toLowerCase(),l=z2[s];if(!l||!(l.kind&1))return;if(l.args){const u={};for(const p of l.args){const m=EGe(p.name).exec(r);if(!m&&!p.optional)return;if(m){const y=m[2]||m[3];if(p.captureSpan){const T=t.pos+m.index+m[1].length+1;u[p.name]={value:y,pos:T,end:T+y.length}}else u[p.name]=y}}e.push({name:s,args:{arguments:u,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}const o=t.kind===2&&QTe.exec(r);if(o)return UTe(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+.*)?$/gim;let l;for(;l=s.exec(r);)UTe(e,t,4,l)}}function UTe(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=z2[o];if(!s||!(s.kind&r))return;const l=i[2],u=TGe(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function TGe(e,t){if(!t)return{};if(!e.args)return{};const r=t.trim().split(/\s+/),i={};for(let o=0;o<e.args.length;o++){const s=e.args[o];if(!r[o]&&!s.optional)return"fail";if(s.captureSpan)return N.fail("Capture spans not yet implemented for non-xml pragmas");i[s.name]=r[o]}return i}function T0(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===295?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&T0(e.expression,t.expression)}var HTe,qTe,JTe,KTe,XTe,FH,Th,YTe,A0,zH,BH,$Te,QTe,AGe=I({"src/compiler/parser.ts"(){ra(),sS(),FH={createBaseSourceFileNode:e=>new(XTe||(XTe=su.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(JTe||(JTe=su.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(KTe||(KTe=su.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(qTe||(qTe=su.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(HTe||(HTe=su.getNodeConstructor()))(e,-1,-1)},Th=Dk(1,FH),YTe={166:function(t,r,i){return Xt(r,t.left)||Xt(r,t.right)},168:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.constraint)||Xt(r,t.default)||Xt(r,t.expression)},304:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.equalsToken)||Xt(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Xt(r,t.expression)},169:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.dotDotDotToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)||Xt(r,t.initializer)},172:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.type)||Xt(r,t.initializer)},171:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)||Xt(r,t.initializer)},303:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.initializer)},260:function(t,r,i){return Xt(r,t.name)||Xt(r,t.exclamationToken)||Xt(r,t.type)||Xt(r,t.initializer)},208:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.propertyName)||Xt(r,t.name)||Xt(r,t.initializer)},181:function(t,r,i){return Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)},185:function(t,r,i){return Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)},184:function(t,r,i){return Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)},179:NTe,180:NTe,174:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},173:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)},176:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},177:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},178:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},262:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},218:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},219:function(t,r,i){return Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.equalsGreaterThanToken)||Xt(r,t.body)},175:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.body)},183:function(t,r,i){return Xt(r,t.typeName)||Gi(r,i,t.typeArguments)},182:function(t,r,i){return Xt(r,t.assertsModifier)||Xt(r,t.parameterName)||Xt(r,t.type)},186:function(t,r,i){return Xt(r,t.exprName)||Gi(r,i,t.typeArguments)},187:function(t,r,i){return Gi(r,i,t.members)},188:function(t,r,i){return Xt(r,t.elementType)},189:function(t,r,i){return Gi(r,i,t.elements)},192:CTe,193:CTe,194:function(t,r,i){return Xt(r,t.checkType)||Xt(r,t.extendsType)||Xt(r,t.trueType)||Xt(r,t.falseType)},195:function(t,r,i){return Xt(r,t.typeParameter)},205:function(t,r,i){return Xt(r,t.argument)||Xt(r,t.attributes)||Xt(r,t.qualifier)||Gi(r,i,t.typeArguments)},302:function(t,r,i){return Xt(r,t.assertClause)},196:PTe,198:PTe,199:function(t,r,i){return Xt(r,t.objectType)||Xt(r,t.indexType)},200:function(t,r,i){return Xt(r,t.readonlyToken)||Xt(r,t.typeParameter)||Xt(r,t.nameType)||Xt(r,t.questionToken)||Xt(r,t.type)||Gi(r,i,t.members)},201:function(t,r,i){return Xt(r,t.literal)},202:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)},206:MTe,207:MTe,209:function(t,r,i){return Gi(r,i,t.elements)},210:function(t,r,i){return Gi(r,i,t.properties)},211:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.questionDotToken)||Xt(r,t.name)},212:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.questionDotToken)||Xt(r,t.argumentExpression)},213:LTe,214:LTe,215:function(t,r,i){return Xt(r,t.tag)||Xt(r,t.questionDotToken)||Gi(r,i,t.typeArguments)||Xt(r,t.template)},216:function(t,r,i){return Xt(r,t.type)||Xt(r,t.expression)},217:function(t,r,i){return Xt(r,t.expression)},220:function(t,r,i){return Xt(r,t.expression)},221:function(t,r,i){return Xt(r,t.expression)},222:function(t,r,i){return Xt(r,t.expression)},224:function(t,r,i){return Xt(r,t.operand)},229:function(t,r,i){return Xt(r,t.asteriskToken)||Xt(r,t.expression)},223:function(t,r,i){return Xt(r,t.expression)},225:function(t,r,i){return Xt(r,t.operand)},226:function(t,r,i){return Xt(r,t.left)||Xt(r,t.operatorToken)||Xt(r,t.right)},234:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.type)},235:function(t,r,i){return Xt(r,t.expression)},238:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.type)},236:function(t,r,i){return Xt(r,t.name)},227:function(t,r,i){return Xt(r,t.condition)||Xt(r,t.questionToken)||Xt(r,t.whenTrue)||Xt(r,t.colonToken)||Xt(r,t.whenFalse)},230:function(t,r,i){return Xt(r,t.expression)},241:kTe,268:kTe,312:function(t,r,i){return Gi(r,i,t.statements)||Xt(r,t.endOfFileToken)},243:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.declarationList)},261:function(t,r,i){return Gi(r,i,t.declarations)},244:function(t,r,i){return Xt(r,t.expression)},245:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.thenStatement)||Xt(r,t.elseStatement)},246:function(t,r,i){return Xt(r,t.statement)||Xt(r,t.expression)},247:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.statement)},248:function(t,r,i){return Xt(r,t.initializer)||Xt(r,t.condition)||Xt(r,t.incrementor)||Xt(r,t.statement)},249:function(t,r,i){return Xt(r,t.initializer)||Xt(r,t.expression)||Xt(r,t.statement)},250:function(t,r,i){return Xt(r,t.awaitModifier)||Xt(r,t.initializer)||Xt(r,t.expression)||Xt(r,t.statement)},251:wTe,252:wTe,253:function(t,r,i){return Xt(r,t.expression)},254:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.statement)},255:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.caseBlock)},269:function(t,r,i){return Gi(r,i,t.clauses)},296:function(t,r,i){return Xt(r,t.expression)||Gi(r,i,t.statements)},297:function(t,r,i){return Gi(r,i,t.statements)},256:function(t,r,i){return Xt(r,t.label)||Xt(r,t.statement)},257:function(t,r,i){return Xt(r,t.expression)},258:function(t,r,i){return Xt(r,t.tryBlock)||Xt(r,t.catchClause)||Xt(r,t.finallyBlock)},299:function(t,r,i){return Xt(r,t.variableDeclaration)||Xt(r,t.block)},170:function(t,r,i){return Xt(r,t.expression)},263:OTe,231:OTe,264:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.heritageClauses)||Gi(r,i,t.members)},265:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.typeParameters)||Xt(r,t.type)},266:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Gi(r,i,t.members)},306:function(t,r,i){return Xt(r,t.name)||Xt(r,t.initializer)},267:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.body)},271:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.moduleReference)},272:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.importClause)||Xt(r,t.moduleSpecifier)||Xt(r,t.attributes)},273:function(t,r,i){return Xt(r,t.name)||Xt(r,t.namedBindings)},300:function(t,r,i){return Gi(r,i,t.elements)},301:function(t,r,i){return Xt(r,t.name)||Xt(r,t.value)},270:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.name)},274:function(t,r,i){return Xt(r,t.name)},280:function(t,r,i){return Xt(r,t.name)},275:WTe,279:WTe,278:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.exportClause)||Xt(r,t.moduleSpecifier)||Xt(r,t.attributes)},276:FTe,281:FTe,277:function(t,r,i){return Gi(r,i,t.modifiers)||Xt(r,t.expression)},228:function(t,r,i){return Xt(r,t.head)||Gi(r,i,t.templateSpans)},239:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.literal)},203:function(t,r,i){return Xt(r,t.head)||Gi(r,i,t.templateSpans)},204:function(t,r,i){return Xt(r,t.type)||Xt(r,t.literal)},167:function(t,r,i){return Xt(r,t.expression)},298:function(t,r,i){return Gi(r,i,t.types)},233:function(t,r,i){return Xt(r,t.expression)||Gi(r,i,t.typeArguments)},283:function(t,r,i){return Xt(r,t.expression)},282:function(t,r,i){return Gi(r,i,t.modifiers)},361:function(t,r,i){return Gi(r,i,t.elements)},284:function(t,r,i){return Xt(r,t.openingElement)||Gi(r,i,t.children)||Xt(r,t.closingElement)},288:function(t,r,i){return Xt(r,t.openingFragment)||Gi(r,i,t.children)||Xt(r,t.closingFragment)},285:zTe,286:zTe,292:function(t,r,i){return Gi(r,i,t.properties)},291:function(t,r,i){return Xt(r,t.name)||Xt(r,t.initializer)},293:function(t,r,i){return Xt(r,t.expression)},294:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.expression)},287:function(t,r,i){return Xt(r,t.tagName)},295:function(t,r,i){return Xt(r,t.namespace)||Xt(r,t.name)},190:IP,191:IP,316:IP,322:IP,321:IP,323:IP,325:IP,324:function(t,r,i){return Gi(r,i,t.parameters)||Xt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))||Gi(r,i,t.tags)},354:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.name)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},317:function(t,r,i){return Xt(r,t.name)},318:function(t,r,i){return Xt(r,t.left)||Xt(r,t.right)},348:BTe,355:BTe,337:function(t,r,i){return Xt(r,t.tagName)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},336:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.class)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},335:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.class)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},352:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.constraint)||Gi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},353:function(t,r,i){return Xt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Xt(r,t.typeExpression)||Xt(r,t.fullName)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment)):Xt(r,t.fullName)||Xt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment)))},345:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.fullName)||Xt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},349:xP,351:xP,350:xP,347:xP,357:xP,356:xP,346:xP,330:function(t,r,i){return Xe(t.typeParameters,r)||Xe(t.parameters,r)||Xt(r,t.type)},331:qae,332:qae,333:qae,329:function(t,r,i){return Xe(t.jsDocPropertyTags,r)},334:ZR,339:ZR,340:ZR,341:ZR,342:ZR,343:ZR,338:ZR,344:ZR,360:yGe},(e=>{var t=Nv(99,!0),r=40960,i,o,s,l,u;function p($){return $e++,$}var h={createBaseSourceFileNode:$=>p(new u($,0,0)),createBaseIdentifierNode:$=>p(new s($,0,0)),createBasePrivateIdentifierNode:$=>p(new l($,0,0)),createBaseTokenNode:$=>p(new o($,0,0)),createBaseNode:$=>p(new i($,0,0))},m=Dk(11,h),{createNodeArray:y,createNumericLiteral:T,createStringLiteral:A,createLiteralLikeNode:R,createIdentifier:M,createPrivateIdentifier:C,createToken:O,createArrayLiteralExpression:U,createObjectLiteralExpression:K,createPropertyAccessExpression:Q,createPropertyAccessChain:V,createElementAccessExpression:se,createElementAccessChain:G,createCallExpression:ne,createCallChain:he,createNewExpression:ye,createParenthesizedExpression:Y,createBlock:X,createVariableStatement:oe,createExpressionStatement:pe,createIfStatement:Ce,createWhileStatement:de,createForStatement:ie,createForOfStatement:ve,createVariableDeclaration:Le,createVariableDeclarationList:Ue}=m,Ee,De,Me,We,At,Se,je,ot,Bt,vt,$e,It,tn,rn,Mn,$n,gn=!0,Qt=!1;function Yt($,xe,Ke,xt,Nt=!1,Jt,zr,Fi=0){var Ni;if(Jt=z3($,Jt),Jt===6){const Xi=so($,xe,Ke,xt,Nt);return lw(Xi,(Ni=Xi.statements[0])==null?void 0:Ni.expression,Xi.parseDiagnostics,!1,void 0),Xi.referencedFiles=et,Xi.typeReferenceDirectives=et,Xi.libReferenceDirectives=et,Xi.amdDependencies=et,Xi.hasNoDefaultLib=!1,Xi.pragmas=P6,Xi}Wi($,xe,Ke,xt,Jt,Fi);const hi=Ln(Ke,Nt,Jt,zr||VTe,Fi);return Co(),hi}e.parseSourceFile=Yt;function vi($,xe){Wi("",$,xe,void 0,1,0),ke();const Ke=te(!0),xt=J()===1&&!je.length;return Co(),xt?Ke:void 0}e.parseIsolatedEntityName=vi;function so($,xe,Ke=2,xt,Nt=!1){Wi($,xe,Ke,xt,6,0),De=$n,ke();const Jt=L();let zr,Fi;if(J()===1)zr=wo([],Jt,Jt),Fi=ml();else{let Xi;for(;J()!==1;){let es;switch(J()){case 23:es=N1();break;case 112:case 97:case 106:es=ml();break;case 41:Mi(()=>ke()===9&&ke()!==59)?es=Zr():es=tv();break;case 9:case 11:if(Mi(()=>ke()!==59)){es=Yr();break}default:es=tv();break}Xi&&To(Xi)?Xi.push(es):Xi?Xi=[Xi,es]:(Xi=es,J()!==1&&fn(f.Unexpected_token))}const ds=To(Xi)?nn(U(Xi),Jt):N.checkDefined(Xi),Rs=pe(ds);nn(Rs,Jt),zr=wo([Rs],Jt),Fi=Ts(1,f.Unexpected_token)}const Ni=zt($,2,6,!1,zr,Fi,De,Ya);Nt&&tt(Ni),Ni.nodeCount=$e,Ni.identifierCount=tn,Ni.identifiers=It,Ni.parseDiagnostics=zA(je,Ni),ot&&(Ni.jsDocDiagnostics=zA(ot,Ni));const hi=Ni;return Co(),hi}e.parseJsonText=so;function Wi($,xe,Ke,xt,Nt,Jt){switch(i=su.getNodeConstructor(),o=su.getTokenConstructor(),s=su.getIdentifierConstructor(),l=su.getPrivateIdentifierConstructor(),u=su.getSourceFileConstructor(),Ee=ha($),Me=xe,We=Ke,Bt=xt,At=Nt,Se=pk(Nt),je=[],rn=0,It=new Map,tn=0,$e=0,De=0,gn=!0,At){case 1:case 2:$n=524288;break;case 6:$n=134742016;break;default:$n=0;break}Qt=!1,t.setText(Me),t.setOnError(Lt),t.setScriptTarget(We),t.setLanguageVariant(Se),t.setScriptKind(At),t.setJSDocParsingMode(Jt)}function Co(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Me=void 0,We=void 0,Bt=void 0,At=void 0,Se=void 0,De=0,je=void 0,ot=void 0,rn=0,It=void 0,Mn=void 0,gn=!0}function Ln($,xe,Ke,xt,Nt){const Jt=Su(Ee);Jt&&($n|=33554432),De=$n,ke();const zr=na(0,sp);N.assert(J()===1);const Fi=me(),Ni=Ar(ml(),Fi),hi=zt(Ee,$,Ke,Jt,zr,Ni,De,xt);return OH(hi,Me),WH(hi,Xi),hi.commentDirectives=t.getCommentDirectives(),hi.nodeCount=$e,hi.identifierCount=tn,hi.identifiers=It,hi.parseDiagnostics=zA(je,hi),hi.jsDocParsingMode=Nt,ot&&(hi.jsDocDiagnostics=zA(ot,hi)),xe&&tt(hi),hi;function Xi(ds,Rs,es){je.push(CR(Ee,Me,ds,Rs,es))}}let Ci=!1;function Ar($,xe){if(!xe)return $;N.assert(!$.jsDoc);const Ke=eo(dj($,Me),xt=>J_.parseJSDocComment($,xt.pos,xt.end-xt.pos));return Ke.length&&($.jsDoc=Ke),Ci&&(Ci=!1,$.flags|=536870912),$}function sn($){const xe=Bt,Ke=zH.createSyntaxCursor($);Bt={currentNode:Xi};const xt=[],Nt=je;je=[];let Jt=0,zr=Ni($.statements,0);for(;zr!==-1;){const ds=$.statements[Jt],Rs=$.statements[zr];qr(xt,$.statements,Jt,zr),Jt=hi($.statements,zr);const es=mi(Nt,K_=>K_.start>=ds.pos),zf=es>=0?mi(Nt,K_=>K_.start>=Rs.pos,es):-1;es>=0&&qr(je,Nt,es,zf>=0?zf:void 0),vo(()=>{const K_=$n;for($n|=65536,t.resetTokenState(Rs.pos),ke();J()!==1;){const bg=t.getTokenFullStart(),ov=Zl(0,sp);if(xt.push(ov),bg===t.getTokenFullStart()&&ke(),Jt>=0){const av=$.statements[Jt];if(ov.end===av.pos)break;ov.end>av.pos&&(Jt=hi($.statements,Jt+1))}}$n=K_},2),zr=Jt>=0?Ni($.statements,Jt):-1}if(Jt>=0){const ds=$.statements[Jt];qr(xt,$.statements,Jt);const Rs=mi(Nt,es=>es.start>=ds.pos);Rs>=0&&qr(je,Nt,Rs)}return Bt=xe,m.updateSourceFile($,dt(y(xt),$.statements));function Fi(ds){return!(ds.flags&65536)&&!!(ds.transformFlags&67108864)}function Ni(ds,Rs){for(let es=Rs;es<ds.length;es++)if(Fi(ds[es]))return es;return-1}function hi(ds,Rs){for(let es=Rs;es<ds.length;es++)if(!Fi(ds[es]))return es;return-1}function Xi(ds){const Rs=Ke.currentNode(ds);return gn&&Rs&&Fi(Rs)&&(Rs.intersectsChange=!0),Rs}}function tt($){Gy($,!0)}e.fixupParentReferences=tt;function zt($,xe,Ke,xt,Nt,Jt,zr,Fi){let Ni=m.createSourceFile(Nt,Jt,zr);if(ZC(Ni,0,Me.length),hi(Ni),!xt&&sc(Ni)&&Ni.transformFlags&67108864){const Xi=Ni;Ni=sn(Ni),Xi!==Ni&&hi(Ni)}return Ni;function hi(Xi){Xi.text=Me,Xi.bindDiagnostics=[],Xi.bindSuggestionDiagnostics=void 0,Xi.languageVersion=xe,Xi.fileName=$,Xi.languageVariant=pk(Ke),Xi.isDeclarationFile=xt,Xi.scriptKind=Ke,Fi(Xi),Xi.setExternalModuleIndicator=Fi}}function Dn($,xe){$?$n|=xe:$n&=~xe}function ci($){Dn($,8192)}function yi($){Dn($,16384)}function Qi($){Dn($,32768)}function Io($){Dn($,65536)}function fa($,xe){const Ke=$&$n;if(Ke){Dn(!1,Ke);const xt=xe();return Dn(!0,Ke),xt}return xe()}function ka($,xe){const Ke=$&~$n;if(Ke){Dn(!0,Ke);const xt=xe();return Dn(!1,Ke),xt}return xe()}function Tn($){return fa(8192,$)}function wn($){return ka(8192,$)}function He($){return fa(131072,$)}function mt($){return ka(131072,$)}function ft($){return ka(16384,$)}function Ct($){return ka(32768,$)}function le($){return ka(65536,$)}function Fe($){return fa(65536,$)}function pt($){return ka(81920,$)}function j($){return fa(81920,$)}function it($){return($n&$)!==0}function Rt(){return it(16384)}function Ye(){return it(8192)}function _t(){return it(131072)}function Gt(){return it(32768)}function yn(){return it(65536)}function fn($,...xe){return q(t.getTokenStart(),t.getTokenEnd(),$,...xe)}function hn($,xe,Ke,...xt){const Nt=el(je);let Jt;return(!Nt||$!==Nt.start)&&(Jt=CR(Ee,Me,$,xe,Ke,...xt),je.push(Jt)),Qt=!0,Jt}function q($,xe,Ke,...xt){return hn($,xe-$,Ke,...xt)}function Oe($,xe,...Ke){q($.pos,$.end,xe,...Ke)}function Lt($,xe,Ke){hn(t.getTokenEnd(),xe,$,Ke)}function L(){return t.getTokenFullStart()}function me(){return t.hasPrecedingJSDocComment()}function J(){return vt}function fe(){return vt=t.scan()}function Be($){return ke(),$()}function ke(){return Bd(vt)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&q(t.getTokenStart(),t.getTokenEnd(),f.Keywords_cannot_contain_escape_characters),fe()}function Tt(){return vt=t.scanJsDocToken()}function kt($){return vt=t.scanJSDocCommentTextToken($)}function en(){return vt=t.reScanGreaterToken()}function En(){return vt=t.reScanSlashToken()}function Gn($){return vt=t.reScanTemplateToken($)}function qn(){return vt=t.reScanLessThanToken()}function Pi(){return vt=t.reScanHashToken()}function xi(){return vt=t.scanJsxIdentifier()}function ir(){return vt=t.scanJsxToken()}function Vr(){return vt=t.scanJsxAttributeValue()}function vo($,xe){const Ke=vt,xt=je.length,Nt=Qt,Jt=$n,zr=xe!==0?t.lookAhead($):t.tryScan($);return N.assert(Jt===$n),(!zr||xe!==0)&&(vt=Ke,xe!==2&&(je.length=xt),Qt=Nt),zr}function Mi($){return vo($,1)}function Ri($){return vo($,0)}function Jr(){return J()===80?!0:J()>118}function xo(){return J()===80?!0:J()===127&&Rt()||J()===135&&yn()?!1:J()>118}function Nn($,xe,Ke=!0){return J()===$?(Ke&&ke(),!0):(xe?fn(xe):fn(f._0_expected,pa($)),!1)}const Fs=Object.keys(Q2).filter($=>$.length>2);function Ql($){if(QE($)){q(Pa(Me,$.template.pos),$.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}const xe=Ve($)?Sr($):void 0;if(!xe||!Zp(xe,We)){fn(f._0_expected,pa(27));return}const Ke=Pa(Me,$.pos);switch(xe){case"const":case"let":case"var":q(Ke,$.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ko(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":q(Ke,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ko(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":ko(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}const xt=KN(xe,Fs,Nt=>Nt)??cs(xe);if(xt){q(Ke,$.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,xt);return}J()!==0&&q(Ke,$.end,f.Unexpected_keyword_or_identifier)}function ko($,xe,Ke){J()===Ke?fn(xe):fn($,t.getTokenValue())}function cs($){for(const xe of Fs)if($.length>xe.length+2&&uo($,xe))return`${xe} ${$.slice(xe.length)}`}function Vs($,xe,Ke){if(J()===60&&!t.hasPrecedingLineBreak()){fn(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(J()===21){fn(f.Cannot_start_a_function_call_in_a_type_annotation),ke();return}if(xe&&!lc()){Ke?fn(f._0_expected,pa(27)):fn(f.Expected_for_property_initializer);return}if(!Nl()){if(Ke){fn(f._0_expected,pa(27));return}Ql($)}}function gl($){return J()===$?(Tt(),!0):(N.assert(o3($)),fn(f._0_expected,pa($)),!1)}function cu($,xe,Ke,xt){if(J()===xe){ke();return}const Nt=fn(f._0_expected,pa(xe));Ke&&Nt&&Ma(Nt,CR(Ee,Me,xt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,pa($),pa(xe)))}function ho($){return J()===$?(ke(),!0):!1}function da($){if(J()===$)return ml()}function uu($){if(J()===$)return Lf()}function Ts($,xe,Ke){return da($)||js($,!1,xe||f._0_expected,Ke||pa($))}function Ca($){const xe=uu($);return xe||(N.assert(o3($)),js($,!1,f._0_expected,pa($)))}function ml(){const $=L(),xe=J();return ke(),nn(O(xe),$)}function Lf(){const $=L(),xe=J();return Tt(),nn(O(xe),$)}function lc(){return J()===27?!0:J()===20||J()===1||t.hasPrecedingLineBreak()}function Nl(){return lc()?(J()===27&&ke(),!0):!1}function cl(){return Nl()||Nn(27)}function wo($,xe,Ke,xt){const Nt=y($,xt);return hh(Nt,xe,Ke??t.getTokenFullStart()),Nt}function nn($,xe,Ke){return hh($,xe,Ke??t.getTokenFullStart()),$n&&($.flags|=$n),Qt&&(Qt=!1,$.flags|=262144),$}function js($,xe,Ke,...xt){xe?hn(t.getTokenFullStart(),0,Ke,...xt):Ke&&fn(Ke,...xt);const Nt=L(),Jt=$===80?M("",void 0):Ny($)?m.createTemplateLiteralLikeNode($,"","",void 0):$===9?T("",void 0):$===11?A("",void 0):$===282?m.createMissingDeclaration():O($);return nn(Jt,Nt)}function tu($){let xe=It.get($);return xe===void 0&&It.set($,xe=$),xe}function du($,xe,Ke){if($){tn++;const Fi=L(),Ni=J(),hi=tu(t.getTokenValue()),Xi=t.hasExtendedUnicodeEscape();return fe(),nn(M(hi,Ni,Xi),Fi)}if(J()===81)return fn(Ke||f.Private_identifiers_are_not_allowed_outside_class_bodies),du(!0);if(J()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return du(!0);tn++;const xt=J()===1,Nt=t.isReservedWord(),Jt=t.getTokenText(),zr=Nt?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return js(80,xt,xe||zr,Jt)}function Tp($){return du(Jr(),void 0,$)}function Ms($,xe){return du(xo(),$,xe)}function xc($){return du(od(J()),$)}function ue(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&fn(f.Unicode_escape_sequence_cannot_appear_here),du(od(J()))}function Z(){return od(J())||J()===11||J()===9}function we(){return od(J())||J()===11}function Et($){if(J()===11||J()===9){const xe=Yr();return xe.text=tu(xe.text),xe}return J()===23?Er():J()===81?vr():xc()}function un(){return Et()}function Er(){const $=L();Nn(23);const xe=Tn(qe);return Nn(24),nn(m.createComputedPropertyName(xe),$)}function vr(){const $=L(),xe=C(tu(t.getTokenValue()));return ke(),nn(xe,$)}function jr($){return J()===$&&Ri(Mr)}function Di(){return ke(),t.hasPrecedingLineBreak()?!1:Us()}function Mr(){switch(J()){case 87:return ke()===94;case 95:return ke(),J()===90?Mi(vc):J()===156?Mi(Sl):Yo();case 90:return vc();case 126:case 139:case 153:return ke(),Us();default:return Di()}}function Yo(){return J()===60||J()!==42&&J()!==130&&J()!==19&&Us()}function Sl(){return ke(),Yo()}function jc(){return Pv(J())&&Ri(Mr)}function Us(){return J()===23||J()===19||J()===42||J()===26||Z()}function vc(){return ke(),J()===86||J()===100||J()===120||J()===60||J()===128&&Mi(RT)||J()===134&&Mi(DT)}function Es($,xe){if(yc($))return!0;switch($){case 0:case 1:case 3:return!(J()===27&&xe)&&P1();case 2:return J()===84||J()===90;case 4:return Mi(Ja);case 5:return Mi(vg)||J()===27&&!xe;case 6:return J()===23||Z();case 12:switch(J()){case 23:case 42:case 26:case 25:return!0;default:return Z()}case 18:return Z();case 9:return J()===23||J()===26||Z();case 24:return we();case 7:return J()===19?Mi(Uc):xe?xo()&&!_d():KI()&&!_d();case 8:return rs();case 10:return J()===28||J()===26||rs();case 19:return J()===103||J()===87||xo();case 15:switch(J()){case 28:case 25:return!0}case 11:return J()===26||r_();case 16:return V_(!1);case 17:return V_(!0);case 20:case 21:return J()===28||pg();case 22:return D();case 23:return J()===161&&Mi(aN)?!1:od(J());case 13:return od(J())||J()===19;case 14:return!0;case 25:return!0;case 26:return N.fail("ParsingContext.Count used as a context");default:N.assertNever($,"Non-exhaustive case in 'isListElement'.")}}function Uc(){if(N.assert(J()===19),ke()===20){const $=ke();return $===28||$===19||$===96||$===119}return!0}function ip(){return ke(),xo()}function wc(){return ke(),od(J())}function sm(){return ke(),Pne(J())}function _d(){return J()===119||J()===96?Mi(Pe):!1}function Pe(){return ke(),r_()}function Ot(){return ke(),pg()}function Xn($){if(J()===1)return!0;switch($){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return J()===20;case 3:return J()===20||J()===84||J()===90;case 7:return J()===19||J()===96||J()===119;case 8:return yo();case 19:return J()===32||J()===21||J()===19||J()===96||J()===119;case 11:return J()===22||J()===27;case 15:case 21:case 10:return J()===24;case 17:case 16:case 18:return J()===22||J()===24;case 20:return J()!==28;case 22:return J()===19||J()===20;case 13:return J()===32||J()===44;case 14:return J()===30&&Mi(Si);default:return!1}}function yo(){return!!(lc()||Qg(J())||J()===39)}function $o(){N.assert(rn,"Missing parsing context");for(let $=0;$<26;$++)if(rn&1<<$&&(Es($,!0)||Xn($)))return!0;return!1}function na($,xe){const Ke=rn;rn|=1<<$;const xt=[],Nt=L();for(;!Xn($);){if(Es($,!1)){xt.push(Zl($,xe));continue}if(Dh($))break}return rn=Ke,wo(xt,Nt)}function Zl($,xe){const Ke=yc($);return Ke?ul(Ke):xe()}function yc($,xe){var Ke;if(!Bt||!vl($)||Qt)return;const xt=Bt.currentNode(xe??t.getTokenFullStart());if(!(Fl(xt)||xt.intersectsChange||eR(xt)||(xt.flags&101441536)!==$n)&&Gl(xt,$))return JL(xt)&&((Ke=xt.jsDoc)!=null&&Ke.jsDocCache)&&(xt.jsDoc.jsDocCache=void 0),xt}function ul($){return t.resetTokenState($.end),ke(),$}function vl($){switch($){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 Gl($,xe){switch(xe){case 5:return ec($);case 2:return Hc($);case 0:case 1:case 3:return df($);case 6:return jd($);case 4:return Nd($);case 8:return kf($);case 17:case 16:return G_($)}return!1}function ec($){if($)switch($.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:const xe=$;return!(xe.name.kind===80&&xe.name.escapedText==="constructor")}return!1}function Hc($){if($)switch($.kind){case 296:case 297:return!0}return!1}function df($){if($)switch($.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}function jd($){return $.kind===306}function Nd($){if($)switch($.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}function kf($){return $.kind!==260?!1:$.initializer===void 0}function G_($){return $.kind!==169?!1:$.initializer===void 0}function Dh($){return qg($),$o()?!0:(ke(),!1)}function qg($){switch($){case 0:return J()===90?fn(f._0_expected,pa(95)):fn(f.Declaration_or_statement_expected);case 1:return fn(f.Declaration_or_statement_expected);case 2:return fn(f.case_or_default_expected);case 3:return fn(f.Statement_expected);case 18:case 4:return fn(f.Property_or_signature_expected);case 5:return fn(f.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return fn(f.Enum_member_expected);case 7:return fn(f.Expression_expected);case 8:return Bd(J())?fn(f._0_is_not_allowed_as_a_variable_declaration_name,pa(J())):fn(f.Variable_declaration_expected);case 9:return fn(f.Property_destructuring_pattern_expected);case 10:return fn(f.Array_element_destructuring_pattern_expected);case 11:return fn(f.Argument_expression_expected);case 12:return fn(f.Property_assignment_expected);case 15:return fn(f.Expression_or_comma_expected);case 17:return fn(f.Parameter_declaration_expected);case 16:return Bd(J())?fn(f._0_is_not_allowed_as_a_parameter_name,pa(J())):fn(f.Parameter_declaration_expected);case 19:return fn(f.Type_parameter_declaration_expected);case 20:return fn(f.Type_argument_expected);case 21:return fn(f.Type_expected);case 22:return fn(f.Unexpected_token_expected);case 23:return J()===161?fn(f._0_expected,"}"):fn(f.Identifier_expected);case 13:return fn(f.Identifier_expected);case 14:return fn(f.Identifier_expected);case 24:return fn(f.Identifier_or_string_literal_expected);case 25:return fn(f.Identifier_expected);case 26:return N.fail("ParsingContext.Count used as a context");default:N.assertNever($)}}function Bu($,xe,Ke){const xt=rn;rn|=1<<$;const Nt=[],Jt=L();let zr=-1;for(;;){if(Es($,!1)){const Fi=t.getTokenFullStart(),Ni=Zl($,xe);if(!Ni){rn=xt;return}if(Nt.push(Ni),zr=t.getTokenStart(),ho(28))continue;if(zr=-1,Xn($))break;Nn(28,Jg($)),Ke&&J()===27&&!t.hasPrecedingLineBreak()&&ke(),Fi===t.getTokenFullStart()&&ke();continue}if(Xn($)||Dh($))break}return rn=xt,wo(Nt,Jt,void 0,zr>=0)}function Jg($){return $===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ap(){const $=wo([],L());return $.isMissingList=!0,$}function dg($){return!!$.isMissingList}function Ud($,xe,Ke,xt){if(Nn(Ke)){const Nt=Bu($,xe);return Nn(xt),Nt}return Ap()}function te($,xe){const Ke=L();let xt=$?xc(xe):Ms(xe);for(;ho(25)&&J()!==30;)xt=nn(m.createQualifiedName(xt,Ft($,!1,!0)),Ke);return xt}function ct($,xe){return nn(m.createQualifiedName($,xe),$.pos)}function Ft($,xe,Ke){if(t.hasPrecedingLineBreak()&&od(J())&&Mi(Hp))return js(80,!0,f.Identifier_expected);if(J()===81){const xt=vr();return xe?xt:js(80,!0,f.Identifier_expected)}return $?Ke?xc():ue():Ms()}function Vt($){const xe=L(),Ke=[];let xt;do xt=ii($),Ke.push(xt);while(xt.literal.kind===17);return wo(Ke,xe)}function W($){const xe=L();return nn(m.createTemplateExpression(oo($),Vt($)),xe)}function Te(){const $=L();return nn(m.createTemplateLiteralType(oo(!1),st()),$)}function st(){const $=L(),xe=[];let Ke;do Ke=qt(),xe.push(Ke);while(Ke.literal.kind===17);return wo(xe,$)}function qt(){const $=L();return nn(m.createTemplateLiteralTypeSpan(bc(),rr(!1)),$)}function rr($){return J()===20?(Gn($),wa()):Ts(18,f._0_expected,pa(20))}function ii($){const xe=L();return nn(m.createTemplateSpan(Tn(qe),rr($)),xe)}function Yr(){return Ol(J())}function oo($){!$&&t.getTokenFlags()&26656&&Gn(!1);const xe=Ol(J());return N.assert(xe.kind===16,"Template head has wrong token kind"),xe}function wa(){const $=Ol(J());return N.assert($.kind===17||$.kind===18,"Template fragment has wrong token kind"),$}function Oa($){const xe=$===15||$===18,Ke=t.getTokenText();return Ke.substring(1,Ke.length-(t.isUnterminated()?0:xe?1:2))}function Ol($){const xe=L(),Ke=Ny($)?m.createTemplateLiteralLikeNode($,t.getTokenValue(),Oa($),t.getTokenFlags()&7176):$===9?T(t.getTokenValue(),t.getNumericLiteralFlags()):$===11?A(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):dC($)?R($,t.getTokenValue()):N.fail();return t.hasExtendedUnicodeEscape()&&(Ke.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ke.isUnterminated=!0),ke(),nn(Ke,xe)}function pu(){return te(!0,f.Type_expected)}function Rc(){if(!t.hasPrecedingLineBreak()&&qn()===30)return Ud(20,bc,30,32)}function Ip(){const $=L();return nn(m.createTypeReferenceNode(pu(),Rc()),$)}function Hd($){switch($.kind){case 183:return Fl($.typeName);case 184:case 185:{const{parameters:xe,type:Ke}=$;return dg(xe)||Hd(Ke)}case 196:return Hd($.type);default:return!1}}function ab($){return ke(),nn(m.createTypePredicateNode(void 0,$,bc()),$.pos)}function us(){const $=L();return ke(),nn(m.createThisTypeNode(),$)}function Pm(){const $=L();return ke(),nn(m.createJSDocAllType(),$)}function Mm(){const $=L();return ke(),nn(m.createJSDocNonNullableType(lb(),!1),$)}function Ui(){const $=L();return ke(),J()===28||J()===20||J()===22||J()===32||J()===64||J()===52?nn(m.createJSDocUnknownType(),$):nn(m.createJSDocNullableType(bc(),!1),$)}function Kg(){const $=L(),xe=me();if(Ri(Ff)){const Ke=vn(36),xt=jt(59,!1);return Ar(nn(m.createJSDocFunctionType(Ke,xt),$),xe)}return nn(m.createTypeReferenceNode(xc(),void 0),$)}function ey(){const $=L();let xe;return(J()===110||J()===105)&&(xe=xc(),Nn(59)),nn(m.createParameterDeclaration(void 0,void 0,xe,void 0,Lm(),void 0),$)}function Lm(){t.setInJSDocType(!0);const $=L();if(ho(144)){const xt=m.createJSDocNamepathType(void 0);e:for(;;)switch(J()){case 20:case 1:case 28:case 5:break e;default:Tt()}return t.setInJSDocType(!1),nn(xt,$)}const xe=ho(26);let Ke=cb();return t.setInJSDocType(!1),xe&&(Ke=nn(m.createJSDocVariadicType(Ke),$)),J()===64?(ke(),nn(m.createJSDocOptionalType(Ke),$)):Ke}function b1(){const $=L();Nn(114);const xe=te(!0),Ke=t.hasPrecedingLineBreak()?void 0:Y0();return nn(m.createTypeQueryNode(xe,Ke),$)}function E1(){const $=L(),xe=Lh(!1,!0),Ke=Ms();let xt,Nt;ho(96)&&(pg()||!r_()?xt=bc():Nt=db());const Jt=ho(64)?bc():void 0,zr=m.createTypeParameterDeclaration(xe,Ke,xt,Jt);return zr.expression=Nt,nn(zr,$)}function pf(){if(J()===30)return Ud(19,E1,30,32)}function V_($){return J()===26||rs()||Pv(J())||J()===60||pg(!$)}function ff($){const xe=Ir(f.Private_identifiers_cannot_be_used_as_parameters);return yL(xe)===0&&!bt($)&&Pv(J())&&ke(),xe}function Xg(){return Jr()||J()===23||J()===19}function ze($){return Mt($)}function Ze($){return Mt($,!1)}function Mt($,xe=!0){const Ke=L(),xt=me(),Nt=$?le(()=>Lh(!0)):Fe(()=>Lh(!0));if(J()===110){const Ni=m.createParameterDeclaration(Nt,void 0,du(!0),void 0,ny(),void 0),hi=Kc(Nt);return hi&&Oe(hi,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ar(nn(Ni,Ke),xt)}const Jt=gn;gn=!1;const zr=da(26);if(!xe&&!Xg())return;const Fi=Ar(nn(m.createParameterDeclaration(Nt,zr,ff(Nt),da(58),ny(),i_()),Ke),xt);return gn=Jt,Fi}function jt($,xe){if(bn($,xe))return He(cb)}function bn($,xe){return $===39?(Nn($),!0):ho(59)?!0:xe&&J()===39?(fn(f._0_expected,pa(59)),ke(),!0):!1}function Qn($,xe){const Ke=Rt(),xt=yn();yi(!!($&1)),Io(!!($&2));const Nt=$&32?Bu(17,ey):Bu(16,()=>xe?ze(xt):Ze(xt));return yi(Ke),Io(xt),Nt}function vn($){if(!Nn(21))return Ap();const xe=Qn($,!0);return Nn(22),xe}function Zn(){ho(28)||cl()}function _i($){const xe=L(),Ke=me();$===180&&Nn(105);const xt=pf(),Nt=vn(4),Jt=jt(59,!0);Zn();const zr=$===179?m.createCallSignature(xt,Nt,Jt):m.createConstructSignature(xt,Nt,Jt);return Ar(nn(zr,xe),Ke)}function cr(){return J()===23&&Mi(ni)}function ni(){if(ke(),J()===26||J()===24)return!0;if(Pv(J())){if(ke(),xo())return!0}else if(xo())ke();else return!1;return J()===59||J()===28?!0:J()!==58?!1:(ke(),J()===59||J()===28||J()===24)}function fr($,xe,Ke){const xt=Ud(16,()=>ze(!1),23,24),Nt=ny();Zn();const Jt=m.createIndexSignature(Ke,xt,Nt);return Ar(nn(Jt,$),xe)}function Qo($,xe,Ke){const xt=un(),Nt=da(58);let Jt;if(J()===21||J()===30){const zr=pf(),Fi=vn(4),Ni=jt(59,!0);Jt=m.createMethodSignature(Ke,xt,Nt,zr,Fi,Ni)}else{const zr=ny();Jt=m.createPropertySignature(Ke,xt,Nt,zr),J()===64&&(Jt.initializer=i_())}return Zn(),Ar(nn(Jt,$),xe)}function Ja(){if(J()===21||J()===30||J()===139||J()===153)return!0;let $=!1;for(;Pv(J());)$=!0,ke();return J()===23?!0:(Z()&&($=!0,ke()),$?J()===21||J()===30||J()===58||J()===59||J()===28||lc():!1)}function Zu(){if(J()===21||J()===30)return _i(179);if(J()===105&&Mi(fu))return _i(180);const $=L(),xe=me(),Ke=Lh(!1);return jr(139)?rv($,xe,Ke,177,4):jr(153)?rv($,xe,Ke,178,4):cr()?fr($,xe,Ke):Qo($,xe,Ke)}function fu(){return ke(),J()===21||J()===30}function Yg(){return ke()===25}function O0(){switch(ke()){case 21:case 30:case 25:return!0}return!1}function zI(){const $=L();return nn(m.createTypeLiteralNode(W0()),$)}function W0(){let $;return Nn(19)?($=na(4,Zu),Nn(20)):$=Ap(),$}function qD(){return ke(),J()===40||J()===41?ke()===148:(J()===148&&ke(),J()===23&&ip()&&ke()===103)}function JD(){const $=L(),xe=xc();Nn(103);const Ke=bc();return nn(m.createTypeParameterDeclaration(void 0,xe,Ke,void 0),$)}function KD(){const $=L();Nn(19);let xe;(J()===148||J()===40||J()===41)&&(xe=ml(),xe.kind!==148&&Nn(148)),Nn(23);const Ke=JD(),xt=ho(130)?bc():void 0;Nn(24);let Nt;(J()===58||J()===40||J()===41)&&(Nt=ml(),Nt.kind!==58&&Nn(58));const Jt=ny();cl();const zr=na(4,Zu);return Nn(20),nn(m.createMappedTypeNode(xe,Ke,xt,Nt,Jt,zr),$)}function uT(){const $=L();if(ho(26))return nn(m.createRestTypeNode(bc()),$);const xe=bc();if(HR(xe)&&xe.pos===xe.type.pos){const Ke=m.createOptionalTypeNode(xe.type);return dt(Ke,xe),Ke.flags=xe.flags,Ke}return xe}function S1(){return ke()===59||J()===58&&ke()===59}function BI(){return J()===26?od(ke())&&S1():od(J())&&S1()}function XD(){if(Mi(BI)){const $=L(),xe=me(),Ke=da(26),xt=xc(),Nt=da(58);Nn(59);const Jt=uT(),zr=m.createNamedTupleMember(Ke,xt,Nt,Jt);return Ar(nn(zr,$),xe)}return uT()}function GI(){const $=L();return nn(m.createTupleTypeNode(Ud(21,XD,23,24)),$)}function VI(){const $=L();Nn(21);const xe=bc();return Nn(22),nn(m.createParenthesizedType(xe),$)}function jI(){let $;if(J()===128){const xe=L();ke();const Ke=nn(O(128),xe);$=wo([Ke],xe)}return $}function UI(){const $=L(),xe=me(),Ke=jI(),xt=ho(105);N.assert(!Ke||xt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Nt=pf(),Jt=vn(4),zr=jt(39,!1),Fi=xt?m.createConstructorTypeNode(Ke,Nt,Jt,zr):m.createFunctionTypeNode(Nt,Jt,zr);return Ar(nn(Fi,$),xe)}function dT(){const $=ml();return J()===25?void 0:$}function HI($){const xe=L();$&&ke();let Ke=J()===112||J()===97||J()===106?ml():Ol(J());return $&&(Ke=nn(m.createPrefixUnaryExpression(41,Ke),xe)),nn(m.createLiteralTypeNode(Ke),xe)}function T1(){return ke(),J()===102}function A1(){De|=4194304;const $=L(),xe=ho(114);Nn(102),Nn(21);const Ke=bc();let xt;if(ho(28)){const zr=t.getTokenStart();Nn(19);const Fi=J();if(Fi===118||Fi===132?ke():fn(f._0_expected,pa(118)),Nn(59),xt=Eb(Fi,!0),!Nn(20)){const Ni=el(je);Ni&&Ni.code===f._0_expected.code&&Ma(Ni,CR(Ee,Me,zr,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Nn(22);const Nt=ho(25)?pu():void 0,Jt=Rc();return nn(m.createImportTypeNode(Ke,xt,Nt,Jt,xe),$)}function sb(){return ke(),J()===9||J()===10}function lb(){switch(J()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ri(dT)||Ip();case 67:t.reScanAsteriskEqualsToken();case 42:return Pm();case 61:t.reScanQuestionToken();case 58:return Ui();case 100:return Kg();case 54:return Mm();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return HI();case 41:return Mi(sb)?HI(!0):Ip();case 116:return ml();case 110:{const $=us();return J()===142&&!t.hasPrecedingLineBreak()?ab($):$}case 114:return Mi(T1)?A1():b1();case 19:return Mi(qD)?KD():zI();case 23:return GI();case 21:return VI();case 102:return A1();case 131:return Mi(Hp)?JI():Ip();case 16:return Te();default:return Ip()}}function pg($){switch(J()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!$;case 41:return!$&&Mi(sb);case 21:return!$&&Mi(F0);default:return xo()}}function F0(){return ke(),J()===22||V_(!1)||pg()}function ts(){const $=L();let xe=lb();for(;!t.hasPrecedingLineBreak();)switch(J()){case 54:ke(),xe=nn(m.createJSDocNonNullableType(xe,!0),$);break;case 58:if(Mi(Ot))return xe;ke(),xe=nn(m.createJSDocNullableType(xe,!0),$);break;case 23:if(Nn(23),pg()){const Ke=bc();Nn(24),xe=nn(m.createIndexedAccessTypeNode(xe,Ke),$)}else Nn(24),xe=nn(m.createArrayTypeNode(xe),$);break;default:return xe}return xe}function pT($){const xe=L();return Nn($),nn(m.createTypeOperatorNode($,Nh()),xe)}function YD(){if(ho(96)){const $=mt(bc);if(_t()||J()!==58)return $}}function z0(){const $=L(),xe=Ms(),Ke=Ri(YD),xt=m.createTypeParameterDeclaration(void 0,xe,Ke);return nn(xt,$)}function $g(){const $=L();return Nn(140),nn(m.createInferTypeNode(z0()),$)}function Nh(){const $=J();switch($){case 143:case 158:case 148:return pT($);case 140:return $g()}return He(ts)}function wf($){if(fT()){const xe=UI();let Ke;return yh(xe)?Ke=$?f.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ke=$?f.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Oe(xe,Ke),xe}}function qd($,xe,Ke){const xt=L(),Nt=$===52,Jt=ho($);let zr=Jt&&wf(Nt)||xe();if(J()===$||Jt){const Fi=[zr];for(;ho($);)Fi.push(wf(Nt)||xe());zr=nn(Ke(wo(Fi,xt)),xt)}return zr}function xp(){return qd(51,Nh,m.createIntersectionTypeNode)}function op(){return qd(52,xp,m.createUnionTypeNode)}function ty(){return ke(),J()===105}function fT(){return J()===30||J()===21&&Mi(qI)?!0:J()===105||J()===128&&Mi(ty)}function $D(){if(Pv(J())&&Lh(!1),xo()||J()===110)return ke(),!0;if(J()===23||J()===19){const $=je.length;return Ir(),$===je.length}return!1}function qI(){return ke(),!!(J()===22||J()===26||$D()&&(J()===59||J()===28||J()===58||J()===64||J()===22&&(ke(),J()===39)))}function cb(){const $=L(),xe=xo()&&Ri(B0),Ke=bc();return xe?nn(m.createTypePredicateNode(void 0,xe,Ke),$):Ke}function B0(){const $=Ms();if(J()===142&&!t.hasPrecedingLineBreak())return ke(),$}function JI(){const $=L(),xe=Ts(131),Ke=J()===110?us():Ms(),xt=ho(142)?bc():void 0;return nn(m.createTypePredicateNode(xe,Ke,xt),$)}function bc(){if($n&81920)return fa(81920,bc);if(fT())return UI();const $=L(),xe=op();if(!_t()&&!t.hasPrecedingLineBreak()&&ho(96)){const Ke=mt(bc);Nn(58);const xt=He(bc);Nn(59);const Nt=He(bc);return nn(m.createConditionalTypeNode(xe,Ke,xt,Nt),$)}return xe}function ny(){return ho(59)?bc():void 0}function KI(){switch(J()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Mi(O0);default:return xo()}}function r_(){if(KI())return!0;switch(J()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return a_()?!0:xo()}}function mT(){return J()!==19&&J()!==100&&J()!==86&&J()!==60&&r_()}function qe(){const $=Gt();$&&Qi(!1);const xe=L();let Ke=mu(!0),xt;for(;xt=da(28);)Ke=I1(Ke,xt,mu(!0),xe);return $&&Qi(!0),Ke}function i_(){return ho(64)?mu(!0):void 0}function mu($){if(G0())return ub();const xe=iy($)||_T($);if(xe)return xe;const Ke=L(),xt=me(),Nt=cm(0);return Nt.kind===80&&J()===39?ry(Ke,Nt,$,xt,void 0):Zd(Nt)&&Ov(en())?I1(Nt,ml(),mu($),Ke):lm(Nt,Ke,$)}function G0(){return J()===127?Rt()?!0:Mi(Hs):!1}function XI(){return ke(),!t.hasPrecedingLineBreak()&&xo()}function ub(){const $=L();return ke(),!t.hasPrecedingLineBreak()&&(J()===42||r_())?nn(m.createYieldExpression(da(42),mu(!0)),$):nn(m.createYieldExpression(void 0,void 0),$)}function ry($,xe,Ke,xt,Nt){N.assert(J()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Jt=m.createParameterDeclaration(void 0,void 0,xe,void 0,void 0,void 0);nn(Jt,xe.pos);const zr=wo([Jt],Jt.pos,Jt.end),Fi=Ts(39),Ni=gT(!!Nt,Ke),hi=m.createArrowFunction(Nt,void 0,zr,void 0,Fi,Ni);return Ar(nn(hi,$),xt)}function iy($){const xe=DM();if(xe!==0)return xe===1?V0(!0,!0):Ri(()=>o_($))}function DM(){return J()===21||J()===30||J()===134?Mi(Ka):J()===39?1:0}function Ka(){if(J()===134&&(ke(),t.hasPrecedingLineBreak()||J()!==21&&J()!==30))return 0;const $=J(),xe=ke();if($===21){if(xe===22)switch(ke()){case 39:case 59:case 19:return 1;default:return 0}if(xe===23||xe===19)return 2;if(xe===26)return 1;if(Pv(xe)&&xe!==134&&Mi(ip))return ke()===130?0:1;if(!xo()&&xe!==110)return 0;switch(ke()){case 59:return 1;case 58:return ke(),J()===59||J()===28||J()===64||J()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return N.assert($===30),!xo()&&J()!==87?0:Se===1?Mi(()=>{ho(87);const xt=ke();if(xt===96)switch(ke()){case 64:case 32:case 44:return!1;default:return!0}else if(xt===28||xt===64)return!0;return!1})?1:0:2}function o_($){const xe=t.getTokenStart();if(Mn!=null&&Mn.has(xe))return;const Ke=V0(!1,$);return Ke||(Mn||(Mn=new Set)).add(xe),Ke}function _T($){if(J()===134&&Mi(hT)===1){const xe=L(),Ke=me(),xt=gf(),Nt=cm(0);return ry(xe,Nt,$,Ke,xt)}}function hT(){if(J()===134){if(ke(),t.hasPrecedingLineBreak()||J()===39)return 0;const $=cm(0);if(!t.hasPrecedingLineBreak()&&$.kind===80&&J()===39)return 1}return 0}function V0($,xe){const Ke=L(),xt=me(),Nt=gf(),Jt=bt(Nt,pP)?2:0,zr=pf();let Fi;if(Nn(21)){if($)Fi=Qn(Jt,$);else{const bg=Qn(Jt,$);if(!bg)return;Fi=bg}if(!Nn(22)&&!$)return}else{if(!$)return;Fi=Ap()}const Ni=J()===59,hi=jt(59,!1);if(hi&&!$&&Hd(hi))return;let Xi=hi;for(;(Xi==null?void 0:Xi.kind)===196;)Xi=Xi.type;const ds=Xi&&qR(Xi);if(!$&&J()!==39&&(ds||J()!==19))return;const Rs=J(),es=Ts(39),zf=Rs===39||Rs===19?gT(bt(Nt,pP),xe):Ms();if(!xe&&Ni&&J()!==59)return;const K_=m.createArrowFunction(Nt,zr,Fi,hi,es,zf);return Ar(nn(K_,Ke),xt)}function gT($,xe){if(J()===19)return _b($?2:0);if(J()!==27&&J()!==100&&J()!==86&&P1()&&!mT())return _b(16|($?2:0));const Ke=gn;gn=!1;const xt=$?le(()=>mu(xe)):Fe(()=>mu(xe));return gn=Ke,xt}function lm($,xe,Ke){const xt=da(58);if(!xt)return $;let Nt;return nn(m.createConditionalExpression($,xt,fa(r,()=>mu(!1)),Nt=Ts(59),Kf(Nt)?mu(Ke):js(80,!1,f._0_expected,pa(59))),xe)}function cm($){const xe=L(),Ke=db();return YI($,Ke,xe)}function Qg($){return $===103||$===165}function YI($,xe,Ke){for(;;){en();const xt=rk(J());if(!(J()===43?xt>=$:xt>$)||J()===103&&Ye())break;if(J()===130||J()===152){if(t.hasPrecedingLineBreak())break;{const Jt=J();ke(),xe=Jt===152?QD(xe,bc()):Ki(xe,bc())}}else xe=I1(xe,ml(),cm(xt),Ke)}return xe}function a_(){return Ye()&&J()===103?!1:rk(J())>0}function QD($,xe){return nn(m.createSatisfiesExpression($,xe),$.pos)}function I1($,xe,Ke,xt){return nn(m.createBinaryExpression($,xe,Ke),xt)}function Ki($,xe){return nn(m.createAsExpression($,xe),$.pos)}function Zr(){const $=L();return nn(m.createPrefixUnaryExpression(J(),Be(yl)),$)}function Ch(){const $=L();return nn(m.createDeleteExpression(Be(yl)),$)}function Jd(){const $=L();return nn(m.createTypeOfExpression(Be(yl)),$)}function NM(){const $=L();return nn(m.createVoidExpression(Be(yl)),$)}function Zg(){return J()===135?yn()?!0:Mi(Hs):!1}function CM(){const $=L();return nn(m.createAwaitExpression(Be(yl)),$)}function db(){if(jp()){const Ke=L(),xt=fg();return J()===43?YI(rk(J()),xt,Ke):xt}const $=J(),xe=yl();if(J()===43){const Ke=Pa(Me,xe.pos),{end:xt}=xe;xe.kind===216?q(Ke,xt,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(N.assert(o3($)),q(Ke,xt,f.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,pa($)))}return xe}function yl(){switch(J()){case 40:case 41:case 55:case 54:return Zr();case 91:return Ch();case 114:return Jd();case 116:return NM();case 30:return Se===1?ev(!0,void 0,void 0,!0):wm();case 135:if(Zg())return CM();default:return fg()}}function jp(){switch(J()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Se!==1)return!1;default:return!0}}function fg(){if(J()===46||J()===47){const xe=L();return nn(m.createPrefixUnaryExpression(J(),Be(um)),xe)}else if(Se===1&&J()===30&&Mi(sm))return ev(!0);const $=um();if(N.assert(Zd($)),(J()===46||J()===47)&&!t.hasPrecedingLineBreak()){const xe=J();return ke(),nn(m.createPostfixUnaryExpression($,xe),$.pos)}return $}function um(){const $=L();let xe;return J()===102?Mi(fu)?(De|=4194304,xe=ml()):Mi(Yg)?(ke(),ke(),xe=nn(m.createMetaProperty(102,xc()),$),De|=8388608):xe=pb():xe=J()===108?km():pb(),ay($,xe)}function pb(){const $=L(),xe=j0();return nu($,xe,!0)}function km(){const $=L();let xe=ml();if(J()===30){const Ke=L(),xt=Ri(ur);xt!==void 0&&(q(Ke,L(),f.super_may_not_use_type_arguments),to()||(xe=m.createExpressionWithTypeArguments(xe,xt)))}return J()===21||J()===25||J()===23?xe:(Ts(25,f.super_must_be_followed_by_an_argument_list_or_member_access),nn(Q(xe,Ft(!0,!0,!0)),$))}function ev($,xe,Ke,xt=!1){const Nt=L(),Jt=_g($);let zr;if(Jt.kind===286){let Fi=mg(Jt),Ni;const hi=Fi[Fi.length-1];if((hi==null?void 0:hi.kind)===284&&!T0(hi.openingElement.tagName,hi.closingElement.tagName)&&T0(Jt.tagName,hi.closingElement.tagName)){const Xi=hi.children.end,ds=nn(m.createJsxElement(hi.openingElement,hi.children,nn(m.createJsxClosingElement(nn(M(""),Xi,Xi)),Xi,Xi)),hi.openingElement.pos,Xi);Fi=wo([...Fi.slice(0,Fi.length-1),ds],Fi.pos,Xi),Ni=hi.closingElement}else Ni=R1(Jt,$),T0(Jt.tagName,Ni.tagName)||(Ke&&k_(Ke)&&T0(Ni.tagName,Ke.tagName)?Oe(Jt.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,gC(Me,Jt.tagName)):Oe(Ni.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,gC(Me,Jt.tagName)));zr=nn(m.createJsxElement(Jt,Fi,Ni),Nt)}else Jt.kind===289?zr=nn(m.createJsxFragment(Jt,mg(Jt),bT($)),Nt):(N.assert(Jt.kind===285),zr=Jt);if(!xt&&$&&J()===30){const Fi=typeof xe>"u"?zr.pos:xe,Ni=Ri(()=>ev(!0,Fi));if(Ni){const hi=js(28,!1);return ZC(hi,Ni.pos,0),q(Pa(Me,Fi),Ni.end,f.JSX_expressions_must_have_one_parent_element),nn(m.createBinaryExpression(zr,hi,Ni),Nt)}}return zr}function x1(){const $=L(),xe=m.createJsxText(t.getTokenValue(),vt===13);return vt=t.scanJsxToken(),nn(xe,$)}function vT($,xe){switch(xe){case 1:if(lI($))Oe($,f.JSX_fragment_has_no_corresponding_closing_tag);else{const Ke=$.tagName,xt=Math.min(Pa(Me,Ke.pos),Ke.end);q(xt,Ke.end,f.JSX_element_0_has_no_corresponding_closing_tag,gC(Me,$.tagName))}return;case 31:case 7:return;case 12:case 13:return x1();case 19:return ZD(!1);case 30:return ev(!1,void 0,$);default:return N.assertNever(xe)}}function mg($){const xe=[],Ke=L(),xt=rn;for(rn|=16384;;){const Nt=vT($,vt=t.reScanJsxToken());if(!Nt||(xe.push(Nt),k_($)&&(Nt==null?void 0:Nt.kind)===284&&!T0(Nt.openingElement.tagName,Nt.closingElement.tagName)&&T0($.tagName,Nt.closingElement.tagName)))break}return rn=xt,wo(xe,Ke)}function $I(){const $=L();return nn(m.createJsxAttributes(na(13,eN)),$)}function _g($){const xe=L();if(Nn(30),J()===32)return ir(),nn(m.createJsxOpeningFragment(),xe);const Ke=j_(),xt=$n&524288?void 0:Y0(),Nt=$I();let Jt;return J()===32?(ir(),Jt=m.createJsxOpeningElement(Ke,xt,Nt)):(Nn(44),Nn(32,void 0,!1)&&($?ke():ir()),Jt=m.createJsxSelfClosingElement(Ke,xt,Nt)),nn(Jt,xe)}function j_(){const $=L(),xe=oy();if(Qm(xe))return xe;let Ke=xe;for(;ho(25);)Ke=nn(Q(Ke,Ft(!0,!1,!1)),$);return Ke}function oy(){const $=L();xi();const xe=J()===110,Ke=ue();return ho(59)?(xi(),nn(m.createJsxNamespacedName(Ke,ue()),$)):xe?nn(m.createToken(110),$):Ke}function ZD($){const xe=L();if(!Nn(19))return;let Ke,xt;return J()!==20&&($||(Ke=da(26)),xt=qe()),$?Nn(20):Nn(20,void 0,!1)&&ir(),nn(m.createJsxExpression(Ke,xt),xe)}function eN(){if(J()===19)return Qs();const $=L();return nn(m.createJsxAttribute(yT(),tN()),$)}function tN(){if(J()===64){if(Vr()===11)return Yr();if(J()===19)return ZD(!0);if(J()===30)return ev(!0);fn(f.or_JSX_element_expected)}}function yT(){const $=L();xi();const xe=ue();return ho(59)?(xi(),nn(m.createJsxNamespacedName(xe,ue()),$)):xe}function Qs(){const $=L();Nn(19),Nn(26);const xe=qe();return Nn(20),nn(m.createJsxSpreadAttribute(xe),$)}function R1($,xe){const Ke=L();Nn(31);const xt=j_();return Nn(32,void 0,!1)&&(xe||!T0($.tagName,xt)?ke():ir()),nn(m.createJsxClosingElement(xt),Ke)}function bT($){const xe=L();return Nn(31),Nn(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&($?ke():ir()),nn(m.createJsxJsxClosingFragment(),xe)}function wm(){N.assert(Se!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const $=L();Nn(30);const xe=bc();Nn(32);const Ke=yl();return nn(m.createTypeAssertion(xe,Ke),$)}function fb(){return ke(),od(J())||J()===23||to()}function nN(){return J()===29&&Mi(fb)}function ET($){if($.flags&64)return!0;if(oI($)){let xe=$.expression;for(;oI(xe)&&!(xe.flags&64);)xe=xe.expression;if(xe.flags&64){for(;oI($);)$.flags|=64,$=$.expression;return!0}}return!1}function PM($,xe,Ke){const xt=Ft(!0,!0,!0),Nt=Ke||ET(xe),Jt=Nt?V(xe,Ke,xt):Q(xe,xt);if(Nt&&qi(Jt.name)&&Oe(Jt.name,f.An_optional_chain_cannot_contain_private_identifiers),Vv(xe)&&xe.typeArguments){const zr=xe.typeArguments.pos-1,Fi=Pa(Me,xe.typeArguments.end)+1;q(zr,Fi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return nn(Jt,$)}function hr($,xe,Ke){let xt;if(J()===24)xt=js(80,!0,f.An_element_access_expression_should_take_an_argument);else{const Jt=Tn(qe);ef(Jt)&&(Jt.text=tu(Jt.text)),xt=Jt}Nn(24);const Nt=Ke||ET(xe)?G(xe,Ke,xt):se(xe,xt);return nn(Nt,$)}function nu($,xe,Ke){for(;;){let xt,Nt=!1;if(Ke&&nN()?(xt=Ts(29),Nt=od(J())):Nt=ho(25),Nt){xe=PM($,xe,xt);continue}if((xt||!Gt())&&ho(23)){xe=hr($,xe,xt);continue}if(to()){xe=!xt&&xe.kind===233?mf($,xe.expression,xt,xe.typeArguments):mf($,xe,xt,void 0);continue}if(!xt){if(J()===54&&!t.hasPrecedingLineBreak()){ke(),xe=nn(m.createNonNullExpression(xe),$);continue}const Jt=Ri(ur);if(Jt){xe=nn(m.createExpressionWithTypeArguments(xe,Jt),$);continue}}return xe}}function to(){return J()===15||J()===16}function mf($,xe,Ke,xt){const Nt=m.createTaggedTemplateExpression(xe,xt,J()===15?(Gn(!0),Yr()):W(!0));return(Ke||xe.flags&64)&&(Nt.flags|=64),Nt.questionDotToken=Ke,nn(Nt,$)}function ay($,xe){for(;;){xe=nu($,xe,!0);let Ke;const xt=da(29);if(xt&&(Ke=Ri(ur),to())){xe=mf($,xe,xt,Ke);continue}if(Ke||J()===21){!xt&&xe.kind===233&&(Ke=xe.typeArguments,xe=xe.expression);const Nt=U_(),Jt=xt||ET(xe)?he(xe,xt,Ke,Nt):ne(xe,Ke,Nt);xe=nn(Jt,$);continue}if(xt){const Nt=js(80,!1,f.Identifier_expected);xe=nn(V(xe,xt,Nt),$)}break}return xe}function U_(){Nn(21);const $=Bu(11,D1);return Nn(22),$}function ur(){if($n&524288||qn()!==30)return;ke();const $=Bu(20,bc);if(en()===32)return ke(),$&&ST()?$:void 0}function ST(){switch(J()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||a_()||!r_()}function j0(){switch(J()){case 15:t.getTokenFlags()&26656&&Gn(!1);case 9:case 10:case 11:return Yr();case 110:case 108:case 106:case 112:case 97:return ml();case 21:return qc();case 23:return N1();case 19:return tv();case 134:if(!Mi(DT))break;return TT();case 60:return X0();case 86:return ix();case 100:return TT();case 105:return U0();case 44:case 69:if(En()===14)return Yr();break;case 16:return W(!1);case 81:return vr()}return Ms(f.Expression_expected)}function qc(){const $=L(),xe=me();Nn(21);const Ke=Tn(qe);return Nn(22),Ar(nn(Y(Ke),$),xe)}function Ph(){const $=L();Nn(26);const xe=mu(!0);return nn(m.createSpreadElement(xe),$)}function Om(){return J()===26?Ph():J()===28?nn(m.createOmittedExpression(),L()):mu(!0)}function D1(){return fa(r,Om)}function N1(){const $=L(),xe=t.getTokenStart(),Ke=Nn(23),xt=t.hasPrecedingLineBreak(),Nt=Bu(15,Om);return cu(23,24,Ke,xe),nn(U(Nt,xt),$)}function mb(){const $=L(),xe=me();if(da(26)){const Xi=mu(!0);return Ar(nn(m.createSpreadAssignment(Xi),$),xe)}const Ke=Lh(!0);if(jr(139))return rv($,xe,Ke,177,0);if(jr(153))return rv($,xe,Ke,178,0);const xt=da(42),Nt=xo(),Jt=un(),zr=da(58),Fi=da(54);if(xt||J()===21||J()===30)return s_($,xe,Ke,xt,Jt,zr,Fi);let Ni;if(Nt&&J()!==59){const Xi=da(64),ds=Xi?Tn(()=>mu(!0)):void 0;Ni=m.createShorthandPropertyAssignment(Jt,ds),Ni.equalsToken=Xi}else{Nn(59);const Xi=Tn(()=>mu(!0));Ni=m.createPropertyAssignment(Jt,Xi)}return Ni.modifiers=Ke,Ni.questionToken=zr,Ni.exclamationToken=Fi,Ar(nn(Ni,$),xe)}function tv(){const $=L(),xe=t.getTokenStart(),Ke=Nn(19),xt=t.hasPrecedingLineBreak(),Nt=Bu(12,mb,!0);return cu(19,20,Ke,xe),nn(K(Nt,xt),$)}function TT(){const $=Gt();Qi(!1);const xe=L(),Ke=me(),xt=Lh(!1);Nn(100);const Nt=da(42),Jt=Nt?1:0,zr=bt(xt,pP)?2:0,Fi=Jt&&zr?pt(Wm):Jt?ft(Wm):zr?le(Wm):Wm(),Ni=pf(),hi=vn(Jt|zr),Xi=jt(59,!1),ds=_b(Jt|zr);Qi($);const Rs=m.createFunctionExpression(xt,Nt,Fi,Ni,hi,Xi,ds);return Ar(nn(Rs,xe),Ke)}function Wm(){return Jr()?Tp():void 0}function U0(){const $=L();if(Nn(105),ho(25)){const Jt=xc();return nn(m.createMetaProperty(105,Jt),$)}const xe=L();let Ke=nu(xe,j0(),!1),xt;Ke.kind===233&&(xt=Ke.typeArguments,Ke=Ke.expression),J()===29&&fn(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,gC(Me,Ke));const Nt=J()===21?U_():void 0;return nn(ye(Ke,xt,Nt),$)}function hg($,xe){const Ke=L(),xt=me(),Nt=t.getTokenStart(),Jt=Nn(19,xe);if(Jt||$){const zr=t.hasPrecedingLineBreak(),Fi=na(1,sp);cu(19,20,Jt,Nt);const Ni=Ar(nn(X(Fi,zr),Ke),xt);return J()===64&&(fn(f.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),ke()),Ni}else{const zr=Ap();return Ar(nn(X(zr,void 0),Ke),xt)}}function _b($,xe){const Ke=Rt();yi(!!($&1));const xt=yn();Io(!!($&2));const Nt=gn;gn=!1;const Jt=Gt();Jt&&Qi(!1);const zr=hg(!!($&16),xe);return Jt&&Qi(!0),gn=Nt,yi(Ke),Io(xt),zr}function QI(){const $=L(),xe=me();return Nn(27),Ar(nn(m.createEmptyStatement(),$),xe)}function H0(){const $=L(),xe=me();Nn(101);const Ke=t.getTokenStart(),xt=Nn(21),Nt=Tn(qe);cu(21,22,xt,Ke);const Jt=sp(),zr=ho(93)?sp():void 0;return Ar(nn(Ce(Nt,Jt,zr),$),xe)}function rN(){const $=L(),xe=me();Nn(92);const Ke=sp();Nn(117);const xt=t.getTokenStart(),Nt=Nn(21),Jt=Tn(qe);return cu(21,22,Nt,xt),ho(27),Ar(nn(m.createDoStatement(Ke,Jt),$),xe)}function C1(){const $=L(),xe=me();Nn(117);const Ke=t.getTokenStart(),xt=Nn(21),Nt=Tn(qe);cu(21,22,xt,Ke);const Jt=sp();return Ar(nn(de(Nt,Jt),$),xe)}function AT(){const $=L(),xe=me();Nn(99);const Ke=da(135);Nn(21);let xt;J()!==27&&(J()===115||J()===121||J()===87||J()===160&&Mi(nv)||J()===135&&Mi(Rp)?xt=M1(!0):xt=wn(qe));let Nt;if(Ke?Nn(165):ho(165)){const Jt=Tn(()=>mu(!0));Nn(22),Nt=ve(Ke,xt,Jt,sp())}else if(ho(103)){const Jt=Tn(qe);Nn(22),Nt=m.createForInStatement(xt,Jt,sp())}else{Nn(27);const Jt=J()!==27&&J()!==22?Tn(qe):void 0;Nn(27);const zr=J()!==22?Tn(qe):void 0;Nn(22),Nt=ie(xt,Jt,zr,sp())}return Ar(nn(Nt,$),xe)}function Up($){const xe=L(),Ke=me();Nn($===252?83:88);const xt=lc()?void 0:Ms();cl();const Nt=$===252?m.createBreakStatement(xt):m.createContinueStatement(xt);return Ar(nn(Nt,xe),Ke)}function IT(){const $=L(),xe=me();Nn(107);const Ke=lc()?void 0:Tn(qe);return cl(),Ar(nn(m.createReturnStatement(Ke),$),xe)}function Vl(){const $=L(),xe=me();Nn(118);const Ke=t.getTokenStart(),xt=Nn(21),Nt=Tn(qe);cu(21,22,xt,Ke);const Jt=ka(67108864,sp);return Ar(nn(m.createWithStatement(Nt,Jt),$),xe)}function Oc(){const $=L(),xe=me();Nn(84);const Ke=Tn(qe);Nn(59);const xt=na(3,sp);return Ar(nn(m.createCaseClause(Ke,xt),$),xe)}function xT(){const $=L();Nn(90),Nn(59);const xe=na(3,sp);return nn(m.createDefaultClause(xe),$)}function Au(){return J()===84?Oc():xT()}function ap(){const $=L();Nn(19);const xe=na(2,Au);return Nn(20),nn(m.createCaseBlock(xe),$)}function q0(){const $=L(),xe=me();Nn(109),Nn(21);const Ke=Tn(qe);Nn(22);const xt=ap();return Ar(nn(m.createSwitchStatement(Ke,xt),$),xe)}function Of(){const $=L(),xe=me();Nn(111);let Ke=t.hasPrecedingLineBreak()?void 0:Tn(qe);return Ke===void 0&&(tn++,Ke=nn(M(""),L())),Nl()||Ql(Ke),Ar(nn(m.createThrowStatement(Ke),$),xe)}function hb(){const $=L(),xe=me();Nn(113);const Ke=hg(!1),xt=J()===85?gb():void 0;let Nt;return(!xt||J()===98)&&(Nn(98,f.catch_or_finally_expected),Nt=hg(!1)),Ar(nn(m.createTryStatement(Ke,xt,Nt),$),xe)}function gb(){const $=L();Nn(85);let xe;ho(21)?(xe=Cd(),Nn(22)):xe=void 0;const Ke=hg(!1);return nn(m.createCatchClause(xe,Ke),$)}function ru(){const $=L(),xe=me();return Nn(89),cl(),Ar(nn(m.createDebuggerStatement(),$),xe)}function ZI(){const $=L();let xe=me(),Ke;const xt=J()===21,Nt=Tn(qe);return Ve(Nt)&&ho(59)?Ke=m.createLabeledStatement(Nt,sp()):(Nl()||Ql(Nt),Ke=pe(Nt),xt&&(xe=!1)),Ar(nn(Ke,$),xe)}function Hp(){return ke(),od(J())&&!t.hasPrecedingLineBreak()}function RT(){return ke(),J()===86&&!t.hasPrecedingLineBreak()}function DT(){return ke(),J()===100&&!t.hasPrecedingLineBreak()}function Hs(){return ke(),(od(J())||J()===9||J()===10||J()===11)&&!t.hasPrecedingLineBreak()}function iN(){for(;;)switch(J()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return ex();case 135:return tx();case 120:case 156:return XI();case 144:case 145:return sN();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const $=J();if(ke(),t.hasPrecedingLineBreak())return!1;if($===138&&J()===156)return!0;continue;case 162:return ke(),J()===19||J()===80||J()===95;case 102:return ke(),J()===11||J()===42||J()===19||od(J());case 95:let xe=ke();if(xe===156&&(xe=Mi(ke)),xe===64||xe===42||xe===19||xe===90||xe===130||xe===60)return!0;continue;case 126:ke();continue;default:return!1}}function J0(){return Mi(iN)}function P1(){switch(J()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return J0()||Mi(O0);case 87:case 95:return J0();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return J0()||!Mi(Hp);default:return r_()}}function MM(){return ke(),Jr()||J()===19||J()===23}function hd(){return Mi(MM)}function nv(){return H_(!0)}function H_($){return ke(),$&&J()===165?!1:(Jr()||J()===19)&&!t.hasPrecedingLineBreak()}function ex(){return Mi(H_)}function Rp($){return ke()===160?H_($):!1}function tx(){return Mi(Rp)}function sp(){switch(J()){case 27:return QI();case 19:return hg(!1);case 115:return K0(L(),me(),void 0);case 121:if(hd())return K0(L(),me(),void 0);break;case 135:if(tx())return K0(L(),me(),void 0);break;case 160:if(ex())return K0(L(),me(),void 0);break;case 100:return L1(L(),me(),void 0);case 86:return LT(L(),me(),void 0);case 101:return H0();case 92:return rN();case 117:return C1();case 99:return AT();case 88:return Up(251);case 83:return Up(252);case 107:return IT();case 118:return Vl();case 109:return q0();case 111:return Of();case 113:case 85:case 98:return hb();case 89:return ru();case 60:return sy();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(J0())return sy();break}return ZI()}function nx($){return $.kind===138}function sy(){const $=L(),xe=me(),Ke=Lh(!0);if(bt(Ke,nx)){const Nt=NT($);if(Nt)return Nt;for(const Jt of Ke)Jt.flags|=33554432;return ka(33554432,()=>oN($,xe,Ke))}else return oN($,xe,Ke)}function NT($){return ka(33554432,()=>{const xe=yc(rn,$);if(xe)return ul(xe)})}function oN($,xe,Ke){switch(J()){case 115:case 121:case 87:case 160:case 135:return K0($,xe,Ke);case 100:return L1($,xe,Ke);case 86:return LT($,xe,Ke);case 120:return ht($,xe,Ke);case 156:return on($,xe,Ke);case 94:return wi($,xe,Ke);case 162:case 144:case 145:return ed($,xe,Ke);case 102:return Hn($,xe,Ke);case 95:switch(ke(),J()){case 90:case 64:return Oh($,xe,Ke);case 130:return kh($,xe,Ke);default:return LM($,xe,Ke)}default:if(Ke){const xt=js(282,!0,f.Declaration_expected);return QC(xt,$),xt.modifiers=Ke,xt}return}}function aN(){return ke()===11}function CT(){return ke(),J()===161||J()===64}function sN(){return ke(),!t.hasPrecedingLineBreak()&&(xo()||J()===11)}function vb($,xe){if(J()!==19){if($&4){Zn();return}if(lc()){cl();return}}return _b($,xe)}function Dp(){const $=L();if(J()===28)return nn(m.createOmittedExpression(),$);const xe=da(26),Ke=Ir(),xt=i_();return nn(m.createBindingElement(xe,void 0,Ke,xt),$)}function Mh(){const $=L(),xe=da(26),Ke=Jr();let xt=un(),Nt;Ke&&J()!==59?(Nt=xt,xt=void 0):(Nn(59),Nt=Ir());const Jt=i_();return nn(m.createBindingElement(xe,xt,Nt,Jt),$)}function lN(){const $=L();Nn(19);const xe=Tn(()=>Bu(9,Mh));return Nn(20),nn(m.createObjectBindingPattern(xe),$)}function PT(){const $=L();Nn(23);const xe=Tn(()=>Bu(10,Dp));return Nn(24),nn(m.createArrayBindingPattern(xe),$)}function rs(){return J()===19||J()===23||J()===81||Jr()}function Ir($){return J()===23?PT():J()===19?lN():Tp($)}function _f(){return Cd(!0)}function Cd($){const xe=L(),Ke=me(),xt=Ir(f.Private_identifiers_are_not_allowed_in_variable_declarations);let Nt;$&&xt.kind===80&&J()===54&&!t.hasPrecedingLineBreak()&&(Nt=ml());const Jt=ny(),zr=Qg(J())?void 0:i_(),Fi=Le(xt,Nt,Jt,zr);return Ar(nn(Fi,xe),Ke)}function M1($){const xe=L();let Ke=0;switch(J()){case 115:break;case 121:Ke|=1;break;case 87:Ke|=2;break;case 160:Ke|=4;break;case 135:N.assert(tx()),Ke|=6,ke();break;default:N.fail()}ke();let xt;if(J()===165&&Mi(cN))xt=Ap();else{const Nt=Ye();ci($),xt=Bu(8,$?Cd:_f),ci(Nt)}return nn(Ue(xt,Ke),xe)}function cN(){return ip()&&ke()===22}function K0($,xe,Ke){const xt=M1(!1);cl();const Nt=oe(Ke,xt);return Ar(nn(Nt,$),xe)}function L1($,xe,Ke){const xt=yn(),Nt=N_(Ke);Nn(100);const Jt=da(42),zr=Nt&2048?Wm():Tp(),Fi=Jt?1:0,Ni=Nt&1024?2:0,hi=pf();Nt&32&&Io(!0);const Xi=vn(Fi|Ni),ds=jt(59,!1),Rs=vb(Fi|Ni,f.or_expected);Io(xt);const es=m.createFunctionDeclaration(Ke,Jt,zr,hi,Xi,ds,Rs);return Ar(nn(es,$),xe)}function MT(){if(J()===137)return Nn(137);if(J()===11&&Mi(ke)===21)return Ri(()=>{const $=Yr();return $.text==="constructor"?$:void 0})}function gg($,xe,Ke){return Ri(()=>{if(MT()){const xt=pf(),Nt=vn(0),Jt=jt(59,!1),zr=vb(0,f.or_expected),Fi=m.createConstructorDeclaration(Ke,Nt,zr);return Fi.typeParameters=xt,Fi.type=Jt,Ar(nn(Fi,$),xe)}})}function s_($,xe,Ke,xt,Nt,Jt,zr,Fi){const Ni=xt?1:0,hi=bt(Ke,pP)?2:0,Xi=pf(),ds=vn(Ni|hi),Rs=jt(59,!1),es=vb(Ni|hi,Fi),zf=m.createMethodDeclaration(Ke,xt,Nt,Jt,Xi,ds,Rs,es);return zf.exclamationToken=zr,Ar(nn(zf,$),xe)}function hf($,xe,Ke,xt,Nt){const Jt=!Nt&&!t.hasPrecedingLineBreak()?da(54):void 0,zr=ny(),Fi=fa(90112,i_);Vs(xt,zr,Fi);const Ni=m.createPropertyDeclaration(Ke,xt,Nt||Jt,zr,Fi);return Ar(nn(Ni,$),xe)}function Fm($,xe,Ke){const xt=da(42),Nt=un(),Jt=da(58);return xt||J()===21||J()===30?s_($,xe,Ke,xt,Nt,Jt,void 0,f.or_expected):hf($,xe,Ke,Nt,Jt)}function rv($,xe,Ke,xt,Nt){const Jt=un(),zr=pf(),Fi=vn(0),Ni=jt(59,!1),hi=vb(Nt),Xi=xt===177?m.createGetAccessorDeclaration(Ke,Jt,Fi,Ni,hi):m.createSetAccessorDeclaration(Ke,Jt,Fi,hi);return Xi.typeParameters=zr,vp(Xi)&&(Xi.type=Ni),Ar(nn(Xi,$),xe)}function vg(){let $;if(J()===60)return!0;for(;Pv(J());){if($=J(),wV($))return!0;ke()}if(J()===42||(Z()&&($=J(),ke()),J()===23))return!0;if($!==void 0){if(!Bd($)||$===153||$===139)return!0;switch(J()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return lc()}}return!1}function yg($,xe,Ke){Ts(126);const xt=rx(),Nt=Ar(nn(m.createClassStaticBlockDeclaration(xt),$),xe);return Nt.modifiers=Ke,Nt}function rx(){const $=Rt(),xe=yn();yi(!1),Io(!0);const Ke=hg(!1);return yi($),Io(xe),Ke}function cc(){if(yn()&&J()===135){const $=L(),xe=Ms(f.Expression_expected);ke();const Ke=nu($,xe,!0);return ay($,Ke)}return um()}function uN(){const $=L();if(!ho(60))return;const xe=Ct(cc);return nn(m.createDecorator(xe),$)}function Wf($,xe,Ke){const xt=L(),Nt=J();if(J()===87&&xe){if(!Ri(Di))return}else{if(Ke&&J()===126&&Mi(bb))return;if($&&J()===126)return;if(!jc())return}return nn(O(Nt),xt)}function Lh($,xe,Ke){const xt=L();let Nt,Jt,zr,Fi=!1,Ni=!1,hi=!1;if($&&J()===60)for(;Jt=uN();)Nt=Rn(Nt,Jt);for(;zr=Wf(Fi,xe,Ke);)zr.kind===126&&(Fi=!0),Nt=Rn(Nt,zr),Ni=!0;if(Ni&&$&&J()===60)for(;Jt=uN();)Nt=Rn(Nt,Jt),hi=!0;if(hi)for(;zr=Wf(Fi,xe,Ke);)zr.kind===126&&(Fi=!0),Nt=Rn(Nt,zr);return Nt&&wo(Nt,xt)}function gf(){let $;if(J()===134){const xe=L();ke();const Ke=nn(O(134),xe);$=wo([Ke],xe)}return $}function k1(){const $=L(),xe=me();if(J()===27)return ke(),Ar(nn(m.createSemicolonClassElement(),$),xe);const Ke=Lh(!0,!0,!0);if(J()===126&&Mi(bb))return yg($,xe,Ke);if(jr(139))return rv($,xe,Ke,177,0);if(jr(153))return rv($,xe,Ke,178,0);if(J()===137||J()===11){const xt=gg($,xe,Ke);if(xt)return xt}if(cr())return fr($,xe,Ke);if(od(J())||J()===11||J()===9||J()===42||J()===23)if(bt(Ke,nx)){for(const Nt of Ke)Nt.flags|=33554432;return ka(33554432,()=>Fm($,xe,Ke))}else return Fm($,xe,Ke);if(Ke){const xt=js(80,!0,f.Declaration_expected);return hf($,xe,Ke,xt,void 0)}return N.fail("Should not have attempted to parse class member declaration.")}function X0(){const $=L(),xe=me(),Ke=Lh(!0);if(J()===86)return vf($,xe,Ke,231);const xt=js(282,!0,f.Expression_expected);return QC(xt,$),xt.modifiers=Ke,xt}function ix(){return vf(L(),me(),void 0,231)}function LT($,xe,Ke){return vf($,xe,Ke,263)}function vf($,xe,Ke,xt){const Nt=yn();Nn(86);const Jt=Ls(),zr=pf();bt(Ke,$A)&&Io(!0);const Fi=O1();let Ni;Nn(19)?(Ni=ae(),Nn(20)):Ni=Ap(),Io(Nt);const hi=xt===263?m.createClassDeclaration(Ke,Jt,zr,Fi,Ni):m.createClassExpression(Ke,Jt,zr,Fi,Ni);return Ar(nn(hi,$),xe)}function Ls(){return Jr()&&!w1()?du(Jr()):void 0}function w1(){return J()===119&&Mi(wc)}function O1(){if(D())return na(22,iv)}function iv(){const $=L(),xe=J();N.assert(xe===96||xe===119),ke();const Ke=Bu(7,yb);return nn(m.createHeritageClause(xe,Ke),$)}function yb(){const $=L(),xe=um();if(xe.kind===233)return xe;const Ke=Y0();return nn(m.createExpressionWithTypeArguments(xe,Ke),$)}function Y0(){return J()===30?Ud(20,bc,30,32):void 0}function D(){return J()===96||J()===119}function ae(){return na(5,k1)}function ht($,xe,Ke){Nn(120);const xt=Ms(),Nt=pf(),Jt=O1(),zr=W0(),Fi=m.createInterfaceDeclaration(Ke,xt,Nt,Jt,zr);return Ar(nn(Fi,$),xe)}function on($,xe,Ke){Nn(156),t.hasPrecedingLineBreak()&&fn(f.Line_break_not_permitted_here);const xt=Ms(),Nt=pf();Nn(64);const Jt=J()===141&&Ri(dT)||bc();cl();const zr=m.createTypeAliasDeclaration(Ke,xt,Nt,Jt);return Ar(nn(zr,$),xe)}function wr(){const $=L(),xe=me(),Ke=un(),xt=Tn(i_);return Ar(nn(m.createEnumMember(Ke,xt),$),xe)}function wi($,xe,Ke){Nn(94);const xt=Ms();let Nt;Nn(19)?(Nt=j(()=>Bu(6,wr)),Nn(20)):Nt=Ap();const Jt=m.createEnumDeclaration(Ke,xt,Nt);return Ar(nn(Jt,$),xe)}function bi(){const $=L();let xe;return Nn(19)?(xe=na(1,sp),Nn(20)):xe=Ap(),nn(m.createModuleBlock(xe),$)}function no($,xe,Ke,xt){const Nt=xt&32,Jt=xt&8?xc():Ms(),zr=ho(25)?no(L(),!1,void 0,8|Nt):bi(),Fi=m.createModuleDeclaration(Ke,Jt,zr,xt);return Ar(nn(Fi,$),xe)}function ga($,xe,Ke){let xt=0,Nt;J()===162?(Nt=Ms(),xt|=2048):(Nt=Yr(),Nt.text=tu(Nt.text));let Jt;J()===19?Jt=bi():cl();const zr=m.createModuleDeclaration(Ke,Nt,Jt,xt);return Ar(nn(zr,$),xe)}function ed($,xe,Ke){let xt=0;if(J()===162)return ga($,xe,Ke);if(ho(145))xt|=32;else if(Nn(144),J()===11)return ga($,xe,Ke);return no($,xe,Ke,xt)}function Pd(){return J()===149&&Mi(Ff)}function Ff(){return ke()===21}function bb(){return ke()===19}function Si(){return ke()===44}function kh($,xe,Ke){Nn(130),Nn(145);const xt=Ms();cl();const Nt=m.createNamespaceExportDeclaration(xt);return Nt.modifiers=Ke,Ar(nn(Nt,$),xe)}function Hn($,xe,Ke){Nn(102);const xt=t.getTokenFullStart();let Nt;xo()&&(Nt=Ms());let Jt=!1;if((Nt==null?void 0:Nt.escapedText)==="type"&&(J()!==161||xo()&&Mi(CT))&&(xo()||Sb())&&(Jt=!0,Nt=xo()?Ms():void 0),Nt&&!kT())return W1($,xe,Ke,Nt,Jt);let zr;(Nt||J()===42||J()===19)&&(zr=q_(Nt,xt,Jt),Nn(161));const Fi=wT(),Ni=J();let hi;(Ni===118||Ni===132)&&!t.hasPrecedingLineBreak()&&(hi=Eb(Ni)),cl();const Xi=m.createImportDeclaration(Ke,zr,Fi,hi);return Ar(nn(Xi,$),xe)}function ox(){const $=L(),xe=od(J())?xc():Ol(11);Nn(59);const Ke=mu(!0);return nn(m.createImportAttribute(xe,Ke),$)}function Eb($,xe){const Ke=L();xe||Nn($);const xt=t.getTokenStart();if(Nn(19)){const Nt=t.hasPrecedingLineBreak(),Jt=Bu(24,ox,!0);if(!Nn(20)){const zr=el(je);zr&&zr.code===f._0_expected.code&&Ma(zr,CR(Ee,Me,xt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return nn(m.createImportAttributes(Jt,Nt,$),Ke)}else{const Nt=wo([],L(),void 0,!1);return nn(m.createImportAttributes(Nt,!1,$),Ke)}}function Sb(){return J()===42||J()===19}function kT(){return J()===28||J()===161}function W1($,xe,Ke,xt,Nt){Nn(64);const Jt=wh();cl();const zr=m.createImportEqualsDeclaration(Ke,Nt,xt,Jt);return Ar(nn(zr,$),xe)}function q_($,xe,Ke){let xt;return(!$||ho(28))&&(xt=J()===42?$z():Tb(275)),nn(m.createImportClause(Ke,$,xt),xe)}function wh(){return Pd()?dN():te(!1)}function dN(){const $=L();Nn(149),Nn(21);const xe=wT();return Nn(22),nn(m.createExternalModuleReference(xe),$)}function wT(){if(J()===11){const $=Yr();return $.text=tu($.text),$}else return qe()}function $z(){const $=L();Nn(42),Nn(130);const xe=Ms();return nn(m.createNamespaceImport(xe),$)}function Tb($){const xe=L(),Ke=$===275?m.createNamedImports(Ud(23,h8,19,20)):m.createNamedExports(Ud(23,_8,19,20));return nn(Ke,xe)}function _8(){const $=me();return Ar($0(281),$)}function h8(){return $0(276)}function $0($){const xe=L();let Ke=Bd(J())&&!xo(),xt=t.getTokenStart(),Nt=t.getTokenEnd(),Jt=!1,zr,Fi=!0,Ni=xc();if(Ni.escapedText==="type")if(J()===130){const ds=xc();if(J()===130){const Rs=xc();od(J())?(Jt=!0,zr=ds,Ni=Xi(),Fi=!1):(zr=Ni,Ni=Rs,Fi=!1)}else od(J())?(zr=Ni,Fi=!1,Ni=Xi()):(Jt=!0,Ni=ds)}else od(J())&&(Jt=!0,Ni=Xi());Fi&&J()===130&&(zr=Ni,Nn(130),Ni=Xi()),$===276&&Ke&&q(xt,Nt,f.Identifier_expected);const hi=$===276?m.createImportSpecifier(Jt,zr,Ni):m.createExportSpecifier(Jt,zr,Ni);return nn(hi,xe);function Xi(){return Ke=Bd(J())&&!xo(),xt=t.getTokenStart(),Nt=t.getTokenEnd(),xc()}}function l_($){return nn(m.createNamespaceExport(xc()),$)}function LM($,xe,Ke){const xt=yn();Io(!0);let Nt,Jt,zr;const Fi=ho(156),Ni=L();ho(42)?(ho(130)&&(Nt=l_(Ni)),Nn(161),Jt=wT()):(Nt=Tb(279),(J()===161||J()===11&&!t.hasPrecedingLineBreak())&&(Nn(161),Jt=wT()));const hi=J();Jt&&(hi===118||hi===132)&&!t.hasPrecedingLineBreak()&&(zr=Eb(hi)),cl(),Io(xt);const Xi=m.createExportDeclaration(Ke,Fi,Nt,Jt,zr);return Ar(nn(Xi,$),xe)}function Oh($,xe,Ke){const xt=yn();Io(!0);let Nt;ho(64)?Nt=!0:Nn(90);const Jt=mu(!0);cl(),Io(xt);const zr=m.createExportAssignment(Ke,Nt,Jt);return Ar(nn(zr,$),xe)}let ax;($=>{$[$.SourceElements=0]="SourceElements",$[$.BlockStatements=1]="BlockStatements",$[$.SwitchClauses=2]="SwitchClauses",$[$.SwitchClauseStatements=3]="SwitchClauseStatements",$[$.TypeMembers=4]="TypeMembers",$[$.ClassMembers=5]="ClassMembers",$[$.EnumMembers=6]="EnumMembers",$[$.HeritageClauseElement=7]="HeritageClauseElement",$[$.VariableDeclarations=8]="VariableDeclarations",$[$.ObjectBindingElements=9]="ObjectBindingElements",$[$.ArrayBindingElements=10]="ArrayBindingElements",$[$.ArgumentExpressions=11]="ArgumentExpressions",$[$.ObjectLiteralMembers=12]="ObjectLiteralMembers",$[$.JsxAttributes=13]="JsxAttributes",$[$.JsxChildren=14]="JsxChildren",$[$.ArrayLiteralMembers=15]="ArrayLiteralMembers",$[$.Parameters=16]="Parameters",$[$.JSDocParameters=17]="JSDocParameters",$[$.RestProperties=18]="RestProperties",$[$.TypeParameters=19]="TypeParameters",$[$.TypeArguments=20]="TypeArguments",$[$.TupleElementTypes=21]="TupleElementTypes",$[$.HeritageClauses=22]="HeritageClauses",$[$.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",$[$.ImportAttributes=24]="ImportAttributes",$[$.JSDocComment=25]="JSDocComment",$[$.Count=26]="Count"})(ax||(ax={}));let g8;($=>{$[$.False=0]="False",$[$.True=1]="True",$[$.Unknown=2]="Unknown"})(g8||(g8={}));let J_;($=>{function xe(hi,Xi,ds){Wi("file.js",hi,99,void 0,1,0),t.setText(hi,Xi,ds),vt=t.scan();const Rs=Ke(),es=zt("file.js",99,1,!1,[],O(1),0,Ya),zf=zA(je,es);return ot&&(es.jsDocDiagnostics=zA(ot,es)),Co(),Rs?{jsDocTypeExpression:Rs,diagnostics:zf}:void 0}$.parseJSDocTypeExpressionForTests=xe;function Ke(hi){const Xi=L(),ds=(hi?ho:Nn)(19),Rs=ka(16777216,Lm);(!hi||ds)&&gl(20);const es=m.createJSDocTypeExpression(Rs);return tt(es),nn(es,Xi)}$.parseJSDocTypeExpression=Ke;function xt(){const hi=L(),Xi=ho(19),ds=L();let Rs=te(!1);for(;J()===81;)Pi(),Tt(),Rs=nn(m.createJSDocMemberName(Rs,Ms()),ds);Xi&&gl(20);const es=m.createJSDocNameReference(Rs);return tt(es),nn(es,hi)}$.parseJSDocNameReference=xt;function Nt(hi,Xi,ds){Wi("",hi,99,void 0,1,0);const Rs=ka(16777216,()=>Ni(Xi,ds)),zf=zA(je,{languageVariant:0,text:hi});return Co(),Rs?{jsDoc:Rs,diagnostics:zf}:void 0}$.parseIsolatedJSDocComment=Nt;function Jt(hi,Xi,ds){const Rs=vt,es=je.length,zf=Qt,K_=ka(16777216,()=>Ni(Xi,ds));return Ha(K_,hi),$n&524288&&(ot||(ot=[]),qr(ot,je,es)),vt=Rs,je.length=es,Qt=zf,K_}$.parseJSDocComment=Jt;let zr;(hi=>{hi[hi.BeginningOfLine=0]="BeginningOfLine",hi[hi.SawAsterisk=1]="SawAsterisk",hi[hi.SavingComments=2]="SavingComments",hi[hi.SavingBackticks=3]="SavingBackticks"})(zr||(zr={}));let Fi;(hi=>{hi[hi.Property=1]="Property",hi[hi.Parameter=2]="Parameter",hi[hi.CallbackParameter=4]="CallbackParameter"})(Fi||(Fi={}));function Ni(hi=0,Xi){const ds=Me,Rs=Xi===void 0?ds.length:hi+Xi;if(Xi=Rs-hi,N.assert(hi>=0),N.assert(hi<=Rs),N.assert(Rs<=ds.length),!LH(ds,hi))return;let es,zf,K_,bg,ov,av=[];const Ab=[],lp=rn;rn|=1<<25;const OT=t.scanRange(hi+3,Xi-5,pN);return rn=lp,OT;function pN(){let Pn=1,Gr,Lr=hi-(ds.lastIndexOf(`
`,hi)+1)+4;function zi(As){Gr||(Gr=Lr),av.push(As),Lr+=As.length}for(Tt();ly(5););ly(4)&&(Pn=0,Lr=0);e:for(;;){switch(J()){case 60:wM(av),ov||(ov=L()),WM(fN(Lr)),Pn=0,Gr=void 0;break;case 4:av.push(t.getTokenText()),Pn=0,Lr=0;break;case 42:const As=t.getTokenText();Pn===1?(Pn=2,zi(As)):(N.assert(Pn===0),Pn=1,Lr+=As.length);break;case 5:N.assert(Pn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const td=t.getTokenText();Gr!==void 0&&Lr+td.length>Gr&&av.push(td.slice(Gr-Lr)),Lr+=td.length;break;case 1:break e;case 82:Pn=2,zi(t.getTokenValue());break;case 19:Pn=2;const Wh=t.getTokenFullStart(),Np=t.getTokenEnd()-1,u_=uc(Np);if(u_){bg||kM(av),Ab.push(nn(m.createJSDocText(av.join("")),bg??hi,Wh)),Ab.push(u_),av=[],bg=t.getTokenEnd();break}default:Pn=2,zi(t.getTokenText());break}Pn===2?kt(!1):Tt()}const Li=av.join("").trimEnd();Ab.length&&Li.length&&Ab.push(nn(m.createJSDocText(Li),bg??hi,ov)),Ab.length&&es&&N.assertIsDefined(ov,"having parsed tags implies that the end of the comment span should be set");const is=es&&wo(es,zf,K_);return nn(m.createJSDocComment(Ab.length?wo(Ab,hi,ov):Li.length?Li:void 0,is),hi,Rs)}function kM(Pn){for(;Pn.length&&(Pn[0]===`
`||Pn[0]==="\r");)Pn.shift()}function wM(Pn){for(;Pn.length;){const Gr=Pn[Pn.length-1].trimEnd();if(Gr==="")Pn.pop();else if(Gr.length<Pn[Pn.length-1].length){Pn[Pn.length-1]=Gr;break}else break}}function Q0(){for(;;){if(Tt(),J()===1)return!0;if(!(J()===5||J()===4))return!1}}function sv(){if(!((J()===5||J()===4)&&Mi(Q0)))for(;J()===5||J()===4;)Tt()}function Ib(){if((J()===5||J()===4)&&Mi(Q0))return"";let Pn=t.hasPrecedingLineBreak(),Gr=!1,Lr="";for(;Pn&&J()===42||J()===5||J()===4;)Lr+=t.getTokenText(),J()===4?(Pn=!0,Gr=!0,Lr=""):J()===42&&(Pn=!1),Tt();return Gr?Lr:""}function fN(Pn){N.assert(J()===60);const Gr=t.getTokenStart();Tt();const Lr=nE(void 0),zi=Ib();let Li;switch(Lr.escapedText){case"author":Li=qs(Gr,Lr,Pn,zi);break;case"implements":Li=Rb(Gr,Lr,Pn,zi);break;case"augments":case"extends":Li=zm(Gr,Lr,Pn,zi);break;case"class":case"constructor":Li=tE(Gr,m.createJSDocClassTag,Lr,Pn,zi);break;case"public":Li=tE(Gr,m.createJSDocPublicTag,Lr,Pn,zi);break;case"private":Li=tE(Gr,m.createJSDocPrivateTag,Lr,Pn,zi);break;case"protected":Li=tE(Gr,m.createJSDocProtectedTag,Lr,Pn,zi);break;case"readonly":Li=tE(Gr,m.createJSDocReadonlyTag,Lr,Pn,zi);break;case"override":Li=tE(Gr,m.createJSDocOverrideTag,Lr,Pn,zi);break;case"deprecated":Ci=!0,Li=tE(Gr,m.createJSDocDeprecatedTag,Lr,Pn,zi);break;case"this":Li=Qz(Gr,Lr,Pn,zi);break;case"enum":Li=mZ(Gr,Lr,Pn,zi);break;case"arg":case"argument":case"param":return B(Gr,Lr,2,Pn);case"return":case"returns":Li=Qe(Gr,Lr,Pn,zi);break;case"template":Li=Nb(Gr,Lr,Pn,zi);break;case"type":Li=Kt(Gr,Lr,Pn,zi);break;case"typedef":Li=FM(Gr,Lr,Pn,zi);break;case"callback":Li=Bhe(Gr,Lr,Pn,zi);break;case"overload":Li=Ghe(Gr,Lr,Pn,zi);break;case"satisfies":Li=eE(Gr,Lr,Pn,zi);break;case"see":Li=yr(Gr,Lr,Pn,zi);break;case"exception":case"throws":Li=ro(Gr,Lr,Pn,zi);break;default:Li=xb(Gr,Lr,Pn,zi);break}return Li}function qp(Pn,Gr,Lr,zi){return zi||(Lr+=Gr-Pn),Va(Lr,zi.slice(Lr))}function Va(Pn,Gr){const Lr=L();let zi=[];const Li=[];let is,As=0,td;function Wh(lv){td||(td=Pn),zi.push(lv),Pn+=lv.length}Gr!==void 0&&(Gr!==""&&Wh(Gr),As=1);let Np=J();e:for(;;){switch(Np){case 4:As=0,zi.push(t.getTokenText()),Pn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:N.assert(As!==2&&As!==3,"whitespace shouldn't come from the scanner while saving comment text");const lv=t.getTokenText();td!==void 0&&Pn+lv.length>td&&(zi.push(lv.slice(td-Pn)),As=2),Pn+=lv.length;break;case 19:As=2;const Cp=t.getTokenFullStart(),hN=t.getTokenEnd()-1,v8=uc(hN);v8?(Li.push(nn(m.createJSDocText(zi.join("")),is??Lr,Cp)),Li.push(v8),zi=[],is=t.getTokenEnd()):Wh(t.getTokenText());break;case 62:As===3?As=2:As=3,Wh(t.getTokenText());break;case 82:As!==3&&(As=2),Wh(t.getTokenValue());break;case 42:if(As===0){As=1,Pn+=1;break}default:As!==3&&(As=2),Wh(t.getTokenText());break}As===2||As===3?Np=kt(As===3):Np=Tt()}kM(zi);const u_=zi.join("").trimEnd();if(Li.length)return u_.length&&Li.push(nn(m.createJSDocText(u_),is??Lr)),wo(Li,Lr,t.getTokenEnd());if(u_.length)return u_}function uc(Pn){const Gr=Ri(sx);if(!Gr)return;Tt(),sv();const Lr=Z0(),zi=[];for(;J()!==20&&J()!==4&&J()!==1;)zi.push(t.getTokenText()),Tt();const Li=Gr==="link"?m.createJSDocLink:Gr==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return nn(Li(Lr,zi.join("")),Pn,t.getTokenEnd())}function Z0(){if(od(J())){const Pn=L();let Gr=xc();for(;ho(25);)Gr=nn(m.createQualifiedName(Gr,J()===81?js(80,!1):Ms()),Pn);for(;J()===81;)Pi(),Tt(),Gr=nn(m.createJSDocMemberName(Gr,Ms()),Pn);return Gr}}function sx(){if(Ib(),J()===19&&Tt()===60&&od(Tt())){const Pn=t.getTokenValue();if(OM(Pn))return Pn}}function OM(Pn){return Pn==="link"||Pn==="linkcode"||Pn==="linkplain"}function xb(Pn,Gr,Lr,zi){return nn(m.createJSDocUnknownTag(Gr,qp(Pn,L(),Lr,zi)),Pn)}function WM(Pn){Pn&&(es?es.push(Pn):(es=[Pn],zf=Pn.pos),K_=Pn.end)}function or(){return Ib(),J()===19?Ke():void 0}function E(){const Pn=ly(23);Pn&&sv();const Gr=ly(62),Lr=_N();return Gr&&Ca(62),Pn&&(sv(),da(64)&&qe(),Nn(24)),{name:Lr,isBracketed:Pn}}function P(Pn){switch(Pn.kind){case 151:return!0;case 188:return P(Pn.elementType);default:return Df(Pn)&&Ve(Pn.typeName)&&Pn.typeName.escapedText==="Object"&&!Pn.typeArguments}}function B(Pn,Gr,Lr,zi){let Li=or(),is=!Li;Ib();const{name:As,isBracketed:td}=E(),Wh=Ib();is&&!Mi(sx)&&(Li=or());const Np=qp(Pn,L(),zi,Wh),u_=ce(Li,As,Lr,zi);u_&&(Li=u_,is=!0);const lv=Lr===1?m.createJSDocPropertyTag(Gr,As,td,Li,is,Np):m.createJSDocParameterTag(Gr,As,td,Li,is,Np);return nn(lv,Pn)}function ce(Pn,Gr,Lr,zi){if(Pn&&P(Pn.type)){const Li=L();let is,As;for(;is=Ri(()=>e9(Lr,zi,Gr));)is.kind===348||is.kind===355?As=Rn(As,is):is.kind===352&&Oe(is.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(As){const td=nn(m.createJSDocTypeLiteral(As,Pn.type.kind===188),Li);return nn(m.createJSDocTypeExpression(td),Li)}}}function Qe(Pn,Gr,Lr,zi){bt(es,$W)&&q(Gr.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Gr.escapedText));const Li=or();return nn(m.createJSDocReturnTag(Gr,Li,qp(Pn,L(),Lr,zi)),Pn)}function Kt(Pn,Gr,Lr,zi){bt(es,TP)&&q(Gr.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Gr.escapedText));const Li=Ke(!0),is=Lr!==void 0&&zi!==void 0?qp(Pn,L(),Lr,zi):void 0;return nn(m.createJSDocTypeTag(Gr,Li,is),Pn)}function yr(Pn,Gr,Lr,zi){const is=J()===23||Mi(()=>Tt()===60&&od(Tt())&&OM(t.getTokenValue()))?void 0:xt(),As=Lr!==void 0&&zi!==void 0?qp(Pn,L(),Lr,zi):void 0;return nn(m.createJSDocSeeTag(Gr,is,As),Pn)}function ro(Pn,Gr,Lr,zi){const Li=or(),is=qp(Pn,L(),Lr,zi);return nn(m.createJSDocThrowsTag(Gr,Li,is),Pn)}function qs(Pn,Gr,Lr,zi){const Li=L(),is=c_();let As=t.getTokenFullStart();const td=qp(Pn,As,Lr,zi);td||(As=t.getTokenFullStart());const Wh=typeof td!="string"?wo(So([nn(is,Li,As)],td),Li):is.text+td;return nn(m.createJSDocAuthorTag(Gr,Wh),Pn)}function c_(){const Pn=[];let Gr=!1,Lr=t.getToken();for(;Lr!==1&&Lr!==4;){if(Lr===30)Gr=!0;else{if(Lr===60&&!Gr)break;if(Lr===32&&Gr){Pn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Pn.push(t.getTokenText()),Lr=Tt()}return m.createJSDocText(Pn.join(""))}function Rb(Pn,Gr,Lr,zi){const Li=fZ();return nn(m.createJSDocImplementsTag(Gr,Li,qp(Pn,L(),Lr,zi)),Pn)}function zm(Pn,Gr,Lr,zi){const Li=fZ();return nn(m.createJSDocAugmentsTag(Gr,Li,qp(Pn,L(),Lr,zi)),Pn)}function eE(Pn,Gr,Lr,zi){const Li=Ke(!1),is=Lr!==void 0&&zi!==void 0?qp(Pn,L(),Lr,zi):void 0;return nn(m.createJSDocSatisfiesTag(Gr,Li,is),Pn)}function fZ(){const Pn=ho(19),Gr=L(),Lr=zhe();t.setInJSDocType(!0);const zi=Y0();t.setInJSDocType(!1);const Li=m.createExpressionWithTypeArguments(Lr,zi),is=nn(Li,Gr);return Pn&&Nn(20),is}function zhe(){const Pn=L();let Gr=nE();for(;ho(25);){const Lr=nE();Gr=nn(Q(Gr,Lr),Pn)}return Gr}function tE(Pn,Gr,Lr,zi,Li){return nn(Gr(Lr,qp(Pn,L(),zi,Li)),Pn)}function Qz(Pn,Gr,Lr,zi){const Li=Ke(!0);return sv(),nn(m.createJSDocThisTag(Gr,Li,qp(Pn,L(),Lr,zi)),Pn)}function mZ(Pn,Gr,Lr,zi){const Li=Ke(!0);return sv(),nn(m.createJSDocEnumTag(Gr,Li,qp(Pn,L(),Lr,zi)),Pn)}function FM(Pn,Gr,Lr,zi){let Li=or();Ib();const is=Zz();sv();let As=Va(Lr),td;if(!Li||P(Li.type)){let Np,u_,lv,Cp=!1;for(;(Np=Ri(()=>gZ(Lr)))&&Np.kind!==352;)if(Cp=!0,Np.kind===351)if(u_){const hN=fn(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);hN&&Ma(hN,CR(Ee,Me,0,0,f.The_tag_was_first_specified_here));break}else u_=Np;else lv=Rn(lv,Np);if(Cp){const hN=Li&&Li.type.kind===188,v8=m.createJSDocTypeLiteral(lv,hN);Li=u_&&u_.typeExpression&&!P(u_.typeExpression.type)?u_.typeExpression:nn(v8,Pn),td=Li.end}}td=td||As!==void 0?L():(is??Li??Gr).end,As||(As=qp(Pn,td,Lr,zi));const Wh=m.createJSDocTypedefTag(Gr,Li,is,As);return nn(Wh,Pn,td)}function Zz(Pn){const Gr=t.getTokenStart();if(!od(J()))return;const Lr=nE();if(ho(25)){const zi=Zz(!0),Li=m.createModuleDeclaration(void 0,Lr,zi,Pn?8:void 0);return nn(Li,Gr)}return Pn&&(Lr.flags|=4096),Lr}function _Z(Pn){const Gr=L();let Lr,zi;for(;Lr=Ri(()=>e9(4,Pn));){if(Lr.kind===352){Oe(Lr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}zi=Rn(zi,Lr)}return wo(zi||[],Gr)}function hZ(Pn,Gr){const Lr=_Z(Gr),zi=Ri(()=>{if(ly(60)){const Li=fN(Gr);if(Li&&Li.kind===349)return Li}});return nn(m.createJSDocSignature(void 0,Lr,zi),Pn)}function Bhe(Pn,Gr,Lr,zi){const Li=Zz();sv();let is=Va(Lr);const As=hZ(Pn,Lr);is||(is=qp(Pn,L(),Lr,zi));const td=is!==void 0?L():As.end;return nn(m.createJSDocCallbackTag(Gr,As,Li,is),Pn,td)}function Ghe(Pn,Gr,Lr,zi){sv();let Li=Va(Lr);const is=hZ(Pn,Lr);Li||(Li=qp(Pn,L(),Lr,zi));const As=Li!==void 0?L():is.end;return nn(m.createJSDocOverloadTag(Gr,is,Li),Pn,As)}function mN(Pn,Gr){for(;!Ve(Pn)||!Ve(Gr);)if(!Ve(Pn)&&!Ve(Gr)&&Pn.right.escapedText===Gr.right.escapedText)Pn=Pn.left,Gr=Gr.left;else return!1;return Pn.escapedText===Gr.escapedText}function gZ(Pn){return e9(1,Pn)}function e9(Pn,Gr,Lr){let zi=!0,Li=!1;for(;;)switch(Tt()){case 60:if(zi){const is=F1(Pn,Gr);return is&&(is.kind===348||is.kind===355)&&Lr&&(Ve(is.name)||!mN(Lr,is.name.left))?!1:is}Li=!1;break;case 4:zi=!0,Li=!1;break;case 42:Li&&(zi=!1),Li=!0;break;case 80:zi=!1;break;case 1:return!1}}function F1(Pn,Gr){N.assert(J()===60);const Lr=t.getTokenFullStart();Tt();const zi=nE(),Li=Ib();let is;switch(zi.escapedText){case"type":return Pn===1&&Kt(Lr,zi);case"prop":case"property":is=1;break;case"arg":case"argument":case"param":is=6;break;case"template":return Nb(Lr,zi,Gr,Li);case"this":return Qz(Lr,zi,Gr,Li);default:return!1}return Pn&is?B(Lr,zi,Pn,Gr):!1}function dr(){const Pn=L(),Gr=ly(23);Gr&&sv();const Lr=Lh(!1,!0),zi=nE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Li;if(Gr&&(sv(),Nn(64),Li=ka(16777216,Lm),Nn(24)),!Fl(zi))return nn(m.createTypeParameterDeclaration(Lr,zi,void 0,Li),Pn)}function Db(){const Pn=L(),Gr=[];do{sv();const Lr=dr();Lr!==void 0&&Gr.push(Lr),Ib()}while(ly(28));return wo(Gr,Pn)}function Nb(Pn,Gr,Lr,zi){const Li=J()===19?Ke():void 0,is=Db();return nn(m.createJSDocTemplateTag(Gr,Li,is,qp(Pn,L(),Lr,zi)),Pn)}function ly(Pn){return J()===Pn?(Tt(),!0):!1}function _N(){let Pn=nE();for(ho(23)&&Nn(24);ho(25);){const Gr=nE();ho(23)&&Nn(24),Pn=ct(Pn,Gr)}return Pn}function nE(Pn){if(!od(J()))return js(80,!Pn,Pn||f.Identifier_expected);tn++;const Gr=t.getTokenStart(),Lr=t.getTokenEnd(),zi=J(),Li=tu(t.getTokenValue()),is=nn(M(Li,zi),Gr,Lr);return Tt(),is}}})(J_=e.JSDocParser||(e.JSDocParser={}))})(A0||(A0={})),(e=>{function t(A,R,M,C){if(C=C||N.shouldAssert(2),m(A,R,M,C),Gne(M))return A;if(A.statements.length===0)return A0.parseSourceFile(A.fileName,R,A.languageVersion,void 0,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);const O=A;N.assert(!O.hasBeenIncrementallyParsed),O.hasBeenIncrementallyParsed=!0,A0.fixupParentReferences(O);const U=A.text,K=y(A),Q=p(A,M);m(A,R,Q,C),N.assert(Q.span.start<=M.span.start),N.assert(Kl(Q.span)===Kl(M.span)),N.assert(Kl(oC(Q))===Kl(oC(M)));const V=oC(Q).length-Q.span.length;u(O,Q.span.start,Kl(Q.span),Kl(oC(Q)),V,U,R,C);const se=A0.parseSourceFile(A.fileName,R,A.languageVersion,K,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);return se.commentDirectives=r(A.commentDirectives,se.commentDirectives,Q.span.start,Kl(Q.span),V,U,R,C),se.impliedNodeFormat=A.impliedNodeFormat,se}e.updateSourceFile=t;function r(A,R,M,C,O,U,K,Q){if(!A)return R;let V,se=!1;for(const ne of A){const{range:he,type:ye}=ne;if(he.end<M)V=Rn(V,ne);else if(he.pos>C){G();const Y={range:{pos:he.pos+O,end:he.end+O},type:ye};V=Rn(V,Y),Q&&N.assert(U.substring(he.pos,he.end)===K.substring(Y.range.pos,Y.range.end))}}return G(),V;function G(){se||(se=!0,V?R&&V.push(...R):V=R)}}function i(A,R,M,C,O,U){R?Q(A):K(A);return;function K(V){let se="";if(U&&o(V)&&(se=C.substring(V.pos,V.end)),V._children&&(V._children=void 0),hh(V,V.pos+M,V.end+M),U&&o(V)&&N.assert(se===O.substring(V.pos,V.end)),Uo(V,K,Q),Wp(V))for(const G of V.jsDoc)K(G);l(V,U)}function Q(V){V._children=void 0,hh(V,V.pos+M,V.end+M);for(const se of V)K(se)}}function o(A){switch(A.kind){case 11:case 9:case 80:return!0}return!1}function s(A,R,M,C,O){N.assert(A.end>=R,"Adjusting an element that was entirely before the change range"),N.assert(A.pos<=M,"Adjusting an element that was entirely after the change range"),N.assert(A.pos<=A.end);const U=Math.min(A.pos,C),K=A.end>=M?A.end+O:Math.min(A.end,C);N.assert(U<=K),A.parent&&(N.assertGreaterThanOrEqual(U,A.parent.pos),N.assertLessThanOrEqual(K,A.parent.end)),hh(A,U,K)}function l(A,R){if(R){let M=A.pos;const C=O=>{N.assert(O.pos>=M),M=O.end};if(Wp(A))for(const O of A.jsDoc)C(O);Uo(A,C),N.assert(M<=A.end)}}function u(A,R,M,C,O,U,K,Q){V(A);return;function V(G){if(N.assert(G.pos<=G.end),G.pos>M){i(G,!1,O,U,K,Q);return}const ne=G.end;if(ne>=R){if(G.intersectsChange=!0,G._children=void 0,s(G,R,M,C,O),Uo(G,V,se),Wp(G))for(const he of G.jsDoc)V(he);l(G,Q);return}N.assert(ne<R)}function se(G){if(N.assert(G.pos<=G.end),G.pos>M){i(G,!0,O,U,K,Q);return}const ne=G.end;if(ne>=R){G.intersectsChange=!0,G._children=void 0,s(G,R,M,C,O);for(const he of G)V(he);return}N.assert(ne<R)}}function p(A,R){let C=R.span.start;for(let K=0;C>0&&K<=1;K++){const Q=h(A,C);N.assert(Q.pos<=C);const V=Q.pos;C=Math.max(0,V-1)}const O=pc(C,Kl(R.span)),U=R.newLength+(R.span.start-C);return nL(O,U)}function h(A,R){let M=A,C;if(Uo(A,U),C){const K=O(C);K.pos>M.pos&&(M=K)}return M;function O(K){for(;;){const Q=oU(K);if(Q)K=Q;else return K}}function U(K){if(!Fl(K))if(K.pos<=R){if(K.pos>=M.pos&&(M=K),R<K.end)return Uo(K,U),!0;N.assert(K.end<=R),C=K}else return N.assert(K.pos>R),!0}}function m(A,R,M,C){const O=A.text;if(M&&(N.assert(O.length-M.span.length+M.newLength===R.length),C||N.shouldAssert(3))){const U=O.substr(0,M.span.start),K=R.substr(0,M.span.start);N.assert(U===K);const Q=O.substring(Kl(M.span),O.length),V=R.substring(Kl(oC(M)),R.length);N.assert(Q===V)}}function y(A){let R=A.statements,M=0;N.assert(M<R.length);let C=R[M],O=-1;return{currentNode(K){return K!==O&&(C&&C.end===K&&M<R.length-1&&(M++,C=R[M]),(!C||C.pos!==K)&&U(K)),O=K,N.assert(!C||C.pos===K),C}};function U(K){R=void 0,M=-1,C=void 0,Uo(A,Q,V);return;function Q(se){return K>=se.pos&&K<se.end?(Uo(se,Q,V),!0):!1}function V(se){if(K>=se.pos&&K<se.end)for(let G=0;G<se.length;G++){const ne=se[G];if(ne){if(ne.pos===K)return R=se,M=G,C=ne,!0;if(ne.pos<K&&K<ne.end)return Uo(ne,Q,V),!0}}return!1}}}e.createSyntaxCursor=y;let T;(A=>{A[A.Value=-1]="Value"})(T||(T={}))})(zH||(zH={})),BH=new Map,$Te=/^\/\/\/\s*<(\S+)\s.*?\/>/im,QTe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function cF(e){const t=new Map,r=new Map;return Xe(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function eD(){return OAe||(OAe=cF(lg))}function Kae(e){return ZTe(e,Ul)}function ZTe(e,t){const r=zo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function uF(e,t,r){return PAe(e,(t??"").trim(),r)}function Xae(e,t="",r){if(t=t.trim(),uo(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return fI(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return eo(i,o=>fI(e.element,parseInt(o),r));case"string":return eo(i,o=>fI(e.element,o||"",r));case"boolean":case"object":return N.fail(`List of ${e.element.type} is not yet supported.`);default:return eo(i,o=>uF(e.element,o,r))}}function eAe(e){return e.name}function Yae(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return I0(o,i,t.alternateMode.diagnostic,e);const l=KN(e,t.optionDeclarations,eAe);return l?I0(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):I0(o,i,t.unknownOptionDiagnostic,r||e)}function GH(e,t,r){const i={};let o;const s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(h){let m=0;for(;m<h.length;){const y=h[m];if(m++,y.charCodeAt(0)===64)p(y.slice(1));else if(y.charCodeAt(0)===45){const T=y.slice(y.charCodeAt(1)===45?2:1),A=$ae(e.getOptionsNameMap,T,!0);if(A)m=tAe(h,m,e,A,i,l);else{const R=$ae(bF.getOptionsNameMap,T,!0);R?m=tAe(h,m,bF,R,o||(o={}),l):l.push(Yae(T,e,y))}}else s.push(y)}}function p(h){const m=DP(h,r||(A=>gu.readFile(A)));if(!Mo(m)){l.push(m);return}const y=[];let T=0;for(;;){for(;T<m.length&&m.charCodeAt(T)<=32;)T++;if(T>=m.length)break;const A=T;if(m.charCodeAt(A)===34){for(T++;T<m.length&&m.charCodeAt(T)!==34;)T++;T<m.length?(y.push(m.substring(A+1,T)),T++):l.push(Ul(f.Unterminated_quoted_string_in_response_file_0,h))}else{for(;m.charCodeAt(T)>32;)T++;y.push(m.substring(A,T))}}u(y)}}function tAe(e,t,r,i,o,s){if(i.isTSConfigOnly){const l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=fI(i,!1,s),t++):(l==="true"&&t++,s.push(Ul(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Ul(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!uo(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Ul(r.optionTypeMismatchDiagnostic,i.name,HH(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=fI(i,parseInt(e[t]),s),t++;break;case"boolean":const l=e[t];o[i.name]=fI(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=fI(i,e[t]||"",s),t++;break;case"list":const u=Xae(i,e[t],s);o[i.name]=u||[],u&&t++;break;case"listOrElement":N.fail("listOrElement not supported here");break;default:o[i.name]=uF(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function nAe(e,t){return GH(hw,e,t)}function VH(e,t){return $ae(eD,e,t)}function $ae(e,t,r=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:o}=e();if(r){const s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function rAe(){return FAe||(FAe=cF(vF))}function iAe(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=GH(BAe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function oAe(e,...t){return oa(Ul(e,...t).messageText,Mo)}function aw(e,t,r,i,o,s){const l=DP(e,h=>r.readFile(h));if(!Mo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}const u=ow(e,l),p=r.getCurrentDirectory();return u.path=il(e,p,Mu(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,cw(u,r,go(ai(e),p),t,go(e,p),void 0,s,i,o)}function sw(e,t){const r=DP(e,t);return Mo(r)?jH(e,r):{config:{},error:r}}function jH(e,t){const r=ow(e,t);return{config:uAe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Qae(e,t){const r=DP(e,t);return Mo(r)?ow(e,r):{fileName:e,parseDiagnostics:[r]}}function DP(e,t){let r;try{r=t(e)}catch(i){return Ul(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Ul(f.Cannot_read_file_0,e):r}function UH(e){return TE(e,eAe)}function aAe(){return GAe||(GAe=cF(tD))}function sAe(){return VAe||(VAe=UH(lg))}function lAe(){return jAe||(jAe=UH(tD))}function cAe(){return UAe||(UAe=UH(_w))}function IGe(){return fse===void 0&&(fse={name:void 0,type:"object",elementOptions:UH([use,dse,pse,gw,{name:"references",type:"list",element:{name:"references",type:"object"},category:f.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:f.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},dw])}),fse}function uAe(e,t,r){var i;const o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(Xf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,ic(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),fd(o)){const s=In(o.elements,La);if(s)return lw(e,s,t,!0,r)}return{}}return lw(e,o,t,!0,r)}function Zae(e,t){var r;return lw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function lw(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o==null?void 0:o.rootOptions);function s(h,m){var y;const T=i?{}:void 0;for(const A of h.properties){if(A.kind!==303){r.push(Xf(e,A,f.Property_assignment_expected));continue}A.questionToken&&r.push(Xf(e,A.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(A.name)||r.push(Xf(e,A.name,f.String_literal_with_double_quotes_expected));const R=AL(A.name)?void 0:nR(A.name),M=R&&Vi(R),C=M?(y=m==null?void 0:m.elementOptions)==null?void 0:y.get(M):void 0,O=u(A.initializer,C);typeof M<"u"&&(i&&(T[M]=O),o==null||o.onPropertySet(M,O,A,m,C))}return T}function l(h,m){if(!i){h.forEach(y=>u(y,m));return}return mn(h.map(y=>u(y,m)),y=>y!==void 0)}function u(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(Xf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(Xf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,HH(m))):r.push(Xf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return Na(h)&&Z4(h,e)}}function HH(e){return e.type==="listOrElement"?`${HH(e.element)} or Array`:e.type==="list"?"Array":Mo(e.type)?e.type:"string"}function dAe(e,t){if(e){if(uw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return To(t);if(e.type==="listOrElement")return To(t)||dAe(e.element,t);const r=Mo(e.type)?e.type:"string";return typeof t===r}return!1}function pAe(e,t,r){var i,o,s;const l=Mu(r.useCaseSensitiveFileNames),u=Wt(mn(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?RGe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Iv),R=>H2(go(t,r.getCurrentDirectory()),go(R,r.getCurrentDirectory()),l)),p={configFilePath:go(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=pF(e.options,p),m=e.watchOptions&&DGe(e.watchOptions),y={compilerOptions:{...dF(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&dF(m),references:Wt(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:Ne(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:xGe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},T=new Set(h.keys()),A={};for(const R in _c)if(!T.has(R)&&bt(_c[R].dependencies,M=>T.has(M))){const M=_c[R].computeValue(e.options),C=_c[R].computeValue({});M!==C&&(A[R]=_c[R].computeValue(e.options))}return Mx(y.compilerOptions,dF(pF(A,p))),y}function dF(e){return{...zo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function xGe(e){if(Ne(e)){if(Ne(e)!==1)return e;if(e[0]!==EF)return e}}function RGe(e,t,r,i){if(!t)return Iv;const o=F3(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&By(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&By(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):Iv}function fAe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return fAe(e.element);default:return e.type}}function qH(e,t){return zc(t,(r,i)=>{if(r===e)return i})}function pF(e,t){return mAe(e,eD(),t)}function DGe(e){return mAe(e,aAe())}function mAe(e,{optionsNameMap:t},r){const i=new Map,o=r&&Mu(r.useCaseSensitiveFileNames);for(const s in e)if(Is(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;const l=e[s],u=t.get(s.toLowerCase());if(u){N.assert(u.type!=="listOrElement");const p=fAe(u);p?u.type==="list"?i.set(s,l.map(h=>qH(h,p))):i.set(s,qH(l,p)):r&&u.isFilePath?i.set(s,H2(r.configFilePath,go(l,ai(r.configFilePath)),o)):i.set(s,l)}}return i}function _Ae(e,t){const r=hAe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){const s=[],l=i(2);return $H.forEach(u=>{if(!r.has(u.name))return;const p=r.get(u.name),h=ase(u);p!==h?s.push(`${l}${u.name}: ${p}`):Is(yF,u.name)&&s.push(`${l}${u.name}: ${h}`)}),s.join(t)+t}}function hAe(e){const t=T6(e,yF);return pF(t)}function gAe(e,t,r){const i=hAe(e);return l();function o(u){return Array(u+1).join(" ")}function s({category:u,name:p,isCommandLineOnly:h}){const m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&u!==void 0&&(!m.includes(u)||i.has(p))}function l(){const u=new Map;u.set(f.Projects,[]),u.set(f.Language_and_Environment,[]),u.set(f.Modules,[]),u.set(f.JavaScript_Support,[]),u.set(f.Emit,[]),u.set(f.Interop_Constraints,[]),u.set(f.Type_Checking,[]),u.set(f.Completeness,[]);for(const A of lg)if(s(A)){let R=u.get(A.category);R||u.set(A.category,R=[]),R.push(A)}let p=0,h=0;const m=[];u.forEach((A,R)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${Wo(R)} */`});for(const M of A){let C;i.has(M.name)?C=`"${M.name}": ${JSON.stringify(i.get(M.name))}${(h+=1)===i.size?"":","}`:C=`// "${M.name}": ${JSON.stringify(ase(M))},`,m.push({value:C,description:`/* ${M.description&&Wo(M.description)||M.name} */`}),p=Math.max(C.length,p)}});const y=o(2),T=[];T.push("{"),T.push(`${y}"compilerOptions": {`),T.push(`${y}${y}/* ${Wo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),T.push("");for(const A of m){const{value:R,description:M=""}=A;T.push(R&&`${y}${y}${R}${M&&o(p-R.length+2)+M}`)}if(t.length){T.push(`${y}},`),T.push(`${y}"files": [`);for(let A=0;A<t.length;A++)T.push(`${y}${y}${JSON.stringify(t[A])}${A===t.length-1?"":","}`);T.push(`${y}]`)}else T.push(`${y}}`);return T.push("}"),T.join(r)+r}}function JH(e,t){const r={},i=eD().optionsNameMap;for(const o in e)Is(e,o)&&(r[o]=NGe(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function NGe(e,t,r){if(e&&!uw(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);N.assert(e.type!=="listOrElement")}return t}function vAe(e,t,r,i,o,s,l,u,p){return bAe(e,void 0,t,r,i,p,o,s,l,u)}function cw(e,t,r,i,o,s,l,u,p){var h,m;(h=sr)==null||h.push(sr.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const y=bAe(void 0,e,t,r,i,p,o,s,l,u);return(m=sr)==null||m.pop(),y}function KH(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function uw(e){return e==null}function yAe(e,t){return ai(go(e,t))}function bAe(e,t,r,i,o={},s,l,u=[],p=[],h){N.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);const m=[],y=TAe(e,t,r,i,l,u,m,h),{raw:T}=y,A=T6(o,y.options||{}),R=s&&y.watchOptions?T6(s,y.watchOptions):y.watchOptions||s;A.configFilePath=l&&Lu(l);const M=O();t&&(t.configFileSpecs=M),KH(A,t);const C=ha(l?yAe(l,i):i);return{options:A,watchOptions:R,fileNames:U(C),projectReferences:K(C),typeAcquisition:y.typeAcquisition||XH(),raw:T,errors:m,wildcardDirectories:FGe(M,C,r.useCaseSensitiveFileNames),compileOnSave:!!T.compileOnSave};function O(){const ne=se("references",de=>typeof de=="object","object"),he=Q(V("files"));if(he){const de=ne==="no-prop"||To(ne)&&ne.length===0,ie=Is(T,"extends");if(he.length===0&&de&&!ie)if(t){const ve=l||"tsconfig.json",Le=f.The_files_list_in_config_file_0_is_empty,Ue=NL(t,"files",De=>De.initializer),Ee=I0(t,Ue,Le,ve);m.push(Ee)}else G(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ye=Q(V("include"));const Y=V("exclude");let X=!1,oe=Q(Y);if(Y==="no-prop"&&T.compilerOptions){const de=T.compilerOptions.outDir,ie=T.compilerOptions.declarationDir;(de||ie)&&(oe=[de,ie].filter(ve=>!!ve))}he===void 0&&ye===void 0&&(ye=[EF],X=!0);let pe,Ce;return ye&&(pe=wAe(ye,m,!0,t,"include")),oe&&(Ce=wAe(oe,m,!1,t,"exclude")),{filesSpecs:he,includeSpecs:ye,excludeSpecs:oe,validatedFilesSpec:mn(he,Mo),validatedIncludeSpecs:pe,validatedExcludeSpecs:Ce,pathPatterns:void 0,isDefaultIncludeSpec:X}}function U(ne){const he=CP(M,ne,A,r,p);return SAe(he,NP(T),u)&&m.push(EAe(M,l)),he}function K(ne){let he;const ye=se("references",Y=>typeof Y=="object","object");if(To(ye))for(const Y of ye)typeof Y.path!="string"?G(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(he||(he=[])).push({path:go(Y.path,ne),originalPath:Y.path,prepend:Y.prepend,circular:Y.circular});return he}function Q(ne){return To(ne)?ne:void 0}function V(ne){return se(ne,Mo,"string")}function se(ne,he,ye){if(Is(T,ne)&&!uw(T[ne]))if(To(T[ne])){const Y=T[ne];return!t&&!Jn(Y,he)&&m.push(Ul(f.Compiler_option_0_requires_a_value_of_type_1,ne,ye)),Y}else return G(f.Compiler_option_0_requires_a_value_of_type_1,ne,"Array"),"not-array";return"no-prop"}function G(ne,...he){t||m.push(Ul(ne,...he))}}function CGe(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function EAe({includeSpecs:e,excludeSpecs:t},r){return Ul(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function SAe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function NP(e){return!Is(e,"files")&&!Is(e,"references")}function fF(e,t,r,i,o){const s=i.length;return SAe(e,o)?i.push(EAe(r,t)):li(i,l=>!CGe(l)),s!==i.length}function PGe(e){return!!e.options}function TAe(e,t,r,i,o,s,l,u){var p;i=Lu(i);const h=go(o||"",i);if(s.includes(h))return l.push(Ul(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||Zae(t,l)};const m=e?MGe(e,r,i,o,l):LGe(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);const T={options:{}};Mo(m.extendedConfigPath)?y(T,m.extendedConfigPath):m.extendedConfigPath.forEach(A=>y(T,A)),!m.raw.include&&T.include&&(m.raw.include=T.include),!m.raw.exclude&&T.exclude&&(m.raw.exclude=T.exclude),!m.raw.files&&T.files&&(m.raw.files=T.files),m.raw.compileOnSave===void 0&&T.compileOnSave&&(m.raw.compileOnSave=T.compileOnSave),t&&T.extendedSourceFiles&&(t.extendedSourceFiles=zo(T.extendedSourceFiles.keys())),m.options=Mx(T.options,m.options),m.watchOptions=m.watchOptions&&T.watchOptions?Mx(T.watchOptions,m.watchOptions):m.watchOptions||T.watchOptions}return m;function y(T,A){const R=kGe(t,A,r,s,l,u,T);if(R&&PGe(R)){const M=R.raw;let C;const O=U=>{M[U]&&(T[U]=Wt(M[U],K=>dp(K)?K:$r(C||(C=eC(ai(A),i,Mu(r.useCaseSensitiveFileNames))),K)))};O("include"),O("exclude"),O("files"),M.compileOnSave!==void 0&&(T.compileOnSave=M.compileOnSave),Mx(T.options,R.options),T.watchOptions=T.watchOptions&&R.watchOptions?Mx({},T.watchOptions,R.watchOptions):T.watchOptions||R.watchOptions}}}function MGe(e,t,r,i,o){Is(e,"excludes")&&o.push(Ul(f.Unknown_option_excludes_Did_you_mean_exclude));const s=NAe(e.compilerOptions,r,o,i),l=CAe(e.typeAcquisition,r,o,i),u=OGe(e.watchOptions,r,o);e.compileOnSave=wGe(e,r,o);const p=e.extends||e.extends===""?AAe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p}}function AAe(e,t,r,i,o,s,l,u){let p;const h=i?yAe(i,r):r;if(Mo(e))p=IAe(e,t,h,o,l,u);else if(To(e)){p=[];for(let m=0;m<e.length;m++){const y=e[m];Mo(y)?p=Rn(p,IAe(y,t,h,o,l==null?void 0:l.elements[m],u)):JS(gw.element,e,r,o,s,l==null?void 0:l.elements[m],u)}}else JS(gw,e,r,o,s,l,u);return p}function LGe(e,t,r,i,o){const s=DAe(i);let l,u,p,h;const m=IGe(),y=uAe(e,o,{rootOptions:m,onPropertySet:T});return l||(l=XH(i)),h&&y&&y.compilerOptions===void 0&&o.push(Xf(e,h[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,nR(h[0]))),{raw:y,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p};function T(A,R,M,C,O){if(O&&O!==gw&&(R=JS(O,R,r,o,M,M.initializer,e)),C!=null&&C.name)if(O){let U;C===use?U=s:C===dse?U=u??(u={}):C===pse?U=l??(l=XH(i)):N.fail("Unknown option"),U[O.name]=R}else A&&(C!=null&&C.extraKeyDiagnostics)&&(C.elementOptions?o.push(Yae(A,C.extraKeyDiagnostics,void 0,M.name,e)):o.push(Xf(e,M.name,C.extraKeyDiagnostics.unknownOptionDiagnostic,A)));else C===m&&(O===gw?p=AAe(R,t,r,i,o,M,M.initializer,e):O||(A==="excludes"&&o.push(Xf(e,M.name,f.Unknown_option_excludes_Did_you_mean_exclude)),In($H,U=>U.name===A)&&(h=Rn(h,M.name))))}}function IAe(e,t,r,i,o,s){if(e=Lu(e),dp(e)||uo(e,"./")||uo(e,"../")){let u=go(e,r);if(!t.fileExists(u)&&!Al(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(I0(s,o,f.File_0_not_found,e));return}return u}const l=Tse(e,$r(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(I0(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(I0(s,o,f.File_0_not_found,e))}function kGe(e,t,r,i,o,s,l){const u=r.useCaseSensitiveFileNames?t:sh(t);let p,h,m;if(s&&(p=s.get(u))?{extendedResult:h,extendedConfig:m}=p:(h=Qae(t,y=>r.readFile(y)),h.parseDiagnostics.length||(m=TAe(void 0,h,r,ai(t),ic(t),i,o,s)),s&&s.set(u,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(const y of h.extendedSourceFiles)l.extendedSourceFiles.add(y);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function wGe(e,t,r){if(!Is(e,dw.name))return!1;const i=JS(dw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function xAe(e,t,r){const i=[];return{options:NAe(e,t,i,r),errors:i}}function RAe(e,t,r){const i=[];return{options:CAe(e,t,i,r),errors:i}}function DAe(e){return e&&ic(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function NAe(e,t,r,i){const o=DAe(i);return ese(sAe(),e,t,o,hw,r),i&&(o.configFilePath=Lu(i)),o}function XH(e){return{enable:!!e&&ic(e)==="jsconfig.json",include:[],exclude:[]}}function CAe(e,t,r,i){const o=XH(i);return ese(cAe(),e,t,o,cse,r),o}function OGe(e,t,r){return ese(lAe(),e,t,void 0,bF,r)}function ese(e,t,r,i,o,s){if(t){for(const l in t){const u=e.get(l);u?(i||(i={}))[u.name]=JS(u,t[l],r,s):s.push(Yae(l,o))}return i}}function I0(e,t,r,...i){return e&&t?Xf(e,t,r,...i):Ul(r,...i)}function JS(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(I0(l,o==null?void 0:o.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(dAe(e,t)){const u=e.type;if(u==="list"&&To(t))return MAe(e,t,r,i,o,s,l);if(u==="listOrElement")return To(t)?MAe(e,t,r,i,o,s,l):JS(e.element,t,r,i,o,s,l);if(!Mo(e.type))return PAe(e,t,i,s,l);const p=fI(e,t,i,s,l);return uw(p)?p:WGe(e,r,p)}else i.push(I0(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,HH(e)))}function WGe(e,t,r){return e.isFilePath&&(r=go(r,t),r===""&&(r=".")),r}function fI(e,t,r,i,o){var s;if(uw(t))return;const l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(I0(o,i,...l))}function PAe(e,t,r,i,o){if(uw(t))return;const s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return fI(e,l,r,i,o);r.push(ZTe(e,(u,...p)=>I0(o,i,u,...p)))}function MAe(e,t,r,i,o,s,l){return mn(Wt(t,(u,p)=>JS(e.element,u,r,i,o,s==null?void 0:s.elements[p],l)),u=>e.listPreserveFalsyValues?!0:!!u)}function CP(e,t,r,i,o=et){t=ha(t);const s=Mu(i.useCaseSensitiveFileNames),l=new Map,u=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:y}=e,T=JC(r,o),A=mk(r,T);if(h)for(const O of h){const U=go(O,t);l.set(s(U),U)}let R;if(m&&m.length>0)for(const O of i.readDirectory(t,Cs(A),y,m,void 0)){if(Il(O,".json")){if(!R){const Q=m.filter(se=>Al(se,".json")),V=Wt(O3(Q,t,"files"),se=>`^${se}$`);R=V?V.map(se=>By(se,i.useCaseSensitiveFileNames)):et}if(mi(R,Q=>Q.test(O))!==-1){const Q=s(O);!l.has(Q)&&!p.has(Q)&&p.set(Q,O)}continue}if(BGe(O,l,u,T,s))continue;GGe(O,u,T,s);const U=s(O);!l.has(U)&&!u.has(U)&&u.set(U,O)}const M=zo(l.values()),C=zo(u.values());return M.concat(C,zo(p.values()))}function tse(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!Ne(l)||!Ne(u))return!1;r=ha(r);const p=Mu(i);if(s){for(const h of s)if(p(go(h,r))===e)return!1}return kAe(e,u,i,o,r)}function LAe(e){const t=uo(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Al(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function mF(e,t,r,i){return kAe(e,mn(t,o=>!LAe(o)),r,i)}function kAe(e,t,r,i,o){const s=qC(t,$r(ha(i),o),"exclude"),l=s&&By(s,r);return l?l.test(e)?!0:!vA(e)&&l.test(Fc(e)):!1}function wAe(e,t,r,i,o){return e.filter(l=>{if(!Mo(l))return!1;const u=nse(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){const p=G4(i,o,u);return I0(i,p,l,u)}}function nse(e,t){if(N.assert(typeof e=="string"),t&&HAe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(LAe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function FGe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=qC(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){const p=[];for(const h of e){const m=ha($r(r,h));if(s&&s.test(m))continue;const y=zGe(m,i);if(y){const{key:T,path:A,flags:R}=y,M=u.get(T),C=M!==void 0?l[M]:void 0;(C===void 0||C<R)&&(l[M!==void 0?M:A]=R,M===void 0&&u.set(T,A),R===1&&p.push(T))}}for(const h in l)if(Is(l,h))for(const m of p){const y=rse(h,i);y!==m&&gm(m,y,r,!i)&&delete l[h]}}return l}function rse(e,t){return t?e:sh(e)}function zGe(e,t){const r=qAe.exec(e);if(r){const i=e.indexOf("?"),o=e.indexOf("*"),s=e.lastIndexOf(ol);return{key:rse(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(fU(e.substring(e.lastIndexOf(ol)+1))){const i=Qb(e);return{key:rse(i,t),path:i,flags:1}}}function BGe(e,t,r,i,o){const s=Xe(i,l=>Sc(e,l)?l:void 0);if(!s)return!1;for(const l of s){if(Il(e,l)&&(l!==".ts"||!Il(e,".d.ts")))return!1;const u=o(_0(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(Il(e,".js")||Il(e,".jsx")))continue;return!0}}return!1}function GGe(e,t,r,i){const o=Xe(r,s=>Sc(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){const l=o[s];if(Il(e,l))return;const u=i(_0(e,l));t.delete(u)}}function ise(e){const t={};for(const r in e)if(Is(e,r)){const i=VH(r);i!==void 0&&(t[r]=ose(e[r],i))}return t}function ose(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!To(e))return ose(e,t.element);case"list":const r=t.element;return To(e)?eo(e,i=>ose(i,r)):"";default:return zc(t.type,(i,o)=>{if(i===e)return o})}}function ase(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 ase(e.element);case"object":return{};default:const r=b6(e.type.keys());return r!==void 0?r:N.fail("Expected 'option.type' to have entries.")}}var dw,sse,PP,lse,pw,_F,tD,fw,mw,YH,$H,lg,QH,ZH,eq,hF,gF,tq,nq,rq,vF,_w,OAe,WAe,yF,hw,FAe,zAe,BAe,cse,GAe,bF,VAe,jAe,UAe,gw,use,dse,pse,fse,EF,HAe,qAe,VGe=I({"src/compiler/commandLineParser.ts"(){ra(),dw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},sse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),PP=new Map(Qa(sse.entries(),([e,t])=>[""+t,e])),lse=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],pw=lse.map(e=>e[0]),_F=new Map(lse),tD=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:nse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:nse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],fw=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],mw={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},YH={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},$H=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},mw,YH,{name:"lib",type:"list",element:{name:"lib",type:_F,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:sse,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],lg=[...fw,...$H],QH=lg.filter(e=>!!e.affectsSemanticDiagnostics),ZH=lg.filter(e=>!!e.affectsEmit),eq=lg.filter(e=>!!e.affectsDeclarationPath),hF=lg.filter(e=>!!e.affectsModuleResolution),gF=lg.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),tq=lg.filter(e=>!!e.affectsProgramStructure),nq=lg.filter(e=>Is(e,"transpileOptionValue")),rq=[{name:"verbose",shortName:"v",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],vF=[...fw,...rq],_w=[{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}],WAe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:rAe},yF={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},hw={alternateMode:WAe,getOptionsNameMap:eD,optionDeclarations:lg,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},zAe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:eD},BAe={alternateMode:zAe,getOptionsNameMap:rAe,optionDeclarations:vF,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},cse={optionDeclarations:_w,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},bF={getOptionsNameMap:aAe,optionDeclarations:tD,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},gw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},use={name:"compilerOptions",type:"object",elementOptions:sAe(),extraKeyDiagnostics:hw},dse={name:"watchOptions",type:"object",elementOptions:lAe(),extraKeyDiagnostics:bF},pse={name:"typeAcquisition",type:"object",elementOptions:cAe(),extraKeyDiagnostics:cse},EF="**/*",HAe=/(^|\/)\*\*\/?$/,qAe=/^[^*?]*(?=\/[^/]*[*?])/}});function bo(e,t,...r){e.trace(lU(t,...r))}function Vg(e,t){return!!e.traceResolution&&t.trace!==void 0}function mI(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+ol.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function iq(e){return mI(void 0,e)}function JAe(e){if(e)return N.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function SF(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 jGe(e){const t=[];return e&1&&t.push(...xk),e&2&&t.push(...OR),e&4&&t.push(...Ik),e&8&&t.push(".json"),t}function mse(e){if(e)return N.assert(V3(e.extension)),{fileName:e.path,packageId:e.packageId}}function KAe(e,t,r,i,o,s,l,u,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Xc(e)){const{resolvedFileName:h,originalPath:m}=$Ae(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return XAe(t,r,i,o,s,l.resultFromCache,u,p)}function XAe(e,t,r,i,o,s,l,u){return s?l!=null&&l.isReadonly?{...s,failedLookupLocations:_se(s.failedLookupLocations,r),affectingLocations:_se(s.affectingLocations,i),resolutionDiagnostics:_se(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=nD(s.failedLookupLocations,r),s.affectingLocations=nD(s.affectingLocations,i),s.resolutionDiagnostics=nD(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:MP(r),affectingLocations:MP(i),resolutionDiagnostics:MP(o),alternateResult:u}}function MP(e){return e.length?e:void 0}function nD(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function _se(e,t){return e!=null&&e.length?t.length?[...e,...t]:e.slice():MP(t)}function YAe(e,t,r,i){if(!Is(e,t)){i.traceEnabled&&bo(i.host,f.package_json_does_not_have_a_0_field,t);return}const o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&bo(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function oq(e,t,r,i){const o=YAe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&bo(i.host,f.package_json_had_a_falsy_0_field,t);return}const s=ha($r(r,o));return i.traceEnabled&&bo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function UGe(e,t,r){return oq(e,"typings",t,r)||oq(e,"types",t,r)}function HGe(e,t,r){return oq(e,"tsconfig",t,r)}function qGe(e,t,r){return oq(e,"main",t,r)}function JGe(e,t){const r=YAe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&bo(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function KGe(e,t){const r=JGe(e,t);if(r===void 0)return;if(t.traceEnabled)for(const l in r)Is(r,l)&&!k2.tryParse(l)&&bo(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=TF(r);if(!i){t.traceEnabled&&bo(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,_e);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&bo(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function TF(e){Nse||(Nse=new hm(Re));for(const t in e){if(!Is(e,t))continue;const r=k2.tryParse(t);if(r!==void 0&&r.test(Nse))return{version:t,paths:e[t]}}}function LP(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=ai(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return XGe(r)}function XGe(e){let t;return ym(ha(e),r=>{const i=$r(r,yIe);(t??(t=[])).push(i)}),t}function YGe(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Dg(e,t,!i)===0}function $Ae(e,t,r){const i=lVe(e,t,r),o=YGe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function QAe(e,t,r){const i=Al(e,"/node_modules/@types")||Al(e,"/node_modules/@types/")?hIe(t,r):t;return $r(e,i)}function hse(e,t,r,i,o,s,l){N.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const u=Vg(r,i);o&&(r=o.commandLine.options);const p=t?ai(t):void 0;let h=p?s==null?void 0:s.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Xc(e)&&(h=s==null?void 0:s.getFromNonRelativeNameCache(e,l,p,o)),h)return u&&(bo(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&bo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),bo(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),V(h)),h;const m=LP(r,i);u&&(t===void 0?m===void 0?bo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):bo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?bo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):bo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&bo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const y=[],T=[];let A=gse(r);l!==void 0&&(A|=30);const R=pd(r);l===99&&3<=R&&R<=99&&(A|=32);const M=A&8?Qy(r,l):[],C=[],O={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:y,affectingLocations:T,packageJsonInfoCache:s,features:A,conditions:M,requestContainingDirectory:p,reportDiagnostic:ne=>void C.push(ne),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let U=se(),K=!0;U||(U=G(),K=!1);let Q;if(U){const{fileName:ne,packageId:he}=U;let ye=ne,Y;r.preserveSymlinks||({resolvedFileName:ye,originalPath:Y}=$Ae(ne,i,u)),Q={primary:K,resolvedFileName:ye,originalPath:Y,packageId:he,isExternalLibraryImport:x0(ne)}}return h={resolvedTypeReferenceDirective:Q,failedLookupLocations:MP(y),affectingLocations:MP(T),resolutionDiagnostics:MP(C)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Xc(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),u&&V(h),h;function V(ne){var he;(he=ne.resolvedTypeReferenceDirective)!=null&&he.resolvedFileName?ne.resolvedTypeReferenceDirective.packageId?bo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ne.resolvedTypeReferenceDirective.resolvedFileName,ky(ne.resolvedTypeReferenceDirective.packageId),ne.resolvedTypeReferenceDirective.primary):bo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ne.resolvedTypeReferenceDirective.resolvedFileName,ne.resolvedTypeReferenceDirective.primary):bo(i,f.Type_reference_directive_0_was_not_resolved,e)}function se(){if(m&&m.length)return u&&bo(i,f.Resolving_with_primary_search_path_0,m.join(", ")),Ht(m,ne=>{const he=QAe(ne,e,O),ye=Km(ne,i);if(!ye&&u&&bo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,ne),r.typeRoots){const Y=oD(4,he,!ye,O);if(Y){const X=yw(Y.path),oe=X?a1(X,!1,O):void 0;return mse(mI(oe,Y))}}return mse(Ise(4,he,!ye,O))});u&&bo(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function G(){const ne=t&&ai(t);if(ne!==void 0){let he;if(!r.typeRoots||!Al(t,fD))if(u&&bo(i,f.Looking_up_in_node_modules_folder_initial_location_0,ne),Xc(e)){const{path:ye}=iIe(ne,e);he=uq(4,ye,!1,O,!0)}else{const ye=pIe(4,e,ne,O,void 0,void 0);he=ye&&ye.value}else u&&bo(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return mse(he)}else u&&bo(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function gse(e){let t=0;switch(pd(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 Qy(e,t){const r=pd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}const i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),So(i,e.customConditions)}function aq(e,t,r,i,o){const s=bw(o==null?void 0:o.getPackageJsonInfoCache(),i,r);return ym(t,l=>{if(ic(l)!=="node_modules"){const u=$r(l,"node_modules"),p=$r(u,e);return a1(p,!1,s)}})}function AF(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=LP(e,t);if(i){for(const o of i)if(t.directoryExists(o))for(const s of t.getDirectories(o)){const l=ha(s),u=$r(o,l,"package.json");if(!(t.fileExists(u)&&BC(u,t).typings===null)){const h=ic(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function IF(e){return!!(e!=null&&e.contents)}function vse(e){return!!e&&!e.contents}function yse(e){var t;if(e===null||typeof e!="object")return""+e;if(To(e))return`[${(t=e.map(i=>yse(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)Is(e,i)&&(r+=`${i}: ${yse(e[i])}`);return r+"}"}function sq(e,t){return t.map(r=>yse(M3(e,r))).join("|")+`|${e.pathsBasePath}`}function lq(e,t){const r=new Map,i=new Map;let o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:u,clear:h,getOwnMap:()=>o};function s(y){return y?p(y.commandLine.options,!1):o}function l(y){return y?p(y.commandLine.options,!0):o}function u(y){e!==y&&(e?o=p(y,!0):r.set(y,o),e=y)}function p(y,T){let A=r.get(y);if(A)return A;const R=m(y);if(A=i.get(R),!A){if(e){const M=m(e);M===R?A=o:i.has(M)||i.set(M,o)}T&&(A??(A=new Map)),A&&i.set(R,A)}return A&&r.set(y,A),A}function h(){const y=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(y&&t.set(e,y),r.set(e,o))}function m(y){let T=t.get(y);return T||t.set(y,T=sq(y,hF)),T}}function $Ge(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r==null?void 0:r.get(il(u,e,t))}function o(u,p){(r||(r=new Map)).set(il(u,e,t),p)}function s(){r=void 0}function l(){return r}}function ZAe(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function QGe(e,t,r,i){const o=lq(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function u(h,m){const y=il(h,e,t);return ZAe(o,m,y,()=>_I())}function p(h,m,y,T){var A,R;const M=il(y,e,t);return(R=(A=o.getMapOfCacheRedirects(T))==null?void 0:A.get(M))==null?void 0:R.get(h,m)}}function kP(e,t){return t===void 0?e:`${t}|${e}`}function _I(){const e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{const[u,p]=t.get(l);return o(s,u,p)})},size(){return e.size}};return r;function i(o,s){const l=kP(o,s);return t.set(l,[o,s]),l}}function ZGe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function eVe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function tVe(e,t,r,i,o){const s=lq(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:u};function l(){s.clear()}function u(y){s.update(y)}function p(y,T,A,R){var M,C;return N.assert(!Xc(y)),(C=(M=s.getMapOfCacheRedirects(R))==null?void 0:M.get(kP(y,T)))==null?void 0:C.get(A)}function h(y,T,A){return N.assert(!Xc(y)),ZAe(s,A,kP(y,T),m)}function m(){const y=new Map;return{get:T,set:A};function T(M){return y.get(il(M,e,t))}function A(M,C){const O=il(M,e,t);if(y.has(O))return;y.set(O,C);const U=i(C),K=U&&R(O,U);let Q=O;for(;Q!==K;){const V=ai(Q);if(V===Q||y.has(V))break;y.set(V,C),Q=V}}function R(M,C){const O=il(ai(C),e,t);let U=0;const K=Math.min(M.length,O.length);for(;U<K&&M.charCodeAt(U)===O.charCodeAt(U);)U++;if(U===M.length&&(O.length===U||O[U]===ol))return M;const Q=uh(M);if(U<Q)return;const V=M.lastIndexOf(ol,U-1);if(V!==-1)return M.substr(0,Math.max(V,Q))}}}function eIe(e,t,r,i,o,s){s??(s=new Map);const l=QGe(e,t,r,s),u=tVe(e,t,r,o,s);return i??(i=$Ge(e,t)),{...i,...l,...u,clear:p,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),u.clear()}function m(y){l.update(y),u.update(y)}}function rD(e,t,r,i,o){const s=eIe(e,t,r,i,ZGe,o);return s.getOrCreateCacheForModuleName=(l,u,p)=>s.getOrCreateCacheForNonRelativeName(l,u,p),s}function xF(e,t,r,i,o){return eIe(e,t,r,i,eVe,o)}function cq(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function RF(e,t,r,i,o){return iD(e,t,cq(r),i,o)}function tIe(e,t,r,i){const o=ai(t);return r.getFromDirectoryCache(e,i,o,void 0)}function iD(e,t,r,i,o,s,l){var u,p,h;const m=Vg(r,i);s&&(r=s.commandLine.options),m&&(bo(i,f.Resolving_module_0_from_1,e,t),s&&bo(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const y=ai(t);let T=o==null?void 0:o.getFromDirectoryCache(e,l,y,s);if(T)m&&bo(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let A=r.moduleResolution;switch(A===void 0?(A=pd(r),m&&bo(i,f.Module_resolution_kind_is_not_specified_using_0,Bx[A])):m&&bo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,Bx[A]),(u=id)==null||u.logStartResolveModule(e),A){case 3:T=oVe(e,t,r,i,o,s,l);break;case 99:T=aVe(e,t,r,i,o,s,l);break;case 2:T=Sse(e,t,r,i,o,s,l?Qy(r,l):void 0);break;case 1:T=Rse(e,t,r,i,o,s);break;case 100:T=Ese(e,t,r,i,o,s,l?Qy(r,l):void 0);break;default:return N.fail(`Unexpected moduleResolution: ${A}`)}T&&T.resolvedModule&&((p=id)==null||p.logInfoEvent(`Module "${e}" resolved to "${T.resolvedModule.resolvedFileName}"`)),(h=id)==null||h.logStopResolveModule(T&&T.resolvedModule?""+T.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(y,s).set(e,l,T),Xc(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(y,T))}return m&&(T.resolvedModule?T.resolvedModule.packageId?bo(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,T.resolvedModule.resolvedFileName,ky(T.resolvedModule.packageId)):bo(i,f.Module_name_0_was_successfully_resolved_to_1,e,T.resolvedModule.resolvedFileName):bo(i,f.Module_name_0_was_not_resolved,e)),T}function nIe(e,t,r,i,o){const s=nVe(e,t,i,o);return s?s.value:Xc(t)?rVe(e,t,r,i,o):iVe(e,t,i,o)}function nVe(e,t,r,i){var o;const{baseUrl:s,paths:l,configFile:u}=i.compilerOptions;if(l&&!Op(t)){i.traceEnabled&&(s&&bo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),bo(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const p=f3(i.compilerOptions,i.host),h=u!=null&&u.configFileSpecs?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=G3(l)):void 0;return xse(e,t,p,l,h,r,!1,i)}}function rVe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&bo(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const s=ha($r(r,t));let l,u;for(const p of o.compilerOptions.rootDirs){let h=ha(p);Al(h,ol)||(h+=ol);const m=uo(s,h)&&(u===void 0||u.length<h.length);o.traceEnabled&&bo(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,m),m&&(u=h,l=p)}if(u){o.traceEnabled&&bo(o.host,f.Longest_matching_prefix_for_0_is_1,s,u);const p=s.substr(u.length);o.traceEnabled&&bo(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,u,s);const h=i(e,s,!Km(r,o.host),o);if(h)return h;o.traceEnabled&&bo(o.host,f.Trying_other_entries_in_rootDirs);for(const m of o.compilerOptions.rootDirs){if(m===l)continue;const y=$r(ha(m),p);o.traceEnabled&&bo(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,m,y);const T=ai(y),A=i(e,y,!Km(T,o.host),o);if(A)return A}o.traceEnabled&&bo(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function iVe(e,t,r,i){const{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&bo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);const s=ha($r(o,t));return i.traceEnabled&&bo(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!Km(ai(s),i.host),i)}function bse(e,t,r){const{resolvedModule:i,failedLookupLocations:o}=sVe(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o==null?void 0:o.join(", ")}`);return i.resolvedFileName}function oVe(e,t,r,i,o,s,l){return rIe(30,e,t,r,i,o,s,l)}function aVe(e,t,r,i,o,s,l){return rIe(30,e,t,r,i,o,s,l)}function rIe(e,t,r,i,o,s,l,u,p){const h=ai(r),m=u===99?32:0;let y=i.noDtsResolution?3:7;return g0(i)&&(y|=8),vw(e|m,t,h,i,o,s,y,!1,l,p)}function sVe(e,t,r){return vw(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function Ese(e,t,r,i,o,s,l){const u=ai(t);let p=r.noDtsResolution?3:7;return g0(r)&&(p|=8),vw(gse(r),e,u,r,i,o,p,!1,s,l)}function Sse(e,t,r,i,o,s,l,u){let p;return u?p=8:r.noDtsResolution?(p=3,g0(r)&&(p|=8)):p=g0(r)?15:7,vw(l?30:0,e,ai(t),r,i,o,p,!!u,s,l)}function Tse(e,t,r){return vw(30,e,ai(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function vw(e,t,r,i,o,s,l,u,p,h){var m,y,T,A,R;const M=Vg(i,o),C=[],O=[],U=pd(i);h??(h=Qy(i,U===100||U===2?void 0:e&32?99:1));const K=[],Q={compilerOptions:i,host:o,traceEnabled:M,failedLookupLocations:C,affectingLocations:O,packageJsonInfoCache:s,features:e,conditions:h??et,requestContainingDirectory:r,reportDiagnostic:ne=>void K.push(ne),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};M&&BA(U)&&bo(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Q.conditions.map(ne=>`'${ne}'`).join(", "));let V;if(U===2){const ne=l&5,he=l&-6;V=ne&&G(ne,Q)||he&&G(he,Q)||void 0}else V=G(l,Q);let se;if(Q.resolvedPackageDirectory&&!u&&!Xc(t)){const ne=(V==null?void 0:V.value)&&l&5&&!cIe(5,V.value.resolved.extension);if((m=V==null?void 0:V.value)!=null&&m.isExternalLibraryImport&&ne&&e&8&&(h!=null&&h.includes("import"))){Zy(Q,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const he={...Q,features:Q.features&-9,reportDiagnostic:Ya},ye=G(l&5,he);(y=ye==null?void 0:ye.value)!=null&&y.isExternalLibraryImport&&(se=ye.value.resolved.path)}else if((!(V!=null&&V.value)||ne)&&U===2){Zy(Q,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const he={...Q.compilerOptions,moduleResolution:100},ye={...Q,compilerOptions:he,features:30,conditions:Qy(he),reportDiagnostic:Ya},Y=G(l&5,ye);(T=Y==null?void 0:Y.value)!=null&&T.isExternalLibraryImport&&(se=Y.value.resolved.path)}}return KAe(t,(A=V==null?void 0:V.value)==null?void 0:A.resolved,(R=V==null?void 0:V.value)==null?void 0:R.isExternalLibraryImport,C,O,K,Q,s,se);function G(ne,he){const Y=nIe(ne,t,r,(X,oe,pe,Ce)=>uq(X,oe,pe,Ce,!0),he);if(Y)return rf({resolved:Y,isExternalLibraryImport:x0(Y.path)});if(Xc(t)){const{path:X,parts:oe}=iIe(r,t),pe=uq(ne,X,!1,he,!0);return pe&&rf({resolved:pe,isExternalLibraryImport:Or(oe,"node_modules")})}else{let X;if(e&2&&uo(t,"#")&&(X=pVe(ne,t,r,he,s,p)),!X&&e&4&&(X=dVe(ne,t,r,he,s,p)),!X){if(t.includes(":")){M&&bo(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,SF(ne));return}M&&bo(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,SF(ne)),X=pIe(ne,t,r,he,s,p)}return ne&4&&(X??(X=vIe(t,he))),X&&{value:X.value&&{resolved:X.value,isExternalLibraryImport:!0}}}}}function iIe(e,t){const r=$r(e,t),i=Wc(r),o=el(i);return{path:o==="."||o===".."?Fc(ha(r)):ha(r),parts:i}}function lVe(e,t,r){if(!t.realpath)return e;const i=ha(t.realpath(e));return r&&bo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function uq(e,t,r,i,o){if(i.traceEnabled&&bo(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,SF(e)),!Dv(t)){if(!r){const l=ai(t);Km(l,i.host)||(i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}const s=oD(e,t,r,i);if(s){const l=o?yw(s.path):void 0,u=l?a1(l,!1,i):void 0;return mI(u,s)}}if(r||Km(t,i.host)||(i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Ise(e,t,r,i,o)}function x0(e){return e.includes(Ah)}function yw(e,t){const r=ha(e),i=r.lastIndexOf(Ah);if(i===-1)return;const o=i+Ah.length;let s=oIe(r,o,t);return r.charCodeAt(o)===64&&(s=oIe(r,s,t)),r.slice(0,s)}function oIe(e,t,r){const i=e.indexOf(ol,t+1);return i===-1?r?e.length:t:i}function Ase(e,t,r,i){return iq(oD(e,t,r,i))}function oD(e,t,r,i){const o=aIe(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=sIe(t,e,"",r,i);if(s)return s}}function aIe(e,t,r,i){if(!ic(t).includes("."))return;let s=Ad(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const l=t.substring(s.length);return i.traceEnabled&&bo(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),sIe(s,e,l,r,i)}function dq(e,t,r,i){return e&1&&Sc(t,xk)||e&4&&Sc(t,Ik)?pq(t,r,i)!==void 0?{path:t,ext:E3(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Il(t,".json")?pq(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:aIe(e,t,r,i)}function sIe(e,t,r,i,o){if(!i){const l=ai(e);l&&(i=!Km(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!Su(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,u){const p=pq(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function pq(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return lIe(e,t,r);const o=Fg(e)??"",s=o?hk(e,o):e;return Xe(r.compilerOptions.moduleSuffixes,l=>lIe(s+l+o,t,r))}function lIe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&bo(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&bo(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Ise(e,t,r,i,o=!0){const s=o?a1(t,r,i):void 0,l=s&&s.contents.packageJsonContent,u=s&&DF(s,i);return mI(s,mq(e,t,r,i,l,u))}function fq(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s;const l=5|(o?2:0),u=gse(t),p=bw(i==null?void 0:i.getPackageJsonInfoCache(),r,t);p.conditions=Qy(t),p.requestContainingDirectory=e.packageDirectory;const h=mq(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,DF(e,p));if(s=Rn(s,h==null?void 0:h.path),u&8&&e.contents.packageJsonContent.exports){const m=SE([Qy(t,99),Qy(t,1)],Hm);for(const y of m){const T={...p,failedLookupLocations:[],conditions:y,host:r},A=cVe(e,e.contents.packageJsonContent.exports,T,l);if(A)for(const R of A)s=Rg(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function cVe(e,t,r,i){let o;if(To(t))for(const l of t)s(l);else if(typeof t=="object"&&t!==null&&NF(t))for(const l in t)s(t[l]);else s(t);return o;function s(l){var u,p;if(typeof l=="string"&&uo(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,jGe(i),void 0,[Dne(jA(l,"**/*"),".*")]).forEach(h=>{o=Rg(o,{path:h,ext:Gx(h),resolvedUsingTsExtension:void 0})})}else{const h=Wc(l).slice(2);if(h.includes("..")||h.includes(".")||h.includes("node_modules"))return!1;const m=$r(e.packageDirectory,l),y=go(m,(p=(u=r.host).getCurrentDirectory)==null?void 0:p.call(u)),T=dq(i,y,!1,r);if(T)return o=Rg(o,T,(A,R)=>A.path===R.path),!0}else if(Array.isArray(l)){for(const h of l)if(s(h))return!0}else if(typeof l=="object"&&l!==null)return Xe(Hh(l),h=>{if(h==="default"||Or(r.conditions,h)||Tw(r.conditions,h))return s(l[h]),!0})}}function bw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Vg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:et,requestContainingDirectory:void 0,reportDiagnostic:Ya,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function Ew(e,t){const r=Wc(e);for(r.pop();r.length>0;){const i=a1(Ay(r),!1,t);if(i)return i;r.pop()}}function DF(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=KGe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function a1(e,t,r){var i,o,s,l,u,p;const{host:h,traceEnabled:m}=r,y=$r(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(y);return}const T=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(y);if(T!==void 0){if(IF(T))return m&&bo(h,f.File_0_exists_according_to_earlier_cached_lookups,y),(s=r.affectingLocations)==null||s.push(y),T.packageDirectory===e?T:{packageDirectory:e,contents:T.contents};T.directoryExists&&m&&bo(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(l=r.failedLookupLocations)==null||l.push(y);return}const A=Km(e,h);if(A&&h.fileExists(y)){const R=BC(y,h);m&&bo(h,f.Found_package_json_at_0,y);const M={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,M),(u=r.affectingLocations)==null||u.push(y),M}else A&&m&&bo(h,f.File_0_does_not_exist,y),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,{packageDirectory:e,directoryExists:A}),(p=r.failedLookupLocations)==null||p.push(y)}function mq(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=HGe(o,t,i):l=e&4&&UGe(o,t,i)||e&7&&qGe(o,t,i)||void 0);const u=(T,A,R,M)=>{const C=dq(T,A,R,M);if(C)return iq(C);const O=T===4?5:T,U=M.features,K=M.candidateIsFromPackageJsonField;M.candidateIsFromPackageJsonField=!0,(o==null?void 0:o.type)!=="module"&&(M.features&=-33);const Q=uq(O,A,R,M,!1);return M.features=U,M.candidateIsFromPackageJsonField=K,Q},p=l?!Km(ai(l),i.host):void 0,h=r||!Km(t,i.host),m=$r(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||gm(t,l))){const T=vm(t,l||m,!1);i.traceEnabled&&bo(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,Re,T);const A=xse(e,T,t,s.paths,void 0,u,p||h,i);if(A)return JAe(A.value)}const y=l&&JAe(u(e,l,p,i));if(y)return y;if(!(i.features&32))return oD(e,m,h,i)}function cIe(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 Sw(e){let t=e.indexOf(ol);return e[0]==="@"&&(t=e.indexOf(ol,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function NF(e){return Jn(Hh(e),t=>uo(t,"."))}function uVe(e){return!bt(Hh(e),t=>uo(t,"."))}function dVe(e,t,r,i,o,s){var l,u;const p=go($r(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),h=Ew(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!="string")return;const m=Wc(t),y=Wc(h.contents.packageJsonContent.name);if(!Jn(y,(C,O)=>m[O]===C))return;const T=m.slice(y.length),A=Ne(T)?`.${ol}${T.join(ol)}`:".";if(jy(i.compilerOptions)&&!x0(r))return _q(h,e,A,i,o,s);const R=e&5,M=e&-6;return _q(h,R,A,i,o,s)||_q(h,M,A,i,o,s)}function _q(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&uVe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Is(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return dIe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(NF(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&bo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),rf(void 0);const l=uIe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&bo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),rf(void 0)}}function pVe(e,t,r,i,o,s){var l,u;if(t==="#"||uo(t,"#/"))return i.traceEnabled&&bo(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),rf(void 0);const p=go($r(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),h=Ew(p,i);if(!h)return i.traceEnabled&&bo(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),rf(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&bo(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),rf(void 0);const m=uIe(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&bo(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),rf(void 0))}function hq(e,t){const r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function uIe(e,t,r,i,o,s,l,u){const p=dIe(e,t,r,i,o,l,u);if(!Al(o,ol)&&!o.includes("*")&&Is(s,o)){const y=s[o];return p(y,"",!1,o)}const h=iS(mn(Hh(s),y=>y.includes("*")||Al(y,"/")),hq);for(const y of h)if(t.features&16&&m(y,o)){const T=s[y],A=y.indexOf("*"),R=o.substring(y.substring(0,A).length,o.length-(y.length-1-A));return p(T,R,!0,y)}else if(Al(y,"*")&&uo(o,y.substring(0,y.length-1))){const T=s[y],A=o.substring(y.length-1);return p(T,A,!0,y)}else if(uo(o,y)){const T=s[y],A=o.substring(y.length);return p(T,A,!1,y)}function m(y,T){if(Al(y,"*"))return!1;const A=y.indexOf("*");return A===-1?!1:uo(T,y.substring(0,A))&&Al(T,y.substring(A+1))}}function dIe(e,t,r,i,o,s,l){return u;function u(p,h,m,y){if(typeof p=="string"){if(!m&&h.length>0&&!Al(p,"/"))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0);if(!uo(p,"./")){if(l&&!uo(p,"../")&&!uo(p,"/")&&!dp(p)){const V=m?p.replace(/\*/g,h):p+h;Zy(t,f.Using_0_subpath_1_with_target_2,"imports",y,V),Zy(t,f.Resolving_module_0_from_1,V,s.packageDirectory+"/");const se=vw(t.features,V,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return rf(se.resolvedModule?{path:se.resolvedModule.resolvedFileName,extension:se.resolvedModule.extension,packageId:se.resolvedModule.packageId,originalPath:se.resolvedModule.originalPath,resolvedUsingTsExtension:se.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0)}const C=(Op(p)?Wc(p).slice(1):Wc(p)).slice(1);if(C.includes("..")||C.includes(".")||C.includes("node_modules"))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0);const O=$r(s.packageDirectory,p),U=Wc(h);if(U.includes("..")||U.includes(".")||U.includes("node_modules"))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0);t.traceEnabled&&bo(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",y,m?p.replace(/\*/g,h):p+h);const K=T(m?O.replace(/\*/g,h):O+h),Q=R(K,h,$r(s.packageDirectory,"package.json"),l);return Q||rf(mI(s,dq(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!Ne(p))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0);for(const M of p){const C=u(M,h,m,y);if(C)return C}}else{Zy(t,f.Entering_conditional_exports);for(const M of Hh(p))if(M==="default"||t.conditions.includes(M)||Tw(t.conditions,M)){Zy(t,f.Matched_0_condition_1,l?"imports":"exports",M);const C=p[M],O=u(C,h,m,y);if(O)return Zy(t,f.Resolved_under_condition_0,M),Zy(t,f.Exiting_conditional_exports),O;Zy(t,f.Failed_to_resolve_under_condition_0,M)}else Zy(t,f.Saw_non_matching_condition_0,M);Zy(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&bo(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),rf(void 0);return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),rf(void 0);function T(M){var C,O;return M===void 0?M:go(M,(O=(C=t.host).getCurrentDirectory)==null?void 0:O.call(C))}function A(M,C){return Fc($r(M,C))}function R(M,C,O,U){var K,Q,V,se;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!M.includes("/node_modules/")&&(!t.compilerOptions.configFile||gm(s.packageDirectory,T(t.compilerOptions.configFile.fileName),!gq(t)))){const ne=wv({useCaseSensitiveFileNames:()=>gq(t)}),he=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const ye=T(KP(t.compilerOptions,()=>[],((Q=(K=t.host).getCurrentDirectory)==null?void 0:Q.call(K))||"",ne));he.push(ye)}else if(t.requestContainingDirectory){const ye=T($r(t.requestContainingDirectory,"index.ts")),Y=T(KP(t.compilerOptions,()=>[ye,T(O)],((se=(V=t.host).getCurrentDirectory)==null?void 0:se.call(V))||"",ne));he.push(Y);let X=Fc(Y);for(;X&&X.length>1;){const oe=Wc(X);oe.pop();const pe=Ay(oe);he.unshift(pe),X=Fc(pe)}}he.length>1&&t.reportDiagnostic(Ul(U?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,C===""?".":C,O));for(const ye of he){const Y=G(ye);for(const X of Y)if(gm(X,M,!gq(t))){const oe=M.slice(X.length+1),pe=$r(ye,oe),Ce=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const de of Ce)if(Il(pe,de)){const ie=Rie(pe);for(const ve of ie){if(!cIe(e,ve))continue;const Le=U2(pe,ve,de,!gq(t));if(t.host.fileExists(Le))return rf(mI(s,dq(e,Le,!1,t)))}}}}}return;function G(ne){var he,ye;const Y=t.compilerOptions.configFile?((ye=(he=t.host).getCurrentDirectory)==null?void 0:ye.call(he))||"":ne,X=[];return t.compilerOptions.declarationDir&&X.push(T(A(Y,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&X.push(T(A(Y,t.compilerOptions.outDir))),X}}}}function Tw(e,t){if(!e.includes("types")||!uo(t,"types@"))return!1;const r=k2.tryParse(t.substring(6));return r?r.test(Re):!1}function pIe(e,t,r,i,o,s){return fIe(e,t,r,i,!1,o,s)}function fVe(e,t,r){return fIe(4,e,t,r,!0,void 0,void 0)}function fIe(e,t,r,i,o,s,l){const u=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){Zy(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,SF(p));const y=m(p);if(y)return y}if(h&&!o)return Zy(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,SF(h)),m(h);function m(y){return ym(Lu(r),T=>{if(ic(T)!=="node_modules"){const A=gIe(s,t,u,T,l,i);return A||rf(mIe(y,t,T,i,o,s,l))}})}}function mIe(e,t,r,i,o,s,l){const u=$r(r,"node_modules"),p=Km(u,i.host);if(!p&&i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){const h=_Ie(e,t,u,p,i,s,l);if(h)return h}if(e&4){const h=$r(u,"@types");let m=p;return p&&!Km(h,i.host)&&(i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),_Ie(4,hIe(t,i),h,m,i,s,l)}}function _Ie(e,t,r,i,o,s,l){var u,p;const h=ha($r(r,t)),{packageName:m,rest:y}=Sw(t),T=$r(r,m);let A,R=a1(h,!i,o);if(y!==""&&R&&(!(o.features&8)||!Is(((u=A=a1(T,!i,o))==null?void 0:u.contents.packageJsonContent)??et,"exports"))){const O=oD(e,h,!i,o);if(O)return iq(O);const U=mq(e,h,!i,o,R.contents.packageJsonContent,DF(R,o));return mI(R,U)}const M=(O,U,K,Q)=>{let V=(y||!(Q.features&32))&&oD(O,U,K,Q)||mq(O,U,K,Q,R&&R.contents.packageJsonContent,R&&DF(R,Q));return!V&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&Q.features&32&&(V=oD(O,$r(U,"index.js"),K,Q)),mI(R,V)};if(y!==""&&(R=A??a1(T,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(p=_q(R,e,$r(".",y),o,s,l))==null?void 0:p.value;const C=y!==""&&R?DF(R,o):void 0;if(C){o.traceEnabled&&bo(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,C.version,Re,y);const O=i&&Km(T,o.host),U=xse(e,y,T,C.paths,void 0,M,!O,o);if(U)return U.value}return M(e,h,!i,o)}function xse(e,t,r,i,o,s,l,u){o||(o=G3(i));const p=_U(o,t);if(p){const h=Mo(p)?void 0:lne(p,t),m=Mo(p)?p:sne(p);return u.traceEnabled&&bo(u.host,f.Module_name_0_matched_pattern_1,t,m),{value:Xe(i[m],T=>{const A=h?jA(T,h):T,R=ha($r(r,A));u.traceEnabled&&bo(u.host,f.Trying_substitution_0_candidate_module_location_Colon_1,T,A);const M=Fg(T);if(M!==void 0){const C=pq(R,l,u);if(C!==void 0)return iq({path:C,ext:M,resolvedUsingTsExtension:void 0})}return s(e,R,l||!Km(ai(R),u.host),u)})}}}function hIe(e,t){const r=aD(e);return t.traceEnabled&&r!==e&&bo(t.host,f.Scoped_package_detected_looking_in_0,r),r}function CF(e){return`@types/${aD(e)}`}function aD(e){if(uo(e,"@")){const t=e.replace(ol,yq);if(t!==e)return t.slice(1)}return e}function wP(e){const t=XN(e,"@types/");return t!==e?Aw(t):e}function Aw(e){return e.includes(yq)?"@"+e.replace(yq,ol):e}function gIe(e,t,r,i,o,s){const l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&bo(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function Rse(e,t,r,i,o,s){const l=Vg(r,i),u=[],p=[],h=ai(t),m=[],y={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:R=>void m.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},T=A(5)||A(2|(r.resolveJsonModule?8:0));return KAe(e,T&&T.value,(T==null?void 0:T.value)&&x0(T.value.path),u,p,m,y,o);function A(R){const M=nIe(R,e,h,Ase,y);if(M)return{value:M};if(Xc(e)){const C=ha($r(h,e));return rf(Ase(R,C,!1,y))}else{const C=ym(h,O=>{const U=gIe(o,e,void 0,O,s,y);if(U)return U;const K=ha($r(O,e));return rf(Ase(R,K,!1,y))});if(C)return C;if(R&5){let O=fVe(e,h,y);return R&4&&(O??(O=vIe(e,y))),O}}}}function vIe(e,t){if(t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=QAe(r,e,t),o=Km(r,t.host);!o&&t.traceEnabled&&bo(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const s=oD(4,i,!o,t);if(s){const u=yw(s.path),p=u?a1(u,!1,t):void 0;return rf(mI(p,s))}const l=Ise(4,i,!o,t);if(l)return rf(l)}}function sD(e,t){return!!e.allowImportingTsExtensions||t&&Su(t)}function Dse(e,t,r,i,o,s){const l=Vg(r,i);l&&bo(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);const u=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:T=>void h.push(T),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=mIe(4,e,o,m,!1,void 0,void 0);return XAe(y,!0,u,p,h,m.resultFromCache,void 0)}function rf(e){return e!==void 0?{value:e}:void 0}function Zy(e,t,...r){e.traceEnabled&&bo(e.host,t,...r)}function gq(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Nse,yIe,vq,Ah,yq,mVe=I({"src/compiler/moduleNameResolver.ts"(){ra(),yIe=$r("node_modules","@types"),vq=(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))(vq||{}),Ah="/node_modules/",yq="__"}});function jg(e,t){return e.body&&!e.body.parent&&(Ha(e.body,e),Gy(e.body,!1)),e.body?Cse(e.body,t):1}function Cse(e,t=new Map){const r=as(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=_Ve(e,t);return t.set(r,i),i}function _Ve(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(ME(e))return 2;break;case 272:case 271:if(!Qr(e,32))return 0;break;case 278:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(const o of r.exportClause.elements){const s=hVe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Uo(e,o=>{const s=Cse(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:N.assertNever(s)}}),i}case 267:return jg(e,t);case 80:if(e.flags&4096)return 0}return 1}function hVe(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(Ko(i)||L_(i)||$i(i)){const o=i.statements;let s;for(const l of o)if(rL(l,r)){l.parent||(Ha(l,i),Gy(l,!1));const u=Cse(l,t);if((s===void 0||u>s)&&(s=u),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function hI(e){return N.attachFlowNodeDebugInfo(e),e}function Pse(e,t){var r,i;rl("beforeBind"),(r=id)==null||r.logStartBindFile(""+e.fileName),EIe(e,t),(i=id)==null||i.logStopBindFile(),rl("afterBind"),Qp("Bind","beforeBind","afterBind")}function gVe(){var e,t,r,i,o,s,l,u,p,h,m,y,T,A,R,M,C,O,U,K,Q,V,se=!1,G=0,ne,he,ye={flags:1},Y={flags:1},X=q();return pe;function oe(W,Te,...st){return Xf(Un(W)||e,W,Te,...st)}function pe(W,Te){var st,qt;e=W,t=Te,r=os(t),V=Ce(e,Te),he=new Set,G=0,ne=su.getSymbolConstructor(),N.attachFlowNodeDebugInfo(ye),N.attachFlowNodeDebugInfo(Y),e.locals||((st=sr)==null||st.push(sr.Phase.Bind,"bindSourceFile",{path:e.path},!0),we(e),(qt=sr)==null||qt.pop(),e.symbolCount=G,e.classifiableNames=he,cu()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,u=void 0,p=void 0,h=!1,m=void 0,y=void 0,T=void 0,A=void 0,R=void 0,M=void 0,C=void 0,U=void 0,K=!1,se=!1,Q=0}function Ce(W,Te){return dd(Te,"alwaysStrict")&&!W.isDeclarationFile?!0:!!W.externalModuleIndicator}function de(W,Te){return G++,new ne(W,Te)}function ie(W,Te,st){W.flags|=st,Te.symbol=W,W.declarations=Rg(W.declarations,Te),st&1955&&!W.exports&&(W.exports=ca()),st&6240&&!W.members&&(W.members=ca()),W.constEnumOnlyModule&&W.flags&304&&(W.constEnumOnlyModule=!1),st&111551&&jL(W,Te)}function ve(W){if(W.kind===277)return W.isExportEquals?"export=":"default";const Te=Lo(W);if(Te){if(ku(W)){const st=Qf(Te);return A_(W)?"__global":`"${st}"`}if(Te.kind===167){const st=Te.expression;if(ef(st))return _l(st.text);if(s3(st))return pa(st.operator)+st.operand.text;N.fail("Only computed properties with literal names have declaration names")}if(qi(Te)){const st=au(W);if(!st)return;const qt=st.symbol;return ek(qt,Te.escapedText)}return Qm(Te)?VA(Te):x_(Te)?CC(Te):void 0}switch(W.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(zl(W)===2)return"export=";N.fail("Unknown binary declaration kind");break;case 324:return _R(W)?"__new":"__call";case 169:return N.assert(W.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${N.formatSyntaxKind(W.parent.kind)}, expected JSDocFunctionType`),"arg"+W.parent.parameters.indexOf(W)}}function Le(W){return ad(W)?xs(W.name):Vi(N.checkDefined(ve(W)))}function Ue(W,Te,st,qt,rr,ii,Yr){N.assert(Yr||!Wy(st));const oo=Qr(st,2048)||Ku(st)&&st.name.escapedText==="default",wa=Yr?"__computed":oo&&Te?"default":ve(st);let Oa;if(wa===void 0)Oa=de(0,"__missing");else if(Oa=W.get(wa),qt&2885600&&he.add(wa),!Oa)W.set(wa,Oa=de(0,wa)),ii&&(Oa.isReplaceableByMethod=!0);else{if(ii&&!Oa.isReplaceableByMethod)return Oa;if(Oa.flags&rr){if(Oa.isReplaceableByMethod)W.set(wa,Oa=de(0,wa));else if(!(qt&3&&Oa.flags&67108864)){ad(st)&&Ha(st.name,st);let Ol=Oa.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,pu=!0;(Oa.flags&384||qt&384)&&(Ol=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,pu=!1);let Rc=!1;Ne(Oa.declarations)&&(oo||Oa.declarations&&Oa.declarations.length&&st.kind===277&&!st.isExportEquals)&&(Ol=f.A_module_cannot_have_multiple_default_exports,pu=!1,Rc=!0);const Ip=[];xm(st)&&Fl(st.type)&&Qr(st,32)&&Oa.flags&2887656&&Ip.push(oe(st,f.Did_you_mean_0,`export type { ${Vi(st.name.escapedText)} }`));const Hd=Lo(st)||st;Xe(Oa.declarations,(us,Pm)=>{const Mm=Lo(us)||us,Ui=pu?oe(Mm,Ol,Le(us)):oe(Mm,Ol);e.bindDiagnostics.push(Rc?Ma(Ui,oe(Hd,Pm===0?f.Another_export_default_is_here:f.and_here)):Ui),Rc&&Ip.push(oe(Mm,f.The_first_export_default_is_here))});const ab=pu?oe(Hd,Ol,Le(st)):oe(Hd,Ol);e.bindDiagnostics.push(Ma(ab,...Ip)),Oa=de(0,wa)}}}return ie(Oa,st,qt),Oa.parent?N.assert(Oa.parent===Te,"Existing symbol parent should match new one"):Oa.parent=Te,Oa}function Ee(W,Te,st){const qt=!!(n0(W)&32)||De(W);if(Te&2097152)return W.kind===281||W.kind===271&&qt?Ue(o.symbol.exports,o.symbol,W,Te,st):(N.assertNode(o,dh),Ue(o.locals,void 0,W,Te,st));if($f(W)&&N.assert(lr(W)),!ku(W)&&(qt||o.flags&128)){if(!dh(o)||!o.locals||Qr(W,2048)&&!ve(W))return Ue(o.symbol.exports,o.symbol,W,Te,st);const rr=Te&111551?1048576:0,ii=Ue(o.locals,void 0,W,rr,st);return ii.exportSymbol=Ue(o.symbol.exports,o.symbol,W,Te,st),W.localSymbol=ii,ii}else return N.assertNode(o,dh),Ue(o.locals,void 0,W,Te,st)}function De(W){if(W.parent&&Xl(W)&&(W=W.parent),!$f(W))return!1;if(!Jk(W)&&W.fullName)return!0;const Te=Lo(W);return Te?!!(lk(Te.parent)&&ec(Te.parent)||Ju(Te.parent)&&n0(Te.parent)&32):!1}function Me(W,Te){const st=o,qt=s,rr=l;if(Te&1?(W.kind!==219&&(s=o),o=l=W,Te&32&&(o.locals=ca(),ir(o))):Te&2&&(l=W,Te&32&&(l.locals=void 0)),Te&4){const ii=m,Yr=y,oo=T,wa=A,Oa=C,Ol=U,pu=K,Rc=Te&16&&!Qr(W,1024)&&!W.asteriskToken&&!!bS(W)||W.kind===175;Rc||(m=hI({flags:2}),Te&144&&(m.node=W)),A=Rc||W.kind===176||lr(W)&&(W.kind===262||W.kind===218)?Mn():void 0,C=void 0,y=void 0,T=void 0,U=void 0,K=!1,je(W),W.flags&=-5633,!(m.flags&1)&&Te&8&&Kf(W.body)&&(W.flags|=512,K&&(W.flags|=1024),W.endFlowNode=m),W.kind===312&&(W.flags|=Q,W.endFlowNode=m),A&&(Yt(A,m),m=Ln(A),(W.kind===176||W.kind===175||lr(W)&&(W.kind===262||W.kind===218))&&(W.returnFlowNode=m)),Rc||(m=ii),y=Yr,T=oo,A=wa,C=Oa,U=Ol,K=pu}else Te&64?(h=!1,je(W),N.assertNotNode(W,Ve),W.flags=h?W.flags|256:W.flags&-257):je(W);o=st,s=qt,l=rr}function We(W){At(W,Te=>Te.kind===262?we(Te):void 0),At(W,Te=>Te.kind!==262?we(Te):void 0)}function At(W,Te=we){W!==void 0&&Xe(W,Te)}function Se(W){Uo(W,we,At)}function je(W){const Te=se;if(se=!1,Vt(W)){Se(W),Et(W),se=Te;return}switch(W.kind>=243&&W.kind<=259&&!t.allowUnreachableCode&&(W.flowNode=m),W.kind){case 247:Qi(W);break;case 246:Io(W);break;case 248:fa(W);break;case 249:case 250:ka(W);break;case 245:Tn(W);break;case 253:case 257:wn(W);break;case 252:case 251:ft(W);break;case 258:Ct(W);break;case 255:le(W);break;case 269:Fe(W);break;case 296:pt(W);break;case 244:j(W);break;case 256:Rt(W);break;case 224:yn(W);break;case 225:fn(W);break;case 226:if(Wv(W)){se=Te,hn(W);return}X(W);break;case 220:Oe(W);break;case 227:Lt(W);break;case 260:me(W);break;case 211:case 212:Pi(W);break;case 213:xi(W);break;case 235:qn(W);break;case 353:case 345:case 347:ke(W);break;case 312:{We(W.statements),we(W.endOfFileToken);break}case 241:case 268:We(W.statements);break;case 208:J(W);break;case 169:fe(W);break;case 210:case 209:case 303:case 230:se=Te;default:Se(W);break}Et(W),se=Te}function ot(W){switch(W.kind){case 80:case 81:case 110:case 211:case 212:return vt(W);case 213:return $e(W);case 217:if(XR(W))return!1;case 235:return ot(W.expression);case 226:return tn(W);case 224:return W.operator===54&&ot(W.operand);case 221:return ot(W.expression)}return!1}function Bt(W){return FC(W)||(Fr(W)||oI(W)||Gd(W))&&Bt(W.expression)||mr(W)&&W.operatorToken.kind===28&&Bt(W.right)||$s(W)&&(ef(W.argumentExpression)||Bl(W.argumentExpression))&&Bt(W.expression)||Pc(W)&&Bt(W.left)}function vt(W){return Bt(W)||qu(W)&&vt(W.expression)}function $e(W){if(W.arguments){for(const Te of W.arguments)if(vt(Te))return!0}return!!(W.expression.kind===211&&vt(W.expression.expression))}function It(W,Te){return VR(W)&&rn(W.expression)&&ls(Te)}function tn(W){switch(W.operatorToken.kind){case 64:case 76:case 77:case 78:return vt(W.left);case 35:case 36:case 37:case 38:return rn(W.left)||rn(W.right)||It(W.right,W.left)||It(W.left,W.right)||fC(W.right)&&ot(W.left)||fC(W.left)&&ot(W.right);case 104:return rn(W.left);case 103:return ot(W.right);case 28:return ot(W.right)}return!1}function rn(W){switch(W.kind){case 217:return rn(W.expression);case 226:switch(W.operatorToken.kind){case 64:return rn(W.left);case 28:return rn(W.right)}}return vt(W)}function Mn(){return hI({flags:4,antecedents:void 0})}function $n(){return hI({flags:8,antecedents:void 0})}function gn(W,Te,st){return hI({flags:1024,target:W,antecedents:Te,antecedent:st})}function Qt(W){W.flags|=W.flags&2048?4096:2048}function Yt(W,Te){!(Te.flags&1)&&!Or(W.antecedents,Te)&&((W.antecedents||(W.antecedents=[])).push(Te),Qt(Te))}function vi(W,Te,st){return Te.flags&1?Te:st?(st.kind===112&&W&64||st.kind===97&&W&32)&&!p4(st)&&!NV(st.parent)?ye:ot(st)?(Qt(Te),hI({flags:W,antecedent:Te,node:st})):Te:W&32?Te:ye}function so(W,Te,st,qt){return Qt(W),hI({flags:128,antecedent:W,switchStatement:Te,clauseStart:st,clauseEnd:qt})}function Wi(W,Te,st){Qt(Te);const qt=hI({flags:W,antecedent:Te,node:st});return C&&Yt(C,qt),qt}function Co(W,Te){return Qt(W),hI({flags:512,antecedent:W,node:Te})}function Ln(W){const Te=W.antecedents;return Te?Te.length===1?Te[0]:W:ye}function Ci(W){const Te=W.parent;switch(Te.kind){case 245:case 247:case 246:return Te.expression===W;case 248:case 227:return Te.condition===W}return!1}function Ar(W){for(;;)if(W.kind===217)W=W.expression;else if(W.kind===224&&W.operator===54)W=W.operand;else return sk(W)}function sn(W){return Xj(hs(W))}function tt(W){for(;Gd(W.parent)||Xy(W.parent)&&W.parent.operator===54;)W=W.parent;return!Ci(W)&&!Ar(W.parent)&&!(qu(W.parent)&&W.parent.expression===W)}function zt(W,Te,st,qt){const rr=R,ii=M;R=st,M=qt,W(Te),R=rr,M=ii}function Dn(W,Te,st){zt(we,W,Te,st),(!W||!sn(W)&&!Ar(W)&&!(qu(W)&&lC(W)))&&(Yt(Te,vi(32,m,W)),Yt(st,vi(64,m,W)))}function ci(W,Te,st){const qt=y,rr=T;y=Te,T=st,we(W),y=qt,T=rr}function yi(W,Te){let st=U;for(;st&&W.parent.kind===256;)st.continueTarget=Te,st=st.next,W=W.parent;return Te}function Qi(W){const Te=yi(W,$n()),st=Mn(),qt=Mn();Yt(Te,m),m=Te,Dn(W.expression,st,qt),m=Ln(st),ci(W.statement,qt,Te),Yt(Te,m),m=Ln(qt)}function Io(W){const Te=$n(),st=yi(W,Mn()),qt=Mn();Yt(Te,m),m=Te,ci(W.statement,qt,st),Yt(st,m),m=Ln(st),Dn(W.expression,Te,qt),m=Ln(qt)}function fa(W){const Te=yi(W,$n()),st=Mn(),qt=Mn();we(W.initializer),Yt(Te,m),m=Te,Dn(W.condition,st,qt),m=Ln(st),ci(W.statement,qt,Te),we(W.incrementor),Yt(Te,m),m=Ln(qt)}function ka(W){const Te=yi(W,$n()),st=Mn();we(W.expression),Yt(Te,m),m=Te,W.kind===250&&we(W.awaitModifier),Yt(st,m),we(W.initializer),W.initializer.kind!==261&&_t(W.initializer),ci(W.statement,st,Te),Yt(Te,m),m=Ln(st)}function Tn(W){const Te=Mn(),st=Mn(),qt=Mn();Dn(W.expression,Te,st),m=Ln(Te),we(W.thenStatement),Yt(qt,m),m=Ln(st),we(W.elseStatement),Yt(qt,m),m=Ln(qt)}function wn(W){we(W.expression),W.kind===253&&(K=!0,A&&Yt(A,m)),m=ye}function He(W){for(let Te=U;Te;Te=Te.next)if(Te.name===W)return Te}function mt(W,Te,st){const qt=W.kind===252?Te:st;qt&&(Yt(qt,m),m=ye)}function ft(W){if(we(W.label),W.label){const Te=He(W.label.escapedText);Te&&(Te.referenced=!0,mt(W,Te.breakTarget,Te.continueTarget))}else mt(W,y,T)}function Ct(W){const Te=A,st=C,qt=Mn(),rr=Mn();let ii=Mn();if(W.finallyBlock&&(A=rr),Yt(ii,m),C=ii,we(W.tryBlock),Yt(qt,m),W.catchClause&&(m=Ln(ii),ii=Mn(),Yt(ii,m),C=ii,we(W.catchClause),Yt(qt,m)),A=Te,C=st,W.finallyBlock){const Yr=Mn();Yr.antecedents=So(So(qt.antecedents,ii.antecedents),rr.antecedents),m=Yr,we(W.finallyBlock),m.flags&1?m=ye:(A&&rr.antecedents&&Yt(A,gn(Yr,rr.antecedents,m)),C&&ii.antecedents&&Yt(C,gn(Yr,ii.antecedents,m)),m=qt.antecedents?gn(Yr,qt.antecedents,m):ye)}else m=Ln(qt)}function le(W){const Te=Mn();we(W.expression);const st=y,qt=O;y=Te,O=m,we(W.caseBlock),Yt(Te,m);const rr=Xe(W.caseBlock.clauses,ii=>ii.kind===297);W.possiblyExhaustive=!rr&&!Te.antecedents,rr||Yt(Te,so(O,W,0,0)),y=st,O=qt,m=Ln(Te)}function Fe(W){const Te=W.clauses,st=W.parent.expression.kind===112||ot(W.parent.expression);let qt=ye;for(let rr=0;rr<Te.length;rr++){const ii=rr;for(;!Te[rr].statements.length&&rr+1<Te.length;)qt===ye&&(m=O),we(Te[rr]),rr++;const Yr=Mn();Yt(Yr,st?so(O,W.parent,ii,rr+1):O),Yt(Yr,qt),m=Ln(Yr);const oo=Te[rr];we(oo),qt=m,!(m.flags&1)&&rr!==Te.length-1&&t.noFallthroughCasesInSwitch&&(oo.fallthroughFlowNode=m)}}function pt(W){const Te=m;m=O,we(W.expression),m=Te,At(W.statements)}function j(W){we(W.expression),it(W.expression)}function it(W){if(W.kind===213){const Te=W;Te.expression.kind!==108&&FC(Te.expression)&&(m=Co(m,Te))}}function Rt(W){const Te=Mn();U={next:U,name:W.label.escapedText,breakTarget:Te,continueTarget:void 0,referenced:!1},we(W.label),we(W.statement),!U.referenced&&!t.allowUnusedLabels&&xc(uoe(t),W.label,f.Unused_label),U=U.next,Yt(Te,m),m=Ln(Te)}function Ye(W){W.kind===226&&W.operatorToken.kind===64?_t(W.left):_t(W)}function _t(W){if(Bt(W))m=Wi(16,m,W);else if(W.kind===209)for(const Te of W.elements)Te.kind===230?_t(Te.expression):Ye(Te);else if(W.kind===210)for(const Te of W.properties)Te.kind===303?Ye(Te.initializer):Te.kind===304?_t(Te.name):Te.kind===305&&_t(Te.expression)}function Gt(W,Te,st){const qt=Mn();W.operatorToken.kind===56||W.operatorToken.kind===77?Dn(W.left,qt,st):Dn(W.left,Te,qt),m=Ln(qt),we(W.operatorToken),WC(W.operatorToken.kind)?(zt(we,W.right,Te,st),_t(W.left),Yt(Te,vi(32,m,W)),Yt(st,vi(64,m,W))):Dn(W.right,Te,st)}function yn(W){if(W.operator===54){const Te=R;R=M,M=Te,Se(W),M=R,R=Te}else Se(W),(W.operator===46||W.operator===47)&&_t(W.operand)}function fn(W){Se(W),(W.operator===46||W.operator===47)&&_t(W.operand)}function hn(W){se?(se=!1,we(W.operatorToken),we(W.right),se=!0,we(W.left)):(se=!0,we(W.left),se=!1,we(W.operatorToken),we(W.right)),_t(W.left)}function q(){return aF(W,Te,st,qt,rr,void 0);function W(Yr,oo){if(oo){oo.stackIndex++,Ha(Yr,i);const Oa=V;vr(Yr);const Ol=i;i=Yr,oo.skip=!1,oo.inStrictModeStack[oo.stackIndex]=Oa,oo.parentStack[oo.stackIndex]=Ol}else oo={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const wa=Yr.operatorToken.kind;if(ak(wa)||WC(wa)){if(tt(Yr)){const Oa=Mn();Gt(Yr,Oa,Oa),m=Ln(Oa)}else Gt(Yr,R,M);oo.skip=!0}return oo}function Te(Yr,oo,wa){if(!oo.skip){const Oa=ii(Yr);return wa.operatorToken.kind===28&&it(Yr),Oa}}function st(Yr,oo,wa){oo.skip||we(Yr)}function qt(Yr,oo,wa){if(!oo.skip){const Oa=ii(Yr);return wa.operatorToken.kind===28&&it(Yr),Oa}}function rr(Yr,oo){if(!oo.skip){const Ol=Yr.operatorToken.kind;if(Ov(Ol)&&!eg(Yr)&&(_t(Yr.left),Ol===64&&Yr.left.kind===212)){const pu=Yr.left;rn(pu.expression)&&(m=Wi(256,m,Yr))}}const wa=oo.inStrictModeStack[oo.stackIndex],Oa=oo.parentStack[oo.stackIndex];wa!==void 0&&(V=wa),Oa!==void 0&&(i=Oa),oo.skip=!1,oo.stackIndex--}function ii(Yr){if(Yr&&mr(Yr)&&!Wv(Yr))return Yr;we(Yr)}}function Oe(W){Se(W),W.expression.kind===211&&_t(W.expression)}function Lt(W){const Te=Mn(),st=Mn(),qt=Mn();Dn(W.condition,Te,st),m=Ln(Te),we(W.questionToken),we(W.whenTrue),Yt(qt,m),m=Ln(st),we(W.colonToken),we(W.whenFalse),Yt(qt,m),m=Ln(qt)}function L(W){const Te=Gc(W)?void 0:W.name;if(ta(Te))for(const st of Te.elements)L(st);else m=Wi(16,m,W)}function me(W){Se(W),(W.initializer||Yx(W.parent.parent))&&L(W)}function J(W){we(W.dotDotDotToken),we(W.propertyName),Be(W.initializer),we(W.name)}function fe(W){At(W.modifiers),we(W.dotDotDotToken),we(W.questionToken),we(W.type),Be(W.initializer),we(W.name)}function Be(W){if(!W)return;const Te=m;if(we(W),Te===ye||Te===m)return;const st=Mn();Yt(st,Te),Yt(st,m),m=Ln(st)}function ke(W){we(W.tagName),W.kind!==347&&W.fullName&&(Ha(W.fullName,W),Gy(W.fullName,!1)),typeof W.comment!="string"&&At(W.comment)}function Tt(W){Se(W);const Te=d0(W);Te&&Te.kind!==174&&ie(Te.symbol,Te,32)}function kt(W,Te,st){zt(we,W,Te,st),(!qu(W)||lC(W))&&(Yt(Te,vi(32,m,W)),Yt(st,vi(64,m,W)))}function en(W){switch(W.kind){case 211:we(W.questionDotToken),we(W.name);break;case 212:we(W.questionDotToken),we(W.argumentExpression);break;case 213:we(W.questionDotToken),At(W.typeArguments),At(W.arguments);break}}function En(W,Te,st){const qt=sC(W)?Mn():void 0;kt(W.expression,qt||Te,st),qt&&(m=Ln(qt)),zt(en,W,Te,st),lC(W)&&(Yt(Te,vi(32,m,W)),Yt(st,vi(64,m,W)))}function Gn(W){if(tt(W)){const Te=Mn();En(W,Te,Te),m=Ln(Te)}else En(W,R,M)}function qn(W){qu(W)?Gn(W):Se(W)}function Pi(W){qu(W)?Gn(W):Se(W)}function xi(W){if(qu(W))Gn(W);else{const Te=hs(W.expression);Te.kind===218||Te.kind===219?(At(W.typeArguments),At(W.arguments),we(W.expression)):(Se(W),W.expression.kind===108&&(m=Co(m,W)))}if(W.expression.kind===211){const Te=W.expression;Ve(Te.name)&&rn(Te.expression)&&kj(Te.name)&&(m=Wi(256,m,W))}}function ir(W){u&&(u.nextContainer=W),u=W}function Vr(W,Te,st){switch(o.kind){case 267:return Ee(W,Te,st);case 312:return Mi(W,Te,st);case 231:case 263:return vo(W,Te,st);case 266:return Ue(o.symbol.exports,o.symbol,W,Te,st);case 187:case 329:case 210:case 264:case 292:return Ue(o.symbol.members,o.symbol,W,Te,st);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&N.assertNode(o,dh),Ue(o.locals,void 0,W,Te,st)}}function vo(W,Te,st){return aa(W)?Ue(o.symbol.exports,o.symbol,W,Te,st):Ue(o.symbol.members,o.symbol,W,Te,st)}function Mi(W,Te,st){return sc(e)?Ee(W,Te,st):Ue(e.locals,void 0,W,Te,st)}function Ri(W){const Te=$i(W)?W:ri(W.body,L_);return!!Te&&Te.statements.some(st=>Yl(st)||kl(st))}function Jr(W){W.flags&33554432&&!Ri(W)?W.flags|=128:W.flags&=-129}function xo(W){if(Jr(W),ku(W))if(Qr(W,32)&&Ms(W,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),tj(W))Nn(W);else{let Te;if(W.name.kind===11){const{text:qt}=W.name;Te=PR(qt),Te===void 0&&Ms(W.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,qt)}const st=Vr(W,512,110735);e.patternAmbientModules=Rn(e.patternAmbientModules,Te&&!Mo(Te)?{pattern:Te,symbol:st}:void 0)}else{const Te=Nn(W);if(Te!==0){const{symbol:st}=W;st.constEnumOnlyModule=!(st.flags&304)&&Te===2&&st.constEnumOnlyModule!==!1}}}function Nn(W){const Te=jg(W),st=Te!==0;return Vr(W,st?512:1024,st?110735:0),Te}function Fs(W){const Te=de(131072,ve(W));ie(Te,W,131072);const st=de(2048,"__type");ie(st,W,2048),st.members=ca(),st.members.set(Te.escapedName,Te)}function Ql(W){return Vs(W,4096,"__object")}function ko(W){return Vs(W,4096,"__jsxAttributes")}function cs(W,Te,st){return Vr(W,Te,st)}function Vs(W,Te,st){const qt=de(Te,st);return Te&106508&&(qt.parent=o.symbol),ie(qt,W,Te),qt}function gl(W,Te,st){switch(l.kind){case 267:Ee(W,Te,st);break;case 312:if(Fp(o)){Ee(W,Te,st);break}default:N.assertNode(l,dh),l.locals||(l.locals=ca(),ir(l)),Ue(l.locals,void 0,W,Te,st)}}function cu(){if(!p)return;const W=o,Te=u,st=l,qt=i,rr=m;for(const ii of p){const Yr=ii.parent.parent;o=lj(Yr)||e,l=mh(Yr)||e,m=hI({flags:2}),i=ii,we(ii.typeExpression);const oo=Lo(ii);if((Jk(ii)||!ii.fullName)&&oo&&lk(oo.parent)){const wa=ec(oo.parent);if(wa){vl(e.symbol,oo.parent,wa,!!Vn(oo,Ol=>Fr(Ol)&&Ol.name.escapedText==="prototype"),!1);const Oa=o;switch(GL(oo.parent)){case 1:case 2:Fp(e)?o=e:o=void 0;break;case 4:o=oo.parent.expression;break;case 3:o=oo.parent.expression.name;break;case 5:o=s1(e,oo.parent.expression)?e:Fr(oo.parent.expression)?oo.parent.expression.name:oo.parent.expression;break;case 0:return N.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Ee(ii,524288,788968),o=Oa}}else Jk(ii)||!ii.fullName||ii.fullName.kind===80?(i=ii.parent,gl(ii,524288,788968)):we(ii.fullName)}o=W,u=Te,l=st,i=qt,m=rr}function ho(W){if(!e.parseDiagnostics.length&&!(W.flags&33554432)&&!(W.flags&16777216)&&!yie(W)){const Te=r0(W);if(Te===void 0)return;V&&Te>=119&&Te<=127?e.bindDiagnostics.push(oe(W,da(W),xs(W))):Te===135?sc(e)&&U4(W)?e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,xs(W))):W.flags&65536&&e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,xs(W))):Te===127&&W.flags&16384&&e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,xs(W)))}}function da(W){return au(W)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function uu(W){W.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(oe(W,f.constructor_is_a_reserved_word,xs(W))))}function Ts(W){V&&Zd(W.left)&&Ov(W.operatorToken.kind)&&lc(W,W.left)}function Ca(W){V&&W.variableDeclaration&&lc(W,W.variableDeclaration.name)}function ml(W){if(V&&W.expression.kind===80){const Te=vS(e,W.expression);e.bindDiagnostics.push($c(e,Te.start,Te.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Lf(W){return Ve(W)&&(W.escapedText==="eval"||W.escapedText==="arguments")}function lc(W,Te){if(Te&&Te.kind===80){const st=Te;if(Lf(st)){const qt=vS(e,Te);e.bindDiagnostics.push($c(e,qt.start,qt.length,Nl(W),Sr(st)))}}}function Nl(W){return au(W)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function cl(W){V&&lc(W,W.name)}function wo(W){return au(W)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function nn(W){if(r<2&&l.kind!==312&&l.kind!==267&&!Xx(l)){const Te=vS(e,W);e.bindDiagnostics.push($c(e,Te.start,Te.length,wo(W)))}}function js(W){V&&lc(W,W.operand)}function tu(W){V&&(W.operator===46||W.operator===47)&&lc(W,W.operand)}function du(W){V&&Ms(W,f.with_statements_are_not_allowed_in_strict_mode)}function Tp(W){V&&os(t)>=2&&(Sre(W.statement)||Ll(W.statement))&&Ms(W.label,f.A_label_is_not_allowed_here)}function Ms(W,Te,...st){const qt=_h(e,W.pos);e.bindDiagnostics.push($c(e,qt.start,qt.length,Te,...st))}function xc(W,Te,st){ue(W,Te,Te,st)}function ue(W,Te,st,qt){Z(W,{pos:l0(Te,e),end:st.end},qt)}function Z(W,Te,st){const qt=$c(e,Te.pos,Te.end-Te.pos,st);W?e.bindDiagnostics.push(qt):e.bindSuggestionDiagnostics=Rn(e.bindSuggestionDiagnostics,{...qt,category:2})}function we(W){if(!W)return;Ha(W,i),sr&&(W.tracingPath=e.path);const Te=V;if(vr(W),W.kind>165){const st=i;i=W;const qt=bq(W);qt===0?je(W):Me(W,qt),i=st}else{const st=i;W.kind===1&&(i=W),Et(W),i=st}V=Te}function Et(W){if(Wp(W))if(lr(W))for(const Te of W.jsDoc)we(Te);else for(const Te of W.jsDoc)Ha(Te,W),Gy(Te,!1)}function un(W){if(!V)for(const Te of W){if(!Sm(Te))return;if(Er(Te)){V=!0;return}}}function Er(W){const Te=CE(e,W.expression);return Te==='"use strict"'||Te==="'use strict'"}function vr(W){switch(W.kind){case 80:if(W.flags&4096){let Yr=W.parent;for(;Yr&&!$f(Yr);)Yr=Yr.parent;gl(Yr,524288,788968);break}case 110:return m&&(yt(W)||i.kind===304)&&(W.flowNode=m),ho(W);case 166:m&&X4(W)&&(W.flowNode=m);break;case 236:case 108:W.flowNode=m;break;case 81:return uu(W);case 211:case 212:const Te=W;m&&Bt(Te)&&(Te.flowNode=m),pie(Te)&&Xn(Te),lr(Te)&&e.commonJsModuleIndicator&&Zh(Te)&&!PF(l,"module")&&Ue(e.locals,void 0,Te.expression,134217729,111550);break;case 226:switch(zl(W)){case 1:ip(W);break;case 2:wc(W);break;case 3:na(W.left,W);break;case 6:yo(W);break;case 4:_d(W);break;case 5:const Yr=W.left.expression;if(lr(W)&&Ve(Yr)){const oo=PF(l,Yr.escapedText);if(H4(oo==null?void 0:oo.valueDeclaration)){_d(W);break}}yc(W);break;case 0:break;default:N.fail("Unknown binary expression special property assignment kind")}return Ts(W);case 299:return Ca(W);case 220:return ml(W);case 225:return js(W);case 224:return tu(W);case 254:return du(W);case 256:return Tp(W);case 197:h=!0;return;case 182:break;case 168:return ct(W);case 169:return Jg(W);case 260:return Bu(W);case 208:return W.flowNode=m,Bu(W);case 172:case 171:return jr(W);case 303:case 304:return Ud(W,4,0);case 306:return Ud(W,8,900095);case 179:case 180:case 181:return Vr(W,131072,0);case 174:case 173:return Ud(W,8192|(W.questionToken?16777216:0),Tm(W)?0:103359);case 262:return Ap(W);case 176:return Vr(W,16384,0);case 177:return Ud(W,32768,46015);case 178:return Ud(W,65536,78783);case 184:case 324:case 330:case 185:return Fs(W);case 187:case 329:case 200:return Di(W);case 339:return Tt(W);case 210:return Ql(W);case 218:case 219:return dg(W);case 213:switch(zl(W)){case 7:return Zl(W);case 8:return Uc(W);case 9:return $o(W);case 0:break;default:return N.fail("Unknown call expression assignment declaration kind")}lr(W)&&G_(W);break;case 231:case 263:return V=!0,Dh(W);case 264:return gl(W,64,788872);case 265:return gl(W,524288,788968);case 266:return qg(W);case 267:return xo(W);case 292:return ko(W);case 291:return cs(W,4,0);case 271:case 274:case 276:case 281:return Vr(W,2097152,2097152);case 270:return jc(W);case 273:return vc(W);case 278:return Us(W);case 277:return Sl(W);case 312:return un(W.statements),Mr();case 241:if(!Xx(W.parent))return;case 268:return un(W.statements);case 348:if(W.parent.kind===330)return Jg(W);if(W.parent.kind!==329)break;case 355:const rr=W,ii=rr.isBracketed||rr.typeExpression&&rr.typeExpression.type.kind===323?16777220:4;return Vr(rr,ii,0);case 353:case 345:case 347:return(p||(p=[])).push(W);case 346:return we(W.typeExpression)}}function jr(W){const Te=Wd(W),st=Te?98304:4,qt=Te?13247:0;return Ud(W,st|(W.questionToken?16777216:0),qt)}function Di(W){return Vs(W,2048,"__type")}function Mr(){if(Jr(e),sc(e))Yo();else if(Yf(e)){Yo();const W=e.symbol;Ue(e.symbol.exports,e.symbol,e,4,-1),e.symbol=W}}function Yo(){Vs(e,512,`"${Ad(e.fileName)}"`)}function Sl(W){if(!o.symbol||!o.symbol.exports)Vs(W,111551,ve(W));else{const Te=gR(W)?2097152:4,st=Ue(o.symbol.exports,o.symbol,W,Te,-1);W.isExportEquals&&jL(st,W)}}function jc(W){bt(W.modifiers)&&e.bindDiagnostics.push(oe(W,f.Modifiers_cannot_appear_here));const Te=$i(W.parent)?sc(W.parent)?W.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;Te?e.bindDiagnostics.push(oe(W,Te)):(e.symbol.globalExports=e.symbol.globalExports||ca(),Ue(e.symbol.globalExports,e.symbol,W,2097152,2097152))}function Us(W){!o.symbol||!o.symbol.exports?Vs(W,8388608,ve(W)):W.exportClause?Eh(W.exportClause)&&(Ha(W.exportClause,W),Ue(o.symbol.exports,o.symbol,W.exportClause,2097152,2097152)):Ue(o.symbol.exports,o.symbol,W,8388608,0)}function vc(W){W.name&&Vr(W,2097152,2097152)}function Es(W){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=W,e.externalModuleIndicator||Yo()),!0)}function Uc(W){if(!Es(W))return;const Te=kf(W.arguments[0],void 0,(st,qt)=>(qt&&ie(qt,st,67110400),qt));Te&&Ue(Te.exports,Te,W,1048580,0)}function ip(W){if(!Es(W))return;const Te=kf(W.left.expression,void 0,(st,qt)=>(qt&&ie(qt,st,67110400),qt));if(Te){const qt=QL(W.right)&&(ES(W.left.expression)||Zh(W.left.expression))?2097152:1048580;Ha(W.left,W),Ue(Te.exports,Te,W.left,qt,0)}}function wc(W){if(!Es(W))return;const Te=FL(W.right);if(Zj(Te)||o===e&&s1(e,Te))return;if(La(Te)&&Jn(Te.properties,np)){Xe(Te.properties,sm);return}const st=gR(W)?2097152:1049092,qt=Ue(e.symbol.exports,e.symbol,W,st|67108864,0);jL(qt,W)}function sm(W){Ue(e.symbol.exports,e.symbol,W,69206016,0)}function _d(W){if(N.assert(lr(W)),mr(W)&&Fr(W.left)&&qi(W.left.name)||Fr(W)&&qi(W.name))return;const st=Fd(W,!1,!1);switch(st.kind){case 262:case 218:let qt=st.symbol;if(mr(st.parent)&&st.parent.operatorToken.kind===64){const Yr=st.parent.left;OE(Yr)&&zy(Yr.expression)&&(qt=Nd(Yr.expression.expression,s))}qt&&qt.valueDeclaration&&(qt.members=qt.members||ca(),Wy(W)?Pe(W,qt,qt.members):Ue(qt.members,qt,W,67108868,0),ie(qt,qt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const rr=st.parent,ii=aa(st)?rr.symbol.exports:rr.symbol.members;Wy(W)?Pe(W,rr.symbol,ii):Ue(ii,rr.symbol,W,67108868,0,!0);break;case 312:if(Wy(W))break;st.commonJsModuleIndicator?Ue(st.symbol.exports,st.symbol,W,1048580,0):Vr(W,1,111550);break;case 267:break;default:N.failBadSyntaxKind(st)}}function Pe(W,Te,st){Ue(st,Te,W,4,0,!0,!0),Ot(W,Te)}function Ot(W,Te){Te&&(Te.assignmentDeclarationMembers||(Te.assignmentDeclarationMembers=new Map)).set(as(W),W)}function Xn(W){W.expression.kind===110?_d(W):OE(W)&&W.parent.parent.kind===312&&(zy(W.expression)?na(W,W.parent):ul(W))}function yo(W){Ha(W.left,W),Ha(W.right,W),Hc(W.left.expression,W.left,!1,!0)}function $o(W){const Te=Nd(W.arguments[0].expression);Te&&Te.valueDeclaration&&ie(Te,Te.valueDeclaration,32),Gl(W,Te,!0)}function na(W,Te){const st=W.expression,qt=st.expression;Ha(qt,st),Ha(st,W),Ha(W,Te),Hc(qt,W,!0,!0)}function Zl(W){let Te=Nd(W.arguments[0]);const st=W.parent.parent.kind===312;Te=vl(Te,W.arguments[0],st,!1,!1),Gl(W,Te,!1)}function yc(W){var Te;const st=Nd(W.left.expression,l)||Nd(W.left.expression,o);if(!lr(W)&&!fie(st))return;const qt=DR(W.left);if(!(Ve(qt)&&((Te=PF(o,qt.escapedText))==null?void 0:Te.flags)&2097152))if(Ha(W.left,W),Ha(W.right,W),Ve(W.left.expression)&&o===e&&s1(e,W.left.expression))ip(W);else if(Wy(W)){Vs(W,67108868,"__computed");const rr=vl(st,W.left.expression,ec(W.left),!1,!1);Ot(W,rr)}else ul(oa(W.left,TS))}function ul(W){N.assert(!Ve(W)),Ha(W.expression,W),Hc(W.expression,W,!1,!1)}function vl(W,Te,st,qt,rr){return(W==null?void 0:W.flags)&2097152||(st&&!qt&&(W=kf(Te,W,(oo,wa,Oa)=>{if(wa)return ie(wa,oo,67110400),wa;{const Ol=Oa?Oa.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=ca());return Ue(Ol,Oa,oo,67110400,110735)}})),rr&&W&&W.valueDeclaration&&ie(W,W.valueDeclaration,32)),W}function Gl(W,Te,st){if(!Te||!df(Te))return;const qt=st?Te.members||(Te.members=ca()):Te.exports||(Te.exports=ca());let rr=0,ii=0;Bs(DA(W))?(rr=8192,ii=103359):sa(W)&&SS(W)&&(bt(W.arguments[2].properties,Yr=>{const oo=Lo(Yr);return!!oo&&Ve(oo)&&Sr(oo)==="set"})&&(rr|=65540,ii|=78783),bt(W.arguments[2].properties,Yr=>{const oo=Lo(Yr);return!!oo&&Ve(oo)&&Sr(oo)==="get"})&&(rr|=32772,ii|=46015)),rr===0&&(rr=4,ii=0),Ue(qt,Te,W,rr|67108864,ii&-67108865)}function ec(W){return mr(W.parent)?jd(W.parent).parent.kind===312:W.parent.parent.kind===312}function Hc(W,Te,st,qt){let rr=Nd(W,l)||Nd(W,o);const ii=ec(Te);rr=vl(rr,Te.expression,ii,st,qt),Gl(Te,rr,st)}function df(W){if(W.flags&1072)return!0;const Te=W.valueDeclaration;if(Te&&sa(Te))return!!DA(Te);let st=Te?Oi(Te)?Te.initializer:mr(Te)?Te.right:Fr(Te)&&mr(Te.parent)?Te.parent.right:void 0:void 0;if(st=st&&FL(st),st){const qt=zy(Oi(Te)?Te.name:mr(Te)?Te.left:Te);return!!u0(mr(st)&&(st.operatorToken.kind===57||st.operatorToken.kind===61)?st.right:st,qt)}return!1}function jd(W){for(;mr(W.parent);)W=W.parent;return W.parent}function Nd(W,Te=o){if(Ve(W))return PF(Te,W.escapedText);{const st=Nd(W.expression);return st&&st.exports&&st.exports.get(kg(W))}}function kf(W,Te,st){if(s1(e,W))return e.symbol;if(Ve(W))return st(W,Nd(W),Te);{const qt=kf(W.expression,Te,st),rr=BL(W);return qi(rr)&&N.fail("unexpected PrivateIdentifier"),st(rr,qt&&qt.exports&&qt.exports.get(kg(W)),qt)}}function G_(W){!e.commonJsModuleIndicator&&Td(W,!1)&&Es(W)}function Dh(W){if(W.kind===263)gl(W,32,899503);else{const rr=W.name?W.name.escapedText:"__class";Vs(W,32,rr),W.name&&he.add(W.name.escapedText)}const{symbol:Te}=W,st=de(4194308,"prototype"),qt=Te.exports.get(st.escapedName);qt&&(W.name&&Ha(W.name,W),e.bindDiagnostics.push(oe(qt.declarations[0],f.Duplicate_identifier_0,El(st)))),Te.exports.set(st.escapedName,st),st.parent=Te}function qg(W){return ME(W)?gl(W,128,899967):gl(W,256,899327)}function Bu(W){if(V&&lc(W,W.name),!ta(W.name)){const Te=W.kind===260?W:W.parent.parent;lr(W)&&wE(Te)&&!i0(W)&&!(n0(W)&32)?Vr(W,2097152,2097152):QV(W)?gl(W,2,111551):zE(W)?Vr(W,1,111551):Vr(W,1,111550)}}function Jg(W){if(!(W.kind===348&&o.kind!==330)&&(V&&!(W.flags&33554432)&&lc(W,W.name),ta(W.name)?Vs(W,1,"__"+W.parent.parameters.indexOf(W)):Vr(W,1,111551),pp(W,W.parent))){const Te=W.parent.parent;Ue(Te.symbol.members,Te.symbol,W,4|(W.questionToken?16777216:0),0)}}function Ap(W){!e.isDeclarationFile&&!(W.flags&33554432)&&NC(W)&&(Q|=4096),cl(W),V?(nn(W),gl(W,16,110991)):Vr(W,16,110991)}function dg(W){!e.isDeclarationFile&&!(W.flags&33554432)&&NC(W)&&(Q|=4096),m&&(W.flowNode=m),cl(W);const Te=W.name?W.name.escapedText:"__function";return Vs(W,16,Te)}function Ud(W,Te,st){return!e.isDeclarationFile&&!(W.flags&33554432)&&NC(W)&&(Q|=4096),m&&B4(W)&&(W.flowNode=m),Wy(W)?Vs(W,Te,"__computed"):Vr(W,Te,st)}function te(W){const Te=Vn(W,st=>st.parent&&rI(st.parent)&&st.parent.extendsType===st);return Te&&Te.parent}function ct(W){if(om(W.parent)){const Te=i3(W.parent);Te?(N.assertNode(Te,dh),Te.locals??(Te.locals=ca()),Ue(Te.locals,void 0,W,262144,526824)):Vr(W,262144,526824)}else if(W.parent.kind===195){const Te=te(W.parent);Te?(N.assertNode(Te,dh),Te.locals??(Te.locals=ca()),Ue(Te.locals,void 0,W,262144,526824)):Vs(W,262144,ve(W))}else Vr(W,262144,526824)}function Ft(W){const Te=jg(W);return Te===1||Te===2&&KE(t)}function Vt(W){if(!(m.flags&1))return!1;if(m===ye&&(hL(W)&&W.kind!==242||W.kind===263||W.kind===267&&Ft(W))&&(m=Y,!t.allowUnreachableCode)){const st=coe(t)&&!(W.flags&33554432)&&(!Ll(W)||!!(Cv(W.declarationList)&7)||W.declarationList.declarations.some(qt=>!!qt.initializer));vVe(W,(qt,rr)=>ue(st,qt,rr,f.Unreachable_code_detected))}return!0}}function vVe(e,t){if(Hi(e)&&bIe(e)&&Ko(e.parent)){const{statements:r}=e.parent,i=hU(r,e);zB(i,bIe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function bIe(e){return!Tc(e)&&!yVe(e)&&!y0(e)&&!(Ll(e)&&!(Cv(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function yVe(e){switch(e.kind){case 264:case 265:return!0;case 267:return jg(e)!==1;case 266:return Qr(e,4096);default:return!1}}function s1(e,t){let r=0;const i=M2();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),ES(t)||Zh(t))return!0;if(Ve(t)){const o=PF(e,t.escapedText);if(o&&o.valueDeclaration&&Oi(o.valueDeclaration)&&o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),Pc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function bq(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(B4(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return ea(e.parent)||Rl(e.parent)?0:34}return 0}function PF(e,t){var r,i,o,s;const l=(i=(r=ri(e,dh))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if($i(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(T_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var Eq,Sq,EIe,bVe=I({"src/compiler/binder.ts"(){ra(),sS(),Eq=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Eq||{}),Sq=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(Sq||{}),EIe=gVe()}});function Mse(e,t,r,i,o,s,l,u,p,h){return m;function m(y=()=>!0){const T=[],A=[];return{walkType:he=>{try{return R(he),{visitedTypes:fA(T),visitedSymbols:fA(A)}}finally{jo(T),jo(A)}},walkSymbol:he=>{try{return ne(he),{visitedTypes:fA(T),visitedSymbols:fA(A)}}finally{jo(T),jo(A)}}};function R(he){if(!(!he||T[he.id]||(T[he.id]=he,ne(he.symbol)))){if(he.flags&524288){const Y=he,X=Y.objectFlags;X&4&&M(he),X&32&&Q(he),X&3&&se(he),X&24&&G(Y)}he.flags&262144&&C(he),he.flags&3145728&&O(he),he.flags&4194304&&U(he),he.flags&8388608&&K(he)}}function M(he){R(he.target),Xe(h(he),R)}function C(he){R(u(he))}function O(he){Xe(he.types,R)}function U(he){R(he.type)}function K(he){R(he.objectType),R(he.indexType),R(he.constraint)}function Q(he){R(he.typeParameter),R(he.constraintType),R(he.templateType),R(he.modifiersType)}function V(he){const ye=t(he);ye&&R(ye.type),Xe(he.typeParameters,R);for(const Y of he.parameters)ne(Y);R(e(he)),R(r(he))}function se(he){G(he),Xe(he.typeParameters,R),Xe(i(he),R),R(he.thisType)}function G(he){const ye=o(he);for(const Y of ye.indexInfos)R(Y.keyType),R(Y.type);for(const Y of ye.callSignatures)V(Y);for(const Y of ye.constructSignatures)V(Y);for(const Y of ye.properties)ne(Y)}function ne(he){if(!he)return!1;const ye=Sa(he);if(A[ye])return!1;if(A[ye]=he,!y(he))return!0;const Y=s(he);return R(Y),he.exports&&he.exports.forEach(ne),Xe(he.declarations,X=>{if(X.type&&X.type.kind===186){const oe=X.type,pe=l(p(oe.exprName));ne(pe)}}),!1}}}var EVe=I({"src/compiler/symbolWalker.ts"(){ra()}});function Iw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){const s=l();return{relativePreference:o!==void 0?Xc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{const p=u!==i.impliedNodeFormat?l(u):s;if((u??i.impliedNodeFormat)===99)return sD(r,i.fileName)?[3,2]:[2];if(pd(r)===1)return p===2?[2,1]:[1,2];const h=sD(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:N.assertNever(p)}}};function l(u){if(o!==void 0){if(UE(o))return 2;if(Al(o,"/index"))return 1}return voe(t,u??i.impliedNodeFormat,r,i)}}function SVe(e,t,r,i,o,s,l={}){const u=SIe(e,t,r,i,o,Iw({},e,t,s),{},l);if(u!==s)return u}function MF(e,t,r,i,o,s={}){return SIe(e,t,r,i,o,Iw({},e,t),{},s)}function TVe(e,t,r,i,o,s={}){const l=Tq(t.fileName,i),u=NIe(l,r,i,o,s);return Ht(u,p=>kse(p,l,t,i,e,o,!0,s.overrideImportMode))}function SIe(e,t,r,i,o,s,l,u={}){const p=Tq(r,o),h=NIe(p,i,o,l,u);return Ht(h,m=>kse(m,p,t,o,e,l,void 0,u.overrideImportMode))||xIe(i,p,e,o,u.overrideImportMode||t.impliedNodeFormat,s)}function AVe(e,t,r,i,o={}){return TIe(e,t,r,i,o)[0]}function TIe(e,t,r,i,o={}){var s;const l=D4(e);if(!l)return et;const u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=u==null?void 0:u.get(t.path,l.path,i,o);return[p==null?void 0:p.moduleSpecifiers,l,p==null?void 0:p.modulePaths,u]}function AIe(e,t,r,i,o,s,l={}){return IIe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function IIe(e,t,r,i,o,s,l={},u){let p=!1;const h=RVe(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,y,T,A]=TIe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!y)return{moduleSpecifiers:et,computedWithoutCache:p};p=!0,T||(T=CIe(Tq(i.fileName,o),y.originalFileName,o));const R=IVe(T,r,i,o,s,l,u);return A==null||A.set(i.path,y.path,s,l,T,R),{moduleSpecifiers:R,computedWithoutCache:p}}function IVe(e,t,r,i,o,s={},l){const u=Tq(r.fileName,i),p=Iw(o,t,r),h=Xe(e,M=>Xe(i.getFileIncludeReasons().get(il(M.path,i.getCurrentDirectory(),u.getCanonicalFileName)),C=>{if(C.kind!==3||C.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Ule(r,C.index,t))return;const O=Gw(r,C.index).text;return p.relativePreference!==1||!Op(O)?O:void 0}));if(h)return[h];const m=bt(e,M=>M.isInNodeModules);let y,T,A,R;for(const M of e){const C=M.isInNodeModules?kse(M,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(y=Rn(y,C),C&&M.isRedirect)return y;if(!C){const O=xIe(M.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,p,M.isRedirect);if(!O)continue;M.isRedirect?A=Rn(A,O):fV(O)?x0(O)?R=Rn(R,O):T=Rn(T,O):(l||!m||M.isInNodeModules)&&(R=Rn(R,O))}}return T!=null&&T.length?T:A!=null&&A.length?A:y!=null&&y.length?y:N.checkDefined(R)}function Tq(e,t){e=go(e,t.getCurrentDirectory());const r=Mu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ai(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function xIe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},u){const{baseUrl:p,paths:h,rootDirs:m}=r;if(u&&!h)return;const{sourceDirectory:y,canonicalSourceDirectory:T,getCanonicalFileName:A}=t,R=s(o),M=m&&CVe(m,e,y,A,R,r)||xw(AE(vm(y,e,A)),R,r);if(!p&&!h&&!nW(r)||l===0)return u?void 0:M;const C=go(f3(r,i)||p,i.getCurrentDirectory()),O=kIe(e,C,A);if(!O)return u?void 0:M;const U=u?void 0:NVe(e,y,r,i,o),K=u||U===void 0?h&&PIe(O,h,R,i,r):void 0;if(u)return K;const Q=U??(K===void 0&&p!==void 0?xw(O,R,r):K);if(!Q)return M;if(l===1&&!Op(Q))return Q;if(l===3&&!Op(Q)){const V=r.configFilePath?il(ai(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),se=il(e,V,A),G=uo(T,V),ne=uo(se,V);if(G&&!ne||!G&&ne)return Q;const he=Lse(i,ai(se)),ye=Lse(i,y),Y=!AR(i);return xVe(he,ye,Y)?M:Q}return wIe(Q)||LF(M)<LF(Q)?M:Q}function xVe(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Dg(e,t,r)===0}function LF(e){let t=0;for(let r=uo(e,"./")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function RIe(e,t){return Ey(t.isRedirect,e.isRedirect)||_k(e.path,t.path)}function Lse(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):ym(t,r=>e.fileExists($r(r,"package.json"))?r:void 0)}function DIe(e,t,r,i,o){var s;const l=wv(r),u=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=il(t,u,l),m=r.redirectTargetsMap.get(h)||et,T=[...p?[p]:et,t,...m].map(O=>go(O,u));let A=!Jn(T,eP);if(!i){const O=Xe(T,U=>!(A&&eP(U))&&o(U,p===U));if(O)return O}const R=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),M=go(t,u);return R&&ym(ai(M),O=>{const U=R.get(Fc(il(O,u,l)));if(U)return _V(e,O,l)?!1:Xe(T,K=>{if(!_V(K,O,l))return;const Q=vm(O,K,l);for(const V of U){const se=Iy(V,Q),G=o(se,K===p);if(A=!0,G)return G}})})||(i?Xe(T,O=>A&&eP(O)?void 0:o(O,O===p)):void 0)}function NIe(e,t,r,i,o={}){var s;const l=il(e.importingSourceFileName,r.getCurrentDirectory(),wv(r)),u=il(t,r.getCurrentDirectory(),wv(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){const m=p.get(l,u,i,o);if(m!=null&&m.modulePaths)return m.modulePaths}const h=CIe(e,t,r);return p&&p.setModulePaths(l,u,i,o,h),h}function CIe(e,t,r){const i=new Map;DIe(e.importingSourceFileName,t,r,!0,(s,l)=>{const u=x0(s);i.set(s,{path:e.getCanonicalFileName(s),isRedirect:l,isInNodeModules:u})});const o=[];for(let s=e.canonicalSourceDirectory;i.size!==0;){const l=Fc(s);let u;i.forEach(({path:h,isRedirect:m,isInNodeModules:y},T)=>{uo(h,l)&&((u||(u=[])).push({path:T,isRedirect:m,isInNodeModules:y}),i.delete(T))}),u&&(u.length>1&&u.sort(RIe),o.push(...u));const p=ai(s);if(p===s)break;s=p}if(i.size){const s=zo(i.entries(),([l,{isRedirect:u,isInNodeModules:p}])=>({path:l,isRedirect:u,isInNodeModules:p}));s.length>1&&s.sort(RIe),o.push(...s)}return o}function RVe(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(l=>ej(l)&&(!PE(l)||!Xc(Qf(l.name))));if(i)return i.name.text;const s=eo(e.declarations,l=>{var u,p,h,m;if(!Xl(l))return;const y=M(l);if(!((u=y==null?void 0:y.parent)!=null&&u.parent&&L_(y.parent)&&ku(y.parent.parent)&&$i(y.parent.parent.parent)))return;const T=(m=(h=(p=y.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!T)return;const A=t.getSymbolAtLocation(T);if(!A)return;if(((A==null?void 0:A.flags)&2097152?t.getAliasedSymbol(A):A)===l.symbol)return y.parent.parent;function M(C){for(;C.flags&8;)C=C.parent;return C}})[0];if(s)return s.name.text}function PIe(e,t,r,i,o){for(const l in t)for(const u of t[l]){const p=ha(u),h=p.indexOf("*"),m=r.map(y=>({ending:y,value:xw(e,[y],o)}));if(Fg(p)&&m.push({ending:void 0,value:e}),h!==-1){const y=p.substring(0,h),T=p.substring(h+1);for(const{ending:A,value:R}of m)if(R.length>=y.length+T.length&&uo(R,y)&&Al(R,T)&&s({ending:A,value:R})){const M=R.substring(y.length,R.length-T.length);if(!Op(M))return jA(l,M)}}else if(bt(m,y=>y.ending!==0&&p===y.value)||bt(m,y=>y.ending===0&&p===y.value&&s(y)))return l}function s({ending:l,value:u}){return l!==0||u===xw(e,[l],o,i)}}function kF(e,t,r,i,o,s,l,u,p){if(typeof s=="string"){const h=!AR(t),m=()=>t.getCommonSourceDirectory(),y=p&&Zq(r,e,h,m),T=p&&Qq(r,e,h,m),A=go($r(i,s),void 0),R=GA(r)?Ad(r)+Ose(r,e):void 0;switch(u){case 0:if(R&&Dg(R,A,h)===0||Dg(r,A,h)===0||y&&Dg(y,A,h)===0||T&&Dg(T,A,h)===0)return{moduleFileToTry:o};break;case 1:if(R&&gm(A,R,h)){const U=vm(A,R,!1);return{moduleFileToTry:go($r($r(o,s),U),void 0)}}if(gm(A,r,h)){const U=vm(A,r,!1);return{moduleFileToTry:go($r($r(o,s),U),void 0)}}if(y&&gm(A,y,h)){const U=vm(A,y,!1);return{moduleFileToTry:$r(o,U)}}if(T&&gm(A,T,h)){const U=vm(A,T,!1);return{moduleFileToTry:$r(o,U)}}break;case 2:const M=A.indexOf("*"),C=A.slice(0,M),O=A.slice(M+1);if(R&&uo(R,C,h)&&Al(R,O,h)){const U=R.slice(C.length,R.length-O.length);return{moduleFileToTry:jA(o,U)}}if(uo(r,C,h)&&Al(r,O,h)){const U=r.slice(C.length,r.length-O.length);return{moduleFileToTry:jA(o,U)}}if(y&&uo(y,C,h)&&Al(y,O,h)){const U=y.slice(C.length,y.length-O.length);return{moduleFileToTry:jA(o,U)}}if(T&&uo(T,C,h)&&Al(T,O,h)){const U=T.slice(C.length,T.length-O.length);return{moduleFileToTry:jA(o,U)}}break}}else{if(Array.isArray(s))return Xe(s,h=>kF(e,t,r,i,o,h,l,u,p));if(typeof s=="object"&&s!==null){for(const h of Hh(s))if(h==="default"||l.indexOf(h)>=0||Tw(l,h)){const m=s[h],y=kF(e,t,r,i,o,m,l,u,p);if(y)return y}}}}function DVe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&NF(s)?Xe(Hh(s),u=>{const p=go($r(o,u),void 0),h=Al(u,"/")?1:u.includes("*")?2:0;return kF(e,t,r,i,p,s[u],l,h,!1)}):kF(e,t,r,i,o,s,l,0,!1)}function NVe(e,t,r,i,o){var s,l,u;if(!i.readFile||!nW(r))return;const p=Lse(i,t);if(!p)return;const h=$r(p,"package.json"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(vse(m)||!i.fileExists(h))return;const y=(m==null?void 0:m.contents.packageJsonContent)||S3(i.readFile(h)),T=y==null?void 0:y.imports;if(!T)return;const A=Qy(r,o);return(u=Xe(Hh(T),R=>{if(!uo(R,"#")||R==="#"||uo(R,"#/"))return;const M=Al(R,"/")?1:R.includes("*")?2:0;return kF(r,i,e,p,R,T[R],A,M,!0)}))==null?void 0:u.moduleFileToTry}function CVe(e,t,r,i,o,s){const l=MIe(t,e,i);if(l===void 0)return;const u=MIe(r,e,i),p=Do(u,m=>Wt(l,y=>AE(vm(m,y,i)))),h=XB(p,_k);if(h)return xw(h,o,s)}function kse({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,p,h){if(!s.fileExists||!s.readFile)return;const m=J3(e);if(!m)return;const T=Iw(u,l,o).getAllowedEndingsInPreferredOrder();let A=e,R=!1;if(!p){let Q=m.packageRootIndex,V;for(;;){const{moduleFileToTry:se,packageRootPath:G,blockedByExports:ne,verbatimFromExports:he}=K(Q);if(pd(l)!==1){if(ne)return;if(he)return se}if(G){A=G,R=!0;break}if(V||(V=se),Q=e.indexOf(ol,Q+1),Q===-1){A=xw(V,T,l,s);break}}}if(t&&!R)return;const M=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),C=r(A.substring(0,m.topLevelNodeModulesIndex));if(!(uo(i,C)||M&&uo(r(M),C)))return;const O=A.substring(m.topLevelPackageNameIndex+1),U=wP(O);return pd(l)===1&&U===O?void 0:U;function K(Q){var V,se;const G=e.substring(0,Q),ne=$r(G,"package.json");let he=e,ye=!1;const Y=(se=(V=s.getPackageJsonInfoCache)==null?void 0:V.call(s))==null?void 0:se.getPackageJsonInfo(ne);if(IF(Y)||Y===void 0&&s.fileExists(ne)){const X=(Y==null?void 0:Y.contents.packageJsonContent)||S3(s.readFile(ne)),oe=h||o.impliedNodeFormat;if(tW(l)){const de=G.substring(m.topLevelPackageNameIndex+1),ie=wP(de),ve=Qy(l,oe),Le=X!=null&&X.exports?DVe(l,s,e,G,ie,X.exports,ve):void 0;if(Le)return{...Le,verbatimFromExports:!0};if(X!=null&&X.exports)return{moduleFileToTry:e,blockedByExports:!0}}const pe=X!=null&&X.typesVersions?TF(X.typesVersions):void 0;if(pe){const de=e.slice(G.length+1),ie=PIe(de,pe.paths,T,s,l);ie===void 0?ye=!0:he=$r(G,ie)}const Ce=(X==null?void 0:X.typings)||(X==null?void 0:X.types)||(X==null?void 0:X.main)||"index.js";if(Mo(Ce)&&!(ye&&_U(G3(pe.paths),Ce))){const de=il(Ce,G,r),ie=r(he);if(Ad(de)===Ad(ie))return{packageRootPath:G,moduleFileToTry:he};if((X==null?void 0:X.type)!=="module"&&!Sc(ie,Rk)&&uo(ie,de)&&ai(ie)===Qb(de)&&Ad(ic(ie))==="index")return{packageRootPath:G,moduleFileToTry:he}}}else{const X=r(he.substring(m.packageRootIndex+1));if(X==="index.d.ts"||X==="index.js"||X==="index.ts"||X==="index.tsx")return{moduleFileToTry:he,packageRootPath:G}}return{moduleFileToTry:he}}}function PVe(e,t){if(!e.fileExists)return;const r=Cs(JC({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of r){const o=t+i;if(e.fileExists(o))return o}}function MIe(e,t,r){return eo(t,i=>{const o=kIe(e,i,r);return o!==void 0&&wIe(o)?void 0:o})}function xw(e,t,r,i){if(Sc(e,[".json",".mjs",".cjs"]))return e;const o=Ad(e);if(e===o)return e;const s=t.indexOf(2),l=t.indexOf(3);if(Sc(e,[".mts",".cts"])&&l!==-1&&l<s)return e;if(Sc(e,[".d.mts",".mts",".d.cts",".cts"]))return o+wse(e,r);if(!Sc(e,[".d.ts"])&&Sc(e,[".ts"])&&e.includes(".d."))return LIe(e);switch(t[0]){case 0:const u=kx(o,"/index");return i&&u!==o&&PVe(i,u)?o:u;case 1:return o;case 2:return o+wse(e,r);case 3:if(Su(e)){const p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+wse(e,r)}return e;default:return N.assertNever(t[0])}}function LIe(e){const t=ic(e);if(!Al(e,".ts")||!t.includes(".d.")||Sc(t,[".d.ts"]))return;const r=hk(e,".ts"),i=r.substring(r.lastIndexOf("."));return r.substring(0,r.indexOf(".d."))+i}function wse(e,t){return Ose(e,t)??N.fail(`Extension ${XC(e)} is unsupported:: FileName:: ${e}`)}function Ose(e,t){const r=Fg(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 kIe(e,t,r){const i=yA(t,e,t,r,!1);return dp(i)?void 0:i}function wIe(e){return uo(e,"..")}var Wse,Fse=I({"src/compiler/moduleSpecifiers.ts"(){ra(),Wse=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(Wse||{})}}),l1={};ee(l1,{RelativePreference:()=>Wse,countPathComponents:()=>LF,forEachFileNameOfModule:()=>DIe,getModuleSpecifier:()=>MF,getModuleSpecifierPreferences:()=>Iw,getModuleSpecifiers:()=>AIe,getModuleSpecifiersWithCacheInfo:()=>IIe,getNodeModulesPackageName:()=>TVe,tryGetJSExtensionForFile:()=>Ose,tryGetModuleSpecifiersFromCache:()=>AVe,tryGetRealFileNameForNonJsDeclarationFileName:()=>LIe,updateModuleSpecifier:()=>SVe});var zse=I({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){Fse()}});function MVe(){this.flags=0}function as(e){return e.id||(e.id=Vse,Vse++),e.id}function Sa(e){return e.id||(e.id=Gse,Gse++),e.id}function Aq(e,t){const r=jg(e);return r===1||t&&r===2}function Bse(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,u=su.getSymbolConstructor(),p=su.getTypeConstructor(),h=su.getSignatureConstructor(),m=0,y=0,T=0,A=0,R=0,M=0,C,O,U=!1,K=ca(),Q=[1],V=e.getCompilerOptions(),se=os(V),G=wu(V),ne=!!V.experimentalDecorators,he=lP(V),ye=doe(V),Y=MS(V),X=dd(V,"strictNullChecks"),oe=dd(V,"strictFunctionTypes"),pe=dd(V,"strictBindCallApply"),Ce=dd(V,"strictPropertyInitialization"),de=dd(V,"noImplicitAny"),ie=dd(V,"noImplicitThis"),ve=dd(V,"useUnknownInCatchVariables"),Le=!!V.keyofStringsOnly,Ue=Le?1:0,Ee=V.suppressExcessPropertyErrors?0:8192,De=V.exactOptionalPropertyTypes,Me=u_t(),We=jvt(),At=q_(),Se=ca(),je=Ka(4,"undefined");je.declarations=[];var ot=Ka(1536,"globalThis",8);ot.exports=Se,ot.declarations=[],Se.set(ot.escapedName,ot);var Bt=Ka(4,"arguments"),vt=Ka(4,"require"),$e=V.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",It=!V.verbatimModuleSyntax||!!V.importsNotUsedAsValues,tn,rn,Mn=0,$n,gn=0;const Qt={getNodeCount:()=>rd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>rd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>rd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,y),getTypeCount:()=>m,getInstantiationCount:()=>T,getRelationCacheSizes:()=>({assignable:qd.size,identity:op.size,subtype:Nh.size,strictSubtype:wf.size}),isUndefinedSymbol:n=>n===je,isArgumentsSymbol:n=>n===Bt,isUnknownSymbol:n=>n===ft,getMergedSymbol:rs,getDiagnostics:rFe,getGlobalDiagnostics:ovt,getRecursionIdentity:YZ,getUnmatchedProperties:hve,getTypeOfSymbolAtLocation:(n,a)=>{const c=No(a);return c?Qdt(n,c):_t},getTypeOfSymbol:dr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const c=No(n,Ao);return c===void 0?N.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(N.assert(pp(c,c.parent)),NM(c,_l(a)))},getDeclaredTypeOfSymbol:Zs,getPropertiesOfType:gs,getPropertyOfType:(n,a)=>va(n,_l(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{const d=No(c);if(!d)return;const _=_l(a),v=Ree(_,d);return v?tye(n,v):void 0},getTypeOfPropertyOfType:(n,a)=>Ke(n,_l(a)),getIndexInfoOfType:(n,a)=>Sg(n,a===0?ke:Tt),getIndexInfosOfType:gd,getIndexInfosOfIndexSymbol:uge,getSignaturesOfType:Xo,getIndexTypeOfType:(n,a)=>iE(n,a===0?ke:Tt),getIndexType:n=>X_(n),getBaseTypes:Cp,getBaseTypeOfLiteralType:_v,getWidenedType:Kp,getTypeFromTypeNode:n=>{const a=No(n,ji);return a?Ti(a):_t},getParameterType:h_,getParameterIdentifierInfoAtPosition:Dmt,getPromisedTypeOfPromise:$8,getAwaitedType:n=>oA(n),getReturnTypeOfSignature:ps,isNullableType:H9,getNullableType:N9,getNonNullableType:hv,getNonOptionalType:eee,getTypeArguments:Js,typeToTypeNode:At.typeToTypeNode,indexInfoToIndexSignatureDeclaration:At.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:At.signatureToSignatureDeclaration,symbolToEntityName:At.symbolToEntityName,symbolToExpression:At.symbolToExpression,symbolToNode:At.symbolToNode,symbolToTypeParameterDeclarations:At.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:At.symbolToParameterDeclaration,typeParameterToDeclaration:At.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const c=No(n);return c?avt(c,a):[]},getSymbolAtLocation:n=>{const a=No(n);return a?Vm(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=No(n);return a?mvt(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=No(n);return a?_vt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=No(n,Ku);return a?hvt(a):void 0},getExportSymbolOfSymbol(n){return rs(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=No(n);return a?gx(a):_t},getTypeOfAssignmentPattern:n=>{const a=No(n,mC);return a&&rte(a)||_t},getPropertySymbolOfDestructuringAssignment:n=>{const a=No(n,Ve);return a?gvt(a):void 0},signatureToString:(n,a,c,d)=>kh(n,No(a),c,d),typeToString:(n,a,c)=>Hn(n,No(a),c),symbolToString:(n,a,c,d)=>Si(n,No(a),c,d),typePredicateToString:(n,a,c)=>wh(n,No(a),c),writeSignature:(n,a,c,d,_)=>kh(n,No(a),c,d,_),writeType:(n,a,c,d)=>Hn(n,No(a),c,d),writeSymbol:(n,a,c,d,_)=>Si(n,No(a),c,d,_),writeTypePredicate:(n,a,c,d)=>wh(n,No(a),c,d),getAugmentedPropertiesOfType:nbe,getRootSymbols:dFe,getSymbolOfExpando:Oee,getContextualType:(n,a)=>{const c=No(n,yt);if(c)return a&4?so(c,()=>Yd(c,a)):Yd(c,a)},getContextualTypeForObjectLiteralElement:n=>{const a=No(n,Mg);return a?Gve(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const c=No(n,NE);return c&&Bve(c,a)},getContextualTypeForJsxAttribute:n=>{const a=No(n,y4);return a&&I4e(a,void 0)},isContextSensitive:Vf,getTypeOfPropertyOfContextualType:fE,getFullyQualifiedName:Hp,getResolvedSignature:(n,a,c)=>Wi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Yt,getResolvedSignatureForSignatureHelp:(n,a,c)=>vi(n,()=>Wi(n,a,c,16)),getExpandedParameters:xOe,hasEffectiveRestParameter:jh,containsArgumentsReference:sge,getConstantValue:n=>{const a=No(n,hFe);return a?rbe(a):void 0},isValidPropertyAccess:(n,a)=>{const c=No(n,fre);return!!c&&Wft(c,_l(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{const d=No(n,Fr);return!!d&&t3e(d,a,c)},getSignatureFromDeclaration:n=>{const a=No(n,ea);return a?dm(a):void 0},isImplementationOfOverload:n=>{const a=No(n,ea);return a?mFe(a):void 0},getImmediateAliasedSymbol:qve,getAliasedSymbol:Oc,getEmitResolver:ny,getExportsOfModule:NT,getExportsAndPropertiesOfModule:oN,forEachExportAndPropertyOfModule:aN,getSymbolWalker:Mse(blt,Gf,ps,Cp,p_,dr,Bm,Md,Gp,Js),getAmbientModules:Myt,getJsxIntrinsicTagNamesAt:hft,isOptionalParameter:n=>{const a=No(n,Ao);return a?S8(a):!1},tryGetMemberInModuleExports:(n,a)=>CT(_l(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>sN(_l(n),a),tryFindAmbientModule:n=>SZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>SZ(n,!1),getApparentType:Ld,getUnionType:ei,isTypeAssignableTo:ba,createAnonymousType:Ls,createSignature:Eg,createSymbol:Ka,createIndexInfo:Bh,getAnyType:()=>j,getStringType:()=>ke,getStringLiteralType:Xd,getNumberType:()=>Tt,getNumberLiteralType:m_,getBigIntType:()=>kt,createPromiseType:nB,createArrayType:Vu,getElementTypeOfArrayType:D9,getBooleanType:()=>Pi,getFalseType:n=>n?en:En,getTrueType:n=>n?Gn:qn,getVoidType:()=>ir,getUndefinedType:()=>Oe,getNullType:()=>fe,getESSymbolType:()=>xi,getNeverType:()=>Vr,getOptionalType:()=>J,getPromiseType:()=>p9(!1),getPromiseLikeType:()=>f8e(!1),getAsyncIterableType:()=>{const n=MZ(!1);if(n!==wo)return n},isSymbolAccessible:wi,isArrayType:Uf,isTupleType:Wa,isArrayLikeType:my,isEmptyAnonymousObjectType:Vh,isTypeInvalidDueToUnionDiscriminant:tlt,getExactOptionalProperties:Dut,getAllPossiblePropertiesOfTypes:nlt,getSuggestedSymbolForNonexistentProperty:iye,getSuggestionForNonexistentProperty:oye,getSuggestedSymbolForNonexistentJSXAttribute:Z4e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>aye(n,_l(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Lft(n,_l(a),c),getSuggestedSymbolForNonexistentModule:Nee,getSuggestionForNonexistentExport:kft,getSuggestedSymbolForNonexistentClassMember:Q4e,getBaseConstraintOfType:Gu,getDefaultFromTypeParameter:n=>n&&n.flags&262144?GT(n):void 0,resolveName(n,a,c,d){return yl(a,_l(n),c,void 0,void 0,!1,d)},getJsxNamespace:n=>Vi(B0(n)),getJsxFragmentFactory:n=>{const a=obe(n);return a&&Vi(Gp(a).escapedText)},getAccessibleSymbolChain:yb,getTypePredicateOfSignature:Gf,resolveExternalModuleName:n=>{const a=No(n,yt);return a&&hd(a,a,!0)},resolveExternalModuleSymbol:Rp,tryGetThisTypeAt:(n,a,c)=>{const d=No(n);return d&&Ove(d,a,c)},getTypeArgumentConstraint:n=>{const a=No(n,ji);return a&&V_t(a)},getSuggestionDiagnostics:(n,a)=>{const c=No(n,$i)||N.fail("Could not determine parsed source file.");if(YC(c,V,e))return et;let d;try{return i=a,ebe(c),N.assert(!!(Zr(c).flags&1)),d=qr(d,pT.getDiagnostics(c.fileName)),yWe(nFe(c),(_,v,x)=>{!eR(_)&&!tFe(v,!!(_.flags&33554432))&&(d||(d=[])).push({...x,category:2})}),d||et}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Qt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Lr,isDeclarationVisible:l_,isPropertyAccessible:lye,getTypeOnlyAliasDeclaration:Of,getMemberOverrideModifierStatus:bgt,isTypeParameterPossiblyReferenced:y9,typeHasCallOrConstructSignatures:ite};function Yt(n,a){const c=new Set,d=[];so(a,()=>Wi(n,d,void 0,0));for(const _ of d)c.add(_);d.length=0,vi(a,()=>Wi(n,d,void 0,0));for(const _ of d)c.add(_);return zo(c)}function vi(n,a){if(n=Vn(n,zV),n){const c=[],d=[];for(;n;){const v=Zr(n);if(c.push([v,v.resolvedSignature]),v.resolvedSignature=void 0,qE(n)){const x=Ki(Ir(n)),k=x.type;d.push([x,k]),x.type=void 0}n=Vn(n.parent,zV)}const _=a();for(const[v,x]of c)v.resolvedSignature=x;for(const[v,x]of d)v.type=x;return _}return a()}function so(n,a){const c=Vn(n,NE);if(c){let _=n;do Zr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}U=!0;const d=vi(n,a);if(U=!1,c){let _=n;do Zr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return d}function Wi(n,a,c,d){const _=No(n,NE);tn=c;const v=_?PN(_,a,d):void 0;return tn=void 0,v}var Co=new Map,Ln=new Map,Ci=new Map,Ar=new Map,sn=new Map,tt=new Map,zt=new Map,Dn=new Map,ci=new Map,yi=new Map,Qi=new Map,Io=new Map,fa=new Map,ka=new Map,Tn=new Map,wn=[],He=new Map,mt=new Set,ft=Ka(4,"unknown"),Ct=Ka(0,"__resolving__"),le=new Map,Fe=new Map,pt=new Set,j=cc(1,"any"),it=cc(1,"any",262144,"auto"),Rt=cc(1,"any",void 0,"wildcard"),Ye=cc(1,"any",void 0,"blocked string"),_t=cc(1,"error"),Gt=cc(1,"unresolved"),yn=cc(1,"any",65536,"non-inferrable"),fn=cc(1,"intrinsic"),hn=cc(2,"unknown"),q=cc(2,"unknown",void 0,"non-null"),Oe=cc(32768,"undefined"),Lt=X?Oe:cc(32768,"undefined",65536,"widening"),L=cc(32768,"undefined",void 0,"missing"),me=De?L:Oe,J=cc(32768,"undefined",void 0,"optional"),fe=cc(65536,"null"),Be=X?fe:cc(65536,"null",65536,"widening"),ke=cc(4,"string"),Tt=cc(8,"number"),kt=cc(64,"bigint"),en=cc(512,"false",void 0,"fresh"),En=cc(512,"false"),Gn=cc(512,"true",void 0,"fresh"),qn=cc(512,"true");Gn.regularType=qn,Gn.freshType=Gn,qn.regularType=qn,qn.freshType=Gn,en.regularType=En,en.freshType=en,En.regularType=En,En.freshType=en;var Pi=ei([En,qn]),xi=cc(4096,"symbol"),ir=cc(16384,"void"),Vr=cc(131072,"never"),vo=cc(131072,"never",262144,"silent"),Mi=cc(131072,"never",void 0,"implicit"),Ri=cc(131072,"never",void 0,"unreachable"),Jr=cc(67108864,"object"),xo=ei([ke,Tt]),Nn=ei([ke,Tt,xi]),Fs=Le?ke:Nn,Ql=ei([Tt,kt]),ko=ei([ke,Tt,Pi,kt,fe,Oe]),cs=jT(["",""],[Tt]),Vs=v9(n=>n.flags&262144?tut(n):n,()=>"(restrictive mapper)"),gl=v9(n=>n.flags&262144?Rt:n,()=>"(permissive mapper)"),cu=cc(131072,"never",void 0,"unique literal"),ho=v9(n=>n.flags&262144?cu:n,()=>"(unique literal mapper)"),da,uu=v9(n=>(da&&(n===Tp||n===Ms||n===xc)&&da(!0),n),()=>"(unmeasurable reporter)"),Ts=v9(n=>(da&&(n===Tp||n===Ms||n===xc)&&da(!1),n),()=>"(unreliable reporter)"),Ca=Ls(void 0,K,et,et,et),ml=Ls(void 0,K,et,et,et);ml.objectFlags|=2048;var Lf=Ka(2048,"__type");Lf.members=ca();var lc=Ls(Lf,K,et,et,et),Nl=Ls(void 0,K,et,et,et),cl=X?ei([Oe,fe,Nl]):hn,wo=Ls(void 0,K,et,et,et);wo.instantiations=new Map;var nn=Ls(void 0,K,et,et,et);nn.objectFlags|=262144;var js=Ls(void 0,K,et,et,et),tu=Ls(void 0,K,et,et,et),du=Ls(void 0,K,et,et,et),Tp=gf(),Ms=gf();Ms.constraint=Tp;var xc=gf(),ue=gf(),Z=gf();Z.constraint=ue;var we=u9(1,"<<unresolved>>",0,j),Et=Eg(void 0,void 0,void 0,et,j,void 0,0,0),un=Eg(void 0,void 0,void 0,et,_t,void 0,0,0),Er=Eg(void 0,void 0,void 0,et,j,void 0,0,0),vr=Eg(void 0,void 0,void 0,et,vo,void 0,0,0),jr=Bh(Tt,ke,!0),Di=new Map,Mr={get yieldType(){return N.fail("Not supported")},get returnType(){return N.fail("Not supported")},get nextType(){return N.fail("Not supported")}},Yo=gy(j,j,j),Sl=gy(j,j,hn),jc=gy(Vr,j,Oe),Us={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:wlt,getGlobalIterableType:MZ,getGlobalIterableIteratorType:Olt,getGlobalGeneratorType:Wlt,resolveIterationType:(n,a)=>oA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},vc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Flt,getGlobalIterableType:Sge,getGlobalIterableIteratorType:zlt,getGlobalGeneratorType:Blt,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Es,Uc=new Map,ip=[],wc,sm,_d,Pe,Ot,Xn,yo,$o,na,Zl,yc,ul,vl,Gl,ec,Hc,df,jd,Nd,kf,G_,Dh,qg,Bu,Jg,Ap,dg,Ud,te,ct,Ft,Vt,W,Te,st,qt,rr,ii,Yr,oo,wa,Oa,Ol,pu,Rc,Ip,Hd,ab,us,Pm,Mm,Ui,Kg,ey,Lm,b1,E1,pf=new Map,V_=0,ff=0,Xg=0,ze=!1,Ze=0,Mt,jt,bn,Qn=[],vn=[],Zn=[],_i=0,cr=[],ni=[],fr=0,Qo=Xd(""),Ja=m_(0),Zu=WZ({negative:!1,base10Value:"0"}),fu=[],Yg=[],O0=[],zI=0,W0=!1,qD=0,JD=10,KD=[],uT=[],S1=[],BI=[],XD=[],GI=[],VI=[],jI=[],UI=[],dT=[],HI=[],T1=[],A1=[],sb=[],lb=[],pg=[],F0=[],ts=ER(),pT=ER(),YD=Lh(),z0,$g,Nh=new Map,wf=new Map,qd=new Map,xp=new Map,op=new Map,ty=new Map,fT=ca();fT.set(je.escapedName,je);var $D=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",V.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Uvt(),Qt;function qI(n){return n?Tn.get(n):void 0}function cb(n,a){return n&&Tn.set(n,a),a}function B0(n){if(n){const a=Un(n);if(a)if(lI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const c=a.pragmas.get("jsxfrag");if(c){const _=To(c)?c[0]:c;if(a.localJsxFragmentFactory=pI(_.arguments.factory,se),nt(a.localJsxFragmentFactory,bc,Qd),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Gp(a.localJsxFragmentFactory).escapedText}const d=obe(n);if(d)return a.localJsxFragmentFactory=d,a.localJsxFragmentNamespace=Gp(d).escapedText}else{const c=JI(a);if(c)return a.localJsxNamespace=c}}return z0||(z0="React",V.jsxFactory?($g=pI(V.jsxFactory,se),nt($g,bc),$g&&(z0=Gp($g).escapedText)):V.reactNamespace&&(z0=_l(V.reactNamespace))),$g||($g=w.createQualifiedName(w.createIdentifier(Vi(z0)),"createElement")),z0}function JI(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const c=To(a)?a[0]:a;if(n.localJsxFactory=pI(c.arguments.factory,se),nt(n.localJsxFactory,bc,Qd),n.localJsxFactory)return n.localJsxNamespace=Gp(n.localJsxFactory).escapedText}}function bc(n){return hh(n,-1,-1),xn(n,bc,void 0)}function ny(n,a){return rFe(n,a),We}function KI(n,a,...c){const d=n?kr(n,a,...c):Ul(a,...c),_=ts.lookup(d);return _||(ts.add(d),d)}function r_(n,a,c,...d){const _=qe(a,c,...d);return _.skippedOn=n,_}function mT(n,a,...c){return n?kr(n,a,...c):Ul(a,...c)}function qe(n,a,...c){const d=mT(n,a,...c);return ts.add(d),d}function i_(n,a){n?ts.add(a):pT.add({...a,category:2})}function mu(n,a,c,...d){if(a.pos<0||a.end<0){if(!n)return;const _=Un(a);i_(n,"message"in c?$c(_,0,0,c,...d):cj(_,c));return}i_(n,"message"in c?kr(a,c,...d):Lg(Un(a),a,c))}function G0(n,a,c,...d){const _=qe(n,c,...d);if(a){const v=kr(n,f.Did_you_forget_to_use_await);Ma(_,v)}return _}function XI(n,a){const c=Array.isArray(n)?Xe(n,IV):IV(n);return c&&Ma(a,kr(c,f.The_declaration_was_marked_as_deprecated_here)),pT.add(a),a}function ub(n){const a=Cd(n);return a&&Ne(n.declarations)>1?a.flags&64?bt(n.declarations,ry):Jn(n.declarations,ry):!!n.valueDeclaration&&ry(n.valueDeclaration)||Ne(n.declarations)&&Jn(n.declarations,ry)}function ry(n){return!!(eS(n)&536870912)}function iy(n,a,c){const d=kr(n,f._0_is_deprecated,c);return XI(a,d)}function DM(n,a,c,d){const _=c?kr(n,f.The_signature_0_of_1_is_deprecated,d,c):kr(n,f._0_is_deprecated,d);return XI(a,_)}function Ka(n,a,c){y++;const d=new u(n|33554432,a);return d.links=new Hse,d.links.checkFlags=c||0,d}function o_(n,a){const c=Ka(1,n);return c.links.type=a,c}function _T(n,a){const c=Ka(4,n);return c.links.type=a,c}function hT(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 V0(n,a){a.mergeId||(a.mergeId=jse,jse++),KD[a.mergeId]=n}function gT(n){const a=Ka(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)),V0(a,n),a}function lm(n,a,c=!1){if(!(n.flags&hT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const _=Vl(n);if(_===ft)return a;n=gT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&jL(n,a.valueDeclaration),qr(n.declarations,a.declarations),a.members&&(n.members||(n.members=ca()),a_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=ca()),a_(n.exports,a.exports,c)),c||V0(n,a)}else if(n.flags&1024)n!==ot&&qe(a.declarations&&Lo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Si(n));else{const _=!!(n.flags&384||a.flags&384),v=!!(n.flags&2||a.flags&2),x=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:v?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,k=a.declarations&&Un(a.declarations[0]),F=n.declarations&&Un(n.declarations[0]),H=bL(k,V.checkJs),re=bL(F,V.checkJs),be=Si(a);if(k&&F&&Es&&!_&&k!==F){const ge=Dg(k.path,F.path)===-1?k:F,Je=ge===k?F:k,gt=dA(Es,`${ge.path}|${Je.path}`,()=>({firstFile:ge,secondFile:Je,conflictingSymbols:new Map})),Dt=dA(gt.conflictingSymbols,be,()=>({isBlockScoped:v,firstFileLocations:[],secondFileLocations:[]}));H||d(Dt.firstFileLocations,a),re||d(Dt.secondFileLocations,n)}else H||cm(a,x,be,n),re||cm(n,x,be,a)}return n;function d(_,v){if(v.declarations)for(const x of v.declarations)Ef(_,x)}}function cm(n,a,c,d){Xe(n.declarations,_=>{Qg(_,a,c,d.declarations)})}function Qg(n,a,c,d){const _=(u0(n,!1)?yj(n):Lo(n))||n,v=KI(_,a,c);for(const x of d||et){const k=(u0(x,!1)?yj(x):Lo(x))||x;if(k===_)continue;v.relatedInformation=v.relatedInformation||[];const F=kr(k,f._0_was_also_declared_here,c),H=kr(k,f.and_here);Ne(v.relatedInformation)>=5||bt(v.relatedInformation,re=>HC(re,H)===0||HC(re,F)===0)||Ma(v,Ne(v.relatedInformation)?H:F)}}function YI(n,a){if(!(n!=null&&n.size))return a;if(!(a!=null&&a.size))return n;const c=ca();return a_(c,n),a_(c,a),c}function a_(n,a,c=!1){a.forEach((d,_)=>{const v=n.get(_);n.set(_,v?lm(v,d,c):rs(d))})}function QD(n){var a,c,d;const _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){N.assert(_.symbol.declarations.length>1);return}if(A_(_))a_(Se,_.symbol.exports);else{const v=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let x=nv(n,n,v,!0);if(!x)return;if(x=Rp(x),x.flags&1920)if(bt(sm,k=>x===k.symbol)){const k=lm(_.symbol,x,!0);_d||(_d=new Map),_d.set(n.text,k)}else{if((c=x.exports)!=null&&c.get("__export")&&((d=_.symbol.exports)!=null&&d.size)){const k=Uhe(x,"resolvedExports");for(const[F,H]of zo(_.symbol.exports.entries()))k.has(F)&&!x.exports.has(F)&&lm(k.get(F),H)}lm(x,_.symbol)}else qe(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function I1(n,a,c){a.forEach((_,v)=>{const x=n.get(v);x?Xe(x.declarations,d(Vi(v),c)):n.set(v,_)});function d(_,v){return x=>ts.add(kr(x,v,_))}}function Ki(n){if(n.flags&33554432)return n.links;const a=Sa(n);return uT[a]??(uT[a]=new Hse)}function Zr(n){const a=as(n);return S1[a]||(S1[a]=new MVe)}function Ch(n){return n.kind===312&&!Fp(n)}function Jd(n,a,c){if(c){const d=rs(n.get(a));if(d&&(N.assert((xl(d)&1)===0,"Should never get an instantiated symbol here."),d.flags&c||d.flags&2097152&&Au(d)&c))return d}}function NM(n,a){const c=n.parent,d=n.parent.parent,_=Jd(c.locals,a,111551),v=Jd(Cb(d.symbol),a,111551);return _&&v?[_,v]:N.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Zg(n,a){const c=Un(n),d=Un(a),_=mh(n);if(c!==d){if(G&&(c.externalModuleIndicator||d.externalModuleIndicator)||!Ps(V)||DS(a)||n.flags&33554432||x(a,n))return!0;const F=e.getSourceFiles();return F.indexOf(c)<=F.indexOf(d)}if(a.flags&16777216||DS(a)||Tve(a))return!0;if(n.pos<=a.pos&&!(qo(n)&&PL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){const F=f0(a,208);return F?Vn(F,$a)!==Vn(n,$a)||n.pos<F.pos:Zg(f0(n,260),a)}else{if(n.kind===260)return!v(n,a);if(di(n))return!Vn(a,F=>Za(F)&&F.parent.parent===n);if(qo(n))return!k(n,a,!1);if(pp(n,n.parent))return!(ye&&au(n)===au(a)&&x(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(x(a,n))return ye&&au(n)&&(qo(n)||pp(n,n.parent))?!k(n,a,!0):!0;return!1;function v(F,H){switch(F.parent.parent.kind){case 243:case 248:case 250:if(R1(H,F,_))return!0;break}const re=F.parent.parent;return Yx(re)&&R1(H,re.expression,_)}function x(F,H){return!!Vn(F,re=>{if(re===_)return"quit";if(ea(re))return!0;if(Rl(re))return H.pos<F.pos;const be=ri(re.parent,qo);if(be&&be.initializer===re){if(aa(re.parent)){if(H.kind===174)return!0;if(qo(H)&&au(F)===au(H)){const Je=H.name;if(Ve(Je)||qi(Je)){const gt=dr(Ir(H)),Dt=mn(H.parent.members,Rl);if(xgt(Je,gt,Dt,H.parent.pos,re.pos))return!0}}}else if(!(H.kind===172&&!aa(H))||au(F)!==au(H))return!0}return!1})}function k(F,H,re){return H.end>F.end?!1:Vn(H,ge=>{if(ge===F)return"quit";switch(ge.kind){case 219:return!0;case 172:return re&&(qo(F)&&ge.parent===F.parent||pp(F,F.parent)&&ge.parent===F.parent.parent)?"quit":!0;case 241:switch(ge.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function CM(n,a,c){const d=os(V),_=a;if(Ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&d>=2){const k=Zr(_);return k.declarationRequiresScopeChange===void 0&&(k.declarationRequiresScopeChange=Xe(_.parameters,v)||!1),!k.declarationRequiresScopeChange}return!1;function v(k){return x(k.name)||!!k.initializer&&x(k.initializer)}function x(k){switch(k.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return x(k.name);case 172:return mc(k)?!ye:x(k.name);default:return NV(k)||qu(k)?d<7:$a(k)&&k.dotDotDotToken&&im(k.parent)?d<4:ji(k)?!1:Uo(k,x)||!1}}}function db(n){return mS(n)&&Pg(n.type)||TP(n)&&Pg(n.typeExpression)}function yl(n,a,c,d,_,v,x=!1,k=!0){return jp(n,a,c,d,_,v,x,k,Jd)}function jp(n,a,c,d,_,v,x,k,F){var H,re,be;const ge=n;let Je,gt,Dt,an,cn,ar=!1;const Wn=n;let ln,Bn=!1;e:for(;n;){if(a==="const"&&db(n))return;if(_L(n)&&gt&&n.name===gt&&(gt=n,n=n.parent),dh(n)&&n.locals&&!Ch(n)&&(Je=F(n.locals,a,c))){let tr=!0;if(ea(n)&&gt&&gt!==n.body?(c&Je.flags&788968&&gt.kind!==327&&(tr=Je.flags&262144?gt===n.type||gt.kind===169||gt.kind===348||gt.kind===349||gt.kind===168:!1),c&Je.flags&3&&(CM(Je,n,gt)?tr=!1:Je.flags&1&&(tr=gt.kind===169||gt===n.type&&!!Vn(Je.valueDeclaration,Ao)))):n.kind===194&&(tr=gt===n.trueType),tr)break e;Je=void 0}switch(ar=ar||um(n,gt),n.kind){case 312:if(!Fp(n))break;Bn=!0;case 267:const tr=((H=Ir(n))==null?void 0:H.exports)||K;if(n.kind===312||Xl(n)&&n.flags&33554432&&!A_(n)){if(Je=tr.get("default")){const Ro=xR(Je);if(Ro&&Je.flags&c&&Ro.escapedName===a)break e;Je=void 0}const nr=tr.get(a);if(nr&&nr.flags===2097152&&(pl(nr,281)||pl(nr,280)))break}if(a!=="default"&&(Je=F(tr,a,c&2623475)))if($i(n)&&n.commonJsModuleIndicator&&!((re=Je.declarations)!=null&&re.some($f)))Je=void 0;else break e;break;case 266:if(Je=F(((be=Ir(n))==null?void 0:be.exports)||K,a,c&8)){d&&rm(V)&&!(n.flags&33554432)&&Un(n)!==Un(Je.valueDeclaration)&&qe(Wn,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Vi(a),$e,`${Vi(_f(n).escapedName)}.${Vi(a)}`);break e}break;case 172:if(!aa(n)){const nr=rv(n.parent);nr&&nr.locals&&F(nr.locals,a,c&111551)&&(N.assertNode(n,qo),an=n)}break;case 263:case 231:case 264:if(Je=F(Ir(n).members||K,a,c&788968)){if(!ev(Je,n)){Je=void 0;break}if(gt&&aa(gt)){d&&qe(Wn,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Qc(n)&&c&32){const nr=n.name;if(nr&&a===nr.escapedText){Je=n.symbol;break e}}break;case 233:if(gt===n.expression&&n.parent.token===96){const nr=n.parent.parent;if(di(nr)&&(Je=F(Ir(nr).members,a,c&788968))){d&&qe(Wn,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(ln=n.parent.parent,(di(ln)||ln.kind===264)&&(Je=F(Ir(ln).members,a,c&788968))){d&&qe(Wn,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(os(V)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a==="arguments"){Je=Bt;break e}break;case 218:if(c&3&&a==="arguments"){Je=Bt;break e}if(c&16){const nr=n.name;if(nr&&a===nr.escapedText){Je=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(Yc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:const Kn=hR(n);Kn&&(n=Kn.parent);break;case 169:gt&&(gt===n.initializer||gt===n.name&&ta(gt))&&(cn||(cn=n));break;case 208:gt&&(gt===n.initializer||gt===n.name&&ta(gt))&&zE(n)&&!cn&&(cn=n);break;case 195:if(c&262144){const nr=n.typeParameter.name;if(nr&&a===nr.escapedText){Je=n.typeParameter.symbol;break e}}break;case 281:gt&&gt===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}pb(n)&&(Dt=n),gt=n,n=om(n)?i3(n)||n.parent:(e_(n)||$W(n))&&d0(n)||n.parent}if(v&&Je&&(!Dt||Je!==Dt.symbol)&&(Je.isReferenced|=c),!Je){if(gt&&(N.assertNode(gt,$i),gt.commonJsModuleIndicator&&a==="exports"&&c&gt.symbol.flags))return gt.symbol;x||(Je=F(Se,a,c))}if(!Je&&ge&&lr(ge)&&ge.parent&&Td(ge.parent,!1))return vt;function zn(){return an&&!ye?(qe(Wn,Wn&&an.type&&eL(an.type,Wn.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,xs(an.name),km(_)),!0):!1}if(Je){if(d&&zn())return}else{d&&r(()=>{if(!Wn||Wn.parent.kind!==331&&!x1(Wn,a,_)&&!zn()&&!vT(Wn)&&!$I(Wn,a,c)&&!oy(Wn,a)&&!yT(Wn,a,c)&&!ZD(Wn,a,c)&&!_g(Wn,a,c)){let tr,Kn;if(_&&(Kn=Pft(_),Kn&&qe(Wn,d,km(_),Kn)),!Kn&&k&&qD<JD&&(tr=aye(ge,a,c),(tr==null?void 0:tr.valueDeclaration)&&ku(tr.valueDeclaration)&&A_(tr.valueDeclaration)&&(tr=void 0),tr)){const Ro=Si(tr),Eo=rye(ge,tr,!1),Bo=c===1920||_&&typeof _!="string"&&Ys(_)?f.Cannot_find_namespace_0_Did_you_mean_1:Eo?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,_o=mT(Wn,Bo,km(_),Ro);i_(!Eo,_o),tr.valueDeclaration&&Ma(_o,kr(tr.valueDeclaration,f._0_is_declared_here,Ro))}!tr&&!Kn&&_&&qe(Wn,d,km(_)),qD++}});return}return d&&r(()=>{var tr;if(Wn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){const Kn=hf(Je);(Kn.flags&2||Kn.flags&32||Kn.flags&384)&&Qs(Kn,Wn)}if(Je&&Bn&&(c&111551)===111551&&!(ge.flags&16777216)){const Kn=rs(Je);Ne(Kn.declarations)&&Jn(Kn.declarations,nr=>qk(nr)||$i(nr)&&!!nr.symbol.globalExports)&&mu(!V.allowUmdGlobalAccess,Wn,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Vi(a))}if(Je&&cn&&!ar&&(c&111551)===111551){const Kn=rs(yZ(Je)),nr=R_(cn);Kn===Ir(cn)?qe(Wn,f.Parameter_0_cannot_reference_itself,xs(cn.name)):Kn.valueDeclaration&&Kn.valueDeclaration.pos>cn.pos&&nr.parent.locals&&F(nr.parent.locals,Kn.escapedName,c)===Kn&&qe(Wn,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,xs(cn.name),xs(Wn))}if(Je&&Wn&&c&111551&&Je.flags&2097152&&!(Je.flags&111551)&&!h0(Wn)){const Kn=Of(Je,111551);if(Kn){const nr=Kn.kind===281||Kn.kind===278||Kn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Ro=Vi(a);fg(qe(Wn,nr,Ro),Kn,Ro)}}if(V.isolatedModules&&Je&&Bn&&(c&111551)===111551){const nr=F(Se,a,c)===Je&&$i(gt)&&gt.locals&&F(gt.locals,a,-111552);if(nr){const Ro=(tr=nr.declarations)==null?void 0:tr.find(Eo=>Eo.kind===276||Eo.kind===273||Eo.kind===274||Eo.kind===271);Ro&&!lL(Ro)&&qe(Ro,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Vi(a))}}}),Je}function fg(n,a,c){return a?Ma(n,kr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function um(n,a){return n.kind!==219&&n.kind!==218?eI(n)||(Bs(n)||n.kind===172&&!aa(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Qr(n,1024)?!0:!bS(n)}function pb(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function km(n){return Mo(n)?Vi(n):xs(n)}function ev(n,a){if(n.declarations){for(const c of n.declarations)if(c.kind===168&&(om(c.parent)?AS(c.parent):c.parent)===a)return!(om(c.parent)&&In(c.parent.parent.tags,$f))}return!1}function x1(n,a,c){if(!Ve(n)||n.escapedText!==a||iFe(n)||DS(n))return!1;const d=Fd(n,!1,!1);let _=d;for(;_;){if(di(_.parent)){const v=Ir(_.parent);if(!v)break;const x=dr(v);if(va(x,a))return qe(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,km(c),Si(v)),!0;if(_===d&&!aa(_)){const k=Zs(v).thisType;if(va(k,a))return qe(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,km(c)),!0}}_=_.parent}return!1}function vT(n){const a=mg(n);return a&&Hs(a,64,!0)?(qe(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,fc(a)),!0):!1}function mg(n){switch(n.kind){case 80:case 211:return n.parent?mg(n.parent):void 0;case 233:if(Bl(n.expression))return n.expression;default:return}}function $I(n,a,c){const d=1920|(lr(n)?111551:0);if(c===d){const _=Vl(yl(n,a,788968&~d,void 0,void 0,!1)),v=n.parent;if(_){if(Id(v)){N.assert(v.left===n,"Should only be resolving left side of qualified name as a namespace");const x=v.right.escapedText;if(va(Zs(_),x))return qe(v,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Vi(a),Vi(x)),!0}return qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Vi(a)),!0}}return!1}function _g(n,a,c){if(c&788584){const d=Vl(yl(n,a,111127,void 0,void 0,!1));if(d&&!(d.flags&1920))return qe(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Vi(a)),!0}return!1}function j_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function oy(n,a){return j_(a)&&n.parent.kind===281?(qe(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function ZD(n,a,c){if(c&111551){if(j_(a)){const v=n.parent.parent;if(v&&v.parent&&nf(v)){const x=v.token,k=v.parent.kind;k===264&&x===96?qe(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Vi(a)):k===263&&x===96?qe(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Vi(a)):k===263&&x===119&&qe(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Vi(a))}else qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Vi(a));return!0}const d=Vl(yl(n,a,788544,void 0,void 0,!1)),_=d&&Au(d);if(d&&_!==void 0&&!(_&111551)){const v=Vi(a);return tN(a)?qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,v):eN(n,d)?qe(n,f._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"):qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,v),!0}}return!1}function eN(n,a){const c=Vn(n.parent,d=>Za(d)||gp(d)?!1:yp(d)||"quit");if(c&&c.members.length===1){const d=Zs(a);return!!(d.flags&1048576)&&oB(d,384,!0)}return!1}function tN(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function yT(n,a,c){if(c&111127){if(Vl(yl(n,a,1024,void 0,void 0,!1)))return qe(n,f.Cannot_use_namespace_0_as_a_value,Vi(a)),!0}else if(c&788544&&Vl(yl(n,a,1536,void 0,void 0,!1)))return qe(n,f.Cannot_use_namespace_0_as_a_type,Vi(a)),!0;return!1}function Qs(n,a){var c;if(N.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const d=(c=n.declarations)==null?void 0:c.find(_=>QV(_)||di(_)||_.kind===266);if(d===void 0)return N.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(d.flags&33554432)&&!Zg(d,a)){let _;const v=xs(Lo(d));n.flags&2?_=qe(a,f.Block_scoped_variable_0_used_before_its_declaration,v):n.flags&32?_=qe(a,f.Class_0_used_before_its_declaration,v):n.flags&256?_=qe(a,f.Enum_0_used_before_its_declaration,v):(N.assert(!!(n.flags&128)),rm(V)&&(_=qe(a,f.Enum_0_used_before_its_declaration,v))),_&&Ma(_,kr(d,f._0_is_declared_here,v))}}function R1(n,a,c){return!!a&&!!Vn(n,d=>d===a||(d===c||ea(d)&&(!bS(d)||Bc(d)&3)?"quit":!1))}function bT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function wm(n){return n.declarations&&oi(n.declarations,fb)}function fb(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&gR(n)||mr(n)&&zl(n)===2&&gR(n)||ws(n)&&mr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&nN(n.parent.right)||n.kind===304||n.kind===303&&nN(n.initializer)||n.kind===260&&wE(n)||n.kind===208&&wE(n.parent.parent)}function nN(n){return QL(n)||Os(n)&&Z_(n)}function ET(n,a){const c=_b(n);if(c){const _=DR(c.expression).arguments[0];return Ve(c.name)?Vl(va(qOe(_),c.name.escapedText)):void 0}if(Oi(n)||n.moduleReference.kind===283){const _=hd(n,hj(n)||TC(n)),v=Rp(_);return ap(n,_,v,!1),v}const d=ZI(n.moduleReference,a);return PM(n,d),d}function PM(n,a){if(ap(n,void 0,a,!1)&&!n.isTypeOnly){const c=Of(Ir(n)),d=c.kind===281||c.kind===278,_=d?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,v=d?f._0_was_exported_here:f._0_was_imported_here,x=c.kind===278?"*":Vi(c.name.escapedText);Ma(qe(n.moduleReference,_),kr(c,v,x))}}function hr(n,a,c,d){const _=n.exports.get("export="),v=_?va(dr(_),a,!0):n.exports.get(a),x=Vl(v,d);return ap(c,v,x,!1),x}function nu(n){return kl(n)&&!n.isExportEquals||Qr(n,2048)||Ku(n)||Eh(n)}function to(n){return ls(n)?e.getModeForUsageLocation(Un(n),n):void 0}function mf(n,a){return n===99&&a===1}function ay(n){return to(n)===99&&Al(n.text,".json")}function U_(n,a,c,d){const _=n&&to(d);if(n&&_!==void 0&&100<=G&&G<=199){const v=mf(_,n.impliedNodeFormat);if(_===99||v)return v}if(!Y)return!1;if(!n||n.isDeclarationFile){const v=hr(a,"default",void 0,!0);return!(v&&bt(v.declarations,nu)||hr(a,_l("__esModule"),void 0,c))}return cd(n)?typeof n.externalModuleIndicator!="object"&&!hr(a,_l("__esModule"),void 0,c):sy(a)}function ur(n,a){const c=hd(n,n.parent.moduleSpecifier);if(c)return ST(c,n,a)}function ST(n,a,c){var d;let _;vC(n)?_=n:_=hr(n,"default",a,c);const v=(d=n.declarations)==null?void 0:d.find($i),x=j0(a);if(!x)return _;const k=ay(x),F=U_(v,n,c,x);if(!_&&!F&&!k)if(sy(n)&&!Y){const H=G>=5?"allowSyntheticDefaultImports":"esModuleInterop",be=n.exports.get("export=").valueDeclaration,ge=qe(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,Si(n),H);be&&Ma(ge,kr(be,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,H))}else bh(a)?qc(n,a):TT(n,n,a,SA(a)&&a.propertyName||a.name);else if(F||k){const H=Rp(n,c)||Vl(n,c);return ap(a,n,H,!1),H}return ap(a,_,void 0,!1),_}function j0(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return Sh(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return N.assertNever(n)}}function qc(n,a){var c,d,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))qe(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Si(n),Si(a.symbol));else{const v=qe(a.name,f.Module_0_has_no_default_export,Si(n)),x=(d=n.exports)==null?void 0:d.get("__export");if(x){const k=(_=x.declarations)==null?void 0:_.find(F=>{var H,re;return!!(Yl(F)&&F.moduleSpecifier&&((re=(H=hd(F,F.moduleSpecifier))==null?void 0:H.exports)!=null&&re.has("default")))});k&&Ma(v,kr(k,f.export_Asterisk_does_not_re_export_a_default))}}}function Ph(n,a){const c=n.parent.parent.moduleSpecifier,d=hd(n,c),_=sp(d,c,a,!1);return ap(n,d,_,!1),_}function Om(n,a){const c=n.parent.moduleSpecifier,d=c&&hd(n,c),_=c&&sp(d,c,a,!1);return ap(n,d,_,!1),_}function D1(n,a){if(n===ft&&a===ft)return ft;if(n.flags&790504)return n;const c=Ka(n.flags|a.flags,n.escapedName);return N.assert(n.declarations||a.declarations),c.declarations=SE(So(n.declarations,a.declarations),xv),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function N1(n,a,c,d){var _;if(n.flags&1536){const v=Dp(n).get(a.escapedText),x=Vl(v,d),k=(_=Ki(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return ap(c,v,x,!1,k,a.escapedText),x}}function mb(n,a){if(n.flags&3){const c=n.valueDeclaration.type;if(c)return Vl(va(Ti(c),a))}}function tv(n,a,c=!1){var d;const _=hj(n)||n.moduleSpecifier,v=hd(n,_),x=!Fr(a)&&a.propertyName||a.name;if(!Ve(x))return;const k=x.escapedText==="default"&&Y,F=sp(v,_,!1,k);if(F&&x.escapedText){if(vC(v))return v;let H;v&&v.exports&&v.exports.get("export=")?H=va(dr(F),x.escapedText,!0):H=mb(F,x.escapedText),H=Vl(H,c);let re=N1(F,x,a,c);if(re===void 0&&x.escapedText==="default"){const ge=(d=v.declarations)==null?void 0:d.find($i);(ay(_)||U_(ge,v,c,_))&&(re=Rp(v,c)||Vl(v,c))}const be=re&&H&&re!==H?D1(H,re):re||H;return be||TT(v,F,n,x),be}}function TT(n,a,c,d){var _;const v=Hp(n,c),x=xs(d),k=Nee(d,a);if(k!==void 0){const F=Si(k),H=qe(d,f._0_has_no_exported_member_named_1_Did_you_mean_2,v,x,F);k.valueDeclaration&&Ma(H,kr(k.valueDeclaration,f._0_is_declared_here,F))}else(_=n.exports)!=null&&_.has("default")?qe(d,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,v,x):Wm(c,d,x,n,v)}function Wm(n,a,c,d,_){var v,x;const k=(x=(v=ri(d.valueDeclaration,dh))==null?void 0:v.locals)==null?void 0:x.get(a.escapedText),F=d.exports;if(k){const H=F==null?void 0:F.get("export=");if(H)s_(H,k)?U0(n,a,c,_):qe(a,f.Module_0_has_no_exported_member_1,_,c);else{const re=F?In(age(F),ge=>!!s_(ge,k)):void 0,be=re?qe(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,Si(re)):qe(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);k.declarations&&Ma(be,...Wt(k.declarations,(ge,Je)=>kr(ge,Je===0?f._0_is_declared_here:f.and_here,c)))}}else qe(a,f.Module_0_has_no_exported_member_1,_,c)}function U0(n,a,c,d){if(G>=5){const _=gh(V)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,_,c)}else if(lr(n)){const _=gh(V)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,_,c)}else{const _=gh(V)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,_,c,c,d)}}function hg(n,a){if(tp(n)&&Sr(n.propertyName||n.name)==="default"){const x=j0(n),k=x&&hd(n,x);if(k)return ST(k,n,a)}const c=$a(n)?R_(n):n.parent.parent.parent,d=_b(c),_=tv(c,d||n,a),v=n.propertyName||n.name;return d&&_&&Ve(v)?Vl(va(dr(_),v.escapedText),a):(ap(n,void 0,_,!1),_)}function _b(n){if(Oi(n)&&n.initializer&&Fr(n.initializer))return n.initializer}function QI(n,a){if(T_(n.parent)){const c=Rp(n.parent.symbol,a);return ap(n,void 0,c,!1),c}}function H0(n,a,c){if(Sr(n.propertyName||n.name)==="default"){const _=j0(n),v=_&&hd(n,_);if(v)return ST(v,n,!!c)}const d=n.parent.parent.moduleSpecifier?tv(n.parent.parent,n,c):Hs(n.propertyName||n.name,a,!1,c);return ap(n,void 0,d,!1),d}function rN(n,a){const c=kl(n)?n.expression:n.right,d=C1(c,a);return ap(n,void 0,d,!1),d}function C1(n,a){if(Qc(n))return nc(n).symbol;if(!Qd(n)&&!Bl(n))return;const c=Hs(n,901119,!0,a);return c||(nc(n),Zr(n).resolvedSymbol)}function AT(n,a){if(mr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return C1(n.parent.right,a)}function Up(n,a=!1){switch(n.kind){case 271:case 260:return ET(n,a);case 273:return ur(n,a);case 274:return Ph(n,a);case 280:return Om(n,a);case 276:case 208:return hg(n,a);case 281:return H0(n,901119,a);case 277:case 226:return rN(n,a);case 270:return QI(n,a);case 304:return Hs(n.name,901119,!0,a);case 303:return C1(n.initializer,a);case 212:case 211:return AT(n,a);default:return N.fail()}}function IT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Vl(n,a){return!a&&IT(n)?Oc(n):n}function Oc(n){N.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Ki(n);if(a.aliasTarget)a.aliasTarget===Ct&&(a.aliasTarget=ft);else{a.aliasTarget=Ct;const c=wm(n);if(!c)return N.fail();const d=Up(c);a.aliasTarget===Ct?a.aliasTarget=d||ft:qe(c,f.Circular_definition_of_import_alias_0,Si(n))}return a.aliasTarget}function xT(n){if(Ki(n).aliasTarget!==Ct)return Oc(n)}function Au(n,a,c){const d=a&&Of(n),_=d&&Yl(d),v=d&&(_?hd(d.moduleSpecifier,d.moduleSpecifier,!0):Oc(d.symbol)),x=_&&v?Mh(v):void 0;let k=c?0:n.flags,F;for(;n.flags&2097152;){const H=hf(Oc(n));if(!_&&H===v||(x==null?void 0:x.get(H.escapedName))===H)break;if(H===ft)return-1;if(H===n||F!=null&&F.has(H))break;H.flags&2097152&&(F?F.add(H):F=new Set([n,H])),k|=H.flags,n=H}return k}function ap(n,a,c,d,_,v){if(!n||Fr(n))return!1;const x=Ir(n);if(s0(n)){const F=Ki(x);return F.typeOnlyDeclaration=n,!0}if(_){const F=Ki(x);return F.typeOnlyDeclaration=_,x.escapedName!==v&&(F.typeOnlyExportStarName=v),!0}const k=Ki(x);return q0(k,a,d)||q0(k,c,d)}function q0(n,a,c){var d;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){const _=((d=a.exports)==null?void 0:d.get("export="))??a,v=_.declarations&&In(_.declarations,s0);n.typeOnlyDeclaration=v??Ki(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function Of(n,a){if(!(n.flags&2097152))return;const c=Ki(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){const d=c.typeOnlyDeclaration.kind===278?Vl(Mh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Oc(c.typeOnlyDeclaration.symbol);return Au(d)&a?c.typeOnlyDeclaration:void 0}}function hb(n){if(!It)return;const a=Ir(n),c=Oc(a);c&&(c===ft||Au(a,!0)&111551&&!r6(c))&&gb(a)}function gb(n){N.assert(It);const a=Ki(n);if(!a.referenced){a.referenced=!0;const c=wm(n);if(!c)return N.fail();uR(c)&&Au(Vl(n))&111551&&nc(c.moduleReference)}}function ru(n){const a=Ki(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function ZI(n,a){return n.kind===80&&zC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Hs(n,1920,!1,a):(N.assert(n.parent.kind===271),Hs(n,901119,!1,a))}function Hp(n,a){return n.parent?Hp(n.parent,a)+"."+Si(n):Si(n,a,void 0,36)}function RT(n){for(;Id(n.parent);)n=n.parent;return n}function DT(n){let a=Gp(n),c=yl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Id(a.parent);){const d=dr(c);if(c=va(d,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Hs(n,a,c,d,_){if(Fl(n))return;const v=1920|(lr(n)?a&111551:0);let x;if(n.kind===80){const k=a===v||Ys(n)?f.Cannot_find_namespace_0:z6e(Gp(n)),F=lr(n)&&!Ys(n)?iN(n,a):void 0;if(x=rs(yl(_||n,n.escapedText,a,c||F?void 0:k,n,!0,!1)),!x)return rs(F)}else if(n.kind===166||n.kind===211){const k=n.kind===166?n.left:n.expression,F=n.kind===166?n.right:n.name;let H=Hs(k,v,c,!1,_);if(!H||Fl(F))return;if(H===ft)return H;if(H.valueDeclaration&&lr(H.valueDeclaration)&&pd(V)!==100&&Oi(H.valueDeclaration)&&H.valueDeclaration.initializer&&T3e(H.valueDeclaration.initializer)){const re=H.valueDeclaration.initializer.arguments[0],be=hd(re,re);if(be){const ge=Rp(be);ge&&(H=ge)}}if(x=rs(Jd(Dp(H),F.escapedText,a)),!x&&H.flags&2097152&&(x=rs(Jd(Dp(Oc(H)),F.escapedText,a))),!x){if(!c){const re=Hp(H),be=xs(F),ge=Nee(F,H);if(ge){qe(F,f._0_has_no_exported_member_named_1_Did_you_mean_2,re,be,Si(ge));return}const Je=Id(n)&&RT(n);if(Pe&&a&788968&&Je&&!VR(Je.parent)&&DT(Je)){qe(Je,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,fp(Je));return}if(a&1920&&Id(n.parent)){const Dt=rs(Jd(Dp(H),F.escapedText,788968));if(Dt){qe(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Si(Dt),Vi(n.parent.right.escapedText));return}}qe(F,f.Namespace_0_has_no_exported_member_1,re,be)}return}}else N.assertNever(n,"Unknown entity name kind.");return N.assert((xl(x)&1)===0,"Should never get an instantiated symbol here."),!Ys(n)&&Qd(n)&&(x.flags&2097152||n.parent.kind===277)&&ap(Dj(n),x,void 0,!0),x.flags&a||d?x:Oc(x)}function iN(n,a){if(CZ(n.parent)){const c=J0(n.parent);if(c)return yl(c,n.escapedText,a,void 0,n,!0)}}function J0(n){if(Vn(n,_=>$x(_)||_.flags&16777216?$f(_):"quit"))return;const c=AS(n);if(c&&Zc(c)&&VL(c.expression)){const _=Ir(c.expression.left);if(_)return P1(_)}if(c&&Os(c)&&VL(c.parent)&&Zc(c.parent.parent)){const _=Ir(c.parent.left);if(_)return P1(_)}if(c&&(Tm(c)||hc(c))&&mr(c.parent.parent)&&zl(c.parent.parent)===6){const _=Ir(c.parent.parent.left);if(_)return P1(_)}const d=p0(n);if(d&&ea(d)){const _=Ir(d);return _&&_.valueDeclaration}}function P1(n){const a=n.parent.valueDeclaration;return a?(AC(a)?DA(a):_S(a)?WL(a):void 0)||a:void 0}function MM(n){const a=n.valueDeclaration;if(!a||!lr(a)||n.flags&524288||u0(a,!1))return;const c=Oi(a)?WL(a):DA(a);if(c){const d=_f(c);if(d)return _ye(d,n)}}function hd(n,a,c){const _=pd(V)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return nv(n,a,c?void 0:_)}function nv(n,a,c,d=!1){return ls(a)?H_(n,a.text,c,a,d):void 0}function H_(n,a,c,d,_=!1){var v,x,k,F,H,re,be,ge,Je,gt,Dt;if(uo(a,"@types/")){const nr=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ro=XN(a,"@types/");qe(d,nr,Ro,a)}const an=SZ(a,!0);if(an)return an;const cn=Un(n),ar=ls(n)?n:((v=Xl(n)?n:n.parent&&Xl(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:v.name)||((x=Oy(n)?n:void 0)==null?void 0:x.argument.literal)||(Oi(n)&&n.initializer&&Td(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((k=Vn(n,zp))==null?void 0:k.arguments[0])||((F=Vn(n,Mc))==null?void 0:F.moduleSpecifier)||((H=Vn(n,c0))==null?void 0:H.moduleReference.expression)||((re=Vn(n,Yl))==null?void 0:re.moduleSpecifier),Wn=ar&&ls(ar)?e.getModeForUsageLocation(cn,ar):cn.impliedNodeFormat,ln=pd(V),Bn=(be=e.getResolvedModule(cn,a,Wn))==null?void 0:be.resolvedModule,zn=Bn&&AJ(V,Bn,cn),tr=Bn&&(!zn||zn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Bn.resolvedFileName);if(tr){if(zn&&qe(d,zn,a,Bn.resolvedFileName),Bn.resolvedUsingTsExtension&&Su(a)){const nr=((ge=Vn(n,Mc))==null?void 0:ge.importClause)||Vn(n,Jm(eu,Yl));(nr&&!nr.isTypeOnly||Vn(n,zp))&&qe(d,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Kn(N.checkDefined(E3(a))))}else if(Bn.resolvedUsingTsExtension&&!sD(V,cn.fileName)){const nr=((Je=Vn(n,Mc))==null?void 0:Je.importClause)||Vn(n,Jm(eu,Yl));if(!(nr!=null&&nr.isTypeOnly||Vn(n,ag))){const Ro=N.checkDefined(E3(a));qe(d,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ro)}}if(tr.symbol){if(Bn.isExternalLibraryImport&&!KC(Bn.extension)&&ex(!1,d,cn,Wn,Bn,a),ln===3||ln===99){const nr=cn.impliedNodeFormat===1&&!Vn(n,zp)||!!Vn(n,eu),Ro=Vn(n,Eo=>ag(Eo)||Yl(Eo)||Mc(Eo));if(nr&&tr.impliedNodeFormat===99&&!Moe(Ro))if(Vn(n,eu))qe(d,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let Eo;const Bo=Fg(cn.fileName);if(Bo===".ts"||Bo===".js"||Bo===".tsx"||Bo===".jsx"){const _o=cn.packageJsonScope,Nc=Bo===".ts"?".mts":Bo===".js"?".mjs":void 0;_o&&!_o.contents.packageJsonContent.type?Nc?Eo=Vo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Nc,$r(_o.packageDirectory,"package.json")):Eo=Vo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,$r(_o.packageDirectory,"package.json")):Nc?Eo=Vo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Nc):Eo=Vo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}ts.add(Lg(Un(d),d,Vo(Eo,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return rs(tr.symbol)}c&&qe(d,f.File_0_is_not_a_module,tr.fileName);return}if(sm){const nr=QB(sm,Ro=>Ro.pattern,a);if(nr){const Ro=_d&&_d.get(a);return rs(Ro||nr.symbol)}}if(Bn&&!KC(Bn.extension)&&zn===void 0||zn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){const nr=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;qe(d,nr,a,Bn.resolvedFileName)}else ex(de&&!!c,d,cn,Wn,Bn,a);return}if(c){if(Bn){const nr=e.getProjectReferenceRedirect(Bn.resolvedFileName);if(nr){qe(d,f.Output_file_0_has_not_been_built_from_source_file_1,nr,Bn.resolvedFileName);return}}if(zn)qe(d,zn,a,Bn.resolvedFileName);else{const nr=Op(a)&&!vA(a),Ro=ln===3||ln===99;if(!g0(V)&&Il(a,".json")&&ln!==1&&P3(V))qe(d,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Wn===99&&Ro&&nr){const Eo=go(a,ai(cn.path)),Bo=(gt=$D.find(([_o,Nc])=>e.fileExists(Eo+_o)))==null?void 0:gt[1];Bo?qe(d,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Bo):qe(d,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((Dt=e.getResolvedModule(cn,a,Wn))!=null&&Dt.alternateResult){const Eo=x4(cn,e,a,Wn,a);mu(!0,d,Vo(Eo,c,a))}else qe(d,c,a)}}return;function Kn(nr){const Ro=hk(a,nr);if(C3(G)||Wn===99){const Eo=Su(a)&&sD(V);return Ro+(nr===".mts"||nr===".d.mts"?Eo?".mts":".mjs":nr===".cts"||nr===".d.mts"?Eo?".cts":".cjs":Eo?".ts":".js")}return Ro}}function ex(n,a,c,d,{packageId:_,resolvedFileName:v},x){let k;!Xc(x)&&_&&(k=x4(c,e,x,d,_.name)),mu(n,a,Vo(k,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,v))}function Rp(n,a){if(n!=null&&n.exports){const c=Vl(n.exports.get("export="),a),d=tx(rs(c),rs(n));return rs(d)||n}}function tx(n,a){if(!n||n===ft||n===a||a.exports.size===1||n.flags&2097152)return n;const c=Ki(n);if(c.cjsExportMerged)return c.cjsExportMerged;const d=n.flags&33554432?n:gT(n);return d.flags=d.flags|512,d.exports===void 0&&(d.exports=ca()),a.exports.forEach((_,v)=>{v!=="export="&&d.exports.set(v,d.exports.has(v)?lm(d.exports.get(v),_):_)}),d===n&&(Ki(d).resolvedExports=void 0,Ki(d).resolvedMembers=void 0),Ki(d).cjsExportMerged=d,c.cjsExportMerged=d}function sp(n,a,c,d){var _;const v=Rp(n,c);if(!c&&v){if(!d&&!(v.flags&1539)&&!pl(v,312)){const k=G>=5?"allowSyntheticDefaultImports":"esModuleInterop";return qe(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,k),v}const x=a.parent;if(Mc(x)&&mR(x)||zp(x)){const k=zp(x)?x.arguments[0]:x.moduleSpecifier,F=dr(v),H=E3e(F,v,n,k);if(H)return nx(v,H,x);const re=(_=n==null?void 0:n.declarations)==null?void 0:_.find($i),be=re&&mf(to(k),re.impliedNodeFormat);if(gh(V)||be){let ge=c9(F,0);if((!ge||!ge.length)&&(ge=c9(F,1)),ge&&ge.length||va(F,"default",!0)||be){const Je=F.flags&3670016?S3e(F,v,n,k):hye(v,v.parent);return nx(v,Je,x)}}}}return v}function nx(n,a,c){const d=Ka(n.flags,n.escapedName);d.declarations=n.declarations?n.declarations.slice():[],d.parent=n.parent,d.links.target=n,d.links.originatingImport=c,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),n.members&&(d.members=new Map(n.members)),n.exports&&(d.exports=new Map(n.exports));const _=p_(a);return d.links.type=Ls(d,_.members,et,et,_.indexInfos),d}function sy(n){return n.exports.get("export=")!==void 0}function NT(n){return age(Mh(n))}function oN(n){const a=NT(n),c=Rp(n);if(c!==n){const d=dr(c);vb(d)&&qr(a,gs(d))}return a}function aN(n,a){Mh(n).forEach((_,v)=>{k1(v)||a(_,v)});const d=Rp(n);if(d!==n){const _=dr(d);vb(_)&&elt(_,(v,x)=>{a(v,x)})}}function CT(n,a){const c=Mh(a);if(c)return c.get(n)}function sN(n,a){const c=CT(n,a);if(c)return c;const d=Rp(a);if(d===a)return;const _=dr(d);return vb(_)?va(_,n):void 0}function vb(n){return!(n.flags&402784252||Wr(n)&1||Uf(n)||Wa(n))}function Dp(n){return n.flags&6256?Uhe(n,"resolvedExports"):n.flags&1536?Mh(n):n.exports||K}function Mh(n){const a=Ki(n);if(!a.resolvedExports){const{exports:c,typeOnlyExportStarMap:d}=PT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=d}return a.resolvedExports}function lN(n,a,c,d){a&&a.forEach((_,v)=>{if(v==="default")return;const x=n.get(v);if(!x)n.set(v,_),c&&d&&c.set(v,{specifierText:fc(d.moduleSpecifier)});else if(c&&d&&x&&Vl(x)!==Vl(_)){const k=c.get(v);k.exportsWithDuplicate?k.exportsWithDuplicate.push(d):k.exportsWithDuplicate=[d]}})}function PT(n){const a=[];let c;const d=new Set;n=Rp(n);const _=v(n)||K;return c&&d.forEach(x=>c.delete(x)),{exports:_,typeOnlyExportStarMap:c};function v(x,k,F){if(!F&&(x!=null&&x.exports)&&x.exports.forEach((be,ge)=>d.add(ge)),!(x&&x.exports&&Ef(a,x)))return;const H=new Map(x.exports),re=x.exports.get("__export");if(re){const be=ca(),ge=new Map;if(re.declarations)for(const Je of re.declarations){const gt=hd(Je,Je.moduleSpecifier),Dt=v(gt,Je,F||Je.isTypeOnly);lN(be,Dt,ge,Je)}ge.forEach(({exportsWithDuplicate:Je},gt)=>{if(!(gt==="export="||!(Je&&Je.length)||H.has(gt)))for(const Dt of Je)ts.add(kr(Dt,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ge.get(gt).specifierText,Vi(gt)))}),lN(H,be)}return k!=null&&k.isTypeOnly&&(c??(c=new Map),H.forEach((be,ge)=>c.set(ge,k))),H}}function rs(n){let a;return n&&n.mergeId&&(a=KD[n.mergeId])?a:n}function Ir(n){return rs(n.symbol&&yZ(n.symbol))}function _f(n){return T_(n)?Ir(n):void 0}function Cd(n){return rs(n.parent&&yZ(n.parent))}function M1(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&_f(n.valueDeclaration.parent)||n}function cN(n,a){const c=Un(a),d=as(c),_=Ki(n);let v;if(_.extendedContainersByFile&&(v=_.extendedContainersByFile.get(d)))return v;if(c&&c.imports){for(const k of c.imports){if(Ys(k))continue;const F=hd(a,k,!0);!F||!gg(F,n)||(v=Rn(v,F))}if(Ne(v))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(d,v),v}if(_.extendedContainers)return _.extendedContainers;const x=e.getSourceFiles();for(const k of x){if(!sc(k))continue;const F=Ir(k);gg(F,n)&&(v=Rn(v,F))}return _.extendedContainers=v||et}function K0(n,a,c){const d=Cd(n);if(d&&!(n.flags&262144))return F(d);const _=eo(n.declarations,re=>{if(!ku(re)&&re.parent){if(ed(re.parent))return Ir(re.parent);if(L_(re.parent)&&re.parent.parent&&Rp(Ir(re.parent.parent))===n)return Ir(re.parent.parent)}if(Qc(re)&&mr(re.parent)&&re.parent.operatorToken.kind===64&&ws(re.parent.left)&&Bl(re.parent.left.expression))return Zh(re.parent.left)||ES(re.parent.left.expression)?Ir(Un(re)):(nc(re.parent.left.expression),Zr(re.parent.left.expression).resolvedSymbol)});if(!Ne(_))return;const v=eo(_,re=>gg(re,n)?re:void 0);let x=[],k=[];for(const re of v){const[be,...ge]=F(re);x=Rn(x,be),k=qr(k,ge)}return So(x,k);function F(re){const be=eo(re.declarations,H),ge=a&&cN(n,a),Je=L1(re,c);if(a&&re.flags&iv(c)&&yb(re,a,1920,!1))return Rn(So(So([re],be),ge),Je);const gt=!(re.flags&iv(c))&&re.flags&788968&&Zs(re).flags&524288&&c===111551?O1(a,an=>zc(an,cn=>{if(cn.flags&iv(c)&&dr(cn)===Zs(re))return cn})):void 0;let Dt=gt?[gt,...be,re]:[...be,re];return Dt=Rn(Dt,Je),Dt=qr(Dt,ge),Dt}function H(re){return d&&MT(re,d)}}function L1(n,a){const c=!!Ne(n.declarations)&&Ua(n.declarations);if(a&111551&&c&&c.parent&&Oi(c.parent)&&(La(c)&&c===c.parent.initializer||yp(c)&&c===c.parent.type))return Ir(c.parent)}function MT(n,a){const c=no(n),d=c&&c.exports&&c.exports.get("export=");return d&&s_(d,a)?c:void 0}function gg(n,a){if(n===Cd(a))return a;const c=n.exports&&n.exports.get("export=");if(c&&s_(c,a))return n;const d=Dp(n),_=d.get(a.escapedName);return _&&s_(_,a)?_:zc(d,v=>{if(s_(v,a))return v})}function s_(n,a){if(rs(Vl(rs(n)))===rs(Vl(rs(a))))return n}function hf(n){return rs(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function Fm(n,a){return!!(n.flags&111551||n.flags&2097152&&Au(n,!a)&111551)}function rv(n){const a=n.members;for(const c of a)if(c.kind===176&&Kf(c.body))return c}function vg(n){var a;const c=new p(Qt,n);return m++,c.id=m,(a=sr)==null||a.recordType(c),c}function yg(n,a){const c=vg(n);return c.symbol=a,c}function rx(n){return new p(Qt,n)}function cc(n,a,c=0,d){uN(a,d);const _=vg(n);return _.intrinsicName=a,_.debugIntrinsicName=d,_.objectFlags=c|524288|2097152|33554432|16777216,_}function uN(n,a){const c=`${n},${a??""}`;pt.has(c)&&N.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),pt.add(c)}function Wf(n,a){const c=yg(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function Lh(){return ei(zo(Rq.keys(),Xd))}function gf(n){return yg(262144,n)}function k1(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function X0(n){let a;return n.forEach((c,d)=>{ix(c,d)&&(a||(a=[])).push(c)}),a||et}function ix(n,a){return!k1(a)&&Fm(n)}function LT(n){const a=X0(n),c=IZ(n);return c?So(a,[c]):a}function vf(n,a,c,d,_){const v=n;return v.members=a,v.properties=et,v.callSignatures=c,v.constructSignatures=d,v.indexInfos=_,a!==K&&(v.properties=X0(a)),v}function Ls(n,a,c,d,_){return vf(Wf(16,n),a,c,d,_)}function w1(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=mn(n.constructSignatures,d=>!(d.flags&4));if(n.constructSignatures===a)return n;const c=Ls(n.symbol,n.members,n.callSignatures,bt(a)?a:et,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function O1(n,a){let c;for(let d=n;d;d=d.parent){if(dh(d)&&d.locals&&!Ch(d)&&(c=a(d.locals,void 0,!0,d)))return c;switch(d.kind){case 312:if(!Fp(d))break;case 267:const _=Ir(d);if(c=a((_==null?void 0:_.exports)||K,void 0,!0,d))return c;break;case 263:case 231:case 264:let v;if((Ir(d).members||K).forEach((x,k)=>{x.flags&788968&&(v||(v=ca())).set(k,x)}),v&&(c=a(v,void 0,!1,d)))return c;break}}return a(Se,void 0,!0)}function iv(n){return n===111551?111551:1920}function yb(n,a,c,d,_=new Map){if(!(n&&!D(n)))return;const v=Ki(n),x=v.accessibleChainCache||(v.accessibleChainCache=new Map),k=O1(a,(cn,ar,Wn,ln)=>ln),F=`${d?0:1}|${k&&as(k)}|${c}`;if(x.has(F))return x.get(F);const H=Sa(n);let re=_.get(H);re||_.set(H,re=[]);const be=O1(a,ge);return x.set(F,be),be;function ge(cn,ar,Wn){if(!Ef(re,cn))return;const ln=Dt(cn,ar,Wn);return re.pop(),ln}function Je(cn,ar){return!Y0(cn,a,ar)||!!yb(cn.parent,a,iv(ar),d,_)}function gt(cn,ar,Wn){return(n===(ar||cn)||rs(n)===rs(ar||cn))&&!bt(cn.declarations,ed)&&(Wn||Je(rs(cn),c))}function Dt(cn,ar,Wn){return gt(cn.get(n.escapedName),void 0,ar)?[n]:zc(cn,Bn=>{if(Bn.flags&2097152&&Bn.escapedName!=="export="&&Bn.escapedName!=="default"&&!(x3(Bn)&&a&&sc(Un(a)))&&(!d||bt(Bn.declarations,c0))&&(!Wn||!bt(Bn.declarations,cie))&&(ar||!pl(Bn,281))){const zn=Oc(Bn),tr=an(Bn,zn,ar);if(tr)return tr}if(Bn.escapedName===n.escapedName&&Bn.exportSymbol&&gt(rs(Bn.exportSymbol),void 0,ar))return[n]})||(cn===Se?an(ot,ot,ar):void 0)}function an(cn,ar,Wn){if(gt(cn,ar,Wn))return[cn];const ln=Dp(ar),Bn=ln&&ge(ln,!0);if(Bn&&Je(cn,iv(c)))return[cn].concat(Bn)}}function Y0(n,a,c){let d=!1;return O1(a,_=>{let v=rs(_.get(n.escapedName));if(!v)return!1;if(v===n)return!0;const x=v.flags&2097152&&!pl(v,281);return v=x?Oc(v):v,(x?Au(v):v.flags)&c?(d=!0,!0):!1}),d}function D(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ae(n,a){return bi(n,a,788968,!1,!0).accessibility===0}function ht(n,a){return bi(n,a,111551,!1,!0).accessibility===0}function on(n,a,c){return bi(n,a,c,!1,!1).accessibility===0}function wr(n,a,c,d,_,v){if(!Ne(n))return;let x,k=!1;for(const F of n){const H=yb(F,a,d,!1);if(H){x=F;const ge=Pd(H[0],_);if(ge)return ge}if(v&&bt(F.declarations,ed)){if(_){k=!0;continue}return{accessibility:0}}const re=K0(F,a,d),be=wr(re,a,c,c===F?iv(d):d,_,v);if(be)return be}if(k)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:Si(c,a,d),errorModuleName:x!==c?Si(x,a,1920):void 0}}function wi(n,a,c,d){return bi(n,a,c,d,!0)}function bi(n,a,c,d,_){if(n&&a){const v=wr([n],a,n,c,d,_);if(v)return v;const x=Xe(n.declarations,no);if(x){const k=no(a);if(x!==k)return{accessibility:2,errorSymbolName:Si(n,a,c),errorModuleName:Si(x),errorNode:lr(a)?a:void 0}}return{accessibility:1,errorSymbolName:Si(n,a,c)}}return{accessibility:0}}function no(n){const a=Vn(n,ga);return a&&Ir(a)}function ga(n){return ku(n)||n.kind===312&&Fp(n)}function ed(n){return M4(n)||n.kind===312&&Fp(n)}function Pd(n,a){let c;if(!Jn(mn(n.declarations,v=>v.kind!==80),d))return;return{accessibility:0,aliasesToMakeVisible:c};function d(v){var x,k;if(!l_(v)){const F=bT(v);if(F&&!Qr(F,32)&&l_(F.parent))return _(v,F);if(Oi(v)&&Ll(v.parent.parent)&&!Qr(v.parent.parent,32)&&l_(v.parent.parent.parent))return _(v,v.parent.parent);if(L4(v)&&!Qr(v,32)&&l_(v.parent))return _(v,v);if($a(v)){if(n.flags&2097152&&lr(v)&&((x=v.parent)!=null&&x.parent)&&Oi(v.parent.parent)&&((k=v.parent.parent.parent)!=null&&k.parent)&&Ll(v.parent.parent.parent.parent)&&!Qr(v.parent.parent.parent.parent,32)&&v.parent.parent.parent.parent.parent&&l_(v.parent.parent.parent.parent.parent))return _(v,v.parent.parent.parent.parent);if(n.flags&2){const H=Vn(v,Ll);return Qr(H,32)?!0:l_(H.parent)?_(v,H):!1}}return!1}return!0}function _(v,x){return a&&(Zr(v).isVisible=!0,c=Rg(c,x)),!0}}function Ff(n){let a;return n.parent.kind===186||n.parent.kind===233&&!$h(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function bb(n,a){const c=Ff(n),d=Gp(n),_=yl(a,d.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&VE(d)&&wi(Ir(Fd(d,!1,!1)),d,c,!1).accessibility===0?{accessibility:0}:_&&Pd(_,!0)||{accessibility:1,errorSymbolName:fc(d),errorNode:d}}function Si(n,a,c,d=4,_){let v=70221824;d&2&&(v|=128),d&1&&(v|=512),d&8&&(v|=16384),d&32&&(v|=134217728),d&16&&(v|=1073741824);const x=d&4?At.symbolToNode:At.symbolToEntityName;return _?k(_).getText():hC(k);function k(F){const H=x(n,c,a,v),re=(a==null?void 0:a.kind)===312?nJ():d1(),be=a&&Un(a);return re.writeNode(4,H,be,F),F}}function kh(n,a,c=0,d,_){return _?v(_).getText():hC(v);function v(x){let k;c&262144?k=d===1?185:184:k=d===1?180:179;const F=At.signatureToSignatureDeclaration(n,k,a,kT(c)|70221824|512),H=Lw(),re=a&&Un(a);return H.writeNode(4,F,re,Vj(x)),x}}function Hn(n,a,c=1064960,d=ok("")){const _=V.noErrorTruncation||c&1,v=At.typeToTypeNode(n,a,kT(c)|70221824|(_?1:0));if(v===void 0)return N.fail("should always get typenode");const x=n!==Gt?d1():tJ(),k=a&&Un(a);x.writeNode(4,v,k,d);const F=d.getText(),H=_?Q3*2:Sk*2;return H&&F&&F.length>=H?F.substr(0,H-3)+"...":F}function ox(n,a){let c=Sb(n.symbol)?Hn(n,n.symbol.valueDeclaration):Hn(n),d=Sb(a.symbol)?Hn(a,a.symbol.valueDeclaration):Hn(a);return c===d&&(c=Eb(n),d=Eb(a)),[c,d]}function Eb(n){return Hn(n,void 0,64)}function Sb(n){return n&&!!n.valueDeclaration&&yt(n.valueDeclaration)&&!Vf(n.valueDeclaration)}function kT(n=0){return n&848330095}function W1(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Bf(n.symbol)||!!(n.flags&524288)&&!!(Wr(n)&16777216))}function q_(){return{typeToTypeNode:(ut,Ae,kn,Cr)=>a(Ae,kn,Cr,pi=>d(ut,pi)),indexInfoToIndexSignatureDeclaration:(ut,Ae,kn,Cr)=>a(Ae,kn,Cr,pi=>re(ut,pi,void 0)),signatureToSignatureDeclaration:(ut,Ae,kn,Cr,pi)=>a(kn,Cr,pi,Ai=>be(ut,Ae,Ai)),symbolToEntityName:(ut,Ae,kn,Cr,pi)=>a(kn,Cr,pi,Ai=>_o(ut,Ai,Ae,!1)),symbolToExpression:(ut,Ae,kn,Cr,pi)=>a(kn,Cr,pi,Ai=>Nc(ut,Ai,Ae)),symbolToTypeParameterDeclarations:(ut,Ae,kn,Cr)=>a(Ae,kn,Cr,pi=>Bn(ut,pi)),symbolToParameterDeclaration:(ut,Ae,kn,Cr)=>a(Ae,kn,Cr,pi=>an(ut,pi)),typeParameterToDeclaration:(ut,Ae,kn,Cr)=>a(Ae,kn,Cr,pi=>gt(ut,pi)),symbolTableToDeclarationStatements:(ut,Ae,kn,Cr,pi)=>a(Ae,kn,Cr,Ai=>bl(ut,Ai,pi)),symbolToNode:(ut,Ae,kn,Cr,pi)=>a(kn,Cr,pi,Ai=>n(ut,Ai,Ae))};function n(ut,Ae,kn){if(Ae.flags&1073741824){if(ut.valueDeclaration){const pi=Lo(ut.valueDeclaration);if(pi&&Za(pi))return pi}const Cr=Ki(ut).nameType;if(Cr&&Cr.flags&9216)return Ae.enclosingDeclaration=Cr.symbol.valueDeclaration,w.createComputedPropertyName(Nc(Cr.symbol,Ae,kn))}return Nc(ut,Ae,kn)}function a(ut,Ae,kn,Cr){N.assert(ut===void 0||(ut.flags&16)===0);const pi=kn!=null&&kn.trackSymbol?kn.moduleResolverHost:Ae&134217728?kVe(e):void 0,Ai={enclosingDeclaration:ut,flags:Ae||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Ai.tracker=new Dq(Ai,kn,pi);const Ii=Cr(Ai);return Ai.truncating&&Ai.flags&1&&Ai.tracker.reportTruncationError(),Ai.encounteredError?void 0:Ii}function c(ut){return ut.truncating?ut.truncating:ut.truncating=ut.approximateLength>(ut.flags&1?Q3:Sk)}function d(ut,Ae){const kn=Ae.flags,Cr=_(ut,Ae);return Ae.flags=kn,Cr}function _(ut,Ae){var kn,Cr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const pi=Ae.flags&8388608;if(Ae.flags&=-8388609,!ut){if(!(Ae.flags&262144)){Ae.encounteredError=!0;return}return Ae.approximateLength+=3,w.createKeywordTypeNode(133)}if(Ae.flags&536870912||(ut=f_(ut)),ut.flags&1)return ut.aliasSymbol?w.createTypeReferenceNode(nr(ut.aliasSymbol),F(ut.aliasTypeArguments,Ae)):ut===Gt?uP(w.createKeywordTypeNode(133),3,"unresolved"):(Ae.approximateLength+=3,w.createKeywordTypeNode(ut===fn?141:133));if(ut.flags&2)return w.createKeywordTypeNode(159);if(ut.flags&4)return Ae.approximateLength+=6,w.createKeywordTypeNode(154);if(ut.flags&8)return Ae.approximateLength+=6,w.createKeywordTypeNode(150);if(ut.flags&64)return Ae.approximateLength+=6,w.createKeywordTypeNode(163);if(ut.flags&16&&!ut.aliasSymbol)return Ae.approximateLength+=7,w.createKeywordTypeNode(136);if(ut.flags&1056){if(ut.symbol.flags&8){const Cn=Cd(ut.symbol),ti=Ro(Cn,Ae,788968);if(Zs(Cn)===ut)return ti;const Zi=El(ut.symbol);return Zp(Zi,0)?ki(ti,w.createTypeReferenceNode(Zi,void 0)):ag(ti)?(ti.isTypeOf=!0,w.createIndexedAccessTypeNode(ti,w.createLiteralTypeNode(w.createStringLiteral(Zi)))):Df(ti)?w.createIndexedAccessTypeNode(w.createTypeQueryNode(ti.typeName),w.createLiteralTypeNode(w.createStringLiteral(Zi))):N.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Ro(ut.symbol,Ae,788968)}if(ut.flags&128)return Ae.approximateLength+=ut.value.length+2,w.createLiteralTypeNode(pr(w.createStringLiteral(ut.value,!!(Ae.flags&268435456)),16777216));if(ut.flags&256){const Cn=ut.value;return Ae.approximateLength+=(""+Cn).length,w.createLiteralTypeNode(Cn<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-Cn)):w.createNumericLiteral(Cn))}if(ut.flags&2048)return Ae.approximateLength+=HE(ut.value).length+1,w.createLiteralTypeNode(w.createBigIntLiteral(ut.value));if(ut.flags&512)return Ae.approximateLength+=ut.intrinsicName.length,w.createLiteralTypeNode(ut.intrinsicName==="true"?w.createTrue():w.createFalse());if(ut.flags&8192){if(!(Ae.flags&1048576)){if(ht(ut.symbol,Ae.enclosingDeclaration))return Ae.approximateLength+=6,Ro(ut.symbol,Ae,111551);Ae.tracker.reportInaccessibleUniqueSymbolError&&Ae.tracker.reportInaccessibleUniqueSymbolError()}return Ae.approximateLength+=13,w.createTypeOperatorNode(158,w.createKeywordTypeNode(155))}if(ut.flags&16384)return Ae.approximateLength+=4,w.createKeywordTypeNode(116);if(ut.flags&32768)return Ae.approximateLength+=9,w.createKeywordTypeNode(157);if(ut.flags&65536)return Ae.approximateLength+=4,w.createLiteralTypeNode(w.createNull());if(ut.flags&131072)return Ae.approximateLength+=5,w.createKeywordTypeNode(146);if(ut.flags&4096)return Ae.approximateLength+=6,w.createKeywordTypeNode(155);if(ut.flags&67108864)return Ae.approximateLength+=6,w.createKeywordTypeNode(151);if(nP(ut))return Ae.flags&4194304&&(!Ae.encounteredError&&!(Ae.flags&32768)&&(Ae.encounteredError=!0),(Cr=(kn=Ae.tracker).reportInaccessibleThisError)==null||Cr.call(kn)),Ae.approximateLength+=4,w.createThisTypeNode();if(!pi&&ut.aliasSymbol&&(Ae.flags&16384||ae(ut.aliasSymbol,Ae.enclosingDeclaration))){const Cn=F(ut.aliasTypeArguments,Ae);return k1(ut.aliasSymbol.escapedName)&&!(ut.aliasSymbol.flags&32)?w.createTypeReferenceNode(w.createIdentifier(""),Cn):Ne(Cn)===1&&ut.aliasSymbol===$o.symbol?w.createArrayTypeNode(Cn[0]):Ro(ut.aliasSymbol,Ae,788968,Cn)}const Ai=Wr(ut);if(Ai&4)return N.assert(!!(ut.flags&524288)),ut.node?Ut(ut,Fn):Fn(ut);if(ut.flags&262144||Ai&3){if(ut.flags&262144&&Or(Ae.inferTypeParameters,ut)){Ae.approximateLength+=El(ut.symbol).length+6;let ti;const Zi=Md(ut);if(Zi){const fo=YOe(ut,!0);fo&&fv(Zi,fo)||(Ae.approximateLength+=9,ti=Zi&&d(Zi,Ae))}return w.createInferTypeNode(Je(ut,Ae,ti))}if(Ae.flags&4&&ut.flags&262144){const ti=Bo(ut,Ae);return Ae.approximateLength+=Sr(ti).length,w.createTypeReferenceNode(w.createIdentifier(Sr(ti)),void 0)}if(ut.symbol)return Ro(ut.symbol,Ae,788968);const Cn=(ut===ue||ut===Z)&&O&&O.symbol?(ut===Z?"sub-":"super-")+El(O.symbol):"?";return w.createTypeReferenceNode(w.createIdentifier(Cn),void 0)}if(ut.flags&1048576&&ut.origin&&(ut=ut.origin),ut.flags&3145728){const Cn=ut.flags&1048576?dN(ut.types):ut.types;if(Ne(Cn)===1)return d(Cn[0],Ae);const ti=F(Cn,Ae,!0);if(ti&&ti.length>0)return ut.flags&1048576?w.createUnionTypeNode(ti):w.createIntersectionTypeNode(ti);!Ae.encounteredError&&!(Ae.flags&262144)&&(Ae.encounteredError=!0);return}if(Ai&48)return N.assert(!!(ut.flags&524288)),dn(ut);if(ut.flags&4194304){const Cn=ut.type;Ae.approximateLength+=6;const ti=d(Cn,Ae);return w.createTypeOperatorNode(143,ti)}if(ut.flags&134217728){const Cn=ut.texts,ti=ut.types,Zi=w.createTemplateHead(Cn[0]),fo=w.createNodeArray(Wt(ti,(Ea,Ec)=>w.createTemplateLiteralTypeSpan(d(Ea,Ae),(Ec<ti.length-1?w.createTemplateMiddle:w.createTemplateTail)(Cn[Ec+1]))));return Ae.approximateLength+=2,w.createTemplateLiteralType(Zi,fo)}if(ut.flags&268435456){const Cn=d(ut.type,Ae);return Ro(ut.symbol,Ae,788968,[Cn])}if(ut.flags&8388608){const Cn=d(ut.objectType,Ae),ti=d(ut.indexType,Ae);return Ae.approximateLength+=2,w.createIndexedAccessTypeNode(Cn,ti)}if(ut.flags&16777216)return Ut(ut,Cn=>Ii(Cn));if(ut.flags&33554432){const Cn=d(ut.baseType,Ae),ti=VM(ut)&&yge("NoInfer",!1);return ti?Ro(ti,Ae,788968,[Cn]):Cn}return N.fail("Should be unreachable.");function Ii(Cn){const ti=d(Cn.checkType,Ae);if(Ae.approximateLength+=15,Ae.flags&4&&Cn.root.isDistributive&&!(Cn.checkType.flags&262144)){const ks=gf(Ka(262144,"T")),Ds=Bo(ks,Ae),Du=w.createTypeReferenceNode(Ds);Ae.approximateLength+=37;const Ks=JT(Cn.root.checkType,ks,Cn.mapper),v_=Ae.inferTypeParameters;Ae.inferTypeParameters=Cn.root.inferTypeParameters;const rt=d(lo(Cn.root.extendsType,Ks),Ae);Ae.inferTypeParameters=v_;const St=Ur(lo(Ti(Cn.root.node.trueType),Ks)),Zt=Ur(lo(Ti(Cn.root.node.falseType),Ks));return w.createConditionalTypeNode(ti,w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Du.typeName))),w.createConditionalTypeNode(w.createTypeReferenceNode(w.cloneNode(Ds)),d(Cn.checkType,Ae),w.createConditionalTypeNode(Du,rt,St,Zt),w.createKeywordTypeNode(146)),w.createKeywordTypeNode(146))}const Zi=Ae.inferTypeParameters;Ae.inferTypeParameters=Cn.root.inferTypeParameters;const fo=d(Cn.extendsType,Ae);Ae.inferTypeParameters=Zi;const Ea=Ur(aE(Cn)),Ec=Ur(sE(Cn));return w.createConditionalTypeNode(ti,fo,Ea,Ec)}function Ur(Cn){var ti,Zi,fo;return Cn.flags&1048576?(ti=Ae.visitedTypes)!=null&&ti.has(vd(Cn))?(Ae.flags&131072||(Ae.encounteredError=!0,(fo=(Zi=Ae.tracker)==null?void 0:Zi.reportCyclicStructureError)==null||fo.call(Zi)),v(Ae)):Ut(Cn,Ea=>d(Ea,Ae)):d(Cn,Ae)}function xr(Cn){return!!C8(Cn)}function lt(Cn){return!!Cn.target&&xr(Cn.target)&&!xr(Cn)}function wt(Cn){var ti;N.assert(!!(Cn.flags&524288));const Zi=Cn.declaration.readonlyToken?w.createToken(Cn.declaration.readonlyToken.kind):void 0,fo=Cn.declaration.questionToken?w.createToken(Cn.declaration.questionToken.kind):void 0;let Ea,Ec;const ks=!vN(Cn)&&!(FT(Cn).flags&2)&&Ae.flags&4&&!(yf(Cn).flags&262144&&((ti=Md(yf(Cn)))==null?void 0:ti.flags)&4194304);if(vN(Cn)){if(lt(Cn)&&Ae.flags&4){const St=gf(Ka(262144,"T")),Zt=Bo(St,Ae);Ec=w.createTypeReferenceNode(Zt)}Ea=w.createTypeOperatorNode(143,Ec||d(FT(Cn),Ae))}else if(ks){const St=gf(Ka(262144,"T")),Zt=Bo(St,Ae);Ec=w.createTypeReferenceNode(Zt),Ea=Ec}else Ea=d(yf(Cn),Ae);const Ds=Je(d_(Cn),Ae,Ea),Du=Cn.declaration.nameType?d(cy(Cn),Ae):void 0,Ks=d(Gb(cv(Cn),!!(Fh(Cn)&4)),Ae),v_=w.createMappedTypeNode(Zi,Ds,Du,fo,Ks,void 0);Ae.approximateLength+=10;const rt=pr(v_,1);if(lt(Cn)&&Ae.flags&4){const St=lo(Md(Ti(Cn.declaration.typeParameter.constraint.type))||hn,Cn.mapper);return w.createConditionalTypeNode(d(FT(Cn),Ae),w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Ec.typeName),St.flags&2?void 0:d(St,Ae))),rt,w.createKeywordTypeNode(146))}else if(ks)return w.createConditionalTypeNode(d(yf(Cn),Ae),w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Ec.typeName),w.createTypeOperatorNode(143,d(FT(Cn),Ae)))),rt,w.createKeywordTypeNode(146));return rt}function dn(Cn){var ti,Zi;const fo=Cn.id,Ea=Cn.symbol;if(Ea){if(!!(Wr(Cn)&8388608)){const Ks=Cn.node;if(eI(Ks)&&Ti(Ks)===Cn){const v_=Wl(Ae,Ks);if(v_)return v_}return(ti=Ae.visitedTypes)!=null&&ti.has(fo)?v(Ae):Ut(Cn,_n)}const Ds=W1(Cn)?788968:111551;if(Z_(Ea.valueDeclaration))return Ro(Ea,Ae,Ds);if(Ea.flags&32&&!mZ(Ea)&&!(Ea.valueDeclaration&&di(Ea.valueDeclaration)&&Ae.flags&2048&&(!Ac(Ea.valueDeclaration)||wi(Ea,Ae.enclosingDeclaration,Ds,!1).accessibility!==0))||Ea.flags&896||Ec())return Ro(Ea,Ae,Ds);if((Zi=Ae.visitedTypes)!=null&&Zi.has(fo)){const Du=$z(Cn);return Du?Ro(Du,Ae,788968):v(Ae)}else return Ut(Cn,_n)}else return _n(Cn);function Ec(){var ks;const Ds=!!(Ea.flags&8192)&&bt(Ea.declarations,Ks=>aa(Ks)),Du=!!(Ea.flags&16)&&(Ea.parent||Xe(Ea.declarations,Ks=>Ks.parent.kind===312||Ks.parent.kind===268));if(Ds||Du)return(!!(Ae.flags&4096)||((ks=Ae.visitedTypes)==null?void 0:ks.has(fo)))&&(!(Ae.flags&8)||ht(Ea,Ae.enclosingDeclaration))}}function Ut(Cn,ti){var Zi,fo,Ea;const Ec=Cn.id,ks=Wr(Cn)&16&&Cn.symbol&&Cn.symbol.flags&32,Ds=Wr(Cn)&4&&Cn.node?"N"+as(Cn.node):Cn.flags&16777216?"N"+as(Cn.root.node):Cn.symbol?(ks?"+":"")+Sa(Cn.symbol):void 0;Ae.visitedTypes||(Ae.visitedTypes=new Set),Ds&&!Ae.symbolDepth&&(Ae.symbolDepth=new Map);const Du=Ae.enclosingDeclaration&&Zr(Ae.enclosingDeclaration),Ks=`${vd(Cn)}|${Ae.flags}`;Du&&(Du.serializedTypes||(Du.serializedTypes=new Map));const v_=(Zi=Du==null?void 0:Du.serializedTypes)==null?void 0:Zi.get(Ks);if(v_)return(fo=v_.trackedSymbols)==null||fo.forEach(([Hr,Bi,Fo])=>Ae.tracker.trackSymbol(Hr,Bi,Fo)),v_.truncating&&(Ae.truncating=!0),Ae.approximateLength+=v_.addedLength,An(v_.node);let rt;if(Ds){if(rt=Ae.symbolDepth.get(Ds)||0,rt>10)return v(Ae);Ae.symbolDepth.set(Ds,rt+1)}Ae.visitedTypes.add(Ec);const St=Ae.trackedSymbols;Ae.trackedSymbols=void 0;const Zt=Ae.approximateLength,Yn=ti(Cn),Rr=Ae.approximateLength-Zt;return!Ae.reportedDiagnostic&&!Ae.encounteredError&&((Ea=Du==null?void 0:Du.serializedTypes)==null||Ea.set(Ks,{node:Yn,truncating:Ae.truncating,addedLength:Rr,trackedSymbols:Ae.trackedSymbols})),Ae.visitedTypes.delete(Ec),Ds&&Ae.symbolDepth.set(Ds,rt),Ae.trackedSymbols=St,Yn;function An(Hr){return!Ys(Hr)&&No(Hr)===Hr?Hr:dt(w.cloneNode(xn(Hr,An,void 0,gr)),Hr)}function gr(Hr,Bi,Fo,ma,_a){return Hr&&Hr.length===0?dt(w.createNodeArray(void 0,Hr.hasTrailingComma),Hr):jn(Hr,Bi,Fo,ma,_a)}}function _n(Cn){if(Kd(Cn)||Cn.containsError)return wt(Cn);const ti=p_(Cn);if(!ti.properties.length&&!ti.indexInfos.length){if(!ti.callSignatures.length&&!ti.constructSignatures.length)return Ae.approximateLength+=2,pr(w.createTypeLiteralNode(void 0),1);if(ti.callSignatures.length===1&&!ti.constructSignatures.length){const ks=ti.callSignatures[0];return be(ks,184,Ae)}if(ti.constructSignatures.length===1&&!ti.callSignatures.length){const ks=ti.constructSignatures[0];return be(ks,185,Ae)}}const Zi=mn(ti.constructSignatures,ks=>!!(ks.flags&4));if(bt(Zi)){const ks=Wt(Zi,VT);return ti.callSignatures.length+(ti.constructSignatures.length-Zi.length)+ti.indexInfos.length+(Ae.flags&2048?ou(ti.properties,Du=>!(Du.flags&4194304)):Ne(ti.properties))&&ks.push(w1(ti)),d(ya(ks),Ae)}const fo=Ae.flags;Ae.flags|=4194304;const Ea=Go(ti);Ae.flags=fo;const Ec=w.createTypeLiteralNode(Ea);return Ae.approximateLength+=2,pr(Ec,Ae.flags&1024?0:1),Ec}function Fn(Cn){let ti=Js(Cn);if(Cn.target===$o||Cn.target===na){if(Ae.flags&2){const Ea=d(ti[0],Ae);return w.createTypeReferenceNode(Cn.target===$o?"Array":"ReadonlyArray",[Ea])}const Zi=d(ti[0],Ae),fo=w.createArrayTypeNode(Zi);return Cn.target===$o?fo:w.createTypeOperatorNode(148,fo)}else if(Cn.target.objectFlags&8){if(ti=Zo(ti,(Zi,fo)=>Gb(Zi,!!(Cn.target.elementFlags[fo]&2))),ti.length>0){const Zi=dy(Cn),fo=F(ti.slice(0,Zi),Ae);if(fo){const{labeledElementDeclarations:Ea}=Cn.target;for(let ks=0;ks<fo.length;ks++){const Ds=Cn.target.elementFlags[ks],Du=Ea==null?void 0:Ea[ks];Du?fo[ks]=w.createNamedTupleMember(Ds&12?w.createToken(26):void 0,w.createIdentifier(Vi(bye(Du))),Ds&2?w.createToken(58):void 0,Ds&4?w.createArrayTypeNode(fo[ks]):fo[ks]):fo[ks]=Ds&12?w.createRestTypeNode(Ds&4?w.createArrayTypeNode(fo[ks]):fo[ks]):Ds&2?w.createOptionalTypeNode(fo[ks]):fo[ks]}const Ec=pr(w.createTupleTypeNode(fo),1);return Cn.target.readonly?w.createTypeOperatorNode(148,Ec):Ec}}if(Ae.encounteredError||Ae.flags&524288){const Zi=pr(w.createTupleTypeNode([]),1);return Cn.target.readonly?w.createTypeOperatorNode(148,Zi):Zi}Ae.encounteredError=!0;return}else{if(Ae.flags&2048&&Cn.symbol.valueDeclaration&&di(Cn.symbol.valueDeclaration)&&!ht(Cn.symbol,Ae.enclosingDeclaration))return dn(Cn);{const Zi=Cn.target.outerTypeParameters;let fo=0,Ea;if(Zi){const Du=Zi.length;for(;fo<Du;){const Ks=fo,v_=$Oe(Zi[fo]);do fo++;while(fo<Du&&$Oe(Zi[fo])===v_);if(!VB(Zi,ti,Ks,fo)){const rt=F(ti.slice(Ks,fo),Ae),St=Ae.flags;Ae.flags|=16;const Zt=Ro(v_,Ae,788968,rt);Ae.flags=St,Ea=Ea?ki(Ea,Zt):Zt}}}let Ec;if(ti.length>0){const Du=(Cn.target.typeParameters||et).length;Ec=F(ti.slice(fo,Du),Ae)}const ks=Ae.flags;Ae.flags|=16;const Ds=Ro(Cn.symbol,Ae,788968,Ec);return Ae.flags=ks,Ea?ki(Ea,Ds):Ds}}}function ki(Cn,ti){if(ag(Cn)){let Zi=Cn.typeArguments,fo=Cn.qualifier;fo&&(Ve(fo)?Zi!==LS(fo)&&(fo=Gv(w.cloneNode(fo),Zi)):Zi!==LS(fo.right)&&(fo=w.updateQualifiedName(fo,fo.left,Gv(w.cloneNode(fo.right),Zi)))),Zi=ti.typeArguments;const Ea=Br(ti);for(const Ec of Ea)fo=fo?w.createQualifiedName(fo,Ec):Ec;return w.updateImportTypeNode(Cn,Cn.argument,Cn.attributes,fo,Zi,Cn.isTypeOf)}else{let Zi=Cn.typeArguments,fo=Cn.typeName;Ve(fo)?Zi!==LS(fo)&&(fo=Gv(w.cloneNode(fo),Zi)):Zi!==LS(fo.right)&&(fo=w.updateQualifiedName(fo,fo.left,Gv(w.cloneNode(fo.right),Zi))),Zi=ti.typeArguments;const Ea=Br(ti);for(const Ec of Ea)fo=w.createQualifiedName(fo,Ec);return w.updateTypeReferenceNode(Cn,fo,Zi)}}function Br(Cn){let ti=Cn.typeName;const Zi=[];for(;!Ve(ti);)Zi.unshift(ti.right),ti=ti.left;return Zi.unshift(ti),Zi}function Go(Cn){if(c(Ae))return[w.createPropertySignature(void 0,"...",void 0,void 0)];const ti=[];for(const Ea of Cn.callSignatures)ti.push(be(Ea,179,Ae));for(const Ea of Cn.constructSignatures)Ea.flags&4||ti.push(be(Ea,180,Ae));for(const Ea of Cn.indexInfos)ti.push(re(Ea,Ae,Cn.objectFlags&1024?v(Ae):void 0));const Zi=Cn.properties;if(!Zi)return ti;let fo=0;for(const Ea of Zi){if(fo++,Ae.flags&2048){if(Ea.flags&4194304)continue;xf(Ea)&6&&Ae.tracker.reportPrivateInBaseOfClassExpression&&Ae.tracker.reportPrivateInBaseOfClassExpression(Vi(Ea.escapedName))}if(c(Ae)&&fo+2<Zi.length-1){ti.push(w.createPropertySignature(void 0,`... ${Zi.length-fo} more ...`,void 0,void 0)),k(Zi[Zi.length-1],Ae,ti);break}k(Ea,Ae,ti)}return ti.length?ti:void 0}}function v(ut){return ut.approximateLength+=3,ut.flags&1?w.createKeywordTypeNode(133):w.createTypeReferenceNode(w.createIdentifier("..."),void 0)}function x(ut,Ae){var kn;return!!(xl(ut)&8192)&&(Or(Ae.reverseMappedStack,ut)||((kn=Ae.reverseMappedStack)==null?void 0:kn[0])&&!(Wr(Xa(Ae.reverseMappedStack).links.propertyType)&16))}function k(ut,Ae,kn){var Cr;const pi=!!(xl(ut)&8192),Ai=x(ut,Ae)?j:Db(ut),Ii=Ae.enclosingDeclaration;if(Ae.enclosingDeclaration=void 0,Ae.tracker.canTrackSymbol&&y8(ut.escapedName))if(ut.declarations){const _n=Ua(ut.declarations);if(r9(_n))if(mr(_n)){const Fn=Lo(_n);Fn&&$s(Fn)&&lk(Fn.argumentExpression)&&ar(Fn.argumentExpression,Ii,Ae)}else ar(_n.name.expression,Ii,Ae)}else Ae.tracker.reportNonSerializableProperty(Si(ut));Ae.enclosingDeclaration=ut.valueDeclaration||((Cr=ut.declarations)==null?void 0:Cr[0])||Ii;const Ur=On(ut,Ae);if(Ae.enclosingDeclaration=Ii,Ae.approximateLength+=El(ut).length+1,ut.flags&98304){const _n=F1(ut);if(Ai!==_n&&!Jt(Ai)&&!Jt(_n)){const Fn=pl(ut,177),ki=dm(Fn);kn.push(ac(be(ki,177,Ae,{name:Ur}),Fn));const Br=pl(ut,178),Go=dm(Br);kn.push(ac(be(Go,178,Ae,{name:Ur}),Br));return}}const xr=ut.flags&16777216?w.createToken(58):void 0;if(ut.flags&8208&&!Pb(Ai).length&&!g_(ut)){const _n=Xo(dc(Ai,Fn=>!(Fn.flags&32768)),0);for(const Fn of _n){const ki=be(Fn,173,Ae,{name:Ur,questionToken:xr});kn.push(Ut(ki))}if(_n.length||!xr)return}let lt;x(ut,Ae)?lt=v(Ae):(pi&&(Ae.reverseMappedStack||(Ae.reverseMappedStack=[]),Ae.reverseMappedStack.push(ut)),lt=Ai?Ss(Ae,Ai,ut,Ii):w.createKeywordTypeNode(133),pi&&Ae.reverseMappedStack.pop());const wt=g_(ut)?[w.createToken(148)]:void 0;wt&&(Ae.approximateLength+=9);const dn=w.createPropertySignature(wt,Ur,xr,lt);kn.push(Ut(dn));function Ut(_n){var Fn;const ki=(Fn=ut.declarations)==null?void 0:Fn.find(Br=>Br.kind===355);if(ki){const Br=aL(ki.comment);Br&&v0(_n,[{kind:3,text:`*
* `+Br.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ut.valueDeclaration&&ac(_n,ut.valueDeclaration);return _n}}function F(ut,Ae,kn){if(bt(ut)){if(c(Ae))if(kn){if(ut.length>2)return[d(ut[0],Ae),w.createTypeReferenceNode(`... ${ut.length-2} more ...`,void 0),d(ut[ut.length-1],Ae)]}else return[w.createTypeReferenceNode("...",void 0)];const pi=!(Ae.flags&64)?$p():void 0,Ai=[];let Ii=0;for(const Ur of ut){if(Ii++,c(Ae)&&Ii+2<ut.length-1){Ai.push(w.createTypeReferenceNode(`... ${ut.length-Ii} more ...`,void 0));const lt=d(ut[ut.length-1],Ae);lt&&Ai.push(lt);break}Ae.approximateLength+=2;const xr=d(Ur,Ae);xr&&(Ai.push(xr),pi&&Toe(xr)&&pi.add(xr.typeName.escapedText,[Ur,Ai.length-1]))}if(pi){const Ur=Ae.flags;Ae.flags|=64,pi.forEach(xr=>{if(!Aoe(xr,([lt],[wt])=>H(lt,wt)))for(const[lt,wt]of xr)Ai[wt]=d(lt,Ae)}),Ae.flags=Ur}return Ai}}function H(ut,Ae){return ut===Ae||!!ut.symbol&&ut.symbol===Ae.symbol||!!ut.aliasSymbol&&ut.aliasSymbol===Ae.aliasSymbol}function re(ut,Ae,kn){const Cr=Hre(ut)||"x",pi=d(ut.keyType,Ae),Ai=w.createParameterDeclaration(void 0,void 0,Cr,void 0,pi,void 0);return kn||(kn=d(ut.type||j,Ae)),!ut.type&&!(Ae.flags&2097152)&&(Ae.encounteredError=!0),Ae.approximateLength+=Cr.length+4,w.createIndexSignature(ut.isReadonly?[w.createToken(148)]:void 0,[Ai],kn)}function be(ut,Ae,kn,Cr){var pi;const Ai=kn.flags&256;Ai&&(kn.flags&=-257),kn.approximateLength+=3;let Ii,Ur;kn.flags&32&&ut.target&&ut.mapper&&ut.target.typeParameters?Ur=ut.target.typeParameters.map(Br=>d(lo(Br,ut.mapper),kn)):Ii=ut.typeParameters&&ut.typeParameters.map(Br=>gt(Br,kn));const xr=xOe(ut,!0)[0];let lt;if(kn.enclosingDeclaration&&ut.declaration&&ut.declaration!==kn.enclosingDeclaration&&!lr(ut.declaration)&&(bt(xr)||bt(ut.typeParameters))){let Br=function(Go,Cn){N.assert(kn.enclosingDeclaration);let ti;Zr(kn.enclosingDeclaration).fakeScopeForSignatureDeclaration===Go?ti=kn.enclosingDeclaration:kn.enclosingDeclaration.parent&&Zr(kn.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===Go&&(ti=kn.enclosingDeclaration.parent),N.assertOptionalNode(ti,Ko);const Zi=(ti==null?void 0:ti.locals)??ca();let fo;if(Cn((ks,Ds)=>{Zi.has(ks)||(fo=Rn(fo,ks),Zi.set(ks,Ds))}),!fo)return;const Ea=lt;function Ec(){Xe(fo,ks=>Zi.delete(ks)),Ea==null||Ea()}if(ti)lt=Ec;else{const ks=Th.createBlock(et);Zr(ks).fakeScopeForSignatureDeclaration=Go,ks.locals=Zi;const Ds=kn.enclosingDeclaration;Ha(ks,Ds),kn.enclosingDeclaration=ks,lt=()=>{kn.enclosingDeclaration=Ds,Ec()}}};Br("params",Go=>{for(const Cn of xr)Go(Cn.escapedName,Cn)}),kn.flags&4&&Br("typeParams",Go=>{for(const Cn of ut.typeParameters??et){const ti=Bo(Cn,kn).escapedText;Go(ti,Cn.symbol)}})}const wt=(bt(xr,Br=>Br!==xr[xr.length-1]&&!!(xl(Br)&32768))?ut.parameters:xr).map(Br=>an(Br,kn,Ae===176,Cr==null?void 0:Cr.privateSymbolVisitor,Cr==null?void 0:Cr.bundledImports)),dn=kn.flags&33554432?void 0:ge(ut,kn);dn&&wt.unshift(dn);let Ut;const _n=Gf(ut);if(_n){const Br=_n.kind===2||_n.kind===3?w.createToken(131):void 0,Go=_n.kind===1||_n.kind===3?pr(w.createIdentifier(_n.parameterName),16777216):w.createThisTypeNode(),Cn=_n.type&&d(_n.type,kn);Ut=w.createTypePredicateNode(Br,Go,Cn)}else{const Br=ps(ut);Br&&!(Ai&&Nt(Br))?Ut=Fa(kn,Br,ut,Cr==null?void 0:Cr.privateSymbolVisitor,Cr==null?void 0:Cr.bundledImports):Ai||(Ut=w.createKeywordTypeNode(133))}let Fn=Cr==null?void 0:Cr.modifiers;if(Ae===185&&ut.flags&4){const Br=N_(Fn);Fn=w.createModifiersFromModifierFlags(Br|64)}const ki=Ae===179?w.createCallSignature(Ii,wt,Ut):Ae===180?w.createConstructSignature(Ii,wt,Ut):Ae===173?w.createMethodSignature(Fn,(Cr==null?void 0:Cr.name)??w.createIdentifier(""),Cr==null?void 0:Cr.questionToken,Ii,wt,Ut):Ae===174?w.createMethodDeclaration(Fn,void 0,(Cr==null?void 0:Cr.name)??w.createIdentifier(""),void 0,Ii,wt,Ut,void 0):Ae===176?w.createConstructorDeclaration(Fn,wt,void 0):Ae===177?w.createGetAccessorDeclaration(Fn,(Cr==null?void 0:Cr.name)??w.createIdentifier(""),wt,Ut,void 0):Ae===178?w.createSetAccessorDeclaration(Fn,(Cr==null?void 0:Cr.name)??w.createIdentifier(""),wt,void 0):Ae===181?w.createIndexSignature(Fn,wt,Ut):Ae===324?w.createJSDocFunctionType(wt,Ut):Ae===184?w.createFunctionTypeNode(Ii,wt,Ut??w.createTypeReferenceNode(w.createIdentifier(""))):Ae===185?w.createConstructorTypeNode(Fn,Ii,wt,Ut??w.createTypeReferenceNode(w.createIdentifier(""))):Ae===262?w.createFunctionDeclaration(Fn,void 0,Cr!=null&&Cr.name?oa(Cr.name,Ve):w.createIdentifier(""),Ii,wt,Ut,void 0):Ae===218?w.createFunctionExpression(Fn,void 0,Cr!=null&&Cr.name?oa(Cr.name,Ve):w.createIdentifier(""),Ii,wt,Ut,w.createBlock([])):Ae===219?w.createArrowFunction(Fn,Ii,wt,Ut,void 0,w.createBlock([])):N.assertNever(Ae);if(Ur&&(ki.typeArguments=w.createNodeArray(Ur)),((pi=ut.declaration)==null?void 0:pi.kind)===330&&ut.declaration.parent.kind===346){const Br=fc(ut.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(Go=>Go.replace(/^\s+/," ")).join(`
`);uP(ki,3,Br,!0)}return lt==null||lt(),ki}function ge(ut,Ae){if(ut.thisParameter)return an(ut.thisParameter,Ae);if(ut.declaration&&lr(ut.declaration)){const kn=l4(ut.declaration);if(kn&&kn.typeExpression)return w.createParameterDeclaration(void 0,void 0,"this",void 0,d(Ti(kn.typeExpression),Ae))}}function Je(ut,Ae,kn){const Cr=Ae.flags;Ae.flags&=-513;const pi=w.createModifiersFromModifierFlags(tve(ut)),Ai=Bo(ut,Ae),Ii=GT(ut),Ur=Ii&&d(Ii,Ae);return Ae.flags=Cr,w.createTypeParameterDeclaration(pi,Ai,kn,Ur)}function gt(ut,Ae,kn=Md(ut)){const Cr=kn&&d(kn,Ae);return Je(ut,Ae,Cr)}function Dt(ut){const Ae=pl(ut,169);if(Ae)return Ae;if(!ph(ut))return pl(ut,348)}function an(ut,Ae,kn,Cr,pi){const Ai=Dt(ut);let Ii=dr(ut);Ai&&_Fe(Ai)&&(Ii=Bb(Ii));const Ur=Ss(Ae,Ii,ut,Ae.enclosingDeclaration,Cr,pi),xr=!(Ae.flags&8192)&&kn&&Ai&&Rm(Ai)?Wt(xE(Ai),w.cloneNode):void 0,wt=Ai&&Xh(Ai)||xl(ut)&32768?w.createToken(26):void 0,dn=cn(ut,Ai,Ae),_n=Ai&&S8(Ai)||xl(ut)&16384?w.createToken(58):void 0,Fn=w.createParameterDeclaration(xr,wt,dn,_n,Ur,void 0);return Ae.approximateLength+=El(ut).length+3,Fn}function cn(ut,Ae,kn){return Ae&&Ae.name?Ae.name.kind===80?pr(w.cloneNode(Ae.name),16777216):Ae.name.kind===166?pr(w.cloneNode(Ae.name.right),16777216):Cr(Ae.name):El(ut);function Cr(pi){return Ai(pi);function Ai(Ii){kn.tracker.canTrackSymbol&&Za(Ii)&&jhe(Ii)&&ar(Ii.expression,kn.enclosingDeclaration,kn);let Ur=xn(Ii,Ai,void 0,void 0,Ai);return $a(Ur)&&(Ur=w.updateBindingElement(Ur,Ur.dotDotDotToken,Ur.propertyName,Ur.name,void 0)),Ys(Ur)||(Ur=w.cloneNode(Ur)),pr(Ur,16777217)}}}function ar(ut,Ae,kn){if(!kn.tracker.canTrackSymbol)return;const Cr=Gp(ut),pi=yl(Cr,Cr.escapedText,1160127,void 0,void 0,!0);pi&&kn.tracker.trackSymbol(pi,Ae,111551)}function Wn(ut,Ae,kn,Cr){return Ae.tracker.trackSymbol(ut,Ae.enclosingDeclaration,kn),ln(ut,Ae,kn,Cr)}function ln(ut,Ae,kn,Cr){let pi;return!(ut.flags&262144)&&(Ae.enclosingDeclaration||Ae.flags&64)&&!(Ae.flags&134217728)?(pi=N.checkDefined(Ii(ut,kn,!0)),N.assert(pi&&pi.length>0)):pi=[ut],pi;function Ii(Ur,xr,lt){let wt=yb(Ur,Ae.enclosingDeclaration,xr,!!(Ae.flags&128)),dn;if(!wt||Y0(wt[0],Ae.enclosingDeclaration,wt.length===1?xr:iv(xr))){const _n=K0(wt?wt[0]:Ur,Ae.enclosingDeclaration,xr);if(Ne(_n)){dn=_n.map(Br=>bt(Br.declarations,ed)?Kn(Br,Ae):void 0);const Fn=_n.map((Br,Go)=>Go);Fn.sort(Ut);const ki=Fn.map(Br=>_n[Br]);for(const Br of ki){const Go=Ii(Br,iv(xr),!1);if(Go){if(Br.exports&&Br.exports.get("export=")&&s_(Br.exports.get("export="),Ur)){wt=Go;break}wt=Go.concat(wt||[gg(Br,Ur)||Ur]);break}}}}if(wt)return wt;if(lt||!(Ur.flags&6144))return!lt&&!Cr&&Xe(Ur.declarations,ed)?void 0:[Ur];function Ut(_n,Fn){const ki=dn[_n],Br=dn[Fn];if(ki&&Br){const Go=Op(Br);return Op(ki)===Go?LF(ki)-LF(Br):Go?-1:1}return 0}}}function Bn(ut,Ae){let kn;return wN(ut).flags&524384&&(kn=w.createNodeArray(Wt(Lr(ut),pi=>gt(pi,Ae)))),kn}function zn(ut,Ae,kn){var Cr;N.assert(ut&&0<=Ae&&Ae<ut.length);const pi=ut[Ae],Ai=Sa(pi);if((Cr=kn.typeParameterSymbolList)!=null&&Cr.has(Ai))return;(kn.typeParameterSymbolList||(kn.typeParameterSymbolList=new Set)).add(Ai);let Ii;if(kn.flags&512&&Ae<ut.length-1){const Ur=pi,xr=ut[Ae+1];if(xl(xr)&1){const lt=zi(Ur.flags&2097152?Oc(Ur):Ur);Ii=F(Wt(lt,wt=>Ob(wt,xr.links.mapper)),kn)}else Ii=Bn(pi,kn)}return Ii}function tr(ut){return WS(ut.objectType)?tr(ut.objectType):ut}function Kn(ut,Ae,kn){let Cr=pl(ut,312);if(!Cr){const lt=Ht(ut.declarations,wt=>MT(wt,ut));lt&&(Cr=pl(lt,312))}if(Cr&&Cr.moduleName!==void 0)return Cr.moduleName;if(!Cr){if(Ae.tracker.trackReferencedAmbientModule){const lt=mn(ut.declarations,ku);if(Ne(lt))for(const wt of lt)Ae.tracker.trackReferencedAmbientModule(wt,ut)}if(xq.test(ut.escapedName))return ut.escapedName.substring(1,ut.escapedName.length-1)}if(!Ae.enclosingDeclaration||!Ae.tracker.moduleResolverHost)return xq.test(ut.escapedName)?ut.escapedName.substring(1,ut.escapedName.length-1):Un(nj(ut)).fileName;const pi=Un(Pl(Ae.enclosingDeclaration)),Ai=kn||(pi==null?void 0:pi.impliedNodeFormat),Ii=kP(pi.path,Ai),Ur=Ki(ut);let xr=Ur.specifierCache&&Ur.specifierCache.get(Ii);if(!xr){const lt=!!Ps(V),{moduleResolverHost:wt}=Ae.tracker,dn=lt?{...V,baseUrl:wt.getCommonSourceDirectory()}:V;xr=Ua(AIe(ut,Qt,dn,pi,wt,{importModuleSpecifierPreference:lt?"non-relative":"project-relative",importModuleSpecifierEnding:lt?"minimal":Ai===99?"js":void 0},{overrideImportMode:kn})),Ur.specifierCache??(Ur.specifierCache=new Map),Ur.specifierCache.set(Ii,xr)}return xr}function nr(ut){const Ae=w.createIdentifier(Vi(ut.escapedName));return ut.parent?w.createQualifiedName(nr(ut.parent),Ae):Ae}function Ro(ut,Ae,kn,Cr){const pi=Wn(ut,Ae,kn,!(Ae.flags&16384)),Ai=kn===111551;if(bt(pi[0].declarations,ed)){const xr=pi.length>1?Ur(pi,pi.length-1,1):void 0,lt=Cr||zn(pi,0,Ae),wt=Un(Pl(Ae.enclosingDeclaration)),dn=D4(pi[0]);let Ut,_n;if((pd(V)===3||pd(V)===99)&&(dn==null?void 0:dn.impliedNodeFormat)===99&&dn.impliedNodeFormat!==(wt==null?void 0:wt.impliedNodeFormat)&&(Ut=Kn(pi[0],Ae,99),_n=w.createImportAttributes(w.createNodeArray([w.createImportAttribute(w.createStringLiteral("resolution-mode"),w.createStringLiteral("import"))]))),Ut||(Ut=Kn(pi[0],Ae)),!(Ae.flags&67108864)&&pd(V)!==1&&Ut.includes("/node_modules/")){const ki=Ut;if(pd(V)===3||pd(V)===99){const Br=(wt==null?void 0:wt.impliedNodeFormat)===99?1:99;Ut=Kn(pi[0],Ae,Br),Ut.includes("/node_modules/")?Ut=ki:_n=w.createImportAttributes(w.createNodeArray([w.createImportAttribute(w.createStringLiteral("resolution-mode"),w.createStringLiteral(Br===99?"import":"require"))]))}_n||(Ae.encounteredError=!0,Ae.tracker.reportLikelyUnsafeImportRequiredError&&Ae.tracker.reportLikelyUnsafeImportRequiredError(ki))}const Fn=w.createLiteralTypeNode(w.createStringLiteral(Ut));if(Ae.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ae.tracker.trackExternalModuleSymbolOfImportTypeNode(pi[0]),Ae.approximateLength+=Ut.length+10,!xr||Qd(xr)){if(xr){const ki=Ve(xr)?xr:xr.right;Gv(ki,void 0)}return w.createImportTypeNode(Fn,_n,xr,lt,Ai)}else{const ki=tr(xr),Br=ki.objectType.typeName;return w.createIndexedAccessTypeNode(w.createImportTypeNode(Fn,_n,Br,lt,Ai),ki.indexType)}}const Ii=Ur(pi,pi.length-1,0);if(WS(Ii))return Ii;if(Ai)return w.createTypeQueryNode(Ii);{const xr=Ve(Ii)?Ii:Ii.right,lt=LS(xr);return Gv(xr,void 0),w.createTypeReferenceNode(Ii,lt)}function Ur(xr,lt,wt){const dn=lt===xr.length-1?Cr:zn(xr,lt,Ae),Ut=xr[lt],_n=xr[lt-1];let Fn;if(lt===0)Ae.flags|=16777216,Fn=$0(Ut,Ae),Ae.approximateLength+=(Fn?Fn.length:0)+1,Ae.flags^=16777216;else if(_n&&Dp(_n)){const Br=Dp(_n);zc(Br,(Go,Cn)=>{if(s_(Go,Ut)&&!y8(Cn)&&Cn!=="export=")return Fn=Vi(Cn),!0})}if(Fn===void 0){const Br=Ht(Ut.declarations,Lo);if(Br&&Za(Br)&&Qd(Br.expression)){const Go=Ur(xr,lt-1,wt);return Qd(Go)?w.createIndexedAccessTypeNode(w.createParenthesizedType(w.createTypeQueryNode(Go)),w.createTypeQueryNode(Br.expression)):Go}Fn=$0(Ut,Ae)}if(Ae.approximateLength+=Fn.length+1,!(Ae.flags&16)&&_n&&Cb(_n)&&Cb(_n).get(Ut.escapedName)&&s_(Cb(_n).get(Ut.escapedName),Ut)){const Br=Ur(xr,lt-1,wt);return WS(Br)?w.createIndexedAccessTypeNode(Br,w.createLiteralTypeNode(w.createStringLiteral(Fn))):w.createIndexedAccessTypeNode(w.createTypeReferenceNode(Br,dn),w.createLiteralTypeNode(w.createStringLiteral(Fn)))}const ki=pr(w.createIdentifier(Fn),16777216);if(dn&&Gv(ki,w.createNodeArray(dn)),ki.symbol=Ut,lt>wt){const Br=Ur(xr,lt-1,wt);return Qd(Br)?w.createQualifiedName(Br,ki):N.fail("Impossible construct - an export of an indexed access cannot be reachable")}return ki}}function Eo(ut,Ae,kn){const Cr=yl(Ae.enclosingDeclaration,ut,788968,void 0,ut,!1);return Cr&&Cr.flags&262144?Cr!==kn.symbol:!1}function Bo(ut,Ae){var kn,Cr;if(Ae.flags&4&&Ae.typeParameterNames){const Ai=Ae.typeParameterNames.get(vd(ut));if(Ai)return Ai}let pi=_o(ut.symbol,Ae,788968,!0);if(!(pi.kind&80))return w.createIdentifier("(Missing type parameter)");if(Ae.flags&4){const Ai=pi.escapedText;let Ii=((kn=Ae.typeParameterNamesByTextNextNameCount)==null?void 0:kn.get(Ai))||0,Ur=Ai;for(;(Cr=Ae.typeParameterNamesByText)!=null&&Cr.has(Ur)||Eo(Ur,Ae,ut);)Ii++,Ur=`${Ai}_${Ii}`;if(Ur!==Ai){const xr=LS(pi);pi=w.createIdentifier(Ur),Gv(pi,xr)}(Ae.typeParameterNamesByTextNextNameCount||(Ae.typeParameterNamesByTextNextNameCount=new Map)).set(Ai,Ii),(Ae.typeParameterNames||(Ae.typeParameterNames=new Map)).set(vd(ut),pi),(Ae.typeParameterNamesByText||(Ae.typeParameterNamesByText=new Set)).add(Ur)}return pi}function _o(ut,Ae,kn,Cr){const pi=Wn(ut,Ae,kn);return Cr&&pi.length!==1&&!Ae.encounteredError&&!(Ae.flags&65536)&&(Ae.encounteredError=!0),Ai(pi,pi.length-1);function Ai(Ii,Ur){const xr=zn(Ii,Ur,Ae),lt=Ii[Ur];Ur===0&&(Ae.flags|=16777216);const wt=$0(lt,Ae);Ur===0&&(Ae.flags^=16777216);const dn=pr(w.createIdentifier(wt),16777216);return xr&&Gv(dn,w.createNodeArray(xr)),dn.symbol=lt,Ur>0?w.createQualifiedName(Ai(Ii,Ur-1),dn):dn}}function Nc(ut,Ae,kn){const Cr=Wn(ut,Ae,kn);return pi(Cr,Cr.length-1);function pi(Ai,Ii){const Ur=zn(Ai,Ii,Ae),xr=Ai[Ii];Ii===0&&(Ae.flags|=16777216);let lt=$0(xr,Ae);Ii===0&&(Ae.flags^=16777216);let wt=lt.charCodeAt(0);if(wL(wt)&&bt(xr.declarations,ed))return w.createStringLiteral(Kn(xr,Ae));if(Ii===0||EU(lt,se)){const dn=pr(w.createIdentifier(lt),16777216);return Ur&&Gv(dn,w.createNodeArray(Ur)),dn.symbol=xr,Ii>0?w.createPropertyAccessExpression(pi(Ai,Ii-1),dn):dn}else{wt===91&&(lt=lt.substring(1,lt.length-1),wt=lt.charCodeAt(0));let dn;if(wL(wt)&&!(xr.flags&8)?dn=w.createStringLiteral(Zf(lt).replace(/\\./g,Ut=>Ut.substring(1)),wt===39):""+ +lt===lt&&(dn=w.createNumericLiteral(+lt)),!dn){const Ut=pr(w.createIdentifier(lt),16777216);Ur&&Gv(Ut,w.createNodeArray(Ur)),Ut.symbol=xr,dn=Ut}return w.createElementAccessExpression(pi(Ai,Ii-1),dn)}}}function Hf(ut){const Ae=Lo(ut);return Ae?Za(Ae)?!!(mo(Ae.expression).flags&402653316):$s(Ae)?!!(mo(Ae.argumentExpression).flags&402653316):Na(Ae):!1}function up(ut){const Ae=Lo(ut);return!!(Ae&&Na(Ae)&&(Ae.singleQuote||!Ys(Ae)&&uo(fc(Ae,!1),"'")))}function On(ut,Ae){const kn=!!Ne(ut.declarations)&&Jn(ut.declarations,Hf),Cr=!!Ne(ut.declarations)&&Jn(ut.declarations,up),pi=!!(ut.flags&8192),Ai=er(ut,Ae,Cr,kn,pi);if(Ai)return Ai;const Ii=Vi(ut.escapedName);return q3(Ii,os(V),Cr,kn,pi)}function er(ut,Ae,kn,Cr,pi){const Ai=Ki(ut).nameType;if(Ai){if(Ai.flags&384){const Ii=""+Ai.value;return!Zp(Ii,os(V))&&(Cr||!og(Ii))?w.createStringLiteral(Ii,!!kn):og(Ii)&&uo(Ii,"-")?w.createComputedPropertyName(w.createPrefixUnaryExpression(41,w.createNumericLiteral(-Ii))):q3(Ii,os(V),kn,Cr,pi)}if(Ai.flags&8192)return w.createComputedPropertyName(Nc(Ai.symbol,Ae,111551))}}function ao(ut){const Ae={...ut};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 Dq(Ae,Ae.tracker.inner,Ae.tracker.moduleResolverHost),Ae}function br(ut,Ae){return ut.declarations&&In(ut.declarations,kn=>!!yu(kn)&&(!Ae||!!Vn(kn,Cr=>Cr===Ae)))}function Po(ut,Ae){return!(Wr(Ae)&4)||!Df(ut)||Ne(ut.typeArguments)>=zh(Ae.target.typeParameters)}function ss(ut){for(;Zr(ut).fakeScopeForSignatureDeclaration;)ut=ut.parent;return ut}function Ss(ut,Ae,kn,Cr,pi,Ai){if(!Jt(Ae)&&Cr){const xr=br(kn,ss(Cr));if(xr&&!Bs(xr)&&!tf(xr)){const lt=yu(xr);if(ju(lt,xr,Ae)&&Po(lt,Ae)){const wt=Wl(ut,lt,pi,Ai);if(wt)return wt}}}const Ii=ut.flags;Ae.flags&8192&&Ae.symbol===kn&&(!ut.enclosingDeclaration||bt(kn.declarations,xr=>Un(xr)===Un(ut.enclosingDeclaration)))&&(ut.flags|=1048576);const Ur=d(Ae,ut);return ut.flags=Ii,Ur}function ju(ut,Ae,kn){const Cr=Ti(ut);return Cr===kn?!0:Ao(Ae)&&Ae.questionToken?mm(kn,524288)===Cr:!1}function Fa(ut,Ae,kn,Cr,pi){if(!Jt(Ae)&&ut.enclosingDeclaration){const Ai=kn.declaration&&em(kn.declaration),Ii=ss(ut.enclosingDeclaration);if(Vn(Ai,Ur=>Ur===Ii)&&Ai){const Ur=Ti(Ai);if((Ur.flags&262144&&Ur.isThisType?lo(Ur,kn.mapper):Ur)===Ae&&Po(Ai,Ae)){const lt=Wl(ut,Ai,Cr,pi);if(lt)return lt}}}return d(Ae,ut)}function kd(ut,Ae,kn){let Cr=!1;const pi=Gp(ut);if(lr(ut)&&(ES(pi)||Zh(pi.parent)||Id(pi.parent)&&bj(pi.parent.left)&&ES(pi.parent.right)))return Cr=!0,{introducesError:Cr,node:ut};const Ai=Ff(ut),Ii=Hs(pi,Ai,!0,!0);if(Ii&&(wi(Ii,Ae.enclosingDeclaration,Ai,!1).accessibility!==0?Cr=!0:(Ae.tracker.trackSymbol(Ii,Ae.enclosingDeclaration,Ai),kn==null||kn(Ii)),Ve(ut))){const Ur=Zs(Ii),xr=Ii.flags&262144?Bo(Ur,Ae):w.cloneNode(ut);return xr.symbol=Ii,{introducesError:Cr,node:pr(Nr(xr,ut),16777216)}}return{introducesError:Cr,node:ut}}function Wl(ut,Ae,kn,Cr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let pi=!1;const Ai=Un(Ae),Ii=nt(Ae,Ur,ji);if(pi)return;return Ii===Ae?dt(w.cloneNode(Ae),Ae):Ii;function Ur(xr){if(Eae(xr)||xr.kind===326)return w.createKeywordTypeNode(133);if(Sae(xr))return w.createKeywordTypeNode(159);if(HR(xr))return w.createUnionTypeNode([nt(xr.type,Ur,ji),w.createLiteralTypeNode(w.createNull())]);if(fH(xr))return w.createUnionTypeNode([nt(xr.type,Ur,ji),w.createKeywordTypeNode(157)]);if(KW(xr))return nt(xr.type,Ur);if(XW(xr))return w.createArrayTypeNode(nt(xr.type,Ur,ji));if(jS(xr))return w.createTypeLiteralNode(Wt(xr.jsDocPropertyTags,Ut=>{const _n=Ve(Ut.name)?Ut.name:Ut.name.right,Fn=Ke(Ti(xr),_n.escapedText),ki=Fn&&Ut.typeExpression&&Ti(Ut.typeExpression.type)!==Fn?d(Fn,ut):void 0;return w.createPropertySignature(void 0,_n,Ut.isBracketed||Ut.typeExpression&&fH(Ut.typeExpression.type)?w.createToken(58):void 0,ki||Ut.typeExpression&&nt(Ut.typeExpression.type,Ur,ji)||w.createKeywordTypeNode(133))}));if(Df(xr)&&Ve(xr.typeName)&&xr.typeName.escapedText==="")return Nr(w.createKeywordTypeNode(133),xr);if((Vv(xr)||Df(xr))&&$4(xr))return w.createTypeLiteralNode([w.createIndexSignature(void 0,[w.createParameterDeclaration(void 0,void 0,"x",void 0,nt(xr.typeArguments[0],Ur,ji))],nt(xr.typeArguments[1],Ur,ji))]);if(qR(xr))if(_R(xr)){let Ut;return w.createConstructorTypeNode(void 0,jn(xr.typeParameters,Ur,hl),eo(xr.parameters,(_n,Fn)=>_n.name&&Ve(_n.name)&&_n.name.escapedText==="new"?(Ut=_n.type,void 0):w.createParameterDeclaration(void 0,lt(_n),wt(_n,Fn),_n.questionToken,nt(_n.type,Ur,ji),void 0)),nt(Ut||xr.type,Ur,ji)||w.createKeywordTypeNode(133))}else return w.createFunctionTypeNode(jn(xr.typeParameters,Ur,hl),Wt(xr.parameters,(Ut,_n)=>w.createParameterDeclaration(void 0,lt(Ut),wt(Ut,_n),Ut.questionToken,nt(Ut.type,Ur,ji),void 0)),nt(xr.type,Ur,ji)||w.createKeywordTypeNode(133));if(Df(xr)&&kL(xr)&&(!Po(xr,Ti(xr))||o8e(xr)||ft===SN(xr,788968,!0)))return Nr(d(Ti(xr),ut),xr);if(Oy(xr)){const Ut=Zr(xr).resolvedSymbol;return kL(xr)&&Ut&&(!xr.isTypeOf&&!(Ut.flags&788968)||!(Ne(xr.typeArguments)>=zh(Lr(Ut))))?Nr(d(Ti(xr),ut),xr):w.updateImportTypeNode(xr,w.updateLiteralTypeNode(xr.argument,dn(xr,xr.argument.literal)),xr.attributes,xr.qualifier,jn(xr.typeArguments,Ur,ji),xr.isTypeOf)}if(Qd(xr)||Bl(xr)){const{introducesError:Ut,node:_n}=kd(xr,ut,kn);if(pi=pi||Ut,_n!==xr)return _n}return Ai&&tI(xr)&&ys(Ai,xr.pos).line===ys(Ai,xr.end).line&&pr(xr,1),xn(xr,Ur,void 0);function lt(Ut){return Ut.dotDotDotToken||(Ut.type&&XW(Ut.type)?w.createToken(26):void 0)}function wt(Ut,_n){return Ut.name&&Ve(Ut.name)&&Ut.name.escapedText==="this"?"this":lt(Ut)?"args":`arg${_n}`}function dn(Ut,_n){if(Cr){if(ut.tracker&&ut.tracker.moduleResolverHost){const Fn=abe(Ut);if(Fn){const Br={getCanonicalFileName:Mu(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ut.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ut.tracker.moduleResolverHost.getCommonSourceDirectory()},Go=u3(Br,Fn);return w.createStringLiteral(Go)}}}else if(ut.tracker&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode){const Fn=nv(_n,_n,void 0);Fn&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode(Fn)}return _n}}}function bl(ut,Ae,kn){var Cr;const pi=fs(w.createPropertyDeclaration,174,!0),Ai=fs((Pt,Dr,fi,Kr)=>w.createPropertySignature(Pt,Dr,fi,Kr),173,!1),Ii=Ae.enclosingDeclaration;let Ur=[];const xr=new Set,lt=[],wt=Ae;Ae={...wt,usedSymbolNames:new Set(wt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Cr=wt.remappedSymbolReferences)==null?void 0:Cr.entries()),tracker:void 0};const dn={...wt.tracker.inner,trackSymbol:(Pt,Dr,fi)=>{var Kr,ui;if((Kr=Ae.remappedSymbolNames)!=null&&Kr.has(Sa(Pt)))return!1;if(wi(Pt,Dr,fi,!1).accessibility===0){const ua=ln(Pt,Ae,fi);if(!(Pt.flags&4)){const Ho=ua[0],zs=Un(wt.enclosingDeclaration);bt(Ho.declarations,ms=>Un(ms)===zs)&&Ds(Ho)}}else if((ui=wt.tracker.inner)!=null&&ui.trackSymbol)return wt.tracker.inner.trackSymbol(Pt,Dr,fi);return!1}};Ae.tracker=new Dq(Ae,dn,wt.tracker.moduleResolverHost),zc(ut,(Pt,Dr)=>{const fi=Vi(Dr);jm(Pt,fi)});let Ut=!kn;const _n=ut.get("export=");return _n&&ut.size>1&&_n.flags&2098688&&(ut=ca(),ut.set("export=",_n)),Ea(ut),ti(Ur);function Fn(Pt){return!!Pt&&Pt.kind===80}function ki(Pt){return Ll(Pt)?mn(Wt(Pt.declarationList.declarations,Lo),Fn):mn([Lo(Pt)],Fn)}function Br(Pt){const Dr=In(Pt,kl),fi=mi(Pt,Xl);let Kr=fi!==-1?Pt[fi]:void 0;if(Kr&&Dr&&Dr.isExportEquals&&Ve(Dr.expression)&&Ve(Kr.name)&&Sr(Kr.name)===Sr(Dr.expression)&&Kr.body&&L_(Kr.body)){const ui=mn(Pt,Ho=>!!(ud(Ho)&32)),ns=Kr.name;let ua=Kr.body;if(Ne(ui)&&(Kr=w.updateModuleDeclaration(Kr,Kr.modifiers,Kr.name,ua=w.updateModuleBlock(ua,w.createNodeArray([...Kr.body.statements,w.createExportDeclaration(void 0,!1,w.createNamedExports(Wt(Do(ui,Ho=>ki(Ho)),Ho=>w.createExportSpecifier(!1,void 0,Ho))),void 0)]))),Pt=[...Pt.slice(0,fi),Kr,...Pt.slice(fi+1)]),!In(Pt,Ho=>Ho!==Kr&&rL(Ho,ns))){Ur=[];const Ho=!bt(ua.statements,zs=>Qr(zs,32)||kl(zs)||Yl(zs));Xe(ua.statements,zs=>{Ks(zs,Ho?32:0)}),Pt=[...mn(Pt,zs=>zs!==Kr&&zs!==Dr),...Ur]}}return Pt}function Go(Pt){const Dr=mn(Pt,Kr=>Yl(Kr)&&!Kr.moduleSpecifier&&!!Kr.exportClause&&Nf(Kr.exportClause));Ne(Dr)>1&&(Pt=[...mn(Pt,ui=>!Yl(ui)||!!ui.moduleSpecifier||!ui.exportClause),w.createExportDeclaration(void 0,!1,w.createNamedExports(Do(Dr,ui=>oa(ui.exportClause,Nf).elements)),void 0)]);const fi=mn(Pt,Kr=>Yl(Kr)&&!!Kr.moduleSpecifier&&!!Kr.exportClause&&Nf(Kr.exportClause));if(Ne(fi)>1){const Kr=JN(fi,ui=>Na(ui.moduleSpecifier)?">"+ui.moduleSpecifier.text:">");if(Kr.length!==fi.length)for(const ui of Kr)ui.length>1&&(Pt=[...mn(Pt,ns=>!ui.includes(ns)),w.createExportDeclaration(void 0,!1,w.createNamedExports(Do(ui,ns=>oa(ns.exportClause,Nf).elements)),ui[0].moduleSpecifier)])}return Pt}function Cn(Pt){const Dr=mi(Pt,fi=>Yl(fi)&&!fi.moduleSpecifier&&!fi.attributes&&!!fi.exportClause&&Nf(fi.exportClause));if(Dr>=0){const fi=Pt[Dr],Kr=eo(fi.exportClause.elements,ui=>{if(!ui.propertyName){const ns=N2(Pt),ua=mn(ns,Ho=>rL(Pt[Ho],ui.name));if(Ne(ua)&&Jn(ua,Ho=>vk(Pt[Ho]))){for(const Ho of ua)Pt[Ho]=Zi(Pt[Ho]);return}}return ui});Ne(Kr)?Pt[Dr]=w.updateExportDeclaration(fi,fi.modifiers,fi.isTypeOnly,w.updateNamedExports(fi.exportClause,Kr),fi.moduleSpecifier,fi.attributes):Sy(Pt,Dr)}return Pt}function ti(Pt){return Pt=Br(Pt),Pt=Go(Pt),Pt=Cn(Pt),Ii&&($i(Ii)&&Fp(Ii)||Xl(Ii))&&(!bt(Pt,mL)||!vre(Pt)&&bt(Pt,g4))&&Pt.push(Kk(w)),Pt}function Zi(Pt){const Dr=(ud(Pt)|32)&-129;return w.replaceModifiers(Pt,Dr)}function fo(Pt){const Dr=ud(Pt)&-33;return w.replaceModifiers(Pt,Dr)}function Ea(Pt,Dr,fi){Dr||lt.push(new Map),Pt.forEach(Kr=>{Ec(Kr,!1,!!fi)}),Dr||(lt[lt.length-1].forEach(Kr=>{Ec(Kr,!0,!!fi)}),lt.pop())}function Ec(Pt,Dr,fi){const Kr=rs(Pt);if(xr.has(Sa(Kr)))return;if(xr.add(Sa(Kr)),!Dr||Ne(Pt.declarations)&&bt(Pt.declarations,ns=>!!Vn(ns,ua=>ua===Ii))){const ns=Ae;Ae=ao(Ae),ks(Pt,Dr,fi),Ae.reportedDiagnostic&&(wt.reportedDiagnostic=Ae.reportedDiagnostic),Ae.trackedSymbols&&(ns.trackedSymbols?N.assert(Ae.trackedSymbols===ns.trackedSymbols):ns.trackedSymbols=Ae.trackedSymbols),Ae=ns}}function ks(Pt,Dr,fi,Kr=Pt.escapedName){var ui,ns,ua,Ho,zs,ms;const za=Vi(Kr),Nu=Kr==="default";if(Dr&&!(Ae.flags&131072)&&LA(za)&&!Nu){Ae.encounteredError=!0;return}let Cu=Nu&&!!(Pt.flags&-113||Pt.flags&16&&Ne(gs(dr(Pt))))&&!(Pt.flags&2097152),bd=!Cu&&!Dr&&LA(za)&&!Nu;(Cu||bd)&&(Dr=!0);const ql=(Dr?0:32)|(Nu&&!Cu?2048:0),Pu=Pt.flags&1536&&Pt.flags&7&&Kr!=="export=",$d=Pu&&Ns(dr(Pt),Pt);if((Pt.flags&8208||$d)&&An(dr(Pt),Pt,jm(Pt,za),ql),Pt.flags&524288&&v_(Pt,za,ql),Pt.flags&98311&&Kr!=="export="&&!(Pt.flags&4194304)&&!(Pt.flags&32)&&!(Pt.flags&8192)&&!$d)if(fi)xa(Pt)&&(bd=!1,Cu=!1);else{const iu=dr(Pt),Lp=jm(Pt,za);if(iu.symbol&&iu.symbol!==Pt&&iu.symbol.flags&16&&bt(iu.symbol.declarations,qE)&&((ui=iu.symbol.members)!=null&&ui.size||(ns=iu.symbol.exports)!=null&&ns.size))Ae.remappedSymbolReferences||(Ae.remappedSymbolReferences=new Map),Ae.remappedSymbolReferences.set(Sa(iu.symbol),Pt),ks(iu.symbol,Dr,fi,Kr),Ae.remappedSymbolReferences.delete(Sa(iu.symbol));else if(!(Pt.flags&16)&&Ns(iu,Pt))An(iu,Pt,Lp,ql);else{const bx=Pt.flags&2?e2(Pt)?2:1:(ua=Pt.parent)!=null&&ua.valueDeclaration&&$i((Ho=Pt.parent)==null?void 0:Ho.valueDeclaration)?2:void 0,th=Cu||!(Pt.flags&4)?Lp:y_(Lp,Pt);let Ub=Pt.declarations&&In(Pt.declarations,o6=>Oi(o6));Ub&&Vc(Ub.parent)&&Ub.parent.declarations.length===1&&(Ub=Ub.parent.parent);const Hb=(zs=Pt.declarations)==null?void 0:zs.find(Fr);if(Hb&&mr(Hb.parent)&&Ve(Hb.parent.right)&&((ms=iu.symbol)!=null&&ms.valueDeclaration)&&$i(iu.symbol.valueDeclaration)){const o6=Lp===Hb.parent.right.escapedText?void 0:Hb.parent.right;Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,o6,Lp)])),0),Ae.tracker.trackSymbol(iu.symbol,Ae.enclosingDeclaration,111551)}else{const o6=dt(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(th,void 0,Ss(Ae,iu,Pt,Ii,Ds,kn))],bx)),Ub);Ks(o6,th!==Lp?ql&-33:ql),th!==Lp&&!Dr&&(Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,th,Lp)])),0),bd=!1,Cu=!1)}}}if(Pt.flags&384&&Rr(Pt,za,ql),Pt.flags&32&&(Pt.flags&4&&Pt.valueDeclaration&&mr(Pt.valueDeclaration.parent)&&Qc(Pt.valueDeclaration.parent.right)?Ei(Pt,jm(Pt,za),ql):ma(Pt,jm(Pt,za),ql)),(Pt.flags&1536&&(!Pu||Zt(Pt))||$d)&&Yn(Pt,za,ql),Pt.flags&64&&!(Pt.flags&32)&&rt(Pt,za,ql),Pt.flags&2097152&&Ei(Pt,jm(Pt,za),ql),Pt.flags&4&&Pt.escapedName==="export="&&xa(Pt),Pt.flags&8388608&&Pt.declarations)for(const iu of Pt.declarations){const Lp=hd(iu,iu.moduleSpecifier);Lp&&Ks(w.createExportDeclaration(void 0,iu.isTypeOnly,void 0,w.createStringLiteral(Kn(Lp,Ae))),0)}Cu?Ks(w.createExportAssignment(void 0,!1,w.createIdentifier(jm(Pt,za))),0):bd&&Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,jm(Pt,za),za)])),0)}function Ds(Pt){if(bt(Pt.declarations,zE))return;N.assertIsDefined(lt[lt.length-1]),y_(Vi(Pt.escapedName),Pt);const Dr=!!(Pt.flags&2097152)&&!bt(Pt.declarations,fi=>!!Vn(fi,Yl)||Eh(fi)||eu(fi)&&!Sh(fi.moduleReference));lt[Dr?0:lt.length-1].set(Sa(Pt),Pt)}function Du(Pt){return $i(Pt)&&(Fp(Pt)||Yf(Pt))||ku(Pt)&&!A_(Pt)}function Ks(Pt,Dr){if(Rm(Pt)){let fi=0;const Kr=Ae.enclosingDeclaration&&($f(Ae.enclosingDeclaration)?Un(Ae.enclosingDeclaration):Ae.enclosingDeclaration);Dr&32&&Kr&&(Du(Kr)||Xl(Kr))&&vk(Pt)&&(fi|=32),Ut&&!(fi&32)&&(!Kr||!(Kr.flags&33554432))&&(y0(Pt)||Ll(Pt)||Tc(Pt)||Ac(Pt)||Xl(Pt))&&(fi|=128),Dr&2048&&(Ac(Pt)||md(Pt)||Tc(Pt))&&(fi|=2048),fi&&(Pt=w.replaceModifiers(Pt,fi|ud(Pt)))}Ur.push(Pt)}function v_(Pt,Dr,fi){var Kr;const ui=mOe(Pt),ns=Ki(Pt).typeParameters,ua=Wt(ns,Cu=>gt(Cu,Ae)),Ho=(Kr=Pt.declarations)==null?void 0:Kr.find($f),zs=aL(Ho?Ho.comment||Ho.parent.comment:void 0),ms=Ae.flags;Ae.flags|=8388608;const za=Ae.enclosingDeclaration;Ae.enclosingDeclaration=Ho;const Nu=Ho&&Ho.typeExpression&&o1(Ho.typeExpression)&&Wl(Ae,Ho.typeExpression.type,Ds,kn)||d(ui,Ae);Ks(v0(w.createTypeAliasDeclaration(void 0,jm(Pt,Dr),ua,Nu),zs?[{kind:3,text:`*
* `+zs.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),fi),Ae.flags=ms,Ae.enclosingDeclaration=za}function rt(Pt,Dr,fi){const Kr=Bf(Pt),ui=Lr(Pt),ns=Wt(ui,bd=>gt(bd,Ae)),ua=Cp(Kr),Ho=Ne(ua)?ya(ua):void 0,zs=Do(gs(Kr),bd=>Cc(bd,Ho)),ms=Uh(0,Kr,Ho,179),za=Uh(1,Kr,Ho,180),Nu=yv(Kr,Ho),Cu=Ne(ua)?[w.createHeritageClause(96,eo(ua,bd=>sA(bd,111551)))]:void 0;Ks(w.createInterfaceDeclaration(void 0,jm(Pt,Dr),ns,Cu,[...Nu,...za,...ms,...zs]),fi)}function St(Pt){let Dr=zo(Dp(Pt).values());const fi=rs(Pt);if(fi!==Pt){const Kr=new Set(Dr);for(const ui of Dp(fi).values())Au(Vl(ui))&111551||Kr.add(ui);Dr=zo(Kr)}return mn(Dr,Kr=>Bi(Kr)&&Zp(Kr.escapedName,99))}function Zt(Pt){return Jn(St(Pt),Dr=>!(Au(Vl(Dr))&111551))}function Yn(Pt,Dr,fi){const Kr=St(Pt),ui=P2(Kr,Ho=>Ho.parent&&Ho.parent===Pt?"real":"merged"),ns=ui.get("real")||et,ua=ui.get("merged")||et;if(Ne(ns)){const Ho=jm(Pt,Dr);Hr(ns,Ho,fi,!!(Pt.flags&67108880))}if(Ne(ua)){const Ho=Un(Ae.enclosingDeclaration),zs=jm(Pt,Dr),ms=w.createModuleBlock([w.createExportDeclaration(void 0,!1,w.createNamedExports(eo(mn(ua,za=>za.escapedName!=="export="),za=>{var Nu,Cu;const bd=Vi(za.escapedName),ql=jm(za,bd),Pu=za.declarations&&wm(za);if(Ho&&(Pu?Ho!==Un(Pu):!bt(za.declarations,Lp=>Un(Lp)===Ho))){(Cu=(Nu=Ae.tracker)==null?void 0:Nu.reportNonlocalAugmentation)==null||Cu.call(Nu,Ho,Pt,za);return}const $d=Pu&&Up(Pu,!0);Ds($d||za);const iu=$d?jm($d,Vi($d.escapedName)):ql;return w.createExportSpecifier(!1,bd===iu?void 0:iu,bd)})))]);Ks(w.createModuleDeclaration(void 0,w.createIdentifier(zs),ms,32),0)}}function Rr(Pt,Dr,fi){Ks(w.createEnumDeclaration(w.createModifiersFromModifierFlags(Rye(Pt)?4096:0),jm(Pt,Dr),Wt(mn(gs(dr(Pt)),Kr=>!!(Kr.flags&8)),Kr=>{const ui=Kr.declarations&&Kr.declarations[0]&&i1(Kr.declarations[0])?rbe(Kr.declarations[0]):void 0;return w.createEnumMember(Vi(Kr.escapedName),ui===void 0?void 0:typeof ui=="string"?w.createStringLiteral(ui):w.createNumericLiteral(ui))})),fi)}function An(Pt,Dr,fi,Kr){const ui=Xo(Pt,0);for(const ns of ui){const ua=be(ns,262,Ae,{name:w.createIdentifier(fi),privateSymbolVisitor:Ds,bundledImports:kn});Ks(dt(ua,gr(ns)),Kr)}if(!(Dr.flags&1536&&Dr.exports&&Dr.exports.size)){const ns=mn(gs(Pt),Bi);Hr(ns,fi,Kr,!0)}}function gr(Pt){if(Pt.declaration&&Pt.declaration.parent){if(mr(Pt.declaration.parent)&&zl(Pt.declaration.parent)===5)return Pt.declaration.parent;if(Oi(Pt.declaration.parent)&&Pt.declaration.parent.parent)return Pt.declaration.parent.parent}return Pt.declaration}function Hr(Pt,Dr,fi,Kr){if(Ne(Pt)){const ns=P2(Pt,ql=>!Ne(ql.declarations)||bt(ql.declarations,Pu=>Un(Pu)===Un(Ae.enclosingDeclaration))?"local":"remote").get("local")||et;let ua=Th.createModuleDeclaration(void 0,w.createIdentifier(Dr),w.createModuleBlock([]),32);Ha(ua,Ii),ua.locals=ca(Pt),ua.symbol=Pt[0].parent;const Ho=Ur;Ur=[];const zs=Ut;Ut=!1;const ms={...Ae,enclosingDeclaration:ua},za=Ae;Ae=ms,Ea(ca(ns),Kr,!0),Ae=za,Ut=zs;const Nu=Ur;Ur=Ho;const Cu=Wt(Nu,ql=>kl(ql)&&!ql.isExportEquals&&Ve(ql.expression)?w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,ql.expression,w.createIdentifier("default"))])):ql),bd=Jn(Cu,ql=>Qr(ql,32))?Wt(Cu,fo):Cu;ua=w.updateModuleDeclaration(ua,ua.modifiers,ua.name,w.createModuleBlock(bd)),Ks(ua,fi)}}function Bi(Pt){return!!(Pt.flags&2887656)||!(Pt.flags&4194304||Pt.escapedName==="prototype"||Pt.valueDeclaration&&aa(Pt.valueDeclaration)&&di(Pt.valueDeclaration.parent))}function Fo(Pt){const Dr=eo(Pt,fi=>{const Kr=Ae.enclosingDeclaration;Ae.enclosingDeclaration=fi;let ui=fi.expression;if(Bl(ui)){if(Ve(ui)&&Sr(ui)==="")return ns(void 0);let ua;if({introducesError:ua,node:ui}=kd(ui,Ae,Ds),ua)return ns(void 0)}return ns(w.createExpressionWithTypeArguments(ui,Wt(fi.typeArguments,ua=>Wl(Ae,ua,Ds,kn)||d(Ti(ua),Ae))));function ns(ua){return Ae.enclosingDeclaration=Kr,ua}});if(Dr.length===Pt.length)return Dr}function ma(Pt,Dr,fi){var Kr,ui;const ns=(Kr=Pt.declarations)==null?void 0:Kr.find(di),ua=Ae.enclosingDeclaration;Ae.enclosingDeclaration=ns||ua;const Ho=Lr(Pt),zs=Wt(Ho,nh=>gt(nh,Ae)),ms=Jp(Bf(Pt)),za=Cp(ms),Nu=ns&&vR(ns),Cu=Nu&&Fo(Nu)||eo(u_(ms),f2),bd=dr(Pt),ql=!!((ui=bd.symbol)!=null&&ui.valueDeclaration)&&di(bd.symbol.valueDeclaration),Pu=ql?Np(bd):j,$d=[...Ne(za)?[w.createHeritageClause(96,Wt(za,nh=>aA(nh,Pu,Dr)))]:[],...Ne(Cu)?[w.createHeritageClause(119,Cu)]:[]],iu=Tgt(ms,za,gs(ms)),Lp=mn(iu,nh=>{const m2=nh.valueDeclaration;return!!m2&&!(ad(m2)&&qi(m2.name))}),th=bt(iu,nh=>{const m2=nh.valueDeclaration;return!!m2&&ad(m2)&&qi(m2.name)})?[w.createPropertyDeclaration(void 0,w.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:et,Ub=Do(Lp,nh=>pi(nh,!1,za[0])),Hb=Do(mn(gs(bd),nh=>!(nh.flags&4194304)&&nh.escapedName!=="prototype"&&!Bi(nh)),nh=>pi(nh,!0,Pu)),Byt=!ql&&!!Pt.valueDeclaration&&lr(Pt.valueDeclaration)&&!bt(Xo(bd,1))?[w.createConstructorDeclaration(w.createModifiersFromModifierFlags(2),[],void 0)]:Uh(1,bd,Pu,176),Gyt=yv(ms,za[0]);Ae.enclosingDeclaration=ua,Ks(dt(w.createClassDeclaration(void 0,Dr,zs,$d,[...Gyt,...Hb,...Byt,...Ub,...th]),Pt.declarations&&mn(Pt.declarations,nh=>Ac(nh)||Qc(nh))[0]),fi)}function _a(Pt){return Ht(Pt,Dr=>{if(tp(Dr)||Ku(Dr))return Sr(Dr.propertyName||Dr.name);if(mr(Dr)||kl(Dr)){const fi=kl(Dr)?Dr.expression:Dr.right;if(Fr(fi))return Sr(fi.name)}if(fb(Dr)){const fi=Lo(Dr);if(fi&&Ve(fi))return Sr(fi)}})}function Ei(Pt,Dr,fi){var Kr,ui,ns,ua,Ho,zs;const ms=wm(Pt);if(!ms)return N.fail();const za=rs(Up(ms,!0));if(!za)return;let Nu=vC(za)&&_a(Pt.declarations)||Vi(za.escapedName);Nu==="export="&&Y&&(Nu="default");const Cu=jm(za,Nu);switch(Ds(za),ms.kind){case 208:if(((ui=(Kr=ms.parent)==null?void 0:Kr.parent)==null?void 0:ui.kind)===260){const Pu=Kn(za.parent||za,Ae),{propertyName:$d}=ms;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamedImports([w.createImportSpecifier(!1,$d&&Ve($d)?w.createIdentifier(Sr($d)):void 0,w.createIdentifier(Dr))])),w.createStringLiteral(Pu),void 0),0);break}N.failBadSyntaxKind(((ns=ms.parent)==null?void 0:ns.parent)||ms,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Ho=(ua=ms.parent)==null?void 0:ua.parent)==null?void 0:Ho.kind)===226&&Oo(Vi(Pt.escapedName),Cu);break;case 260:if(Fr(ms.initializer)){const Pu=ms.initializer,$d=w.createUniqueName(Dr),iu=Kn(za.parent||za,Ae);Ks(w.createImportEqualsDeclaration(void 0,!1,$d,w.createExternalModuleReference(w.createStringLiteral(iu))),0),Ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Dr),w.createQualifiedName($d,Pu.name)),fi);break}case 271:if(za.escapedName==="export="&&bt(za.declarations,Pu=>$i(Pu)&&Yf(Pu))){xa(Pt);break}const bd=!(za.flags&512)&&!Oi(ms);Ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Dr),bd?_o(za,Ae,-1,!1):w.createExternalModuleReference(w.createStringLiteral(Kn(za,Ae)))),bd?fi:0);break;case 270:Ks(w.createNamespaceExportDeclaration(Sr(ms.name)),0);break;case 273:{const Pu=Kn(za.parent||za,Ae),$d=kn?w.createStringLiteral(Pu):ms.parent.moduleSpecifier;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,w.createIdentifier(Dr),void 0),$d,ms.parent.attributes),0);break}case 274:{const Pu=Kn(za.parent||za,Ae),$d=kn?w.createStringLiteral(Pu):ms.parent.parent.moduleSpecifier;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamespaceImport(w.createIdentifier(Dr))),$d,ms.parent.attributes),0);break}case 280:Ks(w.createExportDeclaration(void 0,!1,w.createNamespaceExport(w.createIdentifier(Dr)),w.createStringLiteral(Kn(za,Ae))),0);break;case 276:{const Pu=Kn(za.parent||za,Ae),$d=kn?w.createStringLiteral(Pu):ms.parent.parent.parent.moduleSpecifier;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamedImports([w.createImportSpecifier(!1,Dr!==Nu?w.createIdentifier(Nu):void 0,w.createIdentifier(Dr))])),$d,ms.parent.parent.parent.attributes),0);break}case 281:const ql=ms.parent.parent.moduleSpecifier;ql&&((zs=ms.propertyName)==null?void 0:zs.escapedText)==="default"&&(Nu="default"),Oo(Vi(Pt.escapedName),ql?Nu:Cu,ql&&ls(ql)?w.createStringLiteral(ql.text):void 0);break;case 277:xa(Pt);break;case 226:case 211:case 212:Pt.escapedName==="default"||Pt.escapedName==="export="?xa(Pt):Oo(Dr,Cu);break;default:return N.failBadSyntaxKind(ms,"Unhandled alias declaration kind in symbol serializer!")}}function Oo(Pt,Dr,fi){Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,Pt!==Dr?Dr:void 0,Pt)]),fi),0)}function xa(Pt){var Dr;if(Pt.flags&4194304)return!1;const fi=Vi(Pt.escapedName),Kr=fi==="export=",ns=Kr||fi==="default",ua=Pt.declarations&&wm(Pt),Ho=ua&&Up(ua,!0);if(Ho&&Ne(Ho.declarations)&&bt(Ho.declarations,zs=>Un(zs)===Un(Ii))){const zs=ua&&(kl(ua)||mr(ua)?Nj(ua):bie(ua)),ms=zs&&Bl(zs)?Wgt(zs):void 0,za=ms&&Hs(ms,-1,!0,!0,Ii);(za||Ho)&&Ds(za||Ho);const Nu=Ae.tracker.disableTrackSymbol;if(Ae.tracker.disableTrackSymbol=!0,ns)Ur.push(w.createExportAssignment(void 0,Kr,Nc(Ho,Ae,-1)));else if(ms===zs&&ms)Oo(fi,Sr(ms));else if(zs&&Qc(zs))Oo(fi,jm(Ho,El(Ho)));else{const Cu=y_(fi,Pt);Ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Cu),_o(Ho,Ae,-1,!1)),0),Oo(fi,Cu)}return Ae.tracker.disableTrackSymbol=Nu,!0}else{const zs=y_(fi,Pt),ms=Kp(dr(rs(Pt)));if(Ns(ms,Pt))An(ms,Pt,zs,ns?0:32);else{const za=((Dr=Ae.enclosingDeclaration)==null?void 0:Dr.kind)===267&&(!(Pt.flags&98304)||Pt.flags&65536)?1:2,Nu=w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(zs,void 0,Ss(Ae,ms,Pt,Ii,Ds,kn))],za));Ks(Nu,Ho&&Ho.flags&4&&Ho.escapedName==="export="?128:fi===zs?32:0)}return ns?(Ur.push(w.createExportAssignment(void 0,Kr,w.createIdentifier(zs))),!0):fi!==zs?(Oo(fi,zs),!0):!1}}function Ns(Pt,Dr){const fi=Un(Ae.enclosingDeclaration);return Wr(Pt)&48&&!Ne(gd(Pt))&&!W1(Pt)&&!!(Ne(mn(gs(Pt),Bi))||Ne(Xo(Pt,0)))&&!Ne(Xo(Pt,1))&&!br(Dr,Ii)&&!(Pt.symbol&&bt(Pt.symbol.declarations,Kr=>Un(Kr)!==fi))&&!bt(gs(Pt),Kr=>y8(Kr.escapedName))&&!bt(gs(Pt),Kr=>bt(Kr.declarations,ui=>Un(ui)!==fi))&&Jn(gs(Pt),Kr=>Zp(El(Kr),se)?Kr.flags&98304?Db(Kr)===F1(Kr):!0:!1)}function fs(Pt,Dr,fi){return function(ui,ns,ua){var Ho,zs,ms,za,Nu;const Cu=xf(ui),bd=!!(Cu&2);if(ns&&ui.flags&2887656)return[];if(ui.flags&4194304||ui.escapedName==="constructor"||ua&&va(ua,ui.escapedName)&&g_(va(ua,ui.escapedName))===g_(ui)&&(ui.flags&16777216)===(va(ua,ui.escapedName).flags&16777216)&&fv(dr(ui),Ke(ua,ui.escapedName)))return[];const ql=Cu&-1025|(ns?256:0),Pu=On(ui,Ae),$d=(Ho=ui.declarations)==null?void 0:Ho.find(Jm(qo,Cy,Oi,gp,mr,Fr));if(ui.flags&98304&&fi){const iu=[];if(ui.flags&65536){const Lp=ui.declarations&&Xe(ui.declarations,th=>{if(th.kind===178)return th;if(sa(th)&&SS(th))return Xe(th.arguments[2].properties,Ub=>{const Hb=Lo(Ub);if(Hb&&Ve(Hb)&&Sr(Hb)==="set")return Ub})});N.assert(!!Lp);const bx=Bs(Lp)?dm(Lp).parameters[0]:void 0;iu.push(dt(w.createSetAccessorDeclaration(w.createModifiersFromModifierFlags(ql),Pu,[w.createParameterDeclaration(void 0,void 0,bx?cn(bx,Dt(bx),Ae):"value",void 0,bd?void 0:Ss(Ae,dr(ui),ui,Ii,Ds,kn))],void 0),((zs=ui.declarations)==null?void 0:zs.find(Mv))||$d))}if(ui.flags&32768){const Lp=Cu&2;iu.push(dt(w.createGetAccessorDeclaration(w.createModifiersFromModifierFlags(ql),Pu,[],Lp?void 0:Ss(Ae,dr(ui),ui,Ii,Ds,kn),void 0),((ms=ui.declarations)==null?void 0:ms.find(My))||$d))}return iu}else if(ui.flags&98311)return dt(Pt(w.createModifiersFromModifierFlags((g_(ui)?8:0)|ql),Pu,ui.flags&16777216?w.createToken(58):void 0,bd?void 0:Ss(Ae,F1(ui),ui,Ii,Ds,kn),void 0),((za=ui.declarations)==null?void 0:za.find(Jm(qo,Oi)))||$d);if(ui.flags&8208){const iu=dr(ui),Lp=Xo(iu,0);if(ql&2)return dt(Pt(w.createModifiersFromModifierFlags((g_(ui)?8:0)|ql),Pu,ui.flags&16777216?w.createToken(58):void 0,void 0,void 0),((Nu=ui.declarations)==null?void 0:Nu.find(Bs))||Lp[0]&&Lp[0].declaration||ui.declarations&&ui.declarations[0]);const bx=[];for(const th of Lp){const Ub=be(th,Dr,Ae,{name:Pu,questionToken:ui.flags&16777216?w.createToken(58):void 0,modifiers:ql?w.createModifiersFromModifierFlags(ql):void 0}),Hb=th.declaration&&VL(th.declaration.parent)?th.declaration.parent:th.declaration;bx.push(dt(Ub,Hb))}return bx}return N.fail(`Unhandled class member kind! ${ui.__debugFlags||ui.flags}`)}}function Cc(Pt,Dr){return Ai(Pt,!1,Dr)}function Uh(Pt,Dr,fi,Kr){const ui=Xo(Dr,Pt);if(Pt===1){if(!fi&&Jn(ui,Ho=>Ne(Ho.parameters)===0))return[];if(fi){const Ho=Xo(fi,1);if(!Ne(Ho)&&Jn(ui,zs=>Ne(zs.parameters)===0))return[];if(Ho.length===ui.length){let zs=!1;for(let ms=0;ms<Ho.length;ms++)if(!x9(ui[ms],Ho[ms],!1,!1,!0,M8)){zs=!0;break}if(!zs)return[]}}let ua=0;for(const Ho of ui)Ho.declaration&&(ua|=wA(Ho.declaration,6));if(ua)return[dt(w.createConstructorDeclaration(w.createModifiersFromModifierFlags(ua),[],void 0),ui[0].declaration)]}const ns=[];for(const ua of ui){const Ho=be(ua,Kr,Ae);ns.push(dt(Ho,ua.declaration))}return ns}function yv(Pt,Dr){const fi=[];for(const Kr of gd(Pt)){if(Dr){const ui=Sg(Dr,Kr.keyType);if(ui&&fv(Kr.type,ui.type))continue}fi.push(re(Kr,Ae,void 0))}return fi}function aA(Pt,Dr,fi){const Kr=sA(Pt,111551);if(Kr)return Kr;const ui=y_(`${fi}_base`),ns=w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ui,void 0,d(Dr,Ae))],2));return Ks(ns,0),w.createExpressionWithTypeArguments(w.createIdentifier(ui),void 0)}function sA(Pt,Dr){let fi,Kr;if(Pt.target&&on(Pt.target.symbol,Ii,Dr)?(fi=Wt(Js(Pt),ui=>d(ui,Ae)),Kr=Nc(Pt.target.symbol,Ae,788968)):Pt.symbol&&on(Pt.symbol,Ii,Dr)&&(Kr=Nc(Pt.symbol,Ae,788968)),Kr)return w.createExpressionWithTypeArguments(Kr,fi)}function f2(Pt){const Dr=sA(Pt,788968);if(Dr)return Dr;if(Pt.symbol)return w.createExpressionWithTypeArguments(Nc(Pt.symbol,Ae,788968),void 0)}function y_(Pt,Dr){var fi,Kr;const ui=Dr?Sa(Dr):void 0;if(ui&&Ae.remappedSymbolNames.has(ui))return Ae.remappedSymbolNames.get(ui);Dr&&(Pt=yx(Dr,Pt));let ns=0;const ua=Pt;for(;(fi=Ae.usedSymbolNames)!=null&&fi.has(Pt);)ns++,Pt=`${ua}_${ns}`;return(Kr=Ae.usedSymbolNames)==null||Kr.add(Pt),ui&&Ae.remappedSymbolNames.set(ui,Pt),Pt}function yx(Pt,Dr){if(Dr==="default"||Dr==="__class"||Dr==="__function"){const fi=Ae.flags;Ae.flags|=16777216;const Kr=$0(Pt,Ae);Ae.flags=fi,Dr=Kr.length>0&&wL(Kr.charCodeAt(0))?Zf(Kr):Kr}return Dr==="default"?Dr="_default":Dr==="export="&&(Dr="_exports"),Dr=Zp(Dr,se)&&!LA(Dr)?Dr:"_"+Dr.replace(/[^a-zA-Z0-9]/g,"_"),Dr}function jm(Pt,Dr){const fi=Sa(Pt);return Ae.remappedSymbolNames.has(fi)?Ae.remappedSymbolNames.get(fi):(Dr=yx(Pt,Dr),Ae.remappedSymbolNames.set(fi,Dr),Dr)}}}function wh(n,a,c=16384,d){return d?_(d).getText():hC(_);function _(v){const x=w.createTypePredicateNode(n.kind===2||n.kind===3?w.createToken(131):void 0,n.kind===1||n.kind===3?w.createIdentifier(n.parameterName):w.createThisTypeNode(),n.type&&At.typeToTypeNode(n.type,a,kT(c)|70221824|512)),k=d1(),F=a&&Un(a);return k.writeNode(4,x,F,v),v}}function dN(n){const a=[];let c=0;for(let d=0;d<n.length;d++){const _=n[d];if(c|=_.flags,!(_.flags&98304)){if(_.flags&1568){const v=_.flags&512?Pi:vZ(_);if(v.flags&1048576){const x=v.types.length;if(d+x<=n.length&&yd(n[d+x-1])===yd(v.types[x-1])){a.push(v),d+=x-1;continue}}}a.push(_)}}return c&65536&&a.push(fe),c&32768&&a.push(Oe),a||n}function wT(n){return n===2?"private":n===4?"protected":"public"}function $z(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){const a=XL(n.symbol.declarations[0].parent);if(xm(a))return Ir(a)}}function Tb(n){return n&&n.parent&&n.parent.kind===268&&PE(n.parent.parent)}function _8(n){return n.kind===312||ku(n)}function h8(n,a){const c=Ki(n).nameType;if(c){if(c.flags&384){const d=""+c.value;return!Zp(d,os(V))&&!og(d)?`"${tg(d,34)}"`:og(d)&&uo(d,"-")?`[${d}]`:d}if(c.flags&8192)return`[${$0(c.symbol,a)}]`}}function $0(n,a){var c;if((c=a==null?void 0:a.remappedSymbolReferences)!=null&&c.has(Sa(n))&&(n=a.remappedSymbolReferences.get(Sa(n))),a&&n.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!n.declarations||a.enclosingDeclaration&&Vn(n.declarations[0],_8)!==Vn(a.enclosingDeclaration,_8)))return"default";if(n.declarations&&n.declarations.length){let _=Ht(n.declarations,x=>Lo(x)?x:void 0);const v=_&&Lo(_);if(_&&v){if(sa(_)&&SS(_))return El(n);if(Za(v)&&!(xl(n)&4096)){const x=Ki(n).nameType;if(x&&x.flags&384){const k=h8(n,a);if(k!==void 0)return k}}return xs(v)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return xs(_.parent.name);switch(_.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),_.kind===231?"(Anonymous class)":"(Anonymous function)"}}const d=h8(n,a);return d!==void 0?d:El(n)}function l_(n){if(n){const c=Zr(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&$i(n.parent.parent.parent));case 208:return l_(n.parent.parent);case 260:if(ta(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(PE(n))return!0;const c=$(n);return!(ute(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Ch(c):l_(c);case 172:case 171:case 177:case 178:case 174:case 173:if(_p(n,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return l_(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function LM(n,a){let c;n.parent&&n.parent.kind===277?c=yl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=H0(n.parent,2998271));let d,_;return c&&(_=new Set,_.add(Sa(c)),v(c.declarations)),d;function v(x){Xe(x,k=>{const F=bT(k)||k;if(a?Zr(k).isVisible=!0:(d=d||[],Ef(d,F)),uR(k)){const H=k.moduleReference,re=Gp(H),be=yl(k,re.escapedText,901119,void 0,void 0,!1);be&&_&&Xb(_,Sa(be))&&v(be.declarations)}})}}function Oh(n,a){const c=ax(n,a);if(c>=0){const{length:d}=fu;for(let _=c;_<d;_++)Yg[_]=!1;return!1}return fu.push(n),Yg.push(!0),O0.push(a),!0}function ax(n,a){for(let c=fu.length-1;c>=zI;c--){if(g8(fu[c],O0[c]))return-1;if(fu[c]===n&&O0[c]===a)return c}return-1}function g8(n,a){switch(a){case 0:return!!Ki(n).type;case 5:return!!Zr(n).resolvedEnumType;case 2:return!!Ki(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!!Ki(n).writeType;case 9:return Zr(n).parameterInitializerContainsUndefined!==void 0}return N.assertNever(a)}function J_(){return fu.pop(),O0.pop(),Yg.pop()}function $(n){return Vn(R_(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function xe(n){const a=Zs(Cd(n));return a.typeParameters?uy(a,Wt(a.typeParameters,c=>j)):a}function Ke(n,a){const c=va(n,a);return c?dr(c):void 0}function xt(n,a){var c;let d;return Ke(n,a)||(d=(c=cx(n,a))==null?void 0:c.type)&&lp(d,!0,!0)}function Nt(n){return n&&(n.flags&1)!==0}function Jt(n){return n===_t||!!(n.flags&1&&n.aliasSymbol)}function zr(n,a){if(a!==0)return OT(n,!1,a);const c=Ir(n);return c&&Ki(c).type||OT(n,!1,a)}function Fi(n,a,c){if(n=dc(n,F=>!(F.flags&98304)),n.flags&131072)return Ca;if(n.flags&1048576)return dl(n,F=>Fi(F,a,c));let d=ei(Wt(a,py));const _=[],v=[];for(const F of gs(n)){const H=TN(F,8576);!ba(H,d)&&!(xf(F)&6)&&OZ(F)?_.push(F):v.push(H)}if(HT(n)||qT(d)){if(v.length&&(d=ei([d,...v])),d.flags&131072)return n;const F=Hlt();return F?EN(F,[n,d]):_t}const x=ca();for(const F of _)x.set(F.escapedName,Bge(F,!1));const k=Ls(c,x,et,et,gd(n));return k.objectFlags|=4194304,k}function Ni(n){return!!(n.flags&465829888)&&Cl(Gu(n)||hn,32768)}function hi(n){const a=Gm(n,Ni)?dl(n,c=>c.flags&465829888?uv(c):c):n;return mm(a,524288)}function Xi(n,a){const c=ds(n);return c?Vb(c,a):a}function ds(n){const a=Rs(n);if(a&&qL(a)&&a.flowNode){const c=es(n);if(c){const d=dt(Th.createStringLiteral(c),n),_=Zd(a)?a:Th.createParenthesizedExpression(a),v=dt(Th.createElementAccessExpression(_,d),n);return Ha(d,v),Ha(v,n),_!==a&&Ha(_,v),v.flowNode=a.flowNode,v}}}function Rs(n){const a=n.parent.parent;switch(a.kind){case 208:case 303:return ds(a);case 209:return ds(n.parent);case 260:return a.initializer;case 226:return a.right}}function es(n){const a=n.parent;return n.kind===208&&a.kind===206?zf(n.propertyName||n.name):n.kind===303||n.kind===304?zf(n.name):""+a.elements.indexOf(n)}function zf(n){const a=py(n);return a.flags&384?""+a.value:void 0}function K_(n){const a=n.dotDotDotToken?32:0,c=zr(n.parent.parent,a);return c&&bg(n,c,!1)}function bg(n,a,c){if(Nt(a))return a;const d=n.parent;X&&n.flags&33554432&&zE(n)?a=hv(a):X&&d.parent.initializer&&!fm(Y6e(d.parent.initializer),65536)&&(a=mm(a,524288));let _;if(d.kind===206)if(n.dotDotDotToken){if(a=f_(a),a.flags&2||!G9(a))return qe(n,f.Rest_types_may_only_be_created_from_object_types),_t;const v=[];for(const x of d.elements)x.dotDotDotToken||v.push(x.propertyName||x.name);_=Fi(a,v,n.symbol)}else{const v=n.propertyName||n.name,x=py(v),k=Pp(a,x,32,v);_=Xi(n,k)}else{const v=hy(65|(n.dotDotDotToken?0:128),a,Oe,d),x=d.elements.indexOf(n);if(n.dotDotDotToken){const k=dl(a,F=>F.flags&58982400?uv(F):F);_=cp(k,Wa)?dl(k,F=>UM(F,x)):Vu(v)}else if(my(a)){const k=m_(x),F=32|(c||t2(n)?16:0),H=kb(a,k,F,n.name)||_t;_=Xi(n,H)}else _=v}return n.initializer?yu(Hx(n))?X&&!fm(r2(n,0),16777216)?hi(_):_:Gee(n,ei([hi(_),r2(n,0)],2)):_}function ov(n){const a=o0(n);if(a)return Ti(a)}function av(n){const a=hs(n,!0);return a.kind===106||a.kind===80&&Bm(a)===je}function Ab(n){const a=hs(n,!0);return a.kind===209&&a.elements.length===0}function lp(n,a=!1,c=!0){return X&&c?Bb(n,a):n}function OT(n,a,c){if(Oi(n)&&n.parent.parent.kind===249){const x=X_(eye(mo(n.parent.parent.expression,c)));return x.flags&4456448?L8e(x):ke}if(Oi(n)&&n.parent.parent.kind===250){const x=n.parent.parent;return fB(x)||j}if(ta(n.parent))return K_(n);const d=qo(n)&&!D_(n)||gp(n)||Aae(n),_=a&&rP(n),v=ro(n);if(ZV(n))return v?Nt(v)||v===hn?v:_t:ve?hn:j;if(v)return lp(v,d,_);if((de||lr(n))&&Oi(n)&&!ta(n.name)&&!(ute(n)&32)&&!(n.flags&33554432)){if(!(eS(n)&6)&&(!n.initializer||av(n.initializer)))return it;if(n.initializer&&Ab(n.initializer))return Hc}if(Ao(n)){const x=n.parent;if(x.kind===178&&gN(x)){const H=pl(Ir(n.parent),177);if(H){const re=dm(H),be=cbe(x);return be&&n===be?(N.assert(!be.type),dr(re.thisParameter)):ps(re)}}const k=glt(x,n);if(k)return k;const F=n.symbol.escapedName==="this"?y4e(x):b4e(n);if(F)return lp(F,!1,_)}if(_S(n)&&n.initializer){if(lr(n)&&!Ao(n)){const k=Va(n,Ir(n),WL(n));if(k)return k}const x=Gee(n,r2(n,c));return lp(x,d,_)}if(qo(n)&&(de||lr(n)))if(mc(n)){const x=mn(n.parent.members,Rl),k=x.length?sv(n.symbol,x):ud(n)&128?XZ(n.symbol):void 0;return k&&lp(k,!0,_)}else{const x=rv(n.parent),k=x?Ib(n.symbol,x):ud(n)&128?XZ(n.symbol):void 0;return k&&lp(k,!0,_)}if(w_(n))return Gn;if(ta(n.name))return P(n.name,!1,!0)}function pN(n){if(n.valueDeclaration&&mr(n.valueDeclaration)){const a=Ki(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!wM(n)&&Jn(n.declarations,c=>mr(c)&&bee(c)&&(c.left.kind!==212||ef(c.left.argumentExpression))&&!uc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function kM(n){const a=n.valueDeclaration;return a&&qo(a)&&!yu(a)&&!a.initializer&&(de||lr(a))}function wM(n){if(n.declarations)for(const a of n.declarations){const c=Fd(a,!1,!1);if(c&&(c.kind===176||Z_(c)))return c}}function Q0(n){const a=Un(n.declarations[0]),c=Vi(n.escapedName),d=n.declarations.every(v=>lr(v)&&ws(v)&&Zh(v.expression)),_=d?w.createPropertyAccessExpression(w.createPropertyAccessExpression(w.createIdentifier("module"),w.createIdentifier("exports")),c):w.createPropertyAccessExpression(w.createIdentifier("exports"),c);return d&&Ha(_.expression.expression,_.expression),Ha(_.expression,_),Ha(_,a),_.flowNode=a.endFlowNode,Vb(_,it,Oe)}function sv(n,a){const c=uo(n.escapedName,"__#")?w.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName);for(const d of a){const _=w.createPropertyAccessExpression(w.createThis(),c);Ha(_.expression,_),Ha(_,d),_.flowNode=d.returnFlowNode;const v=fN(_,n);if(de&&(v===it||v===Hc)&&qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Hn(v)),!cp(v,H9))return n6(v)}}function Ib(n,a){const c=uo(n.escapedName,"__#")?w.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName),d=w.createPropertyAccessExpression(w.createThis(),c);Ha(d.expression,d),Ha(d,a),d.flowNode=a.returnFlowNode;const _=fN(d,n);return de&&(_===it||_===Hc)&&qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Hn(_)),cp(_,H9)?void 0:n6(_)}function fN(n,a){const c=(a==null?void 0:a.valueDeclaration)&&(!kM(a)||ud(a.valueDeclaration)&128)&&XZ(a)||Oe;return Vb(n,it,c)}function qp(n,a){const c=DA(n.valueDeclaration);if(c){const k=lr(c)?i0(c):void 0;return k&&k.typeExpression?Ti(k.typeExpression):n.valueDeclaration&&Va(n.valueDeclaration,n,c)||q1(nc(c))}let d,_=!1,v=!1;if(pN(n)&&(d=Ib(n,wM(n))),!d){let k;if(n.declarations){let F;for(const H of n.declarations){const re=mr(H)||sa(H)?H:ws(H)?mr(H.parent)?H.parent:H:void 0;if(!re)continue;const be=ws(re)?GL(re):zl(re);(be===4||mr(re)&&bee(re,be))&&(OM(re)?_=!0:v=!0),sa(re)||(F=uc(F,re,n,H)),F||(k||(k=[])).push(mr(re)||sa(re)?Z0(n,a,re,be):Vr)}d=F}if(!d){if(!Ne(k))return _t;let F=_&&n.declarations?xb(k,n.declarations):void 0;if(v){const re=XZ(n);re&&((F||(F=[])).push(re),_=!0)}const H=bt(F,re=>!!(re.flags&-98305))?F:k;d=ei(H)}}const x=Kp(lp(d,!1,v&&!_));return n.valueDeclaration&&lr(n.valueDeclaration)&&dc(x,k=>!!(k.flags&-98305))===Vr?(uE(n.valueDeclaration,j),j):x}function Va(n,a,c){var d,_;if(!lr(n)||!c||!La(c)||c.properties.length)return;const v=ca();for(;mr(n)||Fr(n);){const F=_f(n);(d=F==null?void 0:F.exports)!=null&&d.size&&a_(v,F.exports),n=mr(n)?n.parent:n.parent.parent}const x=_f(n);(_=x==null?void 0:x.exports)!=null&&_.size&&a_(v,x.exports);const k=Ls(a,v,et,et,et);return k.objectFlags|=4096,k}function uc(n,a,c,d){var _;const v=yu(a.parent);if(v){const x=Kp(Ti(v));if(n)!Jt(n)&&!Jt(x)&&!fv(n,x)&&AWe(void 0,n,d,x);else return x}if((_=c.parent)!=null&&_.valueDeclaration){const x=M1(c.parent);if(x.valueDeclaration){const k=yu(x.valueDeclaration);if(k){const F=va(Ti(k),c.escapedName);if(F)return Db(F)}}}return n}function Z0(n,a,c,d){if(sa(c)){if(a)return dr(a);const x=nc(c.arguments[2]),k=Ke(x,"value");if(k)return k;const F=Ke(x,"get");if(F){const re=rA(F);if(re)return ps(re)}const H=Ke(x,"set");if(H){const re=rA(H);if(re)return Eye(re)}return j}if(sx(c.left,c.right))return j;const _=d===1&&(Fr(c.left)||$s(c.left))&&(Zh(c.left.expression)||Ve(c.left.expression)&&ES(c.left.expression)),v=a?dr(a):_?yd(nc(c.right)):q1(nc(c.right));if(v.flags&524288&&d===2&&n.escapedName==="export="){const x=p_(v),k=ca();I4(x.members,k);const F=k.size;a&&!a.exports&&(a.exports=ca()),(a||n).exports.forEach((re,be)=>{var ge;const Je=k.get(be);if(Je&&Je!==re&&!(re.flags&2097152))if(re.flags&111551&&Je.flags&111551){if(re.valueDeclaration&&Je.valueDeclaration&&Un(re.valueDeclaration)!==Un(Je.valueDeclaration)){const Dt=Vi(re.escapedName),an=((ge=ri(Je.valueDeclaration,ad))==null?void 0:ge.name)||Je.valueDeclaration;Ma(qe(re.valueDeclaration,f.Duplicate_identifier_0,Dt),kr(an,f._0_was_also_declared_here,Dt)),Ma(qe(an,f.Duplicate_identifier_0,Dt),kr(re.valueDeclaration,f._0_was_also_declared_here,Dt))}const gt=Ka(re.flags|Je.flags,be);gt.links.type=ei([dr(re),dr(Je)]),gt.valueDeclaration=Je.valueDeclaration,gt.declarations=So(Je.declarations,re.declarations),k.set(be,gt)}else k.set(be,lm(re,Je));else k.set(be,re)});const H=Ls(F!==k.size?void 0:x.symbol,k,x.callSignatures,x.constructSignatures,x.indexInfos);if(F===k.size&&(v.aliasSymbol&&(H.aliasSymbol=v.aliasSymbol,H.aliasTypeArguments=v.aliasTypeArguments),Wr(v)&4)){H.aliasSymbol=v.symbol;const re=Js(v);H.aliasTypeArguments=Ne(re)?re:void 0}return H.objectFlags|=Wr(v)&4096,H.symbol&&H.symbol.flags&32&&v===Bf(H.symbol)&&(H.objectFlags|=16777216),H}return $Z(v)?(uE(c,ec),ec):v}function sx(n,a){return Fr(n)&&n.expression.kind===110&&RP(a,c=>Iu(n,c))}function OM(n){const a=Fd(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!VL(a.parent)}function xb(n,a){return N.assert(n.length===a.length),n.filter((c,d)=>{const _=a[d],v=mr(_)?_:mr(_.parent)?_.parent:void 0;return v&&OM(v)})}function WM(n,a,c){if(n.initializer){const d=ta(n.name)?P(n.name,!0,!1):hn;return lp(Gee(n,r2(n,c?0:1,d)))}return ta(n.name)?P(n.name,a,c):(c&&!yr(n)&&uE(n,j),a?yn:j)}function or(n,a,c){const d=ca();let _,v=131200;Xe(n.elements,k=>{const F=k.propertyName||k.name;if(k.dotDotDotToken){_=Bh(ke,j,!1);return}const H=py(F);if(!tm(H)){v|=512;return}const re=nm(H),be=4|(k.initializer?16777216:0),ge=Ka(be,re);ge.links.type=WM(k,a,c),ge.links.bindingElement=k,d.set(ge.escapedName,ge)});const x=Ls(void 0,d,et,et,_?[_]:et);return x.objectFlags|=v,a&&(x.pattern=n,x.objectFlags|=131072),x}function E(n,a,c){const d=n.elements,_=el(d),v=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(d.length===0||d.length===1&&v)return se>=2?g8e(j):ec;const x=Wt(d,re=>Gc(re)?j:WM(re,a,c)),k=Yi(d,re=>!(re===v||Gc(re)||t2(re)),d.length-1)+1,F=Wt(d,(re,be)=>re===v?4:be>=k?2:1);let H=Gh(x,F);return a&&(H=QOe(H),H.pattern=n,H.objectFlags|=131072),H}function P(n,a=!1,c=!1){return n.kind===206?or(n,a,c):E(n,a,c)}function B(n,a){return Kt(OT(n,!0,0),n,a)}function ce(n){const a=Zr(n);if(!a.resolvedType){const c=Ka(4096,"__importAttributes"),d=ca();Xe(n.elements,v=>{const x=Ka(4,Y3(v));x.parent=c,x.links.type=Fgt(v),x.links.target=x,d.set(x.escapedName,x)});const _=Ls(c,d,et,et,et);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function Qe(n){const a=_f(n),c=Llt(!1);return c&&a&&a===c}function Kt(n,a,c){return n?(n.flags&4096&&Qe(a.parent)&&(n=Gge(a)),c&&oee(a,n),n.flags&8192&&($a(a)||!a.type)&&n.symbol!==Ir(a)&&(n=xi),Kp(n)):(n=Ao(a)&&a.dotDotDotToken?ec:j,c&&(yr(a)||uE(a,n)),n)}function yr(n){const a=R_(n),c=a.kind===169?a.parent:a;return lB(c)}function ro(n){const a=yu(n);if(a)return Ti(a)}function qs(n){let a=n.valueDeclaration;return a?($a(a)&&(a=Hx(a)),Ao(a)?VZ(a.parent):!1):!1}function c_(n,a){const c=Ki(n);if(!c.type){const d=Rb(n,a);return!c.type&&!qs(n)&&!a&&(c.type=d),d}return c.type}function Rb(n,a){if(n.flags&4194304)return xe(n);if(n===vt)return j;if(n.flags&134217728&&n.valueDeclaration){const _=Ir(Un(n.valueDeclaration)),v=Ka(_.flags,"exports");v.declarations=_.declarations?_.declarations.slice():[],v.parent=n,v.links.target=_,_.valueDeclaration&&(v.valueDeclaration=_.valueDeclaration),_.members&&(v.members=new Map(_.members)),_.exports&&(v.exports=new Map(_.exports));const x=ca();return x.set("exports",v),Ls(n,x,et,et,et)}N.assertIsDefined(n.valueDeclaration);const c=n.valueDeclaration;if($i(c)&&Yf(c))return c.statements.length?Kp(q1(mo(c.statements[0].expression))):Ca;if(Cy(c))return tE(n);if(!Oh(n,0))return n.flags&512&&!(n.flags&67108864)?FM(n):$a(c)&&a===1?_t:mN(n);let d;if(c.kind===277)d=Kt(ro(c)||nc(c.expression),c);else if(mr(c)||lr(c)&&(sa(c)||(Fr(c)||t3(c))&&mr(c.parent)))d=qp(n);else if(Fr(c)||$s(c)||Ve(c)||ls(c)||hp(c)||Ac(c)||Tc(c)||Hl(c)&&!Tm(c)||vh(c)||$i(c)){if(n.flags&9136)return FM(n);d=mr(c.parent)?qp(n):ro(c)||j}else if(hc(c))d=ro(c)||Y3e(c);else if(w_(c))d=ro(c)||M4e(c);else if(np(c))d=ro(c)||o2(c.name,0);else if(Tm(c))d=ro(c)||$3e(c,0);else if(Ao(c)||qo(c)||gp(c)||Oi(c)||$a(c)||uC(c))d=B(c,!0);else if(y0(c))d=FM(n);else if(i1(c))d=_Z(n);else return N.fail("Unhandled declaration kind! "+N.formatSyntaxKind(c.kind)+" for "+N.formatSymbol(n));return J_()?d:n.flags&512&&!(n.flags&67108864)?FM(n):$a(c)&&a===1?d:mN(n)}function zm(n){if(n)switch(n.kind){case 177:return em(n);case 178:return Cie(n);case 172:return N.assert(D_(n)),yu(n)}}function eE(n){const a=zm(n);return a&&Ti(a)}function fZ(n){const a=cbe(n);return a&&a.symbol}function zhe(n){return oE(dm(n))}function tE(n){const a=Ki(n);if(!a.type){if(!Oh(n,0))return _t;const c=pl(n,177),d=pl(n,178),_=ri(pl(n,172),Wd);let v=c&&lr(c)&&ov(c)||eE(c)||eE(d)||eE(_)||c&&c.body&&Fee(c)||_&&_.initializer&&B(_,!0);v||(d&&!lB(d)?mu(de,d,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Si(n)):c&&!lB(c)?mu(de,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Si(n)):_&&!lB(_)&&mu(de,_,f.Member_0_implicitly_has_an_1_type,Si(n),"any"),v=j),J_()||(zm(c)?qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):zm(d)||zm(_)?qe(d,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):c&&de&&qe(c,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Si(n)),v=j),a.type=v}return a.type}function Qz(n){const a=Ki(n);if(!a.writeType){if(!Oh(n,8))return _t;const c=pl(n,178)??ri(pl(n,172),Wd);let d=eE(c);J_()||(zm(c)&&qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),d=j),a.writeType=d||tE(n)}return a.writeType}function mZ(n){const a=Np(Bf(n));return a.flags&8650752?a:a.flags&2097152?In(a.types,c=>!!(c.flags&8650752)):void 0}function FM(n){let a=Ki(n);const c=a;if(!a.type){const d=n.valueDeclaration&&Oee(n.valueDeclaration,!1);if(d){const _=_ye(n,d);_&&(n=_,a=_.links)}c.type=a.type=Zz(n)}return a.type}function Zz(n){const a=n.valueDeclaration;if(n.flags&1536&&vC(n))return j;if(a&&(a.kind===226||ws(a)&&a.parent.kind===226))return qp(n);if(n.flags&512&&a&&$i(a)&&a.commonJsModuleIndicator){const d=Rp(n);if(d!==n){if(!Oh(n,0))return _t;const _=rs(n.exports.get("export=")),v=qp(_,_===d?void 0:d);return J_()?v:mN(n)}}const c=Wf(16,n);if(n.flags&32){const d=mZ(n);return d?ya([c,d]):c}else return X&&n.flags&16777216?Bb(c,!0):c}function _Z(n){const a=Ki(n);return a.type||(a.type=gOe(n))}function hZ(n){const a=Ki(n);if(!a.type){if(!Oh(n,0))return _t;const c=Oc(n),d=n.declarations&&Up(wm(n),!0),_=Ht(d==null?void 0:d.declarations,v=>kl(v)?ro(v):void 0);if(a.type=d!=null&&d.declarations&&tte(d.declarations)&&n.declarations.length?Q0(d):tte(n.declarations)?it:_||(Au(c)&111551?dr(c):_t),!J_())return mN(d??n),a.type=_t}return a.type}function Bhe(n){const a=Ki(n);return a.type||(a.type=lo(dr(a.target),a.mapper))}function Ghe(n){const a=Ki(n);return a.writeType||(a.writeType=lo(F1(a.target),a.mapper))}function mN(n){const a=n.valueDeclaration;if(a){if(yu(a))return qe(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),_t;de&&(a.kind!==169||a.initializer)&&qe(n.valueDeclaration,f._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Si(n))}else if(n.flags&2097152){const c=wm(n);c&&qe(c,f.Circular_definition_of_import_alias_0,Si(n))}return j}function gZ(n){const a=Ki(n);return a.type||(N.assertIsDefined(a.deferralParent),N.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ei(a.deferralConstituents):ya(a.deferralConstituents)),a.type}function e9(n){const a=Ki(n);return!a.writeType&&a.deferralWriteConstituents&&(N.assertIsDefined(a.deferralParent),N.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ei(a.deferralWriteConstituents):ya(a.deferralWriteConstituents)),a.writeType}function F1(n){const a=xl(n);return n.flags&4?a&2?a&65536?e9(n)||gZ(n):n.links.writeType||n.links.type:Gb(dr(n),!!(n.flags&16777216)):n.flags&98304?a&1?Ghe(n):Qz(n):dr(n)}function dr(n,a){const c=xl(n);return c&65536?gZ(n):c&1?Bhe(n):c&262144?Qst(n):c&8192?pdt(n):n.flags&7?c_(n,a):n.flags&9136?FM(n):n.flags&8?_Z(n):n.flags&98304?tE(n):n.flags&2097152?hZ(n):_t}function Db(n){return Gb(dr(n),!!(n.flags&16777216))}function Nb(n,a){return n!==void 0&&a!==void 0&&(Wr(n)&4)!==0&&n.target===a}function ly(n){return Wr(n)&4?n.target:n}function _N(n,a){return c(n);function c(d){if(Wr(d)&7){const _=ly(d);return _===a||bt(Cp(_),c)}else if(d.flags&2097152)return bt(d.types,c);return!1}}function nE(n,a){for(const c of a)n=Rg(n,WT(Ir(c)));return n}function Pn(n,a){for(;;){if(n=n.parent,n&&mr(n)){const c=zl(n);if(c===6||c===3){const d=Ir(n.left);d&&d.parent&&!Vn(d.parent.valueDeclaration,_=>n===_)&&(n=d.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const d=Pn(n,a);if(n.kind===200)return Rn(d,WT(Ir(n.typeParameter)));if(n.kind===194)return So(d,U8e(n));const _=nE(d,Dy(n)),v=a&&(n.kind===263||n.kind===231||n.kind===264||Z_(n))&&Bf(Ir(n)).thisType;return v?Rn(_,v):_}case 348:const c=KL(n);c&&(n=c.valueDeclaration);break;case 327:{const d=Pn(n,a);return n.tags?nE(d,Do(n.tags,_=>om(_)?_.typeParameters:void 0)):d}}}}function Gr(n){var a;const c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(d=>{if(d.kind===264)return!0;if(d.kind!==260)return!1;const _=d.initializer;return!!_&&(_.kind===218||_.kind===219)});return N.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Pn(c)}function Lr(n){if(!n.declarations)return;let a;for(const c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||Z_(c)||HL(c))&&(a=nE(a,Dy(c)));return a}function zi(n){return So(Gr(n),Lr(n))}function Li(n){const a=Xo(n,1);if(a.length===1){const c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Yu(c)){const d=Z9(c.parameters[0]);return Nt(d)||D9(d)===j}}return!1}function is(n){if(Xo(n,1).length>0)return!0;if(n.flags&8650752){const a=Gu(n);return!!a&&Li(a)}return!1}function As(n){const a=Wg(n.symbol);return a&&I_(a)}function td(n,a,c){const d=Ne(a),_=lr(c);return mn(Xo(n,1),v=>(_||d>=zh(v.typeParameters))&&d<=Ne(v.typeParameters))}function Wh(n,a,c){const d=td(n,a,c),_=Wt(a,Ti);return Zo(d,v=>bt(v.typeParameters)?T8(v,_,lr(c)):v)}function Np(n){if(!n.resolvedBaseConstructorType){const a=Wg(n.symbol),c=a&&I_(a),d=As(n);if(!d)return n.resolvedBaseConstructorType=Oe;if(!Oh(n,1))return _t;const _=mo(d.expression);if(c&&d!==c&&(N.assert(!c.typeArguments),mo(c.expression)),_.flags&2621440&&p_(_),!J_())return qe(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Si(n.symbol)),n.resolvedBaseConstructorType=_t;if(!(_.flags&1)&&_!==Be&&!is(_)){const v=qe(d.expression,f.Type_0_is_not_a_constructor_function_type,Hn(_));if(_.flags&262144){const x=GM(_);let k=hn;if(x){const F=Xo(x,1);F[0]&&(k=ps(F[0]))}_.symbol.declarations&&Ma(v,kr(_.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Si(_.symbol),Hn(k)))}return n.resolvedBaseConstructorType=_t}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function u_(n){let a=et;if(n.symbol.declarations)for(const c of n.symbol.declarations){const d=vR(c);if(d)for(const _ of d){const v=Ti(_);Jt(v)||(a===et?a=[v]:a.push(v))}}return a}function lv(n,a){qe(n,f.Type_0_recursively_references_itself_as_a_base_type,Hn(a,void 0,2))}function Cp(n){if(!n.baseTypesResolved){if(Oh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[hN(n)]:n.symbol.flags&96?(n.symbol.flags&32&&v8(n),n.symbol.flags&64&&Rst(n)):N.fail("type must be class or interface"),!J_()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===263||a.kind===264)&&lv(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function hN(n){const a=Zo(n.typeParameters,(c,d)=>n.elementFlags[d]&8?Pp(c,Tt):c);return Vu(ei(a||et),n.readonly)}function v8(n){n.resolvedBaseTypes=$3;const a=Ld(Np(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=et;const c=As(n);let d;const _=a.symbol?Zs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&xst(_))d=ZOe(c,a.symbol);else if(a.flags&1)d=a;else{const x=Wh(a,c.typeArguments,c);if(!x.length)return qe(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=et;d=ps(x[0])}if(Jt(d))return n.resolvedBaseTypes=et;const v=f_(d);if(!t9(v)){const x=tge(void 0,d),k=Vo(x,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Hn(v));return ts.add(Lg(Un(c.expression),c.expression,k)),n.resolvedBaseTypes=et}return n===v||_N(v,n)?(qe(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,Hn(n,void 0,2)),n.resolvedBaseTypes=et):(n.resolvedBaseTypes===$3&&(n.members=void 0),n.resolvedBaseTypes=[v])}function xst(n){const a=n.outerTypeParameters;if(a){const c=a.length-1,d=Js(n);return a[c].symbol!==d[c].symbol}return!0}function t9(n){if(n.flags&262144){const a=Gu(n);if(a)return t9(a)}return!!(n.flags&67633153&&!Kd(n)||n.flags&2097152&&Jn(n.types,t9))}function Rst(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||et,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===264&&DC(a))for(const c of DC(a)){const d=f_(Ti(c));Jt(d)||(t9(d)?n!==d&&!_N(d,n)?n.resolvedBaseTypes===et?n.resolvedBaseTypes=[d]:n.resolvedBaseTypes.push(d):lv(a,n):qe(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Dst(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;const c=DC(a);if(c){for(const d of c)if(Bl(d.expression)){const _=Hs(d.expression,788968,!0);if(!_||!(_.flags&64)||Bf(_).thisType)return!1}}}return!0}function Bf(n){let a=Ki(n);const c=a;if(!a.declaredType){const d=n.flags&32?1:2,_=_ye(n,n.valueDeclaration&&hmt(n.valueDeclaration));_&&(n=_,a=_.links);const v=c.declaredType=a.declaredType=Wf(d,n),x=Gr(n),k=Lr(n);(x||k||d===1||!Dst(n))&&(v.objectFlags|=4,v.typeParameters=So(x,k),v.outerTypeParameters=x,v.localTypeParameters=k,v.instantiations=new Map,v.instantiations.set(pm(v.typeParameters),v),v.target=v,v.resolvedTypeArguments=v.typeParameters,v.thisType=gf(n),v.thisType.isThisType=!0,v.thisType.constraint=v)}return a.declaredType}function mOe(n){var a;const c=Ki(n);if(!c.declaredType){if(!Oh(n,2))return _t;const d=N.checkDefined((a=n.declarations)==null?void 0:a.find(HL),"Type alias symbol with no valid declaration found"),_=$f(d)?d.typeExpression:d.type;let v=_?Ti(_):_t;if(J_()){const x=Lr(n);x&&(c.typeParameters=x,c.instantiations=new Map,c.instantiations.set(pm(x),v))}else v=_t,d.kind===347?qe(d.typeExpression.type,f.Type_alias_0_circularly_references_itself,Si(n)):qe(ad(d)&&d.name||d,f.Type_alias_0_circularly_references_itself,Si(n));c.declaredType=v}return c.declaredType}function vZ(n){return n.flags&1056&&n.symbol.flags&8?Zs(Cd(n.symbol)):n}function _Oe(n){const a=Ki(n);if(!a.declaredType){const c=[];if(n.declarations){for(const _ of n.declarations)if(_.kind===266){for(const v of _.members)if(gN(v)){const x=Ir(v),k=WN(v),F=fx(k!==void 0?Jct(k,Sa(n),x):hOe(x));Ki(x).declaredType=F,c.push(yd(F))}}}const d=c.length?ei(c,1,n,void 0):hOe(n);d.flags&1048576&&(d.flags|=1024,d.symbol=n),a.declaredType=d}return a.declaredType}function hOe(n){const a=yg(32,n),c=yg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function gOe(n){const a=Ki(n);if(!a.declaredType){const c=_Oe(Cd(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function WT(n){const a=Ki(n);return a.declaredType||(a.declaredType=gf(n))}function Nst(n){const a=Ki(n);return a.declaredType||(a.declaredType=Zs(Oc(n)))}function Zs(n){return vOe(n)||_t}function vOe(n){if(n.flags&96)return Bf(n);if(n.flags&524288)return mOe(n);if(n.flags&262144)return WT(n);if(n.flags&384)return _Oe(n);if(n.flags&8)return gOe(n);if(n.flags&2097152)return Nst(n)}function n9(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return n9(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(n9)}return!1}function Cst(n){const a=Jx(n);return!a||n9(a)}function yOe(n){const a=yu(n);return a?n9(a):!Ly(n)}function Pst(n){const a=em(n),c=Dy(n);return(n.kind===176||!!a&&n9(a))&&n.parameters.every(yOe)&&c.every(Cst)}function Mst(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return yOe(a);case 174:case 173:case 176:case 177:case 178:return Pst(a)}}return!1}function bOe(n,a,c){const d=ca();for(const _ of n)d.set(_.escapedName,c&&Mst(_)?_:Uge(_,a));return d}function EOe(n,a){for(const c of a){if(SOe(c))continue;const d=n.get(c.escapedName);(!d||d.valueDeclaration&&mr(d.valueDeclaration)&&!pN(d)&&!oie(d.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function SOe(n){return!!n.valueDeclaration&&sd(n.valueDeclaration)&&aa(n.valueDeclaration)}function Vhe(n){if(!n.declaredProperties){const a=n.symbol,c=Cb(a);n.declaredProperties=X0(c),n.declaredCallSignatures=et,n.declaredConstructSignatures=et,n.declaredIndexInfos=et,n.declaredCallSignatures=z1(c.get("__call")),n.declaredConstructSignatures=z1(c.get("__new")),n.declaredIndexInfos=XOe(a)}return n}function jhe(n){if(!Za(n)&&!$s(n))return!1;const a=Za(n)?n.expression:n.argumentExpression;return Bl(a)&&tm(Za(n)?Tg(n):nc(a))}function y8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function r9(n){const a=Lo(n);return!!a&&jhe(a)}function gN(n){return!Wy(n)||r9(n)}function Lst(n){return l3(n)&&!jhe(n)}function kst(n,a,c){N.assert(!!(xl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,Ki(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function TOe(n,a,c,d){N.assert(!!d.symbol,"The member is expected to have a symbol.");const _=Zr(d);if(!_.resolvedSymbol){_.resolvedSymbol=d.symbol;const v=mr(d)?d.left:d.name,x=$s(v)?nc(v.argumentExpression):Tg(v);if(tm(x)){const k=nm(x),F=d.symbol.flags;let H=c.get(k);H||c.set(k,H=Ka(0,k,4096));const re=a&&a.get(k);if(!(n.flags&32)&&(H.flags&hT(F)||re)){const be=re?So(re.declarations,H.declarations):H.declarations,ge=!(x.flags&8192)&&Vi(k)||xs(v);Xe(be,Je=>qe(Lo(Je)||Je,f.Property_0_was_also_declared_here,ge)),qe(v||d,f.Duplicate_property_0,ge),H=Ka(0,k,4096)}return H.links.nameType=x,kst(H,d,F),H.parent?N.assert(H.parent===n,"Existing symbol parent should match new one"):H.parent=n,_.resolvedSymbol=H}}return _.resolvedSymbol}function Uhe(n,a){const c=Ki(n);if(!c[a]){const d=a==="resolvedExports",_=d?n.flags&1536?PT(n).exports:n.exports:n.members;c[a]=_||K;const v=ca();for(const F of n.declarations||et){const H=$re(F);if(H)for(const re of H)d===mc(re)&&r9(re)&&TOe(n,_,v,re)}const x=M1(n).assignmentDeclarationMembers;if(x){const F=zo(x.values());for(const H of F){const re=zl(H),be=re===3||mr(H)&&bee(H,re)||re===9||re===6;d===!be&&r9(H)&&TOe(n,_,v,H)}}let k=YI(_,v);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(const F of n.declarations){const H=Ki(F.symbol)[a];if(!k){k=H;continue}H&&H.forEach((re,be)=>{const ge=k.get(be);if(!ge)k.set(be,re);else{if(ge===re)return;k.set(be,lm(ge,re))}})}c[a]=k||K}return c[a]}function Cb(n){return n.flags&6256?Uhe(n,"resolvedMembers"):n.members||K}function yZ(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=Ki(n);if(!a.lateSymbol&&bt(n.declarations,r9)){const c=rs(n.parent);bt(n.declarations,mc)?Dp(c):Cb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Jp(n,a,c){if(Wr(n)&4){const d=n.target,_=Js(n);return Ne(d.typeParameters)===Ne(_)?uy(d,So(_,[a||d.thisType])):n}else if(n.flags&2097152){const d=Zo(n.types,_=>Jp(_,a,c));return d!==n.types?ya(d):n}return c?Ld(n):n}function AOe(n,a,c,d){let _,v,x,k,F;VB(c,d,0,c.length)?(v=a.symbol?Cb(a.symbol):ca(a.declaredProperties),x=a.declaredCallSignatures,k=a.declaredConstructSignatures,F=a.declaredIndexInfos):(_=Mp(c,d),v=bOe(a.declaredProperties,_,c.length===1),x=BZ(a.declaredCallSignatures,_),k=BZ(a.declaredConstructSignatures,_),F=Y8e(a.declaredIndexInfos,_));const H=Cp(a);if(H.length){if(a.symbol&&v===Cb(a.symbol)){const be=ca(a.declaredProperties),ge=cge(a.symbol);ge&&be.set("__index",ge),v=be}vf(n,v,x,k,F);const re=el(d);for(const be of H){const ge=re?Jp(lo(be,_),re):be;EOe(v,gs(ge)),x=So(x,Xo(ge,0)),k=So(k,Xo(ge,1));const Je=ge!==j?gd(ge):[Bh(ke,j,!1)];F=So(F,mn(Je,gt=>!nge(F,gt.keyType)))}}vf(n,v,x,k,F)}function wst(n){AOe(n,Vhe(n),et,et)}function Ost(n){const a=Vhe(n.target),c=So(a.typeParameters,[a.thisType]),d=Js(n),_=d.length===c.length?d:So(d,[n]);AOe(n,a,c,_)}function Eg(n,a,c,d,_,v,x,k){const F=new h(Qt,k);return F.declaration=n,F.typeParameters=a,F.parameters=d,F.thisParameter=c,F.resolvedReturnType=_,F.resolvedTypePredicate=v,F.minArgumentCount=x,F.resolvedMinArgumentCount=void 0,F.target=void 0,F.mapper=void 0,F.compositeSignatures=void 0,F.compositeKind=void 0,F}function b8(n){const a=Eg(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function IOe(n,a){const c=b8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Wst(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=Fst(n,a))}function Fst(n,a){N.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const c=b8(n);return c.flags|=a,c}function xOe(n,a){if(Yu(n)){const _=n.parameters.length-1,v=n.parameters[_].escapedName,x=dr(n.parameters[_]);if(Wa(x))return[c(x,_,v)];if(!a&&x.flags&1048576&&Jn(x.types,Wa))return Wt(x.types,k=>c(k,_,v))}return[n.parameters];function c(_,v,x){const k=Js(_),F=d(_,x),H=Wt(k,(re,be)=>{const ge=F&&F[be]?F[be]:n2(n,v+be,_),Je=_.target.elementFlags[be],gt=Je&12?32768:Je&2?16384:0,Dt=Ka(1,ge,gt);return Dt.links.type=Je&4?Vu(re):re,Dt});return So(n.parameters.slice(0,v),H)}function d(_,v){const x=new Map;return Wt(_.target.labeledElementDeclarations,(k,F)=>{const H=bye(k,F,v),re=x.get(H);return re===void 0?(x.set(H,1),H):(x.set(H,re+1),`${H}_${re}`)})}}function zst(n){const a=Np(n),c=Xo(a,1),d=Wg(n.symbol),_=!!d&&Qr(d,64);if(c.length===0)return[Eg(void 0,n.localTypeParameters,void 0,et,n,void 0,0,_?4:0)];const v=As(n),x=lr(v),k=d9(v),F=Ne(k),H=[];for(const re of c){const be=zh(re.typeParameters),ge=Ne(re.typeParameters);if(x||F>=be&&F<=ge){const Je=ge?AZ(re,Mb(k,re.typeParameters,be,x)):b8(re);Je.typeParameters=n.localTypeParameters,Je.resolvedReturnType=n,Je.flags=_?Je.flags|4:Je.flags&-5,H.push(Je)}}return H}function bZ(n,a,c,d,_){for(const v of n)if(x9(v,a,c,d,_,c?put:M8))return v}function Bst(n,a,c){if(a.typeParameters){if(c>0)return;for(let _=1;_<n.length;_++)if(!bZ(n[_],a,!1,!1,!1))return;return[a]}let d;for(let _=0;_<n.length;_++){const v=_===c?a:bZ(n[_],a,!1,!1,!0)||bZ(n[_],a,!0,!1,!0);if(!v)return;d=Rg(d,v)}return d}function Hhe(n){let a,c;for(let d=0;d<n.length;d++){if(n[d].length===0)return et;n[d].length>1&&(c=c===void 0?d:-1);for(const _ of n[d])if(!a||!bZ(a,_,!1,!1,!0)){const v=Bst(n,_,d);if(v){let x=_;if(v.length>1){let k=_.thisParameter;const F=Xe(v,H=>H.thisParameter);if(F){const H=ya(eo(v,re=>re.thisParameter&&dr(re.thisParameter)));k=XT(F,H)}x=IOe(_,v),x.thisParameter=k}(a||(a=[])).push(x)}}}if(!Ne(a)&&c!==-1){const d=n[c!==void 0?c:0];let _=d.slice();for(const v of n)if(v!==d){const x=v[0];if(N.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=x.typeParameters&&bt(_,k=>!!k.typeParameters&&!ROe(x.typeParameters,k.typeParameters))?void 0:Wt(_,k=>jst(k,x)),!_)break}a=_}return a||et}function ROe(n,a){if(Ne(n)!==Ne(a))return!1;if(!n||!a)return!0;const c=Mp(a,n);for(let d=0;d<n.length;d++){const _=n[d],v=a[d];if(_!==v&&!fv(GM(_)||hn,lo(GM(v)||hn,c)))return!1}return!0}function Gst(n,a,c){if(!n||!a)return n||a;const d=ya([dr(n),lo(dr(a),c)]);return XT(n,d)}function Vst(n,a,c){const d=Xp(n),_=Xp(a),v=d>=_?n:a,x=v===n?a:n,k=v===n?d:_,F=jh(n)||jh(a),H=F&&!jh(v),re=new Array(k+(H?1:0));for(let be=0;be<k;be++){let ge=Y1(v,be);v===a&&(ge=lo(ge,c));let Je=Y1(x,be)||hn;x===a&&(Je=lo(Je,c));const gt=ya([ge,Je]),Dt=F&&!H&&be===k-1,an=be>=eh(v)&&be>=eh(x),cn=be>=d?void 0:n2(n,be),ar=be>=_?void 0:n2(a,be),Wn=cn===ar?cn:cn?ar?void 0:cn:ar,ln=Ka(1|(an&&!Dt?16777216:0),Wn||`arg${be}`,Dt?32768:an?16384:0);ln.links.type=Dt?Vu(gt):gt,re[be]=ln}if(H){const be=Ka(1,"args",32768);be.links.type=Vu(h_(x,k)),x===a&&(be.links.type=lo(be.links.type,c)),re[k]=be}return re}function jst(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=Mp(a.typeParameters,n.typeParameters));const _=n.declaration,v=Vst(n,a,d),x=Gst(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),F=Eg(_,c,x,v,void 0,void 0,k,(n.flags|a.flags)&167);return F.compositeKind=1048576,F.compositeSignatures=So(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),d?F.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?H1(n.mapper,d):d:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(F.mapper=n.mapper),F}function DOe(n){const a=gd(n[0]);if(a){const c=[];for(const d of a){const _=d.keyType;Jn(n,v=>!!Sg(v,_))&&c.push(Bh(_,ei(Wt(n,v=>iE(v,_))),bt(n,v=>Sg(v,_).isReadonly)))}return c}return et}function Ust(n){const a=Hhe(Wt(n.types,_=>_===Ot?[un]:Xo(_,0))),c=Hhe(Wt(n.types,_=>Xo(_,1))),d=DOe(n.types);vf(n,K,a,c,d)}function i9(n,a){return n?a?ya([n,a]):n:a}function NOe(n){const a=ou(n,d=>Xo(d,1).length>0),c=Wt(n,Li);if(a>0&&a===ou(c,d=>d)){const d=c.indexOf(!0);c[d]=!1}return c}function Hst(n,a,c,d){const _=[];for(let v=0;v<a.length;v++)v===d?_.push(n):c[v]&&_.push(ps(Xo(a[v],1)[0]));return ya(_)}function qst(n){let a,c,d;const _=n.types,v=NOe(_),x=ou(v,k=>k);for(let k=0;k<_.length;k++){const F=n.types[k];if(!v[k]){let H=Xo(F,1);H.length&&x>0&&(H=Wt(H,re=>{const be=b8(re);return be.resolvedReturnType=Hst(ps(re),_,v,k),be})),c=COe(c,H)}a=COe(a,Xo(F,0)),d=rd(gd(F),(H,re)=>POe(H,re,!1),d)}vf(n,K,a||et,c||et,d||et)}function COe(n,a){for(const c of a)(!n||Jn(n,d=>!x9(d,c,!1,!1,!1,M8)))&&(n=Rn(n,c));return n}function POe(n,a,c){if(n)for(let d=0;d<n.length;d++){const _=n[d];if(_.keyType===a.keyType)return n[d]=Bh(_.keyType,c?ei([_.type,a.type]):ya([_.type,a.type]),c?_.isReadonly||a.isReadonly:_.isReadonly&&a.isReadonly),n}return Rn(n,a)}function Jst(n){if(n.target){vf(n,K,et,et,et);const x=bOe(Pb(n.target),n.mapper,!1),k=BZ(Xo(n.target,0),n.mapper),F=BZ(Xo(n.target,1),n.mapper),H=Y8e(gd(n.target),n.mapper);vf(n,x,k,F,H);return}const a=rs(n.symbol);if(a.flags&2048){vf(n,K,et,et,et);const x=Cb(a),k=z1(x.get("__call")),F=z1(x.get("__new")),H=XOe(a);vf(n,x,k,F,H);return}let c=Dp(a),d;if(a===ot){const x=new Map;c.forEach(k=>{var F;!(k.flags&418)&&!(k.flags&512&&((F=k.declarations)!=null&&F.length)&&Jn(k.declarations,ku))&&x.set(k.escapedName,k)}),c=x}let _;if(vf(n,c,et,et,et),a.flags&32){const x=Bf(a),k=Np(x);k.flags&11272192?(c=ca(LT(c)),EOe(c,gs(k))):k===j&&(_=Bh(ke,j,!1))}const v=IZ(c);if(v?d=uge(v):(_&&(d=Rn(d,_)),a.flags&384&&(Zs(a).flags&32||bt(n.properties,x=>!!(dr(x).flags&296)))&&(d=Rn(d,jr))),vf(n,c,et,et,d||et),a.flags&8208&&(n.callSignatures=z1(a)),a.flags&32){const x=Bf(a);let k=a.members?z1(a.members.get("__constructor")):et;a.flags&16&&(k=qr(k.slice(),eo(n.callSignatures,F=>Z_(F.declaration)?Eg(F.declaration,F.typeParameters,F.thisParameter,F.parameters,x,void 0,F.minArgumentCount,F.flags&167):void 0))),k.length||(k=zst(x)),n.constructSignatures=k}}function Kst(n,a,c){return lo(n,Mp([a.indexType,a.objectType],[m_(0),Gh([c])]))}function Xst(n){const a=yf(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;const c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;const d=ya(c.types.filter(_=>_!==n.constraintType));return d!==Vr?d:void 0}function Yst(n){const a=Sg(n.source,ke),c=Fh(n.mappedType),d=!(c&1),_=c&4?0:16777216,v=a?[Bh(ke,see(a.type,n.mappedType,n.constraintType),d&&a.isReadonly)]:et,x=ca(),k=Xst(n);for(const F of gs(n.source)){if(k){const be=TN(F,8576);if(!ba(be,k))continue}const H=8192|(d&&g_(F)?8:0),re=Ka(4|F.flags&_,F.escapedName,H);if(re.declarations=F.declarations,re.links.nameType=Ki(F).nameType,re.links.propertyType=dr(F),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const be=n.constraintType.type.objectType,ge=Kst(n.mappedType,n.constraintType.type,be);re.links.mappedType=ge,re.links.constraintType=X_(be)}else re.links.mappedType=n.mappedType,re.links.constraintType=n.constraintType;x.set(F.escapedName,re)}vf(n,x,et,et,v)}function o9(n){if(n.flags&4194304){const a=Ld(n.type);return zb(a)?E8e(a):X_(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,c=o9(a);if(c!==a)return qge(n,JT(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return dl(n,o9,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===lc?n:ya(Zo(n.types,o9))}return n}function qhe(n){return xl(n)&4096}function Jhe(n,a,c,d){for(const _ of gs(n))d(TN(_,a));if(n.flags&1)d(ke);else for(const _ of gd(n))(!c||_.keyType.flags&134217732)&&d(_.keyType)}function $st(n){const a=ca();let c;vf(n,K,et,et,et);const d=d_(n),_=yf(n),v=n.target||n,x=cy(v),k=EZ(v)!==2,F=cv(v),H=Ld(FT(n)),re=Fh(n),be=Le?128:8576;vN(n)?Jhe(H,be,Le,ge):ZT(o9(_),ge),vf(n,a,et,et,c||et);function ge(gt){const Dt=x?lo(x,N8(n.mapper,d,gt)):gt;ZT(Dt,an=>Je(gt,an))}function Je(gt,Dt){if(tm(Dt)){const an=nm(Dt),cn=a.get(an);if(cn)cn.links.nameType=ei([cn.links.nameType,Dt]),cn.links.keyType=ei([cn.links.keyType,gt]);else{const ar=tm(gt)?va(H,nm(gt)):void 0,Wn=!!(re&4||!(re&8)&&ar&&ar.flags&16777216),ln=!!(re&1||!(re&2)&&ar&&g_(ar)),Bn=X&&!Wn&&ar&&ar.flags&16777216,zn=ar?qhe(ar):0,tr=Ka(4|(Wn?16777216:0),an,zn|262144|(ln?8:0)|(Bn?524288:0));tr.links.mappedType=n,tr.links.nameType=Dt,tr.links.keyType=gt,ar&&(tr.links.syntheticOrigin=ar,tr.declarations=k?ar.declarations:void 0),a.set(an,tr)}}else if(xZ(Dt)||Dt.flags&33){const an=Dt.flags&5?ke:Dt.flags&40?Tt:Dt,cn=lo(F,N8(n.mapper,d,gt)),ar=E8(H,Dt),Wn=!!(re&1||!(re&2)&&(ar!=null&&ar.isReadonly)),ln=Bh(an,cn,Wn);c=POe(c,ln,!0)}}}function Qst(n){if(!n.links.type){const a=n.links.mappedType;if(!Oh(n,0))return a.containsError=!0,_t;const c=cv(a.target||a),d=N8(a.mapper,d_(a),n.links.keyType),_=lo(c,d);let v=X&&n.flags&16777216&&!Cl(_,49152)?Bb(_,!0):n.links.checkFlags&524288?nee(_):_;J_()||(qe(C,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Si(n),Hn(a)),v=_t),n.links.type=v}return n.links.type}function d_(n){return n.typeParameter||(n.typeParameter=WT(Ir(n.declaration.typeParameter)))}function yf(n){return n.constraintType||(n.constraintType=Md(d_(n))||_t)}function cy(n){return n.declaration.nameType?n.nameType||(n.nameType=lo(Ti(n.declaration.nameType),n.mapper)):void 0}function cv(n){return n.templateType||(n.templateType=n.declaration.type?lo(lp(Ti(n.declaration.type),!0,!!(Fh(n)&4)),n.mapper):_t)}function MOe(n){return Jx(n.declaration.typeParameter)}function vN(n){const a=MOe(n);return a.kind===198&&a.operator===143}function FT(n){if(!n.modifiersType)if(vN(n))n.modifiersType=lo(Ti(MOe(n).type),n.mapper);else{const a=Oge(n.declaration),c=yf(a),d=c&&c.flags&262144?Md(c):c;n.modifiersType=d&&d.flags&4194304?lo(d.type,n.mapper):hn}return n.modifiersType}function Fh(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function LOe(n){const a=Fh(n);return a&8?-1:a&4?1:0}function Khe(n){const a=LOe(n),c=FT(n);return a||(Kd(c)?LOe(c):0)}function Zst(n){return!!(Wr(n)&32&&Fh(n)&4)}function Kd(n){if(Wr(n)&32){const a=yf(n);if(qT(a))return!0;const c=cy(n);if(c&&qT(lo(c,U1(d_(n),a))))return!0}return!1}function EZ(n){const a=cy(n);return a?ba(a,d_(n))?1:2:0}function p_(n){return n.members||(n.flags&524288?n.objectFlags&4?Ost(n):n.objectFlags&3?wst(n):n.objectFlags&1024?Yst(n):n.objectFlags&16?Jst(n):n.objectFlags&32?$st(n):N.fail("Unhandled object type "+N.formatObjectFlags(n.objectFlags)):n.flags&1048576?Ust(n):n.flags&2097152?qst(n):N.fail("Unhandled type "+N.formatTypeFlags(n.flags))),n}function Pb(n){return n.flags&524288?p_(n).properties:et}function rE(n,a){if(n.flags&524288){const d=p_(n).members.get(a);if(d&&Fm(d))return d}}function a9(n){if(!n.resolvedProperties){const a=ca();for(const c of n.types){for(const d of gs(c))if(!a.has(d.escapedName)){const _=l9(n,d.escapedName,!!(n.flags&2097152));_&&a.set(d.escapedName,_)}if(n.flags&1048576&&gd(c).length===0)break}n.resolvedProperties=X0(a)}return n.resolvedProperties}function gs(n){return n=zM(n),n.flags&3145728?a9(n):Pb(n)}function elt(n,a){n=zM(n),n.flags&3670016&&p_(n).members.forEach((c,d)=>{ix(c,d)&&a(c,d)})}function tlt(n,a){return a.properties.some(d=>{const _=d.name&&(Qm(d.name)?Xd(Ek(d.name)):py(d.name)),v=_&&tm(_)?nm(_):void 0,x=v===void 0?void 0:Ke(n,v);return!!x&&w8(x)&&!ba(gx(d),x)})}function nlt(n){const a=ei(n);if(!(a.flags&1048576))return nbe(a);const c=ca();for(const d of n)for(const{escapedName:_}of nbe(d))if(!c.has(_)){const v=BOe(a,_);v&&c.set(_,v)}return zo(c.values())}function zT(n){return n.flags&262144?Md(n):n.flags&8388608?ilt(n):n.flags&16777216?OOe(n):Gu(n)}function Md(n){return s9(n)?GM(n):void 0}function rlt(n,a){const c=C8(n);return!!c&&BT(c,a)}function BT(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&bt((c=n.symbol)==null?void 0:c.declarations,d=>Qr(d,4096))||n.flags&3145728&&bt(n.types,d=>BT(d,a))||n.flags&8388608&&BT(n.objectType,a+1)||n.flags&16777216&&BT(OOe(n),a+1)||n.flags&33554432&&BT(n.baseType,a)||Wr(n)&32&&rlt(n,a)||zb(n)&&mi(G1(n),(d,_)=>!!(n.target.elementFlags[_]&8)&&BT(d,a))>=0))}function ilt(n){return s9(n)?olt(n):void 0}function Xhe(n){const a=pv(n,!1);return a!==n?a:zT(n)}function olt(n){if(Zhe(n))return kZ(n.objectType,n.indexType);const a=Xhe(n.indexType);if(a&&a!==n.indexType){const d=kb(n.objectType,a,n.accessFlags);if(d)return d}const c=Xhe(n.objectType);if(c&&c!==n.objectType)return kb(c,n.indexType,n.accessFlags)}function Yhe(n){if(!n.resolvedDefaultConstraint){const a=Gct(n),c=sE(n);n.resolvedDefaultConstraint=Nt(a)?c:Nt(c)?a:ei([a,c])}return n.resolvedDefaultConstraint}function kOe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=pv(n.checkType,!1),c=a===n.checkType?zT(a):a;if(c&&c!==n.checkType){const d=qge(n,JT(n.root.checkType,c,n.mapper),!0);if(!(d.flags&131072))return n.resolvedConstraintOfDistributive=d,d}}n.resolvedConstraintOfDistributive=!1}function wOe(n){return kOe(n)||Yhe(n)}function OOe(n){return s9(n)?wOe(n):void 0}function alt(n,a){let c,d=!1;for(const _ of n)if(_.flags&465829888){let v=zT(_);for(;v&&v.flags&21233664;)v=zT(v);v&&(c=Rn(c,v),a&&(c=Rn(c,_)))}else(_.flags&469892092||Vh(_))&&(d=!0);if(c&&(a||d)){if(d)for(const _ of n)(_.flags&469892092||Vh(_))&&(c=Rn(c,_));return T9(ya(c),!1)}}function Gu(n){if(n.flags&464781312||zb(n)){const a=$he(n);return a!==js&&a!==tu?a:void 0}return n.flags&4194304?Fs:void 0}function uv(n){return Gu(n)||n}function s9(n){return $he(n)!==tu}function $he(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=c(n);function c(v){if(!v.immediateBaseConstraint){if(!Oh(v,4))return tu;let x;const k=YZ(v);if((a.length<10||a.length<50&&!Or(a,k))&&(a.push(k),x=_(pv(v,!1)),a.pop()),!J_()){if(v.flags&262144){const F=dge(v);if(F){const H=qe(F,f.Type_parameter_0_has_a_circular_constraint,Hn(v));C&&!WE(F,C)&&!WE(C,F)&&Ma(H,kr(C,f.Circularity_originates_in_type_at_this_location))}}x=tu}v.immediateBaseConstraint=x||js}return v.immediateBaseConstraint}function d(v){const x=c(v);return x!==js&&x!==tu?x:void 0}function _(v){if(v.flags&262144){const x=GM(v);return v.isThisType||!x?x:d(x)}if(v.flags&3145728){const x=v.types,k=[];let F=!1;for(const H of x){const re=d(H);re?(re!==H&&(F=!0),k.push(re)):F=!0}return F?v.flags&1048576&&k.length===x.length?ei(k):v.flags&2097152&&k.length?ya(k):void 0:v}if(v.flags&4194304)return Fs;if(v.flags&134217728){const x=v.types,k=eo(x,d);return k.length===x.length?jT(v.texts,k):ke}if(v.flags&268435456){const x=d(v.type);return x&&x!==v.type?dx(v.symbol,x):ke}if(v.flags&8388608){if(Zhe(v))return d(kZ(v.objectType,v.indexType));const x=d(v.objectType),k=d(v.indexType),F=x&&k&&kb(x,k,v.accessFlags);return F&&d(F)}if(v.flags&16777216){const x=wOe(v);return x&&d(x)}if(v.flags&33554432)return d(hge(v));if(zb(v)){const x=Wt(G1(v),(k,F)=>{const H=k.flags&262144&&v.target.elementFlags[F]&8&&d(k)||k;return H!==k&&cp(H,re=>cE(re)&&!zb(re))?H:k});return Gh(x,v.target.elementFlags,v.target.readonly,v.target.labeledElementDeclarations)}return v}}function slt(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Jp(n,a,!0))}function Qhe(n){if(n.default)n.default===du&&(n.default=tu);else if(n.target){const a=Qhe(n.target);n.default=a?lo(a,n.mapper):js}else{n.default=du;const a=n.symbol&&Xe(n.symbol.declarations,d=>hl(d)&&d.default),c=a?Ti(a):js;n.default===du&&(n.default=c)}return n.default}function GT(n){const a=Qhe(n);return a!==js&&a!==tu?a:void 0}function llt(n){return Qhe(n)!==tu}function WOe(n){return!!(n.symbol&&Xe(n.symbol.declarations,a=>hl(a)&&a.default))}function FOe(n){return n.resolvedApparentType||(n.resolvedApparentType=clt(n))}function clt(n){const a=n.target??n,c=C8(a);if(c&&!a.declaration.nameType){const d=FT(n),_=Kd(d)?FOe(d):Gu(d);if(_&&cp(_,v=>cE(v)||zOe(v)))return lo(a,JT(c,_,n.mapper))}return n}function zOe(n){return!!(n.flags&2097152)&&Jn(n.types,cE)}function Zhe(n){let a;return!!(n.flags&8388608&&Wr(a=n.objectType)&32&&!Kd(a)&&qT(n.indexType)&&!(Fh(a)&8)&&!a.declaration.nameType)}function Ld(n){const a=n.flags&465829888?Gu(n)||hn:n,c=Wr(a);return c&32?FOe(a):c&4&&a!==n?Jp(a,n):a.flags&2097152?slt(a,n):a.flags&402653316?Zl:a.flags&296?yc:a.flags&2112?qlt():a.flags&528?ul:a.flags&12288?p8e():a.flags&67108864?Ca:a.flags&4194304?Fs:a.flags&2&&!X?Ca:a}function zM(n){return f_(Ld(f_(n)))}function BOe(n,a,c){var d,_,v;let x,k,F;const H=n.flags&1048576;let re,be=4,ge=H?0:8,Je=!1;for(const tr of n.types){const Kn=Ld(tr);if(!(Jt(Kn)||Kn.flags&131072)){const nr=va(Kn,a,c),Ro=nr?xf(nr):0;if(nr){if(nr.flags&106500&&(re??(re=H?0:16777216),H?re|=nr.flags&16777216:re&=nr.flags),!x)x=nr;else if(nr!==x)if((wN(nr)||nr)===(wN(x)||x)&&nve(x,nr,(Bo,_o)=>Bo===_o?-1:0)===-1)Je=!!x.parent&&!!Ne(Lr(x.parent));else{k||(k=new Map,k.set(Sa(x),x));const Bo=Sa(nr);k.has(Bo)||k.set(Bo,nr)}H&&g_(nr)?ge|=8:!H&&!g_(nr)&&(ge&=-9),ge|=(Ro&6?0:256)|(Ro&4?512:0)|(Ro&2?1024:0)|(Ro&256?2048:0),Qve(nr)||(be=2)}else if(H){const Eo=!y8(a)&&cx(Kn,a);Eo?(ge|=32|(Eo.isReadonly?8:0),F=Rn(F,Wa(Kn)?ZZ(Kn)||Oe:Eo.type)):pE(Kn)&&!(Wr(Kn)&2097152)?(ge|=32,F=Rn(F,Oe)):ge|=16}}}if(!x||H&&(k||ge&48)&&ge&1536&&!(k&&ult(k.values())))return;if(!k&&!(ge&16)&&!F)if(Je){const tr=(d=ri(x,ph))==null?void 0:d.links,Kn=XT(x,tr==null?void 0:tr.type);return Kn.parent=(v=(_=x.valueDeclaration)==null?void 0:_.symbol)==null?void 0:v.parent,Kn.links.containingType=n,Kn.links.mapper=tr==null?void 0:tr.mapper,Kn.links.writeType=F1(x),Kn}else return x;const gt=k?zo(k.values()):[x];let Dt,an,cn;const ar=[];let Wn,ln,Bn=!1;for(const tr of gt){ln?tr.valueDeclaration&&tr.valueDeclaration!==ln&&(Bn=!0):ln=tr.valueDeclaration,Dt=qr(Dt,tr.declarations);const Kn=dr(tr);an||(an=Kn,cn=Ki(tr).nameType);const nr=F1(tr);(Wn||nr!==Kn)&&(Wn=Rn(Wn||ar.slice(),nr)),Kn!==an&&(ge|=64),(w8(Kn)||UT(Kn))&&(ge|=128),Kn.flags&131072&&Kn!==cu&&(ge|=131072),ar.push(Kn)}qr(ar,F);const zn=Ka(4|(re??0),a,be|ge);return zn.links.containingType=n,!Bn&&ln&&(zn.valueDeclaration=ln,ln.symbol.parent&&(zn.parent=ln.symbol.parent)),zn.declarations=Dt,zn.links.nameType=cn,ar.length>2?(zn.links.checkFlags|=65536,zn.links.deferralParent=n,zn.links.deferralConstituents=ar,zn.links.deferralWriteConstituents=Wn):(zn.links.type=H?ei(ar):ya(ar),Wn&&(zn.links.writeType=H?ei(Wn):ya(Wn))),zn}function GOe(n,a,c){var d,_,v;let x=c?(d=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:d.get(a):(_=n.propertyCache)==null?void 0:_.get(a);return x||(x=BOe(n,a,c),x&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=ca()):n.propertyCache||(n.propertyCache=ca())).set(a,x),c&&!(xl(x)&48)&&!((v=n.propertyCache)!=null&&v.get(a))&&(n.propertyCache||(n.propertyCache=ca())).set(a,x))),x}function ult(n){let a;for(const c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(d=>{Or(c.declarations,d)||a.delete(d)}),a.size===0)return}return a}function l9(n,a,c){const d=GOe(n,a,c);return d&&!(xl(d)&16)?d:void 0}function f_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=dlt(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(bt(a9(n),plt)?33554432:0)),n.objectFlags&33554432?Vr:n):n}function dlt(n){const a=Zo(n.types,f_);if(a===n.types)return n;const c=ei(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function plt(n){return VOe(n)||jOe(n)}function VOe(n){return!(n.flags&16777216)&&(xl(n)&131264)===192&&!!(dr(n).flags&131072)}function jOe(n){return!n.valueDeclaration&&!!(xl(n)&1024)}function ege(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&bt(n.types,ege)||n.flags&2097152&&flt(n))}function flt(n){const a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=lo(n,ho));return f_(a)!==a}function tge(n,a){if(a.flags&2097152&&Wr(a)&33554432){const c=In(a9(a),VOe);if(c)return Vo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Hn(a,void 0,536870912),Si(c));const d=In(a9(a),jOe);if(d)return Vo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Hn(a,void 0,536870912),Si(d))}return n}function va(n,a,c,d){var _,v;if(n=zM(n),n.flags&524288){const x=p_(n),k=x.members.get(a);if(k&&!d&&((_=n.symbol)==null?void 0:_.flags)&512&&((v=Ki(n.symbol).typeOnlyExportStarMap)!=null&&v.has(a)))return;if(k&&Fm(k,d))return k;if(c)return;const F=x===nn?Ot:x.callSignatures.length?Xn:x.constructSignatures.length?yo:void 0;if(F){const H=rE(F,a);if(H)return H}return rE(Pe,a)}if(n.flags&2097152){const x=l9(n,a,!0);return x||(c?void 0:l9(n,a,c))}if(n.flags&1048576)return l9(n,a,c)}function c9(n,a){if(n.flags&3670016){const c=p_(n);return a===0?c.callSignatures:c.constructSignatures}return et}function Xo(n,a){const c=c9(zM(n),a);if(a===0&&!Ne(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let d;if(cp(n,_=>{var v;return!!((v=_.symbol)!=null&&v.parent)&&mlt(_.symbol.parent)&&(d?d===_.symbol.escapedName:(d=_.symbol.escapedName,!0))})){const _=dl(n,x=>Ob((UOe(x.symbol.parent)?na:$o).typeParameters[0],x.mapper)),v=Vu(_,Gm(n,x=>UOe(x.symbol.parent)));return n.arrayFallbackSignatures=Xo(Ke(v,d),a)}n.arrayFallbackSignatures=c}return c}function mlt(n){return!n||!$o.symbol||!na.symbol?!1:!!s_(n,$o.symbol)||!!s_(n,na.symbol)}function UOe(n){return!n||!na.symbol?!1:!!s_(n,na.symbol)}function nge(n,a){return In(n,c=>c.keyType===a)}function rge(n,a){let c,d,_;for(const v of n)v.keyType===ke?c=v:lx(a,v.keyType)&&(d?(_||(_=[d])).push(v):d=v);return _?Bh(hn,ya(Wt(_,v=>v.type)),rd(_,(v,x)=>v&&x.isReadonly,!0)):d||(c&&lx(a,ke)?c:void 0)}function lx(n,a){return ba(n,a)||a===ke&&ba(n,Tt)||a===Tt&&(n===cs||!!(n.flags&128)&&og(n.value))}function ige(n){return n.flags&3670016?p_(n).indexInfos:et}function gd(n){return ige(zM(n))}function Sg(n,a){return nge(gd(n),a)}function iE(n,a){var c;return(c=Sg(n,a))==null?void 0:c.type}function oge(n,a){return gd(n).filter(c=>lx(a,c.keyType))}function E8(n,a){return rge(gd(n),a)}function cx(n,a){return E8(n,y8(a)?xi:Xd(Vi(a)))}function HOe(n){var a;let c;for(const d of Dy(n))c=Rg(c,WT(d.symbol));return c!=null&&c.length?c:Tc(n)?(a=BM(n))==null?void 0:a.typeParameters:void 0}function age(n){const a=[];return n.forEach((c,d)=>{k1(d)||a.push(c)}),a}function SZ(n,a){if(Xc(n))return;const c=Jd(Se,'"'+n+'"',512);return c&&a?rs(c):c}function S8(n){if(CA(n)||yk(n)||bk(n))return!0;if(n.initializer){const c=dm(n.parent),d=n.parent.parameters.indexOf(n);return N.assert(d>=0),d>=eh(c,3)}const a=bS(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=kee(a).length:!1}function _lt(n){return qo(n)&&!D_(n)&&n.questionToken}function u9(n,a,c,d){return{kind:n,parameterName:a,parameterIndex:c,type:d}}function zh(n){let a=0;if(n)for(let c=0;c<n.length;c++)WOe(n[c])||(a=c+1);return a}function Mb(n,a,c,d){const _=Ne(a);if(!_)return[];const v=Ne(n);if(d||v>=c&&v<=_){const x=n?n.slice():[];for(let F=v;F<_;F++)x[F]=_t;const k=Eve(d);for(let F=v;F<_;F++){let H=GT(a[F]);d&&H&&(fv(H,hn)||fv(H,Ca))&&(H=j),x[F]=H?lo(H,Mp(a,x)):k}return x.length=a.length,x}return n&&n.slice()}function dm(n){const a=Zr(n);if(!a.resolvedSignature){const c=[];let d=0,_=0,v,x=lr(n)?l4(n):void 0,k=!1;const F=bS(n),H=_R(n);!F&&lr(n)&&gie(n)&&!Yne(n)&&!o0(n)&&(d|=32);for(let gt=H?1:0;gt<n.parameters.length;gt++){const Dt=n.parameters[gt];if(lr(Dt)&&bH(Dt)){x=Dt;continue}let an=Dt.symbol;const cn=e_(Dt)?Dt.typeExpression&&Dt.typeExpression.type:Dt.type;an&&an.flags&4&&!ta(Dt.name)&&(an=yl(Dt,an.escapedName,111551,void 0,void 0,!1)),gt===0&&an.escapedName==="this"?(k=!0,v=Dt.symbol):c.push(an),cn&&cn.kind===201&&(d|=2),yk(Dt)||Dt.initializer||Dt.questionToken||Xh(Dt)||F&&c.length>F.arguments.length&&!cn||bk(Dt)||(_=c.length)}if((n.kind===177||n.kind===178)&&gN(n)&&(!k||!v)){const gt=n.kind===177?178:177,Dt=pl(Ir(n),gt);Dt&&(v=fZ(Dt))}x&&x.typeExpression&&(v=XT(Ka(1,"this"),Ti(x.typeExpression)));const be=E0(n)?p0(n):n,ge=be&&Ml(be)?Bf(rs(be.parent.symbol)):void 0,Je=ge?ge.localTypeParameters:HOe(n);(UV(n)||lr(n)&&hlt(n,c))&&(d|=1),(zR(n)&&Qr(n,64)||Ml(n)&&Qr(n.parent,64))&&(d|=4),a.resolvedSignature=Eg(n,Je,v,c,void 0,void 0,_,d)}return a.resolvedSignature}function hlt(n,a){if(E0(n)||!sge(n))return!1;const c=el(n.parameters),d=c?qx(c):a0(n).filter(e_),_=Ht(d,x=>x.typeExpression&&XW(x.typeExpression.type)?x.typeExpression.type:void 0),v=Ka(3,"args",32768);return _?v.links.type=Vu(Ti(_.type)):(v.links.checkFlags|=65536,v.links.deferralParent=Vr,v.links.deferralConstituents=[ec],v.links.deferralWriteConstituents=[ec]),_&&a.pop(),a.push(v),!0}function BM(n){if(!(lr(n)&&Bs(n)))return;const a=i0(n);return(a==null?void 0:a.typeExpression)&&rA(Ti(a.typeExpression))}function glt(n,a){const c=BM(n);if(!c)return;const d=n.parameters.indexOf(a);return a.dotDotDotToken?eB(c,d):h_(c,d)}function vlt(n){const a=BM(n);return a&&ps(a)}function sge(n){const a=Zr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(d){if(!d)return!1;switch(d.kind){case 80:return d.escapedText===Bt.escapedName&&i6(d)===Bt;case 172:case 174:case 177:case 178:return d.name.kind===167&&c(d.name);case 211:case 212:return c(d.expression);case 303:return c(d.initializer);default:return!wj(d)&&!$h(d)&&!!Uo(d,c)}}}function z1(n){if(!n||!n.declarations)return et;const a=[];for(let c=0;c<n.declarations.length;c++){const d=n.declarations[c];if(ea(d)){if(c>0&&d.body){const _=n.declarations[c-1];if(d.parent===_.parent&&d.kind===_.kind&&d.pos===_.end)continue}if(lr(d)&&d.jsDoc){const _=Ij(d);if(Ne(_)){for(const v of _){const x=v.typeExpression;x.type===void 0&&!Ml(d)&&uE(x,j),a.push(dm(x))}continue}}a.push(!qE(d)&&!Tm(d)&&BM(d)||dm(d))}}return a}function qOe(n){const a=hd(n,n);if(a){const c=Rp(a);if(c)return dr(c)}return j}function oE(n){if(n.thisParameter)return dr(n.thisParameter)}function Gf(n){if(!n.resolvedTypePredicate){if(n.target){const a=Gf(n.target);n.resolvedTypePredicate=a?nut(a,n.mapper):we}else if(n.compositeSignatures)n.resolvedTypePredicate=gct(n.compositeSignatures,n.compositeKind)||we;else{const a=n.declaration&&em(n.declaration);let c;if(!a){const d=BM(n.declaration);d&&n!==d&&(c=Gf(d))}n.resolvedTypePredicate=a&&Gk(a)?ylt(a,n):c||we}N.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===we?void 0:n.resolvedTypePredicate}function ylt(n,a){const c=n.parameterName,d=n.type&&Ti(n.type);return c.kind===197?u9(n.assertsModifier?2:0,void 0,void 0,d):u9(n.assertsModifier?3:1,c.escapedText,mi(a.parameters,_=>_.escapedName===c.escapedText),d)}function JOe(n,a,c){return a!==2097152?ei(n,c):ya(n)}function ps(n){if(!n.resolvedReturnType){if(!Oh(n,3))return _t;let a=n.target?lo(ps(n.target),n.mapper):n.compositeSignatures?lo(JOe(Wt(n.compositeSignatures,ps),n.compositeKind,2),n.mapper):yN(n.declaration)||(Fl(n.declaration.body)?j:Fee(n.declaration));if(n.flags&8?a=R6e(a):n.flags&16&&(a=Bb(a)),!J_()){if(n.declaration){const c=em(n.declaration);if(c)qe(c,f.Return_type_annotation_circularly_references_itself);else if(de){const d=n.declaration,_=Lo(d);_?qe(_,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,xs(_)):qe(d,f.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=j}n.resolvedReturnType=a}return n.resolvedReturnType}function yN(n){if(n.kind===176)return Bf(rs(n.parent.symbol));const a=em(n);if(E0(n)){const c=hR(n);if(c&&Ml(c.parent)&&!a)return Bf(rs(c.parent.parent.symbol))}if(_R(n))return Ti(n.parameters[0].type);if(a)return Ti(a);if(n.kind===177&&gN(n)){const c=lr(n)&&ov(n);if(c)return c;const d=pl(Ir(n),178),_=eE(d);if(_)return _}return vlt(n)}function TZ(n){return n.compositeSignatures&&bt(n.compositeSignatures,TZ)||!n.resolvedReturnType&&ax(n,3)>=0}function blt(n){return KOe(n)||j}function KOe(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]),c=Wa(a)?ZZ(a):a;return c&&iE(c,Tt)}}function T8(n,a,c,d){const _=lge(n,Mb(a,n.typeParameters,zh(n.typeParameters),c));if(d){const v=a3e(ps(_));if(v){const x=b8(v);x.typeParameters=d;const k=b8(_);return k.resolvedReturnType=VT(x),k}}return _}function lge(n,a){const c=n.instantiations||(n.instantiations=new Map),d=pm(a);let _=c.get(d);return _||c.set(d,_=AZ(n,a)),_}function AZ(n,a){return xN(n,Elt(n,a),!0)}function Elt(n,a){return Mp(n.typeParameters,a)}function A8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Slt(n)):n}function Slt(n){return xN(n,$8e(n.typeParameters),!0)}function Tlt(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Alt(n)):n}function Alt(n){return T8(n,Wt(n.typeParameters,a=>a.target&&!Md(a.target)?a.target:a),lr(n.declaration))}function Ilt(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const c=$8e(a),d=Mp(a,Wt(a,v=>Md(v)||hn));let _=Wt(a,v=>lo(v,d)||hn);for(let v=0;v<a.length-1;v++)_=fy(_,d);return _=fy(_,c),n.baseSignatureCache=xN(n,Mp(a,_),!0)}return n}function VT(n){var a;if(!n.isolatedSignatureType){const c=(a=n.declaration)==null?void 0:a.kind,d=c===void 0||c===176||c===180||c===185,_=Wf(16);_.members=K,_.properties=et,_.callSignatures=d?et:[n],_.constructSignatures=d?[n]:et,_.indexInfos=et,n.isolatedSignatureType=_}return n.isolatedSignatureType}function cge(n){return n.members?IZ(n.members):void 0}function IZ(n){return n.get("__index")}function Bh(n,a,c,d){return{keyType:n,type:a,isReadonly:c,declaration:d}}function XOe(n){const a=cge(n);return a?uge(a):et}function uge(n){if(n.declarations){const a=[];for(const c of n.declarations)if(c.parameters.length===1){const d=c.parameters[0];d.type&&ZT(Ti(d.type),_=>{xZ(_)&&!nge(a,_)&&a.push(Bh(_,c.type?Ti(c.type):j,_p(c,8),c))})}return a}return et}function xZ(n){return!!(n.flags&4108)||UT(n)||!!(n.flags&2097152)&&!AN(n)&&bt(n.types,xZ)}function dge(n){return eo(mn(n.symbol&&n.symbol.declarations,hl),Jx)[0]}function YOe(n,a){var c;let d;if((c=n.symbol)!=null&&c.declarations){for(const _ of n.symbol.declarations)if(_.parent.kind===195){const[v=_.parent,x]=vie(_.parent.parent);if(x.kind===183&&!a){const k=x,F=wye(k);if(F){const H=k.typeArguments.indexOf(v);if(H<F.length){const re=Md(F[H]);if(re){const be=Vge(F,F.map((Je,gt)=>()=>B_t(k,F,gt))),ge=lo(re,be);ge!==n&&(d=Rn(d,ge))}}}}else if(x.kind===169&&x.dotDotDotToken||x.kind===191||x.kind===202&&x.dotDotDotToken)d=Rn(d,Vu(hn));else if(x.kind===204)d=Rn(d,ke);else if(x.kind===168&&x.parent.kind===200)d=Rn(d,Fs);else if(x.kind===200&&x.type&&hs(x.type)===_.parent&&x.parent.kind===194&&x.parent.extendsType===x&&x.parent.checkType.kind===200&&x.parent.checkType.type){const k=x.parent.checkType,F=Ti(k.type);d=Rn(d,lo(F,U1(WT(Ir(k.typeParameter)),k.typeParameter.constraint?Ti(k.typeParameter.constraint):Fs)))}}}return d&&ya(d)}function GM(n){if(!n.constraint)if(n.target){const a=Md(n.target);n.constraint=a?lo(a,n.mapper):js}else{const a=dge(n);if(!a)n.constraint=YOe(n)||js;else{let c=Ti(a);c.flags&1&&!Jt(c)&&(c=a.parent.parent.kind===200?Fs:hn),n.constraint=c}}return n.constraint===js?void 0:n.constraint}function $Oe(n){const a=pl(n.symbol,168),c=om(a.parent)?i3(a.parent):a.parent;return c&&_f(c)}function pm(n){let a="";if(n){const c=n.length;let d=0;for(;d<c;){const _=n[d].id;let v=1;for(;d+v<c&&n[d+v].id===_+v;)v++;a.length&&(a+=","),a+=_,v>1&&(a+=":"+v),d+=v}}return a}function ux(n,a){return n?`@${Sa(n)}`+(a?`:${pm(a)}`:""):""}function RZ(n,a){let c=0;for(const d of n)(a===void 0||!(d.flags&a))&&(c|=Wr(d));return c&458752}function bN(n,a){return bt(a)&&n===wo?hn:uy(n,a)}function uy(n,a){const c=pm(a);let d=n.instantiations.get(c);return d||(d=Wf(4,n.symbol),n.instantiations.set(c,d),d.objectFlags|=a?RZ(a):0,d.target=n,d.resolvedTypeArguments=a),d}function QOe(n){const a=yg(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function pge(n,a,c,d,_){if(!d){d=px(a);const x=IN(d);_=c?fy(x,c):x}const v=Wf(4,n.symbol);return v.target=n,v.node=a,v.mapper=c,v.aliasSymbol=d,v.aliasTypeArguments=_,v}function Js(n){var a,c;if(!n.resolvedTypeArguments){if(!Oh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>_t))||et;const d=n.node,_=d?d.kind===183?So(n.target.outerTypeParameters,jee(d,n.target.localTypeParameters)):d.kind===188?[Ti(d.elementType)]:Wt(d.elements,Ti):et;J_()?n.resolvedTypeArguments=n.mapper?fy(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>_t))||et,qe(n.node||C,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Si(n.target.symbol)))}return n.resolvedTypeArguments}function dy(n){return Ne(n.target.typeParameters)}function ZOe(n,a){const c=Zs(rs(a)),d=c.localTypeParameters;if(d){const _=Ne(n.typeArguments),v=zh(d),x=lr(n);if(!(!de&&x)&&(_<v||_>d.length)){const H=x&&Vv(n)&&!uI(n.parent),re=v===d.length?H?f.Expected_0_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_1_type_argument_s:H?f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_between_1_and_2_type_arguments,be=Hn(c,void 0,2);if(qe(n,re,be,v,d.length),!x)return _t}if(n.kind===183&&y8e(n,Ne(n.typeArguments)!==d.length))return pge(c,n,void 0);const F=So(c.outerTypeParameters,Mb(d9(n),d,v,x));return uy(c,F)}return B1(n,a)?c:_t}function EN(n,a,c,d){const _=Zs(n);if(_===fn){const H=zF.get(n.escapedName);if(H!==void 0&&a&&a.length===1)return H===4?fge(a[0]):dx(n,a[0])}const v=Ki(n),x=v.typeParameters,k=pm(a)+ux(c,d);let F=v.instantiations.get(k);return F||v.instantiations.set(k,F=e6e(_,Mp(x,Mb(a,x,zh(x),lr(n.valueDeclaration))),c,d)),F}function xlt(n,a){if(xl(a)&1048576){const _=d9(n),v=ux(a,_);let x=Fe.get(v);return x||(x=cc(1,"error",void 0,`alias ${v}`),x.aliasSymbol=a,x.aliasTypeArguments=_,Fe.set(v,x)),x}const c=Zs(a),d=Ki(a).typeParameters;if(d){const _=Ne(n.typeArguments),v=zh(d);if(_<v||_>d.length)return qe(n,v===d.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,Si(a),v,d.length),_t;const x=px(n);let k=x&&(e8e(a)||!e8e(x))?x:void 0,F;if(k)F=IN(k);else if(T4(n)){const H=SN(n,2097152,!0);if(H&&H!==ft){const re=Oc(H);re&&re.flags&524288&&(k=re,F=d9(n)||(d?[]:void 0))}}return EN(a,d9(n),k,F)}return B1(n,a)?c:_t}function e8e(n){var a;const c=(a=n.declarations)==null?void 0:a.find(HL);return!!(c&&Bp(c))}function Rlt(n){switch(n.kind){case 183:return n.typeName;case 233:const a=n.expression;if(Bl(a))return a}}function t8e(n){return n.parent?`${t8e(n.parent)}.${n.escapedName}`:n.escapedName}function DZ(n){const c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){const d=n.kind===166?DZ(n.left):n.kind===211?DZ(n.expression):void 0,_=d?`${t8e(d)}.${c}`:c;let v=le.get(_);return v||(le.set(_,v=Ka(524288,c,1048576)),v.parent=d,v.links.declaredType=Gt),v}return ft}function SN(n,a,c){const d=Rlt(n);if(!d)return ft;const _=Hs(d,a,c);return _&&_!==ft?_:c?ft:DZ(d)}function NZ(n,a){if(a===ft)return _t;if(a=MM(a)||a,a.flags&96)return ZOe(n,a);if(a.flags&524288)return xlt(n,a);const c=vOe(a);if(c)return B1(n,a)?yd(c):_t;if(a.flags&111551&&CZ(n)){const d=Dlt(n,a);return d||(SN(n,788968),dr(a))}return _t}function Dlt(n,a){const c=Zr(n);if(!c.resolvedJSDocType){const d=dr(a);let _=d;if(a.valueDeclaration){const v=n.kind===205&&n.qualifier;d.symbol&&d.symbol!==a&&v&&(_=NZ(n,d.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function fge(n){return mge(n)?n8e(n,hn):n}function mge(n){return!!(n.flags&3145728&&bt(n.types,mge)||n.flags&33554432&&!VM(n)&&mge(n.baseType)||n.flags&524288&&!Vh(n)||n.flags&432275456&&!UT(n))}function VM(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function _ge(n,a){return a.flags&3||a===n||n.flags&1?n:n8e(n,a)}function n8e(n,a){const c=`${vd(n)}>${vd(a)}`,d=Io.get(c);if(d)return d;const _=vg(33554432);return _.baseType=n,_.constraint=a,Io.set(c,_),_}function hge(n){return VM(n)?n.baseType:ya([n.constraint,n.baseType])}function r8e(n){return n.kind===189&&n.elements.length===1}function i8e(n,a,c){return r8e(a)&&r8e(c)?i8e(n,a.elements[0],c.elements[0]):wb(Ti(a))===wb(n)?Ti(c):void 0}function Nlt(n,a){let c,d=!0;for(;a&&!Hi(a)&&a.kind!==327;){const _=a.parent;if(_.kind===169&&(d=!d),(d||n.flags&8650752)&&_.kind===194&&a===_.trueType){const v=i8e(n,_.checkType,_.extendsType);v&&(c=Rn(c,v))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){const v=Ti(_);if(d_(v)===wb(n)){const x=C8(v);if(x){const k=Md(x);k&&cp(k,cE)&&(c=Rn(c,ei([Tt,cs])))}}}a=_}return c?_ge(n,ya(c)):n}function CZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function B1(n,a){return n.typeArguments?(qe(n,f.Type_0_is_not_generic,a?Si(a):n.typeName?xs(n.typeName):wF),!1):!0}function o8e(n){if(Ve(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return B1(n),ke;case"Number":return B1(n),Tt;case"Boolean":return B1(n),Pi;case"Void":return B1(n),ir;case"Undefined":return B1(n),Oe;case"Null":return B1(n),fe;case"Function":case"function":return B1(n),Ot;case"array":return(!a||!a.length)&&!de?ec:void 0;case"promise":return(!a||!a.length)&&!de?nB(j):void 0;case"Object":if(a&&a.length===2){if($4(n)){const c=Ti(a[0]),d=Ti(a[1]),_=c===ke||c===Tt?[Bh(c,d,!1)]:et;return Ls(void 0,K,et,et,_)}return j}return B1(n),de?void 0:j}}}function Clt(n){const a=Ti(n.type);return X?N9(a,65536):a}function gge(n){const a=Zr(n);if(!a.resolvedType){if(Pg(n)&&mS(n.parent))return a.resolvedSymbol=ft,a.resolvedType=nc(n.parent.expression);let c,d;const _=788968;CZ(n)&&(d=o8e(n),d||(c=SN(n,_,!0),c===ft?c=SN(n,_|111551):SN(n,_),d=NZ(n,c))),d||(c=SN(n,_),d=NZ(n,c)),a.resolvedSymbol=c,a.resolvedType=d}return a.resolvedType}function d9(n){return Wt(n.typeArguments,Ti)}function a8e(n){const a=Zr(n);if(!a.resolvedType){const c=x3e(n);a.resolvedType=yd(Kp(c))}return a.resolvedType}function s8e(n,a){function c(_){const v=_.declarations;if(v)for(const x of v)switch(x.kind){case 263:case 264:case 266:return x}}if(!n)return a?wo:Ca;const d=Zs(n);return d.flags&524288?Ne(d.typeParameters)!==a?(qe(c(n),f.Global_type_0_must_have_1_type_parameter_s,El(n),a),a?wo:Ca):d:(qe(c(n),f.Global_type_0_must_be_a_class_or_interface_type,El(n)),a?wo:Ca)}function vge(n,a){return jM(n,111551,a?f.Cannot_find_global_value_0:void 0)}function yge(n,a){return jM(n,788968,a?f.Cannot_find_global_type_0:void 0)}function PZ(n,a,c){const d=jM(n,788968,c?f.Cannot_find_global_type_0:void 0);if(d&&(Zs(d),Ne(Ki(d).typeParameters)!==a)){const _=d.declarations&&In(d.declarations,xm);qe(_,f.Global_type_0_must_have_1_type_parameter_s,El(d),a);return}return d}function jM(n,a,c){return yl(void 0,n,a,c,n,!1,!1,!1)}function tc(n,a,c){const d=yge(n,c);return d||c?s8e(d,a):void 0}function Plt(){return Dh||(Dh=tc("TypedPropertyDescriptor",1,!0)||wo)}function Mlt(){return rr||(rr=tc("TemplateStringsArray",0,!0)||Ca)}function l8e(){return ii||(ii=tc("ImportMeta",0,!0)||Ca)}function c8e(){if(!Yr){const n=Ka(0,"ImportMetaExpression"),a=l8e(),c=Ka(4,"meta",8);c.parent=n,c.links.type=a;const d=ca([c]);n.members=d,Yr=Ls(n,d,et,et,et)}return Yr}function u8e(n){return oo||(oo=tc("ImportCallOptions",0,n))||Ca}function bge(n){return wa||(wa=tc("ImportAttributes",0,n))||Ca}function d8e(n){return Nd||(Nd=vge("Symbol",n))}function Llt(n){return kf||(kf=yge("SymbolConstructor",n))}function p8e(){return G_||(G_=tc("Symbol",0,!1))||Ca}function p9(n){return qg||(qg=tc("Promise",1,n))||wo}function f8e(n){return Bu||(Bu=tc("PromiseLike",1,n))||wo}function Ege(n){return Jg||(Jg=vge("Promise",n))}function klt(n){return Ap||(Ap=tc("PromiseConstructorLike",0,n))||Ca}function MZ(n){return W||(W=tc("AsyncIterable",1,n))||wo}function wlt(n){return Te||(Te=tc("AsyncIterator",3,n))||wo}function Olt(n){return st||(st=tc("AsyncIterableIterator",1,n))||wo}function Wlt(n){return qt||(qt=tc("AsyncGenerator",3,n))||wo}function Sge(n){return dg||(dg=tc("Iterable",1,n))||wo}function Flt(n){return Ud||(Ud=tc("Iterator",3,n))||wo}function zlt(n){return te||(te=tc("IterableIterator",1,n))||wo}function Blt(n){return ct||(ct=tc("Generator",3,n))||wo}function Glt(n){return Ft||(Ft=tc("IteratorYieldResult",1,n))||wo}function Vlt(n){return Vt||(Vt=tc("IteratorReturnResult",1,n))||wo}function m8e(n){return Oa||(Oa=tc("Disposable",0,n))||Ca}function jlt(n){return Ol||(Ol=tc("AsyncDisposable",0,n))||Ca}function _8e(n,a=0){const c=jM(n,788968,void 0);return c&&s8e(c,a)}function Ult(){return pu||(pu=PZ("Extract",2,!0)||ft),pu===ft?void 0:pu}function Hlt(){return Rc||(Rc=PZ("Omit",2,!0)||ft),Rc===ft?void 0:Rc}function Tge(n){return Ip||(Ip=PZ("Awaited",1,n)||(n?ft:void 0)),Ip===ft?void 0:Ip}function qlt(){return Hd||(Hd=tc("BigInt",0,!1))||Ca}function Jlt(n){return Pm??(Pm=tc("ClassDecoratorContext",1,n))??wo}function Klt(n){return Mm??(Mm=tc("ClassMethodDecoratorContext",2,n))??wo}function Xlt(n){return Ui??(Ui=tc("ClassGetterDecoratorContext",2,n))??wo}function Ylt(n){return Kg??(Kg=tc("ClassSetterDecoratorContext",2,n))??wo}function $lt(n){return ey??(ey=tc("ClassAccessorDecoratorContext",2,n))??wo}function Qlt(n){return Lm??(Lm=tc("ClassAccessorDecoratorTarget",2,n))??wo}function Zlt(n){return b1??(b1=tc("ClassAccessorDecoratorResult",2,n))??wo}function ect(n){return E1??(E1=tc("ClassFieldDecoratorContext",2,n))??wo}function tct(){return ab||(ab=vge("NaN",!1))}function nct(){return us||(us=PZ("Record",2,!0)||ft),us===ft?void 0:us}function I8(n,a){return n!==wo?uy(n,a):Ca}function h8e(n){return I8(Plt(),[n])}function g8e(n){return I8(Sge(!0),[n])}function Vu(n,a){return I8(a?na:$o,[n])}function Age(n){switch(n.kind){case 190:return 2;case 191:return v8e(n);case 202:return n.questionToken?2:n.dotDotDotToken?v8e(n):1;default:return 1}}function v8e(n){return g9(n.type)?4:8}function rct(n){const a=act(n.parent);if(g9(n))return a?na:$o;const d=Wt(n.elements,Age);return Ige(d,a,Wt(n.elements,ict))}function ict(n){return BR(n)||Ao(n)?n:void 0}function y8e(n,a){return!!px(n)||b8e(n)&&(n.kind===188?Lb(n.elementType):n.kind===189?bt(n.elements,Lb):a||bt(n.typeArguments,Lb))}function b8e(n){const a=n.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return b8e(a);case 265:return!0}return!1}function Lb(n){switch(n.kind){case 183:return CZ(n)||!!(SN(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Lb(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Lb(n.type);case 191:return n.type.kind!==188||Lb(n.type.elementType);case 192:case 193:return bt(n.types,Lb);case 199:return Lb(n.objectType)||Lb(n.indexType);case 194:return Lb(n.checkType)||Lb(n.extendsType)||Lb(n.trueType)||Lb(n.falseType)}return!1}function oct(n){const a=Zr(n);if(!a.resolvedType){const c=rct(n);if(c===wo)a.resolvedType=Ca;else if(!(n.kind===189&&bt(n.elements,d=>!!(Age(d)&8)))&&y8e(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:pge(c,n,void 0);else{const d=n.kind===188?[Ti(n.elementType)]:Wt(n.elements,Ti);a.resolvedType=xge(c,d)}}return a.resolvedType}function act(n){return OS(n)&&n.operator===148}function Gh(n,a,c=!1,d=[]){const _=Ige(a||Wt(n,v=>1),c,d);return _===wo?Ca:n.length?xge(_,n):_}function Ige(n,a,c){if(n.length===1&&n[0]&4)return a?na:$o;const d=Wt(n,v=>v&1?"#":v&2?"?":v&4?".":"*").join()+(a?"R":"")+(bt(c,v=>!!v)?","+Wt(c,v=>v?as(v):"_").join(","):"");let _=Co.get(d);return _||Co.set(d,_=sct(n,a,c)),_}function sct(n,a,c){const d=n.length,_=ou(n,be=>!!(be&9));let v;const x=[];let k=0;if(d){v=new Array(d);for(let be=0;be<d;be++){const ge=v[be]=gf(),Je=n[be];if(k|=Je,!(k&12)){const gt=Ka(4|(Je&2?16777216:0),""+be,a?8:0);gt.links.tupleLabelDeclaration=c==null?void 0:c[be],gt.links.type=ge,x.push(gt)}}}const F=x.length,H=Ka(4,"length",a?8:0);if(k&12)H.links.type=Tt;else{const be=[];for(let ge=_;ge<=d;ge++)be.push(m_(ge));H.links.type=ei(be)}x.push(H);const re=Wf(12);return re.typeParameters=v,re.outerTypeParameters=void 0,re.localTypeParameters=v,re.instantiations=new Map,re.instantiations.set(pm(re.typeParameters),re),re.target=re,re.resolvedTypeArguments=re.typeParameters,re.thisType=gf(),re.thisType.isThisType=!0,re.thisType.constraint=re,re.declaredProperties=x,re.declaredCallSignatures=et,re.declaredConstructSignatures=et,re.declaredIndexInfos=et,re.elementFlags=n,re.minLength=_,re.fixedLength=F,re.hasRestElement=!!(k&12),re.combinedFlags=k,re.readonly=a,re.labeledElementDeclarations=c,re}function xge(n,a){return n.objectFlags&8?Rge(n,a):uy(n,a)}function Rge(n,a){var c,d,_,v;if(!(n.combinedFlags&14))return uy(n,a);if(n.combinedFlags&8){const gt=mi(a,(Dt,an)=>!!(n.elementFlags[an]&8&&Dt.flags&1179648));if(gt>=0)return m9(Wt(a,(Dt,an)=>n.elementFlags[an]&8?Dt:hn))?dl(a[gt],Dt=>Rge(n,HB(a,gt,Dt))):_t}const x=[],k=[],F=[];let H=-1,re=-1,be=-1;for(let gt=0;gt<a.length;gt++){const Dt=a[gt],an=n.elementFlags[gt];if(an&8)if(Dt.flags&1)Je(Dt,4,(c=n.labeledElementDeclarations)==null?void 0:c[gt]);else if(Dt.flags&58982400||Kd(Dt))Je(Dt,8,(d=n.labeledElementDeclarations)==null?void 0:d[gt]);else if(Wa(Dt)){const cn=G1(Dt);if(cn.length+x.length>=1e4)return qe(C,$h(C)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),_t;Xe(cn,(ar,Wn)=>{var ln;return Je(ar,Dt.target.elementFlags[Wn],(ln=Dt.target.labeledElementDeclarations)==null?void 0:ln[Wn])})}else Je(my(Dt)&&iE(Dt,Tt)||_t,4,(_=n.labeledElementDeclarations)==null?void 0:_[gt]);else Je(Dt,an,(v=n.labeledElementDeclarations)==null?void 0:v[gt])}for(let gt=0;gt<H;gt++)k[gt]&2&&(k[gt]=1);re>=0&&re<be&&(x[re]=ei(Zo(x.slice(re,be+1),(gt,Dt)=>k[re+Dt]&8?Pp(gt,Tt):gt)),x.splice(re+1,be-re),k.splice(re+1,be-re),F.splice(re+1,be-re));const ge=Ige(k,n.readonly,F);return ge===wo?Ca:k.length?uy(ge,x):ge;function Je(gt,Dt,an){Dt&1&&(H=k.length),Dt&4&&re<0&&(re=k.length),Dt&6&&(be=k.length),x.push(Dt&2?lp(gt,!0):gt),k.push(Dt),F.push(an)}}function UM(n,a,c=0){const d=n.target,_=dy(n)-c;return a>d.fixedLength?Jut(n)||Gh(et):Gh(Js(n).slice(a,_),d.elementFlags.slice(a,_),!1,d.labeledElementDeclarations&&d.labeledElementDeclarations.slice(a,_))}function E8e(n){return ei(Rn($te(n.target.fixedLength,a=>Xd(""+a)),X_(n.target.readonly?na:$o)))}function lct(n,a){const c=mi(n.elementFlags,d=>!(d&a));return c>=0?c:n.elementFlags.length}function x8(n,a){return n.elementFlags.length-Yi(n.elementFlags,c=>!(c&a))-1}function Dge(n){return n.fixedLength+x8(n,3)}function G1(n){const a=Js(n),c=dy(n);return a.length===c?a:a.slice(0,c)}function cct(n){return lp(Ti(n.type),!0)}function vd(n){return n.id}function dv(n,a){return Tv(n,a,vd,nl)>=0}function f9(n,a){const c=Tv(n,a,vd,nl);return c<0?(n.splice(~c,0,a),!0):!1}function uct(n,a,c){const d=c.flags;if(!(d&131072))if(a|=d&473694207,d&465829888&&(a|=33554432),d&2097152&&Wr(c)&67108864&&(a|=536870912),c===Rt&&(a|=8388608),!X&&d&98304)Wr(c)&65536||(a|=4194304);else{const _=n.length,v=_&&c.id>n[_-1].id?~_:Tv(n,c,vd,nl);v<0&&n.splice(~v,0,c)}return a}function S8e(n,a,c){let d;for(const _ of c)_!==d&&(a=_.flags&1048576?S8e(n,a|(hct(_)?1048576:0),_.types):uct(n,a,_),d=_);return a}function dct(n,a){var c;if(n.length<2)return n;const d=pm(n),_=fa.get(d);if(_)return _;const v=a&&bt(n,H=>!!(H.flags&524288)&&!Kd(H)&&Yge(p_(H))),x=n.length;let k=x,F=0;for(;k>0;){k--;const H=n[k];if(v||H.flags&469499904){if(H.flags&262144&&uv(H).flags&1048576){Y_(H,ei(Wt(n,ge=>ge===H?Vr:ge)),wf)&&Sy(n,k);continue}const re=H.flags&61603840?In(gs(H),ge=>__(dr(ge))):void 0,be=re&&yd(dr(re));for(const ge of n)if(H!==ge){if(F===1e5&&F/(x-k)*x>1e6){(c=sr)==null||c.instant(sr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(gt=>gt.id)}),qe(C,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(F++,re&&ge.flags&61603840){const Je=Ke(ge,re.escapedName);if(Je&&__(Je)&&yd(Je)!==be)continue}if(Y_(H,ge,wf)&&(!(Wr(ly(H))&1)||!(Wr(ly(ge))&1)||lE(H,ge))){Sy(n,k);break}}}}return fa.set(d,n),n}function pct(n,a,c){let d=n.length;for(;d>0;){d--;const _=n[d],v=_.flags;(v&402653312&&a&4||v&256&&a&8||v&2048&&a&64||v&8192&&a&4096||c&&v&32768&&a&16384||j1(_)&&dv(n,_.regularType))&&Sy(n,d)}}function fct(n){const a=mn(n,UT);if(a.length){let c=n.length;for(;c>0;){c--;const d=n[c];d.flags&128&&bt(a,_=>mct(d,_))&&Sy(n,c)}}}function mct(n,a){return a.flags&134217728?cee(n,a):lee(n,a)}function _ct(n){const a=[];for(const c of n)if(c.flags&2097152&&Wr(c)&67108864){const d=c.types[0].flags&8650752?0:1;Ef(a,c.types[d])}for(const c of a){const d=[];for(const v of n)if(v.flags&2097152&&Wr(v)&67108864){const x=v.types[0].flags&8650752?0:1;v.types[x]===c&&f9(d,v.types[1-x])}const _=Gu(c);if(cp(_,v=>dv(d,v))){let v=n.length;for(;v>0;){v--;const x=n[v];if(x.flags&2097152&&Wr(x)&67108864){const k=x.types[0].flags&8650752?0:1;x.types[k]===c&&dv(d,x.types[1-k])&&Sy(n,v)}}f9(n,c)}}}function hct(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function T8e(n,a){for(const c of a)if(c.flags&1048576){const d=c.origin;c.aliasSymbol||d&&!(d.flags&1048576)?Ef(n,c):d&&d.flags&1048576&&T8e(n,d.types)}}function Nge(n,a){const c=rx(n);return c.types=a,c}function ei(n,a=1,c,d,_){if(n.length===0)return Vr;if(n.length===1)return n[0];if(n.length===2&&!_&&(n[0].flags&1048576||n[1].flags&1048576)){const v=a===0?"N":a===2?"S":"L",x=n[0].id<n[1].id?0:1,k=n[x].id+v+n[1-x].id+ux(c,d);let F=Ci.get(k);return F||(F=A8e(n,a,c,d,void 0),Ci.set(k,F)),F}return A8e(n,a,c,d,_)}function A8e(n,a,c,d,_){let v=[];const x=S8e(v,0,n);if(a!==0){if(x&3)return x&1?x&8388608?Rt:j:x&65536||dv(v,hn)?hn:q;if(x&32768&&v.length>=2&&v[0]===Oe&&v[1]===L&&Sy(v,1),(x&402664352||x&16384&&x&32768)&&pct(v,x,!!(a&2)),x&128&&x&402653184&&fct(v),x&536870912&&_ct(v),a===2&&(v=dct(v,!!(x&524288)),!v))return _t;if(v.length===0)return x&65536?x&4194304?fe:Be:x&32768?x&4194304?Oe:Lt:Vr}if(!_&&x&1048576){const F=[];T8e(F,n);const H=[];for(const be of v)bt(F,ge=>dv(ge.types,be))||H.push(be);if(!c&&F.length===1&&H.length===0)return F[0];if(rd(F,(be,ge)=>be+ge.types.length,0)+H.length===v.length){for(const be of F)f9(H,be);_=Nge(1048576,H)}}const k=(x&36323331?0:32768)|(x&2097152?16777216:0);return Pge(v,k,c,d,_)}function gct(n,a){let c;const d=[];for(const v of n){const x=Gf(v);if(x){if(x.kind!==0&&x.kind!==1||c&&!Cge(c,x))return;c=x,d.push(x.type)}else{const k=a!==2097152?ps(v):void 0;if(k!==en&&k!==En)return}}if(!c)return;const _=JOe(d,a);return u9(c.kind,c.parameterName,c.parameterIndex,_)}function Cge(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Pge(n,a,c,d,_){if(n.length===0)return Vr;if(n.length===1)return n[0];const x=(_?_.flags&1048576?`|${pm(_.types)}`:_.flags&2097152?`&${pm(_.types)}`:`#${_.type.id}|${pm(n)}`:pm(n))+ux(c,d);let k=Ln.get(x);return k||(k=vg(1048576),k.objectFlags=a|RZ(n,98304),k.types=n,k.origin=_,k.aliasSymbol=c,k.aliasTypeArguments=d,n.length===2&&n[0].flags&512&&n[1].flags&512&&(k.flags|=16,k.intrinsicName="boolean"),Ln.set(x,k)),k}function vct(n){const a=Zr(n);if(!a.resolvedType){const c=px(n);a.resolvedType=ei(Wt(n.types,Ti),1,c,IN(c))}return a.resolvedType}function yct(n,a,c){const d=c.flags;return d&2097152?I8e(n,a,c.types):(Vh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(d&3?c===Rt&&(a|=8388608):(X||!(d&98304))&&(c===L&&(a|=262144,c=Oe),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=d&473694207),a)}function I8e(n,a,c){for(const d of c)a=yct(n,a,yd(d));return a}function bct(n,a){let c=n.length;for(;c>0;){c--;const d=n[c];(d.flags&4&&a&402653312||d.flags&8&&a&256||d.flags&64&&a&2048||d.flags&4096&&a&8192||d.flags&16384&&a&32768||Vh(d)&&a&470302716)&&Sy(n,c)}}function Ect(n,a){for(const c of n)if(!dv(c.types,a)){const d=a.flags&128?ke:a.flags&288?Tt:a.flags&2048?kt:a.flags&8192?xi:void 0;if(!d||!dv(c.types,d))return!1}return!0}function Sct(n){let a=n.length;const c=mn(n,d=>!!(d.flags&128));for(;a>0;){a--;const d=n[a];if(d.flags&402653184){for(const _ of c)if(Wb(_,d)){Sy(n,a);break}else if(UT(d))return!0}}return!1}function x8e(n,a){for(let c=0;c<n.length;c++)n[c]=dc(n[c],d=>!(d.flags&a))}function Tct(n){let a;const c=mi(n,x=>!!(Wr(x)&32768));if(c<0)return!1;let d=c+1;for(;d<n.length;){const x=n[d];Wr(x)&32768?((a||(a=[n[c]])).push(x),Sy(n,d)):d++}if(!a)return!1;const _=[],v=[];for(const x of a)for(const k of x.types)f9(_,k)&&Ect(a,k)&&f9(v,k);return n[c]=Pge(v,32768),!0}function Act(n,a,c,d){const _=vg(2097152);return _.objectFlags=a|RZ(n,98304),_.types=n,_.aliasSymbol=c,_.aliasTypeArguments=d,_}function ya(n,a,c,d){const _=new Map,v=I8e(_,0,n),x=zo(_.values());let k=0;if(v&131072)return Or(x,vo)?vo:Vr;if(X&&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&402653184&&v&128&&Sct(x))return Vr;if(v&1)return v&8388608?Rt:j;if(!X&&v&98304)return v&16777216?Vr:v&32768?Oe:fe;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)&&(d||bct(x,v)),v&262144&&(x[x.indexOf(Oe)]=L),x.length===0)return hn;if(x.length===1)return x[0];if(x.length===2){const re=x[0].flags&8650752?0:1,be=x[re],ge=x[1-re];if(be.flags&8650752&&(ge.flags&469893116&&!W8e(ge)||v&16777216)){const Je=Gu(be);if(Je&&cp(Je,gt=>!!(gt.flags&469893116)||Vh(gt))){if(b9(Je,ge))return be;if(!(Je.flags&1048576&&Gm(Je,gt=>b9(gt,ge)))&&!b9(ge,Je))return Vr;k=67108864}}}const F=pm(x)+ux(a,c);let H=Ar.get(F);if(!H){if(v&1048576)if(Tct(x))H=ya(x,a,c);else if(Jn(x,re=>!!(re.flags&1048576&&re.types[0].flags&32768))){const re=bt(x,W8)?L:Oe;x8e(x,32768),H=ei([ya(x),re],1,a,c)}else if(Jn(x,re=>!!(re.flags&1048576&&(re.types[0].flags&65536||re.types[1].flags&65536))))x8e(x,65536),H=ei([ya(x),fe],1,a,c);else if(x.length>=4){const re=Math.floor(x.length/2);H=ya([ya(x.slice(0,re)),ya(x.slice(re))],a,c)}else{if(!m9(x))return _t;const re=Ict(x),be=bt(re,ge=>!!(ge.flags&2097152))&&Mge(re)>Mge(x)?Nge(2097152,x):void 0;H=ei(re,1,a,c,be)}else H=Act(x,k,a,c);Ar.set(F,H)}return H}function R8e(n){return rd(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function m9(n){var a;const c=R8e(n);return c>=1e5?((a=sr)==null||a.instant(sr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(d=>d.id),size:c}),qe(C,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Ict(n){const a=R8e(n),c=[];for(let d=0;d<a;d++){const _=n.slice();let v=d;for(let k=n.length-1;k>=0;k--)if(n[k].flags&1048576){const F=n[k].types,H=F.length;_[k]=F[v%H],v=Math.floor(v/H)}const x=ya(_);x.flags&131072||c.push(x)}return c}function D8e(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?D8e(n.origin):Mge(n.types)}function Mge(n){return rd(n,(a,c)=>a+D8e(c),0)}function xct(n){const a=Zr(n);if(!a.resolvedType){const c=px(n),d=Wt(n.types,Ti),_=d.length===2?d.indexOf(lc):-1,v=_>=0?d[1-_]:hn,x=!!(v.flags&76||v.flags&134217728&&UT(v));a.resolvedType=ya(d,c,IN(c),x)}return a.resolvedType}function N8e(n,a){const c=vg(4194304);return c.type=n,c.indexFlags=a,c}function Rct(n){const a=rx(4194304);return a.type=n,a}function C8e(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=N8e(n,1)):n.resolvedIndexType||(n.resolvedIndexType=N8e(n,0))}function P8e(n,a){const c=d_(n),d=yf(n),_=cy(n.target||n);if(!_&&!(a&2))return d;const v=[];if(qT(d)){if(vN(n))return C8e(n,a);ZT(d,k)}else if(vN(n)){const F=Ld(FT(n));Jhe(F,8576,!!(a&1),k)}else ZT(o9(d),k);const x=a&2?dc(ei(v),F=>!(F.flags&5)):ei(v);if(x.flags&1048576&&d.flags&1048576&&pm(x.types)===pm(d.types))return d;return x;function k(F){const H=_?lo(_,N8(n.mapper,c,F)):F;v.push(H===ke?xo:H)}}function Dct(n){const a=d_(n);return c(cy(n)||a);function c(d){return d.flags&470810623?!0:d.flags&16777216?d.root.isDistributive&&d.checkType===a:d.flags&137363456?Jn(d.types,c):d.flags&8388608?c(d.objectType)&&c(d.indexType):d.flags&33554432?c(d.baseType)&&c(d.constraint):d.flags&268435456?c(d.type):!1}}function py(n){if(qi(n))return Vr;if(hp(n))return yd(mo(n));if(Za(n))return yd(Tg(n));const a=IS(n);return a!==void 0?Xd(Vi(a)):yt(n)?yd(mo(n)):Vr}function TN(n,a,c){if(c||!(xf(n)&6)){let d=Ki(yZ(n)).nameType;if(!d){const _=Lo(n.valueDeclaration);d=n.escapedName==="default"?Xd("default"):_&&py(_)||(tk(n)?void 0:Xd(El(n)))}if(d&&d.flags&a)return d}return Vr}function M8e(n,a){return!!(n.flags&a||n.flags&2097152&&bt(n.types,c=>M8e(c,a)))}function Nct(n,a,c){const d=c&&(Wr(n)&7||n.aliasSymbol)?Rct(n):void 0,_=Wt(gs(n),x=>TN(x,a)),v=Wt(gd(n),x=>x!==jr&&M8e(x.keyType,a)?x.keyType===ke&&a&8?xo:x.keyType:Vr);return ei(So(_,v),1,void 0,void 0,d)}function Lge(n,a=0){return!!(n.flags&58982400||zb(n)||Kd(n)&&(!Dct(n)||EZ(n)===2)||n.flags&1048576&&!(a&4)&&ege(n)||n.flags&2097152&&Cl(n,465829888)&&bt(n.types,Vh))}function X_(n,a=Ue){return n=f_(n),VM(n)?fge(X_(n.baseType,a)):Lge(n,a)?C8e(n,a):n.flags&1048576?ya(Wt(n.types,c=>X_(c,a))):n.flags&2097152?ei(Wt(n.types,c=>X_(c,a))):Wr(n)&32?P8e(n,a):n===Rt?Rt:n.flags&2?Vr:n.flags&131073?Fs:Nct(n,(a&2?128:402653316)|(a&1?0:12584),a===Ue)}function L8e(n){if(Le)return n;const a=Ult();return a?EN(a,[n,ke]):ke}function Cct(n){const a=L8e(X_(n));return a.flags&131072?ke:a}function Pct(n){const a=Zr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=X_(Ti(n.type));break;case 158:a.resolvedType=n.type.kind===155?Gge(XL(n.parent)):_t;break;case 148:a.resolvedType=Ti(n.type);break;default:N.assertNever(n.operator)}return a.resolvedType}function Mct(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=jT([n.head.text,...Wt(n.templateSpans,c=>c.literal.text)],Wt(n.templateSpans,c=>Ti(c.type)))),a.resolvedType}function jT(n,a){const c=mi(a,H=>!!(H.flags&1179648));if(c>=0)return m9(a)?dl(a[c],H=>jT(n,HB(a,c,H))):_t;if(Or(a,Rt))return Rt;const d=[],_=[];let v=n[0];if(!F(n,a))return ke;if(d.length===0)return Xd(v);if(_.push(v),Jn(_,H=>H==="")){if(Jn(d,H=>!!(H.flags&4)))return ke;if(d.length===1&&UT(d[0]))return d[0]}const x=`${pm(d)}|${Wt(_,H=>H.length).join(",")}|${_.join("")}`;let k=yi.get(x);return k||yi.set(x,k=kct(_,d)),k;function F(H,re){for(let be=0;be<re.length;be++){const ge=re[be];if(ge.flags&101248)v+=Lct(ge)||"",v+=H[be+1];else if(ge.flags&134217728){if(v+=ge.texts[0],!F(ge.texts,ge.types))return!1;v+=H[be+1]}else if(qT(ge)||_9(ge))d.push(ge),_.push(v),v=H[be+1];else return!1}return!0}}function Lct(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?HE(n.value):n.flags&98816?n.intrinsicName:void 0}function kct(n,a){const c=vg(134217728);return c.texts=n,c.types=a,c}function dx(n,a){return a.flags&1179648?dl(a,c=>dx(n,c)):a.flags&128?Xd(k8e(n,a.value)):a.flags&134217728?jT(...wct(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||qT(a)?w8e(n,a):_9(a)?w8e(n,jT(["",""],[a])):a}function k8e(n,a){switch(zF.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 wct(n,a,c){switch(zF.get(n.escapedName)){case 0:return[a.map(d=>d.toUpperCase()),c.map(d=>dx(n,d))];case 1:return[a.map(d=>d.toLowerCase()),c.map(d=>dx(n,d))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[dx(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[dx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function w8e(n,a){const c=`${Sa(n)},${vd(a)}`;let d=Qi.get(c);return d||Qi.set(c,d=Oct(n,a)),d}function Oct(n,a){const c=yg(268435456,n);return c.type=a,c}function Wct(n,a,c,d,_){const v=vg(8388608);return v.objectType=n,v.indexType=a,v.accessFlags=c,v.aliasSymbol=d,v.aliasTypeArguments=_,v}function R8(n){if(de)return!1;if(Wr(n)&4096)return!0;if(n.flags&1048576)return Jn(n.types,R8);if(n.flags&2097152)return bt(n.types,R8);if(n.flags&465829888){const a=$he(n);return a!==n&&R8(a)}return!1}function LZ(n,a){return tm(n)?nm(n):a&&oc(a)?IS(a):void 0}function kge(n,a){if(a.flags&8208){const c=Vn(n.parent,d=>!ws(d))||n.parent;return NE(c)?S_(c)&&Ve(n)&&U6e(c,n):Jn(a.declarations,d=>!ea(d)||ry(d))}return!0}function O8e(n,a,c,d,_,v){const x=_&&_.kind===212?_:void 0,k=_&&qi(_)?void 0:LZ(c,_);if(k!==void 0){if(v&256)return fE(a,k)||j;const H=va(a,k);if(H){if(v&64&&_&&H.declarations&&ub(H)&&kge(_,H)){const be=(x==null?void 0:x.argumentExpression)??(WS(_)?_.indexType:_);iy(be,H.declarations,k)}if(x){if(J9(H,x,e3e(x.expression,a.symbol)),j3e(x,H,MA(x))){qe(x.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(H));return}if(v&8&&(Zr(_).resolvedSymbol=H),J4e(x,H))return it}const re=v&4?F1(H):dr(H);return x&&MA(x)!==1?Vb(x,re):_&&WS(_)&&W8(re)?ei([re,Oe]):re}if(cp(a,Wa)&&og(k)){const re=+k;if(_&&cp(a,be=>!be.target.hasRestElement)&&!(v&16)){const be=wge(_);if(Wa(a)){if(re<0)return qe(be,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),Oe;qe(be,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,Hn(a),dy(a),Vi(k))}else qe(be,f.Property_0_does_not_exist_on_type_1,Vi(k),Hn(a))}if(re>=0)return F(Sg(a,Tt)),A6e(a,re,v&1?L:void 0)}}if(!(c.flags&98304)&&xu(c,402665900)){if(a.flags&131073)return a;const H=E8(a,c)||Sg(a,ke);if(H){if(v&2&&H.keyType!==Tt){x&&(v&4?qe(x,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,Hn(n)):qe(x,f.Type_0_cannot_be_used_to_index_type_1,Hn(c),Hn(n)));return}if(_&&H.keyType===ke&&!xu(c,12)){const re=wge(_);return qe(re,f.Type_0_cannot_be_used_as_an_index_type,Hn(c)),v&1?ei([H.type,L]):H.type}return F(H),v&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Cd(c.symbol)===a.symbol)?ei([H.type,L]):H.type}if(c.flags&131072)return Vr;if(R8(a))return j;if(x&&!Bee(a)){if(pE(a)){if(de&&c.flags&384)return ts.add(kr(x,f.Property_0_does_not_exist_on_type_1,c.value,Hn(a))),Oe;if(c.flags&12){const re=Wt(a.properties,be=>dr(be));return ei(Rn(re,Oe))}}if(a.symbol===ot&&k!==void 0&&ot.exports.has(k)&&ot.exports.get(k).flags&418)qe(x,f.Property_0_does_not_exist_on_type_1,Vi(k),Hn(a));else if(de&&!V.suppressImplicitAnyIndexErrors&&!(v&128))if(k!==void 0&&$4e(k,a)){const re=Hn(a);qe(x,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,k,re,re+"["+fc(x.argumentExpression)+"]")}else if(iE(a,Tt))qe(x.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let re;if(k!==void 0&&(re=oye(k,a)))re!==void 0&&qe(x.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,k,Hn(a),re);else{const be=wft(a,x,c);if(be!==void 0)qe(x,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Hn(a),be);else{let ge;if(c.flags&1024)ge=Vo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Hn(c)+"]",Hn(a));else if(c.flags&8192){const Je=Hp(c.symbol,x);ge=Vo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Je+"]",Hn(a))}else c.flags&128||c.flags&256?ge=Vo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,Hn(a)):c.flags&12&&(ge=Vo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Hn(c),Hn(a)));ge=Vo(ge,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Hn(d),Hn(a)),ts.add(Lg(Un(x),x,ge))}}}return}}if(R8(a))return j;if(_){const H=wge(_);c.flags&384?qe(H,f.Property_0_does_not_exist_on_type_1,""+c.value,Hn(a)):c.flags&12?qe(H,f.Type_0_has_no_matching_index_signature_for_type_1,Hn(a),Hn(c)):qe(H,f.Type_0_cannot_be_used_as_an_index_type,Hn(c))}if(Nt(c))return c;return;function F(H){H&&H.isReadonly&&x&&(eg(x)||Rj(x))&&qe(x,f.Index_signature_in_type_0_only_permits_reading,Hn(a))}}function wge(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function _9(n){if(n.flags&2097152){let a=!1;for(const c of n.types)if(c.flags&101248||_9(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||UT(n)}function UT(n){return!!(n.flags&134217728)&&Jn(n.types,_9)||!!(n.flags&268435456)&&_9(n.type)}function W8e(n){return!!(n.flags&402653184)&&!UT(n)}function AN(n){return!!D8(n)}function HT(n){return!!(D8(n)&4194304)}function qT(n){return!!(D8(n)&8388608)}function D8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|rd(n.types,(a,c)=>a|D8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|D8(n.baseType)|D8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Kd(n)||zb(n)?4194304:0)|(n.flags&63176704||W8e(n)?8388608:0)}function pv(n,a){return n.flags&8388608?zct(n,a):n.flags&16777216?Bct(n,a):n}function F8e(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Lge(n)){const d=Wt(n.types,_=>pv(Pp(_,a),c));return n.flags&2097152||c?ya(d):ei(d)}}function Fct(n,a,c){if(a.flags&1048576){const d=Wt(a.types,_=>pv(Pp(n,_),c));return c?ya(d):ei(d)}}function zct(n,a){const c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===tu?n:n[c];n[c]=tu;const d=pv(n.objectType,a),_=pv(n.indexType,a),v=Fct(d,_,a);if(v)return n[c]=v;if(!(_.flags&465829888)){const x=F8e(d,_,a);if(x)return n[c]=x}if(zb(d)&&_.flags&296){const x=XM(d,_.flags&8?0:d.target.fixedLength,0,a);if(x)return n[c]=x}return Kd(d)&&EZ(d)!==2?n[c]=dl(kZ(d,n.indexType),x=>pv(x,a)):n[c]=n}function Bct(n,a){const c=n.checkType,d=n.extendsType,_=aE(n),v=sE(n);if(v.flags&131072&&wb(_)===wb(c)){if(c.flags&1||ba(KT(c),KT(d)))return pv(_,a);if(z8e(c,d))return Vr}else if(_.flags&131072&&wb(v)===wb(c)){if(!(c.flags&1)&&ba(KT(c),KT(d)))return Vr;if(c.flags&1||z8e(c,d))return pv(v,a)}return n}function z8e(n,a){return!!(ei([i9(n,a),Vr]).flags&131072)}function kZ(n,a){const c=Mp([d_(n)],[a]),d=H1(n.mapper,c);return lo(cv(n.target||n),d)}function Pp(n,a,c=0,d,_,v){return kb(n,a,c,d,_,v)||(d?_t:hn)}function B8e(n,a){return cp(n,c=>{if(c.flags&384){const d=nm(c);if(og(d)){const _=+d;return _>=0&&_<a}}return!1})}function kb(n,a,c=0,d,_,v){if(n===Rt||a===Rt)return Rt;if(n=f_(n),c6e(n)&&!(a.flags&98304)&&xu(a,12)&&(a=ke),V.noUncheckedIndexedAccess&&c&32&&(c|=1),qT(a)||(d&&d.kind!==199?zb(n)&&!B8e(a,Dge(n.target)):HT(n)&&!(Wa(n)&&B8e(a,Dge(n.target)))||ege(n))){if(n.flags&3)return n;const k=c&1,F=n.id+","+a.id+","+k+ux(_,v);let H=ci.get(F);return H||ci.set(F,H=Wct(n,a,k,_,v)),H}const x=zM(n);if(a.flags&1048576&&!(a.flags&16)){const k=[];let F=!1;for(const H of a.types){const re=O8e(n,x,H,a,d,c|(F?128:0));if(re)k.push(re);else if(d)F=!0;else return}return F?void 0:c&4?ya(k,_,v):ei(k,1,_,v)}return O8e(n,x,a,a,d,c|8|64)}function G8e(n){const a=Zr(n);if(!a.resolvedType){const c=Ti(n.objectType),d=Ti(n.indexType),_=px(n);a.resolvedType=Pp(c,d,0,n,_,IN(_))}return a.resolvedType}function Oge(n){const a=Zr(n);if(!a.resolvedType){const c=Wf(32,n.symbol);c.declaration=n,c.aliasSymbol=px(n),c.aliasTypeArguments=IN(c.aliasSymbol),a.resolvedType=c,yf(c)}return a.resolvedType}function wb(n){return n.flags&33554432?wb(n.baseType):n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?Pp(wb(n.objectType),wb(n.indexType)):n}function V8e(n){return tI(n)&&Ne(n.elements)>0&&!bt(n.elements,a=>VW(a)||jW(a)||BR(a)&&!!(a.questionToken||a.dotDotDotToken))}function j8e(n,a){return AN(n)||a&&Wa(n)&&bt(G1(n),AN)}function Wge(n,a,c,d,_){let v,x,k=0;for(;;){if(k===1e3)return qe(C,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;const H=lo(wb(n.checkType),a),re=lo(n.extendsType,a);if(H===_t||re===_t)return _t;if(H===Rt||re===Rt)return Rt;const be=YL(n.node.checkType),ge=YL(n.node.extendsType),Je=V8e(be)&&V8e(ge)&&Ne(be.elements)===Ne(ge.elements),gt=j8e(H,Je);let Dt;if(n.inferTypeParameters){const cn=z8(n.inferTypeParameters,void 0,0);a&&(cn.nonFixingMapper=H1(cn.nonFixingMapper,a)),gt||gv(cn.inferences,H,re,1536),Dt=a?H1(cn.mapper,a):cn.mapper}const an=Dt?lo(n.extendsType,Dt):re;if(!gt&&!j8e(an,Je)){if(!(an.flags&3)&&(H.flags&1||!ba(P8(H),P8(an)))){(H.flags&1||c&&!(an.flags&131072)&&Gm(P8(an),ar=>ba(ar,P8(H))))&&(x||(x=[])).push(lo(Ti(n.node.trueType),Dt||a));const cn=Ti(n.node.falseType);if(cn.flags&16777216){const ar=cn.root;if(ar.node.parent===n.node&&(!ar.isDistributive||ar.checkType===n.checkType)){n=ar;continue}if(F(cn,a))continue}v=lo(cn,a);break}if(an.flags&3||ba(KT(H),KT(an))){const cn=Ti(n.node.trueType),ar=Dt||a;if(F(cn,ar))continue;v=lo(cn,ar);break}}v=vg(16777216),v.root=n,v.checkType=lo(n.checkType,a),v.extendsType=lo(n.extendsType,a),v.mapper=a,v.combinedMapper=Dt,v.aliasSymbol=d||n.aliasSymbol,v.aliasTypeArguments=d?_:fy(n.aliasTypeArguments,a);break}return x?ei(Rn(x,v)):v;function F(H,re){if(H.flags&16777216&&re){const be=H.root;if(be.outerTypeParameters){const ge=H1(H.mapper,re),Je=Wt(be.outerTypeParameters,an=>Ob(an,ge)),gt=Mp(be.outerTypeParameters,Je),Dt=be.isDistributive?Ob(be.checkType,gt):void 0;if(!Dt||Dt===be.checkType||!(Dt.flags&1179648))return n=be,a=gt,d=void 0,_=void 0,be.aliasSymbol&&k++,!0}}return!1}}function aE(n){return n.resolvedTrueType||(n.resolvedTrueType=lo(Ti(n.root.node.trueType),n.mapper))}function sE(n){return n.resolvedFalseType||(n.resolvedFalseType=lo(Ti(n.root.node.falseType),n.mapper))}function Gct(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?lo(Ti(n.root.node.trueType),n.combinedMapper):aE(n))}function U8e(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Rn(a,Zs(c)))}),a}function Vct(n){return n.isDistributive&&(y9(n.checkType,n.node.trueType)||y9(n.checkType,n.node.falseType))}function jct(n){const a=Zr(n);if(!a.resolvedType){const c=Ti(n.checkType),d=px(n),_=IN(d),v=Pn(n,!0),x=_?v:mn(v,F=>y9(F,n)),k={node:n,checkType:c,extendsType:Ti(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:U8e(n),outerTypeParameters:x,instantiations:void 0,aliasSymbol:d,aliasTypeArguments:_};a.resolvedType=Wge(k,void 0,!1),x&&(k.instantiations=new Map,k.instantiations.set(pm(x),a.resolvedType))}return a.resolvedType}function Uct(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=WT(Ir(n.typeParameter))),a.resolvedType}function H8e(n){return Ve(n)?[n]:Rn(H8e(n.left),n.right)}function Hct(n){var a;const c=Zr(n);if(!c.resolvedType){if(!Oy(n))return qe(n.argument,f.String_literal_expected),c.resolvedSymbol=ft,c.resolvedType=_t;const d=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=hd(n,n.argument.literal);if(!_)return c.resolvedSymbol=ft,c.resolvedType=_t;const v=!!((a=_.exports)!=null&&a.get("export=")),x=Rp(_,!1);if(Fl(n.qualifier))if(x.flags&d)c.resolvedType=q8e(n,c,x,d);else{const k=d===111551?f.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;qe(n,k,n.argument.literal.text),c.resolvedSymbol=ft,c.resolvedType=_t}else{const k=H8e(n.qualifier);let F=x,H;for(;H=k.shift();){const re=k.length?1920:d,be=rs(Vl(F)),ge=n.isTypeOf||lr(n)&&v?va(dr(be),H.escapedText,!1,!0):void 0,gt=(n.isTypeOf?void 0:Jd(Dp(be),H.escapedText,re))??ge;if(!gt)return qe(H,f.Namespace_0_has_no_exported_member_1,Hp(F),xs(H)),c.resolvedType=_t;Zr(H).resolvedSymbol=gt,Zr(H.parent).resolvedSymbol=gt,F=gt}c.resolvedType=q8e(n,c,F,d)}}return c.resolvedType}function q8e(n,a,c,d){const _=Vl(c);return a.resolvedSymbol=_,d===111551?R3e(dr(c),n):NZ(n,_)}function J8e(n){const a=Zr(n);if(!a.resolvedType){const c=px(n);if(Cb(n.symbol).size===0&&!c)a.resolvedType=lc;else{let d=Wf(16,n.symbol);d.aliasSymbol=c,d.aliasTypeArguments=IN(c),jS(n)&&n.isArrayType&&(d=Vu(d)),a.resolvedType=d}}return a.resolvedType}function px(n){let a=n.parent;for(;wS(a)||o1(a)||OS(a)&&a.operator===148;)a=a.parent;return HL(a)?Ir(a):void 0}function IN(n){return n?Lr(n):void 0}function wZ(n){return!!(n.flags&524288)&&!Kd(n)}function Fge(n){return mv(n)||!!(n.flags&474058748)}function zge(n,a){if(!(n.flags&1048576))return n;if(Jn(n.types,Fge))return In(n.types,mv)||Ca;const c=In(n.types,v=>!Fge(v));if(!c||In(n.types,v=>v!==c&&!Fge(v)))return n;return _(c);function _(v){const x=ca();for(const F of gs(v))if(!(xf(F)&6)){if(OZ(F)){const H=F.flags&65536&&!(F.flags&32768),be=Ka(16777220,F.escapedName,qhe(F)|(a?8:0));be.links.type=H?Oe:lp(dr(F),!0),be.declarations=F.declarations,be.links.nameType=Ki(F).nameType,be.links.syntheticOrigin=F,x.set(F.escapedName,be)}}const k=Ls(v.symbol,x,et,et,gd(v));return k.objectFlags|=131200,k}}function V1(n,a,c,d,_){if(n.flags&1||a.flags&1)return j;if(n.flags&2||a.flags&2)return hn;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=zge(n,_),n.flags&1048576)return m9([n,a])?dl(n,H=>V1(H,a,c,d,_)):_t;if(a=zge(a,_),a.flags&1048576)return m9([n,a])?dl(a,H=>V1(n,H,c,d,_)):_t;if(a.flags&473960444)return n;if(HT(n)||HT(a)){if(mv(n))return a;if(n.flags&2097152){const H=n.types,re=H[H.length-1];if(wZ(re)&&wZ(a))return ya(So(H.slice(0,H.length-1),[V1(re,a,c,d,_)]))}return ya([n,a])}const v=ca(),x=new Set,k=n===Ca?gd(a):DOe([n,a]);for(const H of gs(a))xf(H)&6?x.add(H.escapedName):OZ(H)&&v.set(H.escapedName,Bge(H,_));for(const H of gs(n))if(!(x.has(H.escapedName)||!OZ(H)))if(v.has(H.escapedName)){const re=v.get(H.escapedName),be=dr(re);if(re.flags&16777216){const ge=So(H.declarations,re.declarations),Je=4|H.flags&16777216,gt=Ka(Je,H.escapedName),Dt=dr(H),an=nee(Dt),cn=nee(be);gt.links.type=an===cn?Dt:ei([Dt,cn],2),gt.links.leftSpread=H,gt.links.rightSpread=re,gt.declarations=ge,gt.links.nameType=Ki(H).nameType,v.set(H.escapedName,gt)}}else v.set(H.escapedName,Bge(H,_));const F=Ls(c,v,et,et,Zo(k,H=>qct(H,_)));return F.objectFlags|=2228352|d,F}function OZ(n){var a;return!bt(n.declarations,sd)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>di(c.parent))))}function Bge(n,a){const c=n.flags&65536&&!(n.flags&32768);if(!c&&a===g_(n))return n;const d=4|n.flags&16777216,_=Ka(d,n.escapedName,qhe(n)|(a?8:0));return _.links.type=c?Oe:dr(n),_.declarations=n.declarations,_.links.nameType=Ki(n).nameType,_.links.syntheticOrigin=n,_}function qct(n,a){return n.isReadonly!==a?Bh(n.keyType,n.type,a,n.declaration):n}function h9(n,a,c,d){const _=yg(n,c);return _.value=a,_.regularType=d||_,_}function fx(n){if(n.flags&2976){if(!n.freshType){const a=h9(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function yd(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=dl(n,yd)):n}function j1(n){return!!(n.flags&2976)&&n.freshType===n}function Xd(n){let a;return sn.get(n)||(sn.set(n,a=h9(128,n)),a)}function m_(n){let a;return tt.get(n)||(tt.set(n,a=h9(256,n)),a)}function WZ(n){let a;const c=HE(n);return zt.get(c)||(zt.set(c,a=h9(2048,n)),a)}function Jct(n,a,c){let d;const _=`${a}${typeof n=="string"?"@":"#"}${n}`,v=1024|(typeof n=="string"?128:256);return Dn.get(_)||(Dn.set(_,d=h9(v,n,c)),d)}function Kct(n){if(n.literal.kind===106)return fe;const a=Zr(n);return a.resolvedType||(a.resolvedType=yd(mo(n.literal))),a.resolvedType}function Xct(n){const a=yg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Sa(a.symbol)}`,a}function Gge(n){if(lr(n)&&o1(n)){const a=AS(n);a&&(n=PA(a)||a)}if(eie(n)){const a=z4(n)?_f(n.left):_f(n);if(a){const c=Ki(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=Xct(a))}}return xi}function Yct(n){const a=Fd(n,!1,!1),c=a&&a.parent;if(c&&(di(c)||c.kind===264)&&!aa(a)&&(!Ml(a)||WE(n,a.body)))return Bf(Ir(c)).thisType;if(c&&La(c)&&mr(c.parent)&&zl(c.parent)===6)return Bf(_f(c.parent.left).parent).thisType;const d=n.flags&16777216?d0(n):void 0;return d&&Os(d)&&mr(d.parent)&&zl(d.parent)===3?Bf(_f(d.parent.left).parent).thisType:Z_(a)&&WE(n,a.body)?Bf(Ir(a)).thisType:(qe(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),_t)}function FZ(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=Yct(n)),a.resolvedType}function K8e(n){return Ti(g9(n.type)||n.type)}function g9(n){switch(n.kind){case 196:return g9(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return g9(n.type);break;case 188:return n.elementType}}function $ct(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?K8e(n):lp(Ti(n.type),!0,!!n.questionToken))}function Ti(n){return Nlt(X8e(n),n)}function X8e(n){switch(n.kind){case 133:case 319:case 320:return j;case 159:return hn;case 154:return ke;case 150:return Tt;case 163:return kt;case 136:return Pi;case 155:return xi;case 116:return ir;case 157:return Oe;case 106:return fe;case 146:return Vr;case 151:return n.flags&524288&&!de?j:Jr;case 141:return fn;case 197:case 110:return FZ(n);case 201:return Kct(n);case 183:return gge(n);case 182:return n.assertsModifier?ir:Pi;case 233:return gge(n);case 186:return a8e(n);case 188:case 189:return oct(n);case 190:return cct(n);case 192:return vct(n);case 193:return xct(n);case 321:return Clt(n);case 323:return lp(Ti(n.type));case 202:return $ct(n);case 196:case 322:case 316:return Ti(n.type);case 191:return K8e(n);case 325:return Zgt(n);case 184:case 185:case 187:case 329:case 324:case 330:return J8e(n);case 198:return Pct(n);case 199:return G8e(n);case 200:return Oge(n);case 194:return jct(n);case 195:return Uct(n);case 203:return Mct(n);case 205:return Hct(n);case 80:case 166:case 211:const a=Vm(n);return a?Zs(a):_t;default:return _t}}function zZ(n,a,c){if(n&&n.length)for(let d=0;d<n.length;d++){const _=n[d],v=c(_,a);if(_!==v){const x=d===0?[]:n.slice(0,d);for(x.push(v),d++;d<n.length;d++)x.push(c(n[d],a));return x}}return n}function fy(n,a){return zZ(n,a,lo)}function BZ(n,a){return zZ(n,a,xN)}function Y8e(n,a){return zZ(n,a,uut)}function Mp(n,a){return n.length===1?U1(n[0],a?a[0]:j):Qct(n,a)}function Ob(n,a){switch(a.kind){case 0:return n===a.source?a.target:n;case 1:{const d=a.sources,_=a.targets;for(let v=0;v<d.length;v++)if(n===d[v])return _?_[v]:j;return n}case 2:{const d=a.sources,_=a.targets;for(let v=0;v<d.length;v++)if(n===d[v])return _[v]();return n}case 3:return a.func(n);case 4:case 5:const c=Ob(n,a.mapper1);return c!==n&&a.kind===4?lo(c,a.mapper2):Ob(c,a.mapper2)}}function U1(n,a){return N.attachDebugPrototypeIfDebug({kind:0,source:n,target:a})}function Qct(n,a){return N.attachDebugPrototypeIfDebug({kind:1,sources:n,targets:a})}function v9(n,a){return N.attachDebugPrototypeIfDebug({kind:3,func:n,debugInfo:N.isDebugging?a:void 0})}function Vge(n,a){return N.attachDebugPrototypeIfDebug({kind:2,sources:n,targets:a})}function GZ(n,a,c){return N.attachDebugPrototypeIfDebug({kind:n,mapper1:a,mapper2:c})}function $8e(n){return Mp(n,void 0)}function Zct(n,a){const c=n.inferences.slice(a);return Mp(Wt(c,d=>d.typeParameter),Wt(c,()=>hn))}function H1(n,a){return n?GZ(4,n,a):a}function eut(n,a){return n?GZ(5,n,a):a}function JT(n,a,c){return c?GZ(5,U1(n,a),c):U1(n,a)}function N8(n,a,c){return n?GZ(5,n,U1(a,c)):U1(a,c)}function tut(n){return!n.constraint&&!dge(n)||n.constraint===js?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=gf(n.symbol),n.restrictiveInstantiation.constraint=js,n.restrictiveInstantiation)}function jge(n){const a=gf(n.symbol);return a.target=n,a}function nut(n,a){return u9(n.kind,n.parameterName,n.parameterIndex,lo(n.type,a))}function xN(n,a,c){let d;if(n.typeParameters&&!c){d=Wt(n.typeParameters,jge),a=H1(Mp(n.typeParameters,d),a);for(const v of d)v.mapper=a}const _=Eg(n.declaration,d,n.thisParameter&&Uge(n.thisParameter,a),zZ(n.parameters,a,Uge),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function Uge(n,a){const c=Ki(n);if(c.type&&!dE(c.type)&&(!(n.flags&65536)||c.writeType&&!dE(c.writeType)))return n;xl(n)&1&&(n=c.target,a=H1(c.mapper,a));const d=Ka(n.flags,n.escapedName,1|xl(n)&53256);return d.declarations=n.declarations,d.parent=n.parent,d.links.target=n,d.links.mapper=a,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),c.nameType&&(d.links.nameType=c.nameType),d}function rut(n,a,c,d){const _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],v=Zr(_),x=n.objectFlags&4?v.resolvedType:n.objectFlags&64?n.target:n;let k=v.outerTypeParameters;if(!k){let F=Pn(_,!0);if(Z_(_)){const re=HOe(_);F=qr(F,re)}k=F||et;const H=n.objectFlags&8388612?[_]:n.symbol.declarations;k=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?mn(k,re=>bt(H,be=>y9(re,be))):k,v.outerTypeParameters=k}if(k.length){const F=H1(n.mapper,a),H=Wt(k,gt=>Ob(gt,F)),re=c||n.aliasSymbol,be=c?d:fy(n.aliasTypeArguments,a),ge=pm(H)+ux(re,be);x.instantiations||(x.instantiations=new Map,x.instantiations.set(pm(k)+ux(x.aliasSymbol,x.aliasTypeArguments),x));let Je=x.instantiations.get(ge);if(!Je){const gt=Mp(k,H);Je=x.objectFlags&4?pge(n.target,n.node,gt,re,be):x.objectFlags&32?out(x,gt,re,be):Hge(x,gt,re,be),x.instantiations.set(ge,Je);const Dt=Wr(Je);if(Je.flags&3899393&&!(Dt&524288)){const an=bt(H,dE);Wr(Je)&524288||(Dt&52?Je.objectFlags|=524288|(an?1048576:0):Je.objectFlags|=an?0:524288)}}return Je}return n}function iut(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function y9(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const d=n.symbol.declarations[0].parent;for(let _=a;_!==d;_=_.parent)if(!_||_.kind===241||_.kind===194&&Uo(_.extendsType,c))return!0;return c(a)}return!0;function c(d){switch(d.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&$h(d)&&iut(d)&&X8e(d)===n;case 186:const _=d.exprName,v=Gp(_);if(!VE(v)){const x=Bm(v),k=n.symbol.declarations[0],F=k.kind===168?k.parent:n.isThisType?k:void 0;if(x.declarations&&F)return bt(x.declarations,H=>WE(H,F))||bt(d.typeArguments,c)}return!0;case 174:case 173:return!d.type&&!!d.body||bt(d.typeParameters,c)||bt(d.parameters,c)||!!d.type&&c(d.type)}return!!Uo(d,c)}}function C8(n){const a=yf(n);if(a.flags&4194304){const c=wb(a.type);if(c.flags&262144)return c}}function out(n,a,c,d){const _=C8(n);if(_){const x=lo(_,a);if(_!==x)return e4e(f_(x),v,c,d)}return lo(yf(n),a)===Rt?Rt:Hge(n,a,c,d);function v(x){if(x.flags&61603843&&x!==Rt&&!Jt(x)){if(!n.declaration.nameType){let k;if(Uf(x)||x.flags&1&&ax(_,4)<0&&(k=Md(_))&&cp(k,cE))return sut(x,n,JT(_,x,a));if(Wa(x))return aut(x,n,_,a);if(zOe(x))return ya(Wt(x.types,v))}return Hge(n,JT(_,x,a))}return x}}function Q8e(n,a){return a&1?!0:a&2?!1:n}function aut(n,a,c,d){const _=n.target.elementFlags,v=n.target.fixedLength,x=v?JT(c,n,d):d,k=Wt(G1(n),(be,ge)=>{const Je=_[ge];return ge<v?Z8e(a,Xd(""+ge),!!(Je&2),x):Je&8?lo(a,JT(c,be,d)):D9(lo(a,JT(c,Vu(be),d)))??hn}),F=Fh(a),H=F&4?Wt(_,be=>be&1?2:be):F&8?Wt(_,be=>be&2?1:be):_,re=Q8e(n.target.readonly,Fh(a));return Or(k,_t)?_t:Gh(k,H,re,n.target.labeledElementDeclarations)}function sut(n,a,c){const d=Z8e(a,Tt,!0,c);return Jt(d)?_t:Vu(d,Q8e(JM(n),Fh(a)))}function Z8e(n,a,c,d){const _=N8(d,d_(n),a),v=lo(cv(n.target||n),_),x=Fh(n);return X&&x&4&&!Cl(v,49152)?Bb(v,!0):X&&x&8&&c?mm(v,524288):v}function Hge(n,a,c,d){N.assert(n.symbol,"anonymous type must have symbol to be instantiated");const _=Wf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;const v=d_(n),x=jge(v);_.typeParameter=x,a=H1(U1(v,x),a),x.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?d:fy(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?RZ(_.aliasTypeArguments):0,_}function qge(n,a,c,d,_){const v=n.root;if(v.outerTypeParameters){const x=Wt(v.outerTypeParameters,H=>Ob(H,a)),k=(c?"C":"")+pm(x)+ux(d,_);let F=v.instantiations.get(k);if(!F){const H=Mp(v.outerTypeParameters,x),re=v.checkType,be=v.isDistributive?f_(Ob(re,H)):void 0;F=be&&re!==be&&be.flags&1179648?e4e(be,ge=>Wge(v,JT(re,ge,H),c),d,_):Wge(v,H,c,d,_),v.instantiations.set(k,F)}return F}return n}function lo(n,a){return n&&a?e6e(n,a,void 0,void 0):n}function e6e(n,a,c,d){var _;if(!dE(n))return n;if(R===100||A>=5e6)return(_=sr)==null||_.instant(sr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:R,instantiationCount:A}),qe(C,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;T++,A++,R++;const v=lut(n,a,c,d);return R--,v}function lut(n,a,c,d){const _=n.flags;if(_&262144)return Ob(n,a);if(_&524288){const v=n.objectFlags;if(v&52){if(v&4&&!n.node){const x=n.resolvedTypeArguments,k=fy(x,a);return k!==x?xge(n.target,k):n}return v&1024?cut(n,a):rut(n,a,c,d)}return n}if(_&3145728){const v=n.flags&1048576?n.origin:void 0,x=v&&v.flags&3145728?v.types:n.types,k=fy(x,a);if(k===x&&c===n.aliasSymbol)return n;const F=c||n.aliasSymbol,H=c?d:fy(n.aliasTypeArguments,a);return _&2097152||v&&v.flags&2097152?ya(k,F,H):ei(k,1,F,H)}if(_&4194304)return X_(lo(n.type,a));if(_&134217728)return jT(n.texts,fy(n.types,a));if(_&268435456)return dx(n.symbol,lo(n.type,a));if(_&8388608){const v=c||n.aliasSymbol,x=c?d:fy(n.aliasTypeArguments,a);return Pp(lo(n.objectType,a),lo(n.indexType,a),n.accessFlags,void 0,v,x)}if(_&16777216)return qge(n,H1(n.mapper,a),!1,c,d);if(_&33554432){const v=lo(n.baseType,a);if(VM(n))return fge(v);const x=lo(n.constraint,a);return v.flags&8650752&&AN(x)?_ge(v,x):x.flags&3||ba(KT(v),KT(x))?v:v.flags&8650752?_ge(v,x):ya([x,v])}return n}function cut(n,a){const c=lo(n.mappedType,a);if(!(Wr(c)&32))return n;const d=lo(n.constraintType,a);if(!(d.flags&4194304))return n;const _=M6e(lo(n.source,a),c,d);return _||n}function P8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=lo(n,gl))}function KT(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=lo(n,Vs),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function uut(n,a){return Bh(n.keyType,lo(n.type,a),n.isReadonly,n.declaration)}function Vf(n){switch(N.assert(n.kind!==174||Tm(n)),n.kind){case 218:case 219:case 174:case 262:return t6e(n);case 210:return bt(n.properties,Vf);case 209:return bt(n.elements,Vf);case 227:return Vf(n.whenTrue)||Vf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Vf(n.left)||Vf(n.right));case 303:return Vf(n.initializer);case 217:return Vf(n.expression);case 292:return bt(n.properties,Vf)||k_(n.parent)&&bt(n.parent.parent.children,Vf);case 291:{const{initializer:a}=n;return!!a&&Vf(a)}case 294:{const{expression:a}=n;return!!a&&Vf(a)}}return!1}function t6e(n){return H3(n)||dut(n)}function dut(n){return n.typeParameters||em(n)||!n.body?!1:n.body.kind!==241?Vf(n.body):!!LE(n.body,a=>!!a.expression&&Vf(a.expression))}function VZ(n){return(qE(n)||Tm(n))&&t6e(n)}function n6e(n){if(n.flags&524288){const a=p_(n);if(a.constructSignatures.length||a.callSignatures.length){const c=Wf(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=et,c.constructSignatures=et,c.indexInfos=et,c}}else if(n.flags&2097152)return ya(Wt(n.types,n6e));return n}function fv(n,a){return Y_(n,a,op)}function M8(n,a){return Y_(n,a,op)?-1:0}function Jge(n,a){return Y_(n,a,qd)?-1:0}function put(n,a){return Y_(n,a,Nh)?-1:0}function Wb(n,a){return Y_(n,a,Nh)}function b9(n,a){return Y_(n,a,wf)}function ba(n,a){return Y_(n,a,qd)}function lE(n,a){return n.flags&1048576?Jn(n.types,c=>lE(c,a)):a.flags&1048576?bt(a.types,c=>lE(n,c)):n.flags&2097152?bt(n.types,c=>lE(c,a)):n.flags&58982400?lE(Gu(n)||hn,a):Vh(a)?!!(n.flags&67633152):a===Pe?!!(n.flags&67633152)&&!Vh(n):a===Ot?!!(n.flags&524288)&&xve(n):_N(n,ly(a))||Uf(a)&&!JM(a)&&lE(n,na)}function jZ(n,a){return Y_(n,a,xp)}function E9(n,a){return jZ(n,a)||jZ(a,n)}function nd(n,a,c,d,_,v){return jf(n,a,qd,c,d,_,v)}function Fb(n,a,c,d,_,v){return Kge(n,a,qd,c,d,_,v,void 0)}function Kge(n,a,c,d,_,v,x,k){return Y_(n,a,c)?!0:!d||!L8(_,n,a,c,v,x,k)?jf(n,a,c,d,v,x,k):!1}function r6e(n){return!!(n.flags&16777216||n.flags&2097152&&bt(n.types,r6e))}function L8(n,a,c,d,_,v,x){if(!n||r6e(c))return!1;if(!jf(a,c,d,void 0)&&fut(n,a,c,d,_,v,x))return!0;switch(n.kind){case 234:if(!db(n))break;case 294:case 217:return L8(n.expression,a,c,d,_,v,x);case 226:switch(n.operatorToken.kind){case 64:case 28:return L8(n.right,a,c,d,_,v,x)}break;case 210:return Eut(n,a,c,d,v,x);case 209:return yut(n,a,c,d,v,x);case 292:return vut(n,a,c,d,v,x);case 219:return mut(n,a,c,d,v,x)}return!1}function fut(n,a,c,d,_,v,x){const k=Xo(a,0),F=Xo(a,1);for(const H of[F,k])if(bt(H,re=>{const be=ps(re);return!(be.flags&131073)&&jf(be,c,d,void 0)})){const re=x||{};nd(a,c,n,_,v,re);const be=re.errors[re.errors.length-1];return Ma(be,kr(n,H===F?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function mut(n,a,c,d,_,v){if(Ko(n.body)||bt(n.parameters,S4))return!1;const x=rA(a);if(!x)return!1;const k=Xo(c,0);if(!Ne(k))return!1;const F=n.body,H=ps(x),re=ei(Wt(k,ps));if(!jf(H,re,d,void 0)){const be=F&&L8(F,H,re,d,void 0,_,v);if(be)return be;const ge=v||{};if(jf(H,re,d,F,void 0,_,ge),ge.errors)return c.symbol&&Ne(c.symbol.declarations)&&Ma(ge.errors[ge.errors.length-1],kr(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Bc(n)&2)&&!Ke(H,"then")&&jf(nB(H),re,d,void 0)&&Ma(ge.errors[ge.errors.length-1],kr(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function i6e(n,a,c){const d=kb(a,c);if(d)return d;if(a.flags&1048576){const _=p6e(n,a);if(_)return kb(_,c)}}function o6e(n,a){B9(n,a,!1);const c=o2(n,1);return j8(),c}function S9(n,a,c,d,_,v){let x=!1;for(const k of n){const{errorNode:F,innerExpression:H,nameType:re,errorMessage:be}=k;let ge=i6e(a,c,re);if(!ge||ge.flags&8388608)continue;let Je=kb(a,re);if(!Je)continue;const gt=LZ(re,void 0);if(!jf(Je,ge,d,void 0)){const Dt=H&&L8(H,Je,ge,d,void 0,_,v);if(x=!0,!Dt){const an=v||{},cn=H?o6e(H,Je):Je;if(De&&HZ(cn,ge)){const ar=kr(F,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Hn(cn),Hn(ge));ts.add(ar),an.errors=[ar]}else{const ar=!!(gt&&(va(c,gt)||ft).flags&16777216),Wn=!!(gt&&(va(a,gt)||ft).flags&16777216);ge=Gb(ge,ar),Je=Gb(Je,ar&&Wn),jf(cn,ge,d,F,be,_,an)&&cn!==Je&&jf(Je,ge,d,F,be,_,an)}if(an.errors){const ar=an.errors[an.errors.length-1],Wn=tm(re)?nm(re):void 0,ln=Wn!==void 0?va(c,Wn):void 0;let Bn=!1;if(!ln){const zn=E8(c,re);zn&&zn.declaration&&!Un(zn.declaration).hasNoDefaultLib&&(Bn=!0,Ma(ar,kr(zn.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!Bn&&(ln&&Ne(ln.declarations)||c.symbol&&Ne(c.symbol.declarations))){const zn=ln&&Ne(ln.declarations)?ln.declarations[0]:c.symbol.declarations[0];Un(zn).hasNoDefaultLib||Ma(ar,kr(zn,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Wn&&!(re.flags&8192)?Vi(Wn):Hn(re),Hn(c)))}}}}}return x}function _ut(n,a,c,d,_,v){const x=dc(c,QZ),k=dc(c,re=>!QZ(re)),F=k!==Vr?Uye(13,0,k,void 0):void 0;let H=!1;for(let re=n.next();!re.done;re=n.next()){const{errorNode:be,innerExpression:ge,nameType:Je,errorMessage:gt}=re.value;let Dt=F;const an=x!==Vr?i6e(a,x,Je):void 0;if(an&&!(an.flags&8388608)&&(Dt=F?ei([F,an]):an),!Dt)continue;let cn=kb(a,Je);if(!cn)continue;const ar=LZ(Je,void 0);if(!jf(cn,Dt,d,void 0)){const Wn=ge&&L8(ge,cn,Dt,d,void 0,_,v);if(H=!0,!Wn){const ln=v||{},Bn=ge?o6e(ge,cn):cn;if(De&&HZ(Bn,Dt)){const zn=kr(be,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Hn(Bn),Hn(Dt));ts.add(zn),ln.errors=[zn]}else{const zn=!!(ar&&(va(x,ar)||ft).flags&16777216),tr=!!(ar&&(va(a,ar)||ft).flags&16777216);Dt=Gb(Dt,zn),cn=Gb(cn,zn&&tr),jf(Bn,Dt,d,be,gt,_,ln)&&Bn!==cn&&jf(cn,Dt,d,be,gt,_,ln)}}}}return H}function*hut(n){if(Ne(n.properties))for(const a of n.properties)cI(a)||Jve(Ek(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Xd(Ek(a.name))})}function*gut(n,a){if(!Ne(n.children))return;let c=0;for(let d=0;d<n.children.length;d++){const _=n.children[d],v=m_(d-c),x=a6e(_,v,a);x?yield x:c++}}function a6e(n,a,c){switch(n.kind){case 294:return{errorNode:n,innerExpression:n.expression,nameType:a};case 12:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:a,errorMessage:c()};case 284:case 285:case 288:return{errorNode:n,innerExpression:n,nameType:a};default:return N.assertNever(n,"Found invalid jsx child")}}function vut(n,a,c,d,_,v){let x=S9(hut(n),a,c,d,_,v),k;if(k_(n.parent)&&sg(n.parent.parent)){const H=n.parent.parent,re=V9(tA(n)),be=re===void 0?"children":Vi(re),ge=Xd(be),Je=Pp(c,ge),gt=bR(H.children);if(!Ne(gt))return x;const Dt=Ne(gt)>1;let an,cn;if(Sge(!1)!==wo){const Wn=g8e(j);an=dc(Je,ln=>ba(ln,Wn)),cn=dc(Je,ln=>!ba(ln,Wn))}else an=dc(Je,QZ),cn=dc(Je,Wn=>!QZ(Wn));if(Dt){if(an!==Vr){const Wn=Gh(Aee(H,0)),ln=gut(H,F);x=_ut(ln,Wn,an,d,_,v)||x}else if(!Y_(Pp(a,ge),Je,d)){x=!0;const Wn=qe(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,be,Hn(Je));v&&v.skipLogging&&(v.errors||(v.errors=[])).push(Wn)}}else if(cn!==Vr){const Wn=gt[0],ln=a6e(Wn,ge,F);ln&&(x=S9(function*(){yield ln}(),a,c,d,_,v)||x)}else if(!Y_(Pp(a,ge),Je,d)){x=!0;const Wn=qe(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,be,Hn(Je));v&&v.skipLogging&&(v.errors||(v.errors=[])).push(Wn)}}return x;function F(){if(!k){const H=fc(n.parent.tagName),re=V9(tA(n)),be=re===void 0?"children":Vi(re),ge=Pp(c,Xd(be)),Je=f._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;k={...Je,key:"!!ALREADY FORMATTED!!",message:lU(Je,H,be,Hn(ge))}}return k}}function*s6e(n,a){const c=Ne(n.elements);if(c)for(let d=0;d<c;d++){if(KM(a)&&!va(a,""+d))continue;const _=n.elements[d];if(Gc(_))continue;const v=m_(d),x=Lee(_);yield{errorNode:x,innerExpression:x,nameType:v}}}function yut(n,a,c,d,_,v){if(c.flags&402915324)return!1;if(KM(a))return S9(s6e(n,c),a,c,d,_,v);B9(n,c,!1);const x=N4e(n,1,!0);return j8(),KM(x)?S9(s6e(n,c),x,c,d,_,v):!1}function*but(n){if(Ne(n.properties))for(const a of n.properties){if(jv(a))continue;const c=TN(Ir(a),8576);if(!(!c||c.flags&131072))switch(a.kind){case 178:case 177:case 174:case 304:yield{errorNode:a.name,innerExpression:void 0,nameType:c};break;case 303:yield{errorNode:a.name,innerExpression:a.initializer,nameType:c,errorMessage:AL(a.name)?f.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:N.assertNever(a)}}}function Eut(n,a,c,d,_,v){return c.flags&402915324?!1:S9(but(n),a,c,d,_,v)}function l6e(n,a,c,d,_){return jf(n,a,xp,c,d,_)}function Sut(n,a,c){return Xge(n,a,4,!1,void 0,void 0,Jge,void 0)!==0}function UZ(n){if(!n.typeParameters&&(!n.thisParameter||Nt(Z9(n.thisParameter)))&&n.parameters.length===1&&Yu(n)){const a=Z9(n.parameters[0]);return!!((Uf(a)?Js(a)[0]:a).flags&131073&&ps(n).flags&3)}return!1}function Xge(n,a,c,d,_,v,x,k){if(n===a||!(c&16&&UZ(n))&&UZ(a))return-1;if(c&16&&UZ(n)&&!UZ(a))return 0;const F=Xp(a);if(!jh(a)&&(c&8?jh(n)||Xp(n)>F:eh(n)>F))return d&&!(c&8)&&_(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,eh(n),F),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Tlt(a),n=s3e(n,a,void 0,x));const re=Xp(n),be=J8(n),ge=J8(a);(be||ge)&&lo(be||ge,k);const Je=a.declaration?a.declaration.kind:0,gt=!(c&3)&&oe&&Je!==174&&Je!==173&&Je!==176;let Dt=-1;const an=oE(n);if(an&&an!==ir){const Wn=oE(a);if(Wn){const ln=!gt&&x(an,Wn,!1)||x(Wn,an,d);if(!ln)return d&&_(f.The_this_types_of_each_signature_are_incompatible),0;Dt&=ln}}const cn=be||ge?Math.min(re,F):Math.max(re,F),ar=be||ge?cn-1:-1;for(let Wn=0;Wn<cn;Wn++){const ln=Wn===ar?P3e(n,Wn):Y1(n,Wn),Bn=Wn===ar?P3e(a,Wn):Y1(a,Wn);if(ln&&Bn){const zn=c&3||o3e(n,Wn)?void 0:rA(hv(ln)),tr=c&3||o3e(a,Wn)?void 0:rA(hv(Bn));let nr=zn&&tr&&!Gf(zn)&&!Gf(tr)&&$M(ln,50331648)===$M(Bn,50331648)?Xge(tr,zn,c&8|(gt?2:1),d,_,v,x,k):!(c&3)&&!gt&&x(ln,Bn,!1)||x(Bn,ln,d);if(nr&&c&8&&Wn>=eh(n)&&Wn<eh(a)&&x(ln,Bn,!1)&&(nr=0),!nr)return d&&_(f.Types_of_parameters_0_and_1_are_incompatible,Vi(n2(n,Wn)),Vi(n2(a,Wn))),0;Dt&=nr}}if(!(c&4)){const Wn=TZ(a)?j:a.declaration&&Z_(a.declaration)?Bf(rs(a.declaration.symbol)):ps(a);if(Wn===ir||Wn===j)return Dt;const ln=TZ(n)?j:n.declaration&&Z_(n.declaration)?Bf(rs(n.declaration.symbol)):ps(n),Bn=Gf(a);if(Bn){const zn=Gf(n);if(zn)Dt&=Tut(zn,Bn,d,_,x);else if(nie(Bn))return d&&_(f.Signature_0_must_be_a_type_predicate,kh(n)),0}else Dt&=c&1&&x(Wn,ln,!1)||x(ln,Wn,d),!Dt&&d&&v&&v(ln,Wn)}return Dt}function Tut(n,a,c,d,_){if(n.kind!==a.kind)return c&&(d(f.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),d(f.Type_predicate_0_is_not_assignable_to_1,wh(n),wh(a))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==a.parameterIndex)return c&&(d(f.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,a.parameterName),d(f.Type_predicate_0_is_not_assignable_to_1,wh(n),wh(a))),0;const v=n.type===a.type?-1:n.type&&a.type?_(n.type,a.type,c):0;return v===0&&c&&d(f.Type_predicate_0_is_not_assignable_to_1,wh(n),wh(a)),v}function Aut(n,a){const c=A8(n),d=A8(a),_=ps(c),v=ps(d);return v===ir||Y_(v,_,qd)||Y_(_,v,qd)?Sut(c,d):!1}function Yge(n){return n!==nn&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function mv(n){return n.flags&524288?!Kd(n)&&Yge(p_(n)):n.flags&67108864?!0:n.flags&1048576?bt(n.types,mv):n.flags&2097152?Jn(n.types,mv):!1}function Vh(n){return!!(Wr(n)&16&&(n.members&&Yge(n)||n.symbol&&n.symbol.flags&2048&&Cb(n.symbol).size===0))}function Iut(n){if(X&&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&&bt(a,Vh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function HM(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function c6e(n){return n.flags&524288&&!Kd(n)&&gs(n).length===0&&gd(n).length===1&&!!Sg(n,ke)||n.flags&3145728&&Jn(n.types,c6e)||!1}function $ge(n,a,c){const d=n.flags&8?Cd(n):n,_=a.flags&8?Cd(a):a;if(d===_)return!0;if(d.escapedName!==_.escapedName||!(d.flags&256)||!(_.flags&256))return!1;const v=Sa(d)+","+Sa(_),x=ty.get(v);if(x!==void 0&&!(!(x&4)&&x&2&&c))return!!(x&1);const k=dr(_);for(const F of gs(dr(d)))if(F.flags&8){const H=va(k,F.escapedName);if(!H||!(H.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,El(F),Hn(Zs(_),void 0,64)),ty.set(v,6)):ty.set(v,2),!1;const re=WN(pl(F,306)),be=WN(pl(H,306));if(re!==be){const ge=typeof re=="string",Je=typeof be=="string";if(re!==void 0&&be!==void 0){if(!c)ty.set(v,2);else{const gt=ge?`"${tg(re)}"`:re,Dt=Je?`"${tg(be)}"`:be;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,El(_),El(H),Dt,gt),ty.set(v,6)}return!1}if(ge||Je){if(!c)ty.set(v,2);else{const gt=re??be;N.assert(typeof gt=="string");const Dt=`"${tg(gt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,El(_),El(H),Dt),ty.set(v,6)}return!1}}}return ty.set(v,1),!0}function k8(n,a,c,d){const _=n.flags,v=a.flags;return v&1||_&131072||n===Rt||v&2&&!(c===wf&&_&1)?!0:v&131072?!1:!!(_&402653316&&v&4||_&128&&_&1024&&v&128&&!(v&1024)&&n.value===a.value||_&296&&v&8||_&256&&_&1024&&v&256&&!(v&1024)&&n.value===a.value||_&2112&&v&64||_&528&&v&16||_&12288&&v&4096||_&32&&v&32&&n.symbol.escapedName===a.symbol.escapedName&&$ge(n.symbol,a.symbol,d)||_&1024&&v&1024&&(_&1048576&&v&1048576&&$ge(n.symbol,a.symbol,d)||_&2944&&v&2944&&n.value===a.value&&$ge(n.symbol,a.symbol,d))||_&32768&&(!X&&!(v&3145728)||v&49152)||_&65536&&(!X&&!(v&3145728)||v&65536)||_&524288&&v&67108864&&!(c===wf&&Vh(n)&&!(Wr(n)&8192))||(c===qd||c===xp)&&(_&1||_&8&&(v&32||v&256&&v&1024)||_&256&&!(_&1024)&&(v&32||v&256&&v&1024&&n.value===a.value)||Iut(a)))}function Y_(n,a,c){if(j1(n)&&(n=n.regularType),j1(a)&&(a=a.regularType),n===a)return!0;if(c!==op){if(c===xp&&!(a.flags&131072)&&k8(a,n,c)||k8(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){const d=c.get(KZ(n,a,0,c,!1));if(d!==void 0)return!!(d&1)}return n.flags&469499904||a.flags&469499904?jf(n,a,c,void 0):!1}function u6e(n,a){return Wr(n)&2048&&Jve(a.escapedName)}function T9(n,a){for(;;){const c=j1(n)?n.regularType:zb(n)?Rut(n,a):Wr(n)&4?n.node?uy(n.target,Js(n)):ive(n)||n:n.flags&3145728?xut(n,a):n.flags&33554432?a?n.baseType:hge(n):n.flags&25165824?pv(n,a):n;if(c===n)return c;n=c}}function xut(n,a){const c=f_(n);if(c!==n)return c;if(n.flags&2097152&&bt(n.types,Vh)){const d=Zo(n.types,_=>T9(_,a));if(d!==n.types)return ya(d)}return n}function Rut(n,a){const c=G1(n),d=Zo(c,_=>_.flags&25165824?pv(_,a):_);return c!==d?Rge(n.target,d):n}function jf(n,a,c,d,_,v,x){var k;let F,H,re,be,ge,Je,gt=0,Dt=0,an=0,cn=0,ar=!1,Wn=0,ln=0,Bn,zn,tr=16e6-c.size>>3;N.assert(c!==op||!d,"no error reporting in identity checking");const Kn=br(n,a,3,!!d,_);if(zn&&Bo(),ar){const rt=KZ(n,a,0,c,!1);c.set(rt,6),(k=sr)==null||k.instant(sr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:Dt,targetDepth:an});const St=tr<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,Zt=qe(d||C,St,Hn(n),Hn(a));x&&(x.errors||(x.errors=[])).push(Zt)}else if(F){if(v){const Zt=v();Zt&&(loe(Zt,F),F=Zt)}let rt;if(_&&d&&!Kn&&n.symbol){const Zt=Ki(n.symbol);if(Zt.originatingImport&&!zp(Zt.originatingImport)&&jf(dr(Zt.target),a,c,void 0)){const Rr=kr(Zt.originatingImport,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);rt=Rn(rt,Rr)}}const St=Lg(Un(d),d,F,rt);H&&Ma(St,...H),x&&(x.errors||(x.errors=[])).push(St),(!x||!x.skipLogging)&&ts.add(St)}return d&&x&&x.skipLogging&&Kn===0&&N.assert(!!x.errors,"missed opportunity to interact with error."),Kn!==0;function nr(rt){F=rt.errorInfo,Bn=rt.lastSkippedInfo,zn=rt.incompatibleStack,Wn=rt.overrideNextErrorInfo,ln=rt.skipParentCounter,H=rt.relatedInfo}function Ro(){return{errorInfo:F,lastSkippedInfo:Bn,incompatibleStack:zn==null?void 0:zn.slice(),overrideNextErrorInfo:Wn,skipParentCounter:ln,relatedInfo:H==null?void 0:H.slice()}}function Eo(rt,...St){Wn++,Bn=void 0,(zn||(zn=[])).push([rt,...St])}function Bo(){const rt=zn||[];zn=void 0;const St=Bn;if(Bn=void 0,rt.length===1){_o(...rt[0]),St&&up(void 0,...St);return}let Zt="";const Yn=[];for(;rt.length;){const[Rr,...An]=rt.pop();switch(Rr.code){case f.Types_of_property_0_are_incompatible.code:{Zt.indexOf("new ")===0&&(Zt=`(${Zt})`);const gr=""+An[0];Zt.length===0?Zt=`${gr}`:Zp(gr,os(V))?Zt=`${Zt}.${gr}`:gr[0]==="["&&gr[gr.length-1]==="]"?Zt=`${Zt}${gr}`:Zt=`${Zt}[${gr}]`;break}case f.Call_signature_return_types_0_and_1_are_incompatible.code:case f.Construct_signature_return_types_0_and_1_are_incompatible.code:case f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Zt.length===0){let gr=Rr;Rr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?gr=f.Call_signature_return_types_0_and_1_are_incompatible:Rr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(gr=f.Construct_signature_return_types_0_and_1_are_incompatible),Yn.unshift([gr,An[0],An[1]])}else{const gr=Rr.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||Rr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Hr=Rr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Rr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Zt=`${gr}${Zt}(${Hr})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Yn.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,An[0],An[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Yn.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,An[0],An[1],An[2]]);break}default:return N.fail(`Unhandled Diagnostic: ${Rr.code}`)}}Zt?_o(Zt[Zt.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,Zt):Yn.shift();for(const[Rr,...An]of Yn){const gr=Rr.elidedInCompatabilityPyramid;Rr.elidedInCompatabilityPyramid=!1,_o(Rr,...An),Rr.elidedInCompatabilityPyramid=gr}St&&up(void 0,...St)}function _o(rt,...St){N.assert(!!d),zn&&Bo(),!rt.elidedInCompatabilityPyramid&&(ln===0?F=Vo(F,rt,...St):ln--)}function Nc(rt,...St){_o(rt,...St),ln++}function Hf(rt){N.assert(!!F),H?H.push(rt):H=[rt]}function up(rt,St,Zt){zn&&Bo();const[Yn,Rr]=ox(St,Zt);let An=St,gr=Yn;if(w8(St)&&!Qge(Zt)&&(An=_v(St),N.assert(!ba(An,Zt),"generalized source shouldn't be assignable"),gr=Eb(An)),(Zt.flags&8388608&&!(St.flags&8388608)?Zt.objectType.flags:Zt.flags)&262144&&Zt!==ue&&Zt!==Z){const Bi=Gu(Zt);let Fo;Bi&&(ba(An,Bi)||(Fo=ba(St,Bi)))?_o(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Fo?Yn:gr,Rr,Hn(Bi)):(F=void 0,_o(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Rr,gr))}if(rt)rt===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&De&&d6e(St,Zt).length&&(rt=f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(c===xp)rt=f.Type_0_is_not_comparable_to_type_1;else if(Yn===Rr)rt=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(De&&d6e(St,Zt).length)rt=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(St.flags&128&&Zt.flags&1048576){const Bi=Oft(St,Zt);if(Bi){_o(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,gr,Rr,Hn(Bi));return}}rt=f.Type_0_is_not_assignable_to_type_1}_o(rt,gr,Rr)}function On(rt,St){const Zt=Sb(rt.symbol)?Hn(rt,rt.symbol.valueDeclaration):Hn(rt),Yn=Sb(St.symbol)?Hn(St,St.symbol.valueDeclaration):Hn(St);(Zl===rt&&ke===St||yc===rt&&Tt===St||ul===rt&&Pi===St||p8e()===rt&&xi===St)&&_o(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Yn,Zt)}function er(rt,St,Zt){return Wa(rt)?rt.target.readonly&&R9(St)?(Zt&&_o(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Hn(rt),Hn(St)),!1):cE(St):JM(rt)&&R9(St)?(Zt&&_o(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Hn(rt),Hn(St)),!1):Wa(St)?Uf(rt):!0}function ao(rt,St,Zt){return br(rt,St,3,Zt)}function br(rt,St,Zt=3,Yn=!1,Rr,An=0){if(rt===St)return-1;if(rt.flags&524288&&St.flags&402784252)return c===xp&&!(St.flags&131072)&&k8(St,rt,c)||k8(rt,St,c,Yn?_o:void 0)?-1:(Yn&&Po(rt,St,rt,St,Rr),0);const gr=T9(rt,!1);let Hr=T9(St,!0);if(gr===Hr)return-1;if(c===op)return gr.flags!==Hr.flags?0:gr.flags&67358815?-1:(ss(gr,Hr),Ai(gr,Hr,!1,0,Zt));if(gr.flags&262144&&zT(gr)===Hr)return-1;if(gr.flags&470302716&&Hr.flags&1048576){const Bi=Hr.types,Fo=Bi.length===2&&Bi[0].flags&98304?Bi[1]:Bi.length===3&&Bi[0].flags&98304&&Bi[1].flags&98304?Bi[2]:void 0;if(Fo&&!(Fo.flags&98304)&&(Hr=T9(Fo,!0),gr===Hr))return-1}if(c===xp&&!(Hr.flags&131072)&&k8(Hr,gr,c)||k8(gr,Hr,c,Yn?_o:void 0))return-1;if(gr.flags&469499904||Hr.flags&469499904){if(!(An&2)&&pE(gr)&&Wr(gr)&8192&&ju(gr,Hr,Yn))return Yn&&up(Rr,gr,St.aliasSymbol?St:Hr),0;const Fo=(c!==xp||__(gr))&&!(An&2)&&gr.flags&405405692&&gr!==Pe&&Hr.flags&2621440&&f6e(Hr)&&(gs(gr).length>0||ite(gr)),ma=!!(Wr(gr)&2048);if(Fo&&!Nut(gr,Hr,ma)){if(Yn){const Oo=Hn(rt.aliasSymbol?rt:gr),xa=Hn(St.aliasSymbol?St:Hr),Ns=Xo(gr,0),fs=Xo(gr,1);Ns.length>0&&br(ps(Ns[0]),Hr,1,!1)||fs.length>0&&br(ps(fs[0]),Hr,1,!1)?_o(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Oo,xa):_o(f.Type_0_has_no_properties_in_common_with_type_1,Oo,xa)}return 0}ss(gr,Hr);const Ei=gr.flags&1048576&&gr.types.length<4&&!(Hr.flags&1048576)||Hr.flags&1048576&&Hr.types.length<4&&!(gr.flags&469499904)?kd(gr,Hr,Yn,An):Ai(gr,Hr,Yn,An,Zt);if(Ei)return Ei}return Yn&&Po(rt,St,gr,Hr,Rr),0}function Po(rt,St,Zt,Yn,Rr){var An,gr;const Hr=!!ive(rt),Bi=!!ive(St);Zt=rt.aliasSymbol||Hr?rt:Zt,Yn=St.aliasSymbol||Bi?St:Yn;let Fo=Wn>0;if(Fo&&Wn--,Zt.flags&524288&&Yn.flags&524288){const ma=F;er(Zt,Yn,!0),F!==ma&&(Fo=!!F)}if(Zt.flags&524288&&Yn.flags&402784252)On(Zt,Yn);else if(Zt.symbol&&Zt.flags&524288&&Pe===Zt)_o(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Wr(Zt)&2048&&Yn.flags&2097152){const ma=Yn.types,_a=X1(of.IntrinsicAttributes,d),Ei=X1(of.IntrinsicClassAttributes,d);if(!Jt(_a)&&!Jt(Ei)&&(Or(ma,_a)||Or(ma,Ei)))return}else F=tge(F,St);if(!Rr&&Fo){Bn=[Zt,Yn];return}if(up(Rr,Zt,Yn),Zt.flags&262144&&((gr=(An=Zt.symbol)==null?void 0:An.declarations)!=null&&gr[0])&&!zT(Zt)){const ma=jge(Zt);if(ma.constraint=lo(Yn,U1(Zt,ma)),s9(ma)){const _a=Hn(Yn,Zt.symbol.declarations[0]);Hf(kr(Zt.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,_a))}}}function ss(rt,St){if(sr&&rt.flags&3145728&&St.flags&3145728){const Zt=rt,Yn=St;if(Zt.objectFlags&Yn.objectFlags&32768)return;const Rr=Zt.types.length,An=Yn.types.length;Rr*An>1e6&&sr.instant(sr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:rt.id,sourceSize:Rr,targetId:St.id,targetSize:An,pos:d==null?void 0:d.pos,end:d==null?void 0:d.end})}}function Ss(rt,St){return ei(rd(rt,(Yn,Rr)=>{var An;Rr=Ld(Rr);const gr=Rr.flags&3145728?l9(Rr,St):rE(Rr,St),Hr=gr&&dr(gr)||((An=cx(Rr,St))==null?void 0:An.type)||Oe;return Rn(Yn,Hr)},void 0)||et)}function ju(rt,St,Zt){var Yn;if(!U9(St)||!de&&Wr(St)&4096)return!1;const Rr=!!(Wr(rt)&2048);if((c===qd||c===xp)&&(QM(Pe,St)||!Rr&&mv(St)))return!1;let An=St,gr;St.flags&1048576&&(An=CFe(rt,St,br)||zyt(St),gr=An.flags&1048576?An.types:[An]);for(const Hr of gs(rt))if(Fa(Hr,rt.symbol)&&!u6e(rt,Hr)){if(!Yve(An,Hr.escapedName,Rr)){if(Zt){const Bi=dc(An,U9);if(!d)return N.fail();if(n1(d)||ld(d)||ld(d.parent)){Hr.valueDeclaration&&w_(Hr.valueDeclaration)&&Un(d)===Un(Hr.valueDeclaration.name)&&(d=Hr.valueDeclaration.name);const Fo=Si(Hr),ma=Z4e(Fo,Bi),_a=ma?Si(ma):void 0;_a?_o(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Fo,Hn(Bi),_a):_o(f.Property_0_does_not_exist_on_type_1,Fo,Hn(Bi))}else{const Fo=((Yn=rt.symbol)==null?void 0:Yn.declarations)&&Kc(rt.symbol.declarations);let ma;if(Hr.valueDeclaration&&Vn(Hr.valueDeclaration,_a=>_a===Fo)&&Un(Fo)===Un(d)){const _a=Hr.valueDeclaration;N.assertNode(_a,Mg);const Ei=_a.name;d=Ei,Ve(Ei)&&(ma=oye(Ei,Bi))}ma!==void 0?Nc(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Si(Hr),Hn(Bi),ma):Nc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(Hr),Hn(Bi))}}return!0}if(gr&&!br(dr(Hr),Ss(gr,Hr.escapedName),3,Zt))return Zt&&Eo(f.Types_of_property_0_are_incompatible,Si(Hr)),!0}return!1}function Fa(rt,St){return rt.valueDeclaration&&St.valueDeclaration&&rt.valueDeclaration.parent===St.valueDeclaration}function kd(rt,St,Zt,Yn){if(rt.flags&1048576){if(St.flags&1048576){const Rr=rt.origin;if(Rr&&Rr.flags&2097152&&St.aliasSymbol&&Or(Rr.types,St))return-1;const An=St.origin;if(An&&An.flags&1048576&&rt.aliasSymbol&&Or(An.types,rt))return-1}return c===xp?Ae(rt,St,Zt&&!(rt.flags&402784252),Yn):Cr(rt,St,Zt&&!(rt.flags&402784252),Yn)}if(St.flags&1048576)return bl(F8(rt),St,Zt&&!(rt.flags&402784252)&&!(St.flags&402784252),Yn);if(St.flags&2097152)return ut(rt,St,Zt,2);if(c===xp&&St.flags&402784252){const Rr=Zo(rt.types,An=>An.flags&465829888?Gu(An)||hn:An);if(Rr!==rt.types){if(rt=ya(Rr),rt.flags&131072)return 0;if(!(rt.flags&2097152))return br(rt,St,1,!1)||br(St,rt,1,!1)}}return Ae(rt,St,!1,1)}function Wl(rt,St){let Zt=-1;const Yn=rt.types;for(const Rr of Yn){const An=bl(Rr,St,!1,0);if(!An)return 0;Zt&=An}return Zt}function bl(rt,St,Zt,Yn){const Rr=St.types;if(St.flags&1048576){if(dv(Rr,rt))return-1;if(c!==xp&&Wr(St)&32768&&!(rt.flags&1024)&&(rt.flags&2688||(c===Nh||c===wf)&&rt.flags&256)){const gr=rt===rt.regularType?rt.freshType:rt.regularType,Hr=rt.flags&128?ke:rt.flags&256?Tt:rt.flags&2048?kt:void 0;return Hr&&dv(Rr,Hr)||gr&&dv(Rr,gr)?-1:0}const An=V6e(St,rt);if(An){const gr=br(rt,An,2,!1,void 0,Yn);if(gr)return gr}}for(const An of Rr){const gr=br(rt,An,2,!1,void 0,Yn);if(gr)return gr}if(Zt){const An=p6e(rt,St,br);An&&br(rt,An,2,!0,void 0,Yn)}return 0}function ut(rt,St,Zt,Yn){let Rr=-1;const An=St.types;for(const gr of An){const Hr=br(rt,gr,2,Zt,void 0,Yn);if(!Hr)return 0;Rr&=Hr}return Rr}function Ae(rt,St,Zt,Yn){const Rr=rt.types;if(rt.flags&1048576&&dv(Rr,St))return-1;const An=Rr.length;for(let gr=0;gr<An;gr++){const Hr=br(Rr[gr],St,1,Zt&&gr===An-1,void 0,Yn);if(Hr)return Hr}return 0}function kn(rt,St){return rt.flags&1048576&&St.flags&1048576&&!(rt.types[0].flags&32768)&&St.types[0].flags&32768?ZM(St,-32769):St}function Cr(rt,St,Zt,Yn){let Rr=-1;const An=rt.types,gr=kn(rt,St);for(let Hr=0;Hr<An.length;Hr++){const Bi=An[Hr];if(gr.flags&1048576&&An.length>=gr.types.length&&An.length%gr.types.length===0){const ma=br(Bi,gr.types[Hr%gr.types.length],3,!1,void 0,Yn);if(ma){Rr&=ma;continue}}const Fo=br(Bi,St,1,Zt,void 0,Yn);if(!Fo)return 0;Rr&=Fo}return Rr}function pi(rt=et,St=et,Zt=et,Yn,Rr){if(rt.length!==St.length&&c===op)return 0;const An=rt.length<=St.length?rt.length:St.length;let gr=-1;for(let Hr=0;Hr<An;Hr++){const Bi=Hr<Zt.length?Zt[Hr]:1,Fo=Bi&7;if(Fo!==4){const ma=rt[Hr],_a=St[Hr];let Ei=-1;if(Bi&8?Ei=c===op?br(ma,_a,3,!1):M8(ma,_a):Fo===1?Ei=br(ma,_a,3,Yn,void 0,Rr):Fo===2?Ei=br(_a,ma,3,Yn,void 0,Rr):Fo===3?(Ei=br(_a,ma,3,!1),Ei||(Ei=br(ma,_a,3,Yn,void 0,Rr))):(Ei=br(ma,_a,3,Yn,void 0,Rr),Ei&&(Ei&=br(_a,ma,3,Yn,void 0,Rr))),!Ei)return 0;gr&=Ei}}return gr}function Ai(rt,St,Zt,Yn,Rr){var An,gr,Hr;if(ar)return 0;const Bi=KZ(rt,St,Yn,c,!1),Fo=c.get(Bi);if(Fo!==void 0&&!(Zt&&Fo&2&&!(Fo&4))){if(da){const fs=Fo&24;fs&8&&lo(rt,Ts),fs&16&&lo(rt,uu)}return Fo&1?-1:0}if(tr<=0)return ar=!0,0;if(!re)re=[],be=new Set,ge=[],Je=[];else{if(be.has(Bi))return 3;const fs=Bi.startsWith("*")?KZ(rt,St,Yn,c,!0):void 0;if(fs&&be.has(fs))return 3;if(Dt===100||an===100)return ar=!0,0}const ma=gt;re[gt]=Bi,be.add(Bi),gt++;const _a=cn;Rr&1&&(ge[Dt]=rt,Dt++,!(cn&1)&&qM(rt,ge,Dt)&&(cn|=1)),Rr&2&&(Je[an]=St,an++,!(cn&2)&&qM(St,Je,an)&&(cn|=2));let Ei,Oo=0;da&&(Ei=da,da=fs=>(Oo|=fs?16:8,Ei(fs)));let xa;return cn===3?((An=sr)==null||An.instant(sr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:rt.id,sourceIdStack:ge.map(fs=>fs.id),targetId:St.id,targetIdStack:Je.map(fs=>fs.id),depth:Dt,targetDepth:an}),xa=3):((gr=sr)==null||gr.push(sr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:rt.id,targetId:St.id}),xa=Ii(rt,St,Zt,Yn),(Hr=sr)==null||Hr.pop()),da&&(da=Ei),Rr&1&&Dt--,Rr&2&&an--,cn=_a,xa?(xa===-1||Dt===0&&an===0)&&Ns(xa===-1||xa===3):(c.set(Bi,(Zt?4:0)|2|Oo),tr--,Ns(!1)),xa;function Ns(fs){for(let Cc=ma;Cc<gt;Cc++)be.delete(re[Cc]),fs&&(c.set(re[Cc],1|Oo),tr--);gt=ma}}function Ii(rt,St,Zt,Yn){const Rr=Ro();let An=xr(rt,St,Zt,Yn,Rr);if(c!==op){if(!An&&(rt.flags&2097152||rt.flags&262144&&St.flags&1048576)){const gr=alt(rt.flags&2097152?rt.types:[rt],!!(St.flags&1048576));gr&&cp(gr,Hr=>Hr!==rt)&&(An=br(gr,St,1,!1,void 0,Yn))}An&&!(Yn&2)&&St.flags&2097152&&!HT(St)&&rt.flags&2621440?(An&=ki(rt,St,Zt,void 0,!1,0),An&&pE(rt)&&Wr(rt)&8192&&(An&=Ds(rt,St,!1,Zt,0))):An&&wZ(St)&&!cE(St)&&rt.flags&2097152&&Ld(rt).flags&3670016&&!bt(rt.types,gr=>gr===St||!!(Wr(gr)&262144))&&(An&=ki(rt,St,Zt,void 0,!0,Yn))}return An&&nr(Rr),An}function Ur(rt,St){const Zt=Ld(FT(St)),Yn=[];return Jhe(Zt,8576,!1,Rr=>void Yn.push(lo(rt,N8(St.mapper,d_(St),Rr)))),ei(Yn)}function xr(rt,St,Zt,Yn,Rr){let An,gr,Hr=!1,Bi=rt.flags;const Fo=St.flags;if(c===op){if(Bi&3145728){let Ei=Wl(rt,St);return Ei&&(Ei&=Wl(St,rt)),Ei}if(Bi&4194304)return br(rt.type,St.type,3,!1);if(Bi&8388608&&(An=br(rt.objectType,St.objectType,3,!1))&&(An&=br(rt.indexType,St.indexType,3,!1))||Bi&16777216&&rt.root.isDistributive===St.root.isDistributive&&(An=br(rt.checkType,St.checkType,3,!1))&&(An&=br(rt.extendsType,St.extendsType,3,!1))&&(An&=br(aE(rt),aE(St),3,!1))&&(An&=br(sE(rt),sE(St),3,!1))||Bi&33554432&&(An=br(rt.baseType,St.baseType,3,!1))&&(An&=br(rt.constraint,St.constraint,3,!1)))return An;if(!(Bi&524288))return 0}else if(Bi&3145728||Fo&3145728){if(An=kd(rt,St,Zt,Yn))return An;if(!(Bi&465829888||Bi&524288&&Fo&1048576||Bi&2097152&&Fo&467402752))return 0}if(Bi&17301504&&rt.aliasSymbol&&rt.aliasTypeArguments&&rt.aliasSymbol===St.aliasSymbol&&!(qZ(rt)||qZ(St))){const Ei=m6e(rt.aliasSymbol);if(Ei===et)return 1;const Oo=Ki(rt.aliasSymbol).typeParameters,xa=zh(Oo),Ns=Mb(rt.aliasTypeArguments,Oo,xa,lr(rt.aliasSymbol.valueDeclaration)),fs=Mb(St.aliasTypeArguments,Oo,xa,lr(rt.aliasSymbol.valueDeclaration)),Cc=_a(Ns,fs,Ei,Yn);if(Cc!==void 0)return Cc}if(T6e(rt)&&!rt.target.readonly&&(An=br(Js(rt)[0],St,1))||T6e(St)&&(St.target.readonly||R9(Gu(rt)||rt))&&(An=br(rt,Js(St)[0],2)))return An;if(Fo&262144){if(Wr(rt)&32&&!rt.declaration.nameType&&br(X_(St),yf(rt),3)&&!(Fh(rt)&4)){const Ei=cv(rt),Oo=Pp(St,d_(rt));if(An=br(Ei,Oo,3,Zt))return An}if(c===xp&&Bi&262144){let Ei=Md(rt);if(Ei)for(;Ei&&Gm(Ei,Oo=>!!(Oo.flags&262144));){if(An=br(Ei,St,1,!1))return An;Ei=Md(Ei)}return 0}}else if(Fo&4194304){const Ei=St.type;if(Bi&4194304&&(An=br(Ei,rt.type,3,!1)))return An;if(Wa(Ei)){if(An=br(rt,E8e(Ei),2,Zt))return An}else{const Oo=Xhe(Ei);if(Oo){if(br(rt,X_(Oo,St.indexFlags|4),2,Zt)===-1)return-1}else if(Kd(Ei)){const xa=cy(Ei),Ns=yf(Ei);let fs;if(xa&&vN(Ei)){const Cc=Ur(xa,Ei);fs=ei([Cc,xa])}else fs=xa||Ns;if(br(rt,fs,2,Zt)===-1)return-1}}}else if(Fo&8388608){if(Bi&8388608){if((An=br(rt.objectType,St.objectType,3,Zt))&&(An&=br(rt.indexType,St.indexType,3,Zt)),An)return An;Zt&&(gr=F)}if(c===qd||c===xp){const Ei=St.objectType,Oo=St.indexType,xa=Gu(Ei)||Ei,Ns=Gu(Oo)||Oo;if(!HT(xa)&&!qT(Ns)){const fs=4|(xa!==Ei?2:0),Cc=kb(xa,Ns,fs);if(Cc){if(Zt&&gr&&nr(Rr),An=br(rt,Cc,2,Zt,void 0,Yn))return An;Zt&&gr&&F&&(F=ma([gr])<=ma([F])?gr:F)}}}Zt&&(gr=void 0)}else if(Kd(St)&&c!==op){const Ei=!!St.declaration.nameType,Oo=cv(St),xa=Fh(St);if(!(xa&8)){if(!Ei&&Oo.flags&8388608&&Oo.objectType===rt&&Oo.indexType===d_(St))return-1;if(!Kd(rt)){const Ns=Ei?cy(St):yf(St),fs=X_(rt,2),Cc=xa&4,Uh=Cc?i9(Ns,fs):void 0;if(Cc?!(Uh.flags&131072):br(Ns,fs,3)){const yv=cv(St),aA=d_(St),sA=ZM(yv,-98305);if(!Ei&&sA.flags&8388608&&sA.indexType===aA){if(An=br(rt,sA.objectType,2,Zt))return An}else{const f2=Ei?Uh||Ns:Uh?ya([Uh,aA]):aA,y_=Pp(rt,f2);if(An=br(y_,yv,3,Zt))return An}}gr=F,nr(Rr)}}}else if(Fo&16777216){if(qM(St,Je,an,10))return 3;const Ei=St;if(!Ei.root.inferTypeParameters&&!Vct(Ei.root)&&!(rt.flags&16777216&&rt.root===Ei.root)){const Oo=!ba(P8(Ei.checkType),P8(Ei.extendsType)),xa=!Oo&&ba(KT(Ei.checkType),KT(Ei.extendsType));if((An=Oo?-1:br(rt,aE(Ei),2,!1,void 0,Yn))&&(An&=xa?-1:br(rt,sE(Ei),2,!1,void 0,Yn),An))return An}}else if(Fo&134217728){if(Bi&134217728){if(c===xp)return _dt(rt,St)?0:-1;lo(rt,uu)}if(cee(rt,St))return-1}else if(St.flags&268435456&&!(rt.flags&268435456)&&lee(rt,St))return-1;if(Bi&8650752){if(!(Bi&8388608&&Fo&8388608)){const Ei=zT(rt)||hn;if(An=br(Ei,St,1,!1,void 0,Yn))return An;if(An=br(Jp(Ei,rt),St,1,Zt&&Ei!==hn&&!(Fo&Bi&262144),void 0,Yn))return An;if(Zhe(rt)){const Oo=zT(rt.indexType);if(Oo&&(An=br(Pp(rt.objectType,Oo),St,1,Zt)))return An}}}else if(Bi&4194304){const Ei=Lge(rt.type,rt.indexFlags)&&Wr(rt.type)&32;if(An=br(Fs,St,1,Zt&&!Ei))return An;if(Ei){const Oo=rt.type,xa=cy(Oo),Ns=xa&&vN(Oo)?Ur(xa,Oo):xa||yf(Oo);if(An=br(Ns,St,1,Zt))return An}}else if(Bi&134217728&&!(Fo&524288)){if(!(Fo&134217728)){const Ei=Gu(rt);if(Ei&&Ei!==rt&&(An=br(Ei,St,1,Zt)))return An}}else if(Bi&268435456)if(Fo&268435456){if(rt.symbol!==St.symbol)return 0;if(An=br(rt.type,St.type,3,Zt))return An}else{const Ei=Gu(rt);if(Ei&&(An=br(Ei,St,1,Zt)))return An}else if(Bi&16777216){if(qM(rt,ge,Dt,10))return 3;if(Fo&16777216){const xa=rt.root.inferTypeParameters;let Ns=rt.extendsType,fs;if(xa){const Cc=z8(xa,void 0,0,ao);gv(Cc.inferences,St.extendsType,Ns,1536),Ns=lo(Ns,Cc.mapper),fs=Cc.mapper}if(fv(Ns,St.extendsType)&&(br(rt.checkType,St.checkType,3)||br(St.checkType,rt.checkType,3))&&((An=br(lo(aE(rt),fs),aE(St),3,Zt))&&(An&=br(sE(rt),sE(St),3,Zt)),An))return An}const Ei=Yhe(rt);if(Ei&&(An=br(Ei,St,1,Zt)))return An;const Oo=!(Fo&16777216)&&s9(rt)?kOe(rt):void 0;if(Oo&&(nr(Rr),An=br(Oo,St,1,Zt)))return An}else{if(c!==Nh&&c!==wf&&Zst(St)&&mv(rt))return-1;if(Kd(St))return Kd(rt)&&(An=lt(rt,St,Zt))?An:0;const Ei=!!(Bi&402784252);if(c!==op)rt=Ld(rt),Bi=rt.flags;else if(Kd(rt))return 0;if(Wr(rt)&4&&Wr(St)&4&&rt.target===St.target&&!Wa(rt)&&!(qZ(rt)||qZ(St))){if($Z(rt))return-1;const Oo=eve(rt.target);if(Oo===et)return 1;const xa=_a(Js(rt),Js(St),Oo,Yn);if(xa!==void 0)return xa}else{if(JM(St)?cp(rt,cE):Uf(St)&&cp(rt,Oo=>Wa(Oo)&&!Oo.target.readonly))return c!==op?br(iE(rt,Tt)||j,iE(St,Tt)||j,3,Zt):0;if(zb(rt)&&Wa(St)&&!zb(St)){const Oo=uv(rt);if(Oo!==rt)return br(Oo,St,1,Zt)}else if((c===Nh||c===wf)&&mv(St)&&Wr(St)&8192&&!mv(rt))return 0}if(Bi&2621440&&Fo&524288){const Oo=Zt&&F===Rr.errorInfo&&!Ei;if(An=ki(rt,St,Oo,void 0,!1,Yn),An&&(An&=Go(rt,St,0,Oo,Yn),An&&(An&=Go(rt,St,1,Oo,Yn),An&&(An&=Ds(rt,St,Ei,Oo,Yn)))),Hr&&An)F=gr||F||Rr.errorInfo;else if(An)return An}if(Bi&2621440&&Fo&1048576){const Oo=ZM(St,36175872);if(Oo.flags&1048576){const xa=wt(rt,Oo);if(xa)return xa}}}return 0;function ma(Ei){return Ei?rd(Ei,(Oo,xa)=>Oo+1+ma(xa.next),0):0}function _a(Ei,Oo,xa,Ns){if(An=pi(Ei,Oo,xa,Zt,Ns))return An;if(bt(xa,Cc=>!!(Cc&24))){gr=void 0,nr(Rr);return}const fs=Oo&&Cut(Oo,xa);if(Hr=!fs,xa!==et&&!fs){if(Hr&&!(Zt&&bt(xa,Cc=>(Cc&7)===0)))return 0;gr=F,nr(Rr)}}}function lt(rt,St,Zt){if(c===xp||(c===op?Fh(rt)===Fh(St):Khe(rt)<=Khe(St))){let Rr;const An=yf(St),gr=lo(yf(rt),Khe(rt)<0?Ts:uu);if(Rr=br(An,gr,3,Zt)){const Hr=Mp([d_(rt)],[d_(St)]);if(lo(cy(rt),Hr)===lo(cy(St),Hr))return Rr&br(lo(cv(rt),Hr),cv(St),3,Zt)}}return 0}function wt(rt,St){var Zt;const Yn=gs(rt),Rr=G6e(Yn,St);if(!Rr)return 0;let An=1;for(const _a of Rr)if(An*=jdt(Db(_a)),An>25)return(Zt=sr)==null||Zt.instant(sr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:rt.id,targetId:St.id,numCombinations:An}),0;const gr=new Array(Rr.length),Hr=new Set;for(let _a=0;_a<Rr.length;_a++){const Ei=Rr[_a],Oo=Db(Ei);gr[_a]=Oo.flags&1048576?Oo.types:[Oo],Hr.add(Ei.escapedName)}const Bi=cne(gr),Fo=[];for(const _a of Bi){let Ei=!1;e:for(const Oo of St.types){for(let xa=0;xa<Rr.length;xa++){const Ns=Rr[xa],fs=va(Oo,Ns.escapedName);if(!fs)continue e;if(Ns===fs)continue;if(!_n(rt,St,Ns,fs,Uh=>_a[xa],!1,0,X||c===xp))continue e}Ef(Fo,Oo,xv),Ei=!0}if(!Ei)return 0}let ma=-1;for(const _a of Fo)if(ma&=ki(rt,_a,!1,Hr,!1,0),ma&&(ma&=Go(rt,_a,0,!1,0),ma&&(ma&=Go(rt,_a,1,!1,0),ma&&!(Wa(rt)&&Wa(_a))&&(ma&=Ds(rt,_a,!1,!1,0)))),!ma)return ma;return ma}function dn(rt,St){if(!St||rt.length===0)return rt;let Zt;for(let Yn=0;Yn<rt.length;Yn++)St.has(rt[Yn].escapedName)?Zt||(Zt=rt.slice(0,Yn)):Zt&&Zt.push(rt[Yn]);return Zt||rt}function Ut(rt,St,Zt,Yn,Rr){const An=X&&!!(xl(St)&48),gr=lp(Db(St),!1,An),Hr=Zt(rt);return br(Hr,gr,3,Yn,void 0,Rr)}function _n(rt,St,Zt,Yn,Rr,An,gr,Hr){const Bi=xf(Zt),Fo=xf(Yn);if(Bi&2||Fo&2){if(Zt.valueDeclaration!==Yn.valueDeclaration)return An&&(Bi&2&&Fo&2?_o(f.Types_have_separate_declarations_of_a_private_property_0,Si(Yn)):_o(f.Property_0_is_private_in_type_1_but_not_in_type_2,Si(Yn),Hn(Bi&2?rt:St),Hn(Bi&2?St:rt))),0}else if(Fo&4){if(!wut(Zt,Yn))return An&&_o(f.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Si(Yn),Hn(mx(Zt)||rt),Hn(mx(Yn)||St)),0}else if(Bi&4)return An&&_o(f.Property_0_is_protected_in_type_1_but_public_in_type_2,Si(Yn),Hn(rt),Hn(St)),0;if(c===wf&&g_(Zt)&&!g_(Yn))return 0;const ma=Ut(Zt,Yn,Rr,An,gr);return ma?!Hr&&Zt.flags&16777216&&Yn.flags&106500&&!(Yn.flags&16777216)?(An&&_o(f.Property_0_is_optional_in_type_1_but_required_in_type_2,Si(Yn),Hn(rt),Hn(St)),0):ma:(An&&Eo(f.Types_of_property_0_are_incompatible,Si(Yn)),0)}function Fn(rt,St,Zt,Yn){let Rr=!1;if(Zt.valueDeclaration&&ad(Zt.valueDeclaration)&&qi(Zt.valueDeclaration.name)&&rt.symbol&&rt.symbol.flags&32){const gr=Zt.valueDeclaration.name.escapedText,Hr=ek(rt.symbol,gr);if(Hr&&va(rt,Hr)){const Bi=w.getDeclarationName(rt.symbol.valueDeclaration),Fo=w.getDeclarationName(St.symbol.valueDeclaration);_o(f.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,km(gr),km(Bi.escapedText===""?wF:Bi),km(Fo.escapedText===""?wF:Fo));return}}const An=zo(hve(rt,St,Yn,!1));if((!_||_.code!==f.Class_0_incorrectly_implements_interface_1.code&&_.code!==f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(Rr=!0),An.length===1){const gr=Si(Zt,void 0,0,20);_o(f.Property_0_is_missing_in_type_1_but_required_in_type_2,gr,...ox(rt,St)),Ne(Zt.declarations)&&Hf(kr(Zt.declarations[0],f._0_is_declared_here,gr)),Rr&&F&&Wn++}else er(rt,St,!1)&&(An.length>5?_o(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Hn(rt),Hn(St),Wt(An.slice(0,4),gr=>Si(gr)).join(", "),An.length-4):_o(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Hn(rt),Hn(St),Wt(An,gr=>Si(gr)).join(", ")),Rr&&F&&Wn++)}function ki(rt,St,Zt,Yn,Rr,An){if(c===op)return Br(rt,St,Yn);let gr=-1;if(Wa(St)){if(cE(rt)){if(!St.target.readonly&&(JM(rt)||Wa(rt)&&rt.target.readonly))return 0;const _a=dy(rt),Ei=dy(St),Oo=Wa(rt)?rt.target.combinedFlags&4:4,xa=St.target.combinedFlags&4,Ns=Wa(rt)?rt.target.minLength:0,fs=St.target.minLength;if(!Oo&&_a<fs)return Zt&&_o(f.Source_has_0_element_s_but_target_requires_1,_a,fs),0;if(!xa&&Ei<Ns)return Zt&&_o(f.Source_has_0_element_s_but_target_allows_only_1,Ns,Ei),0;if(!xa&&(Oo||Ei<_a))return Zt&&(Ns<fs?_o(f.Target_requires_0_element_s_but_source_may_have_fewer,fs):_o(f.Target_allows_only_0_element_s_but_source_may_have_more,Ei)),0;const Cc=Js(rt),Uh=Js(St),yv=lct(St.target,11),aA=x8(St.target,11),sA=St.target.hasRestElement;let f2=!!Yn;for(let y_=0;y_<_a;y_++){const yx=Wa(rt)?rt.target.elementFlags[y_]:4,jm=_a-1-y_,Pt=sA&&y_>=yv?Ei-1-Math.min(jm,aA):y_,Dr=St.target.elementFlags[Pt];if(Dr&8&&!(yx&8))return Zt&&_o(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Pt),0;if(yx&8&&!(Dr&12))return Zt&&_o(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,y_,Pt),0;if(Dr&1&&!(yx&1))return Zt&&_o(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Pt),0;if(f2&&((yx&12||Dr&12)&&(f2=!1),f2&&(Yn!=null&&Yn.has(""+y_))))continue;const fi=Gb(Cc[y_],!!(yx&Dr&2)),Kr=Uh[Pt],ui=yx&8&&Dr&4?Vu(Kr):Gb(Kr,!!(Dr&2)),ns=br(fi,ui,3,Zt,void 0,An);if(!ns)return Zt&&(Ei>1||_a>1)&&(sA&&y_>=yv&&jm>=aA&&yv!==_a-aA-1?Eo(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,yv,_a-aA-1,Pt):Eo(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,y_,Pt)),0;gr&=ns}return gr}if(St.target.combinedFlags&12)return 0}const Hr=(c===Nh||c===wf)&&!pE(rt)&&!$Z(rt)&&!Wa(rt),Bi=gve(rt,St,Hr,!1);if(Bi)return Zt&&Cn(rt,St)&&Fn(rt,St,Bi,Hr),0;if(pE(St)){for(const _a of dn(gs(rt),Yn))if(!rE(St,_a.escapedName)&&!(dr(_a).flags&32768))return Zt&&_o(f.Property_0_does_not_exist_on_type_1,Si(_a),Hn(St)),0}const Fo=gs(St),ma=Wa(rt)&&Wa(St);for(const _a of dn(Fo,Yn)){const Ei=_a.escapedName;if(!(_a.flags&4194304)&&(!ma||og(Ei)||Ei==="length")&&(!Rr||_a.flags&16777216)){const Oo=va(rt,Ei);if(Oo&&Oo!==_a){const xa=_n(rt,St,Oo,_a,Db,Zt,An,c===xp);if(!xa)return 0;gr&=xa}}}return gr}function Br(rt,St,Zt){if(!(rt.flags&524288&&St.flags&524288))return 0;const Yn=dn(Pb(rt),Zt),Rr=dn(Pb(St),Zt);if(Yn.length!==Rr.length)return 0;let An=-1;for(const gr of Yn){const Hr=rE(St,gr.escapedName);if(!Hr)return 0;const Bi=nve(gr,Hr,br);if(!Bi)return 0;An&=Bi}return An}function Go(rt,St,Zt,Yn,Rr){var An,gr;if(c===op)return Ea(rt,St,Zt);if(St===nn||rt===nn)return-1;const Hr=rt.symbol&&Z_(rt.symbol.valueDeclaration),Bi=St.symbol&&Z_(St.symbol.valueDeclaration),Fo=Xo(rt,Hr&&Zt===1?0:Zt),ma=Xo(St,Bi&&Zt===1?0:Zt);if(Zt===1&&Fo.length&&ma.length){const Ns=!!(Fo[0].flags&4),fs=!!(ma[0].flags&4);if(Ns&&!fs)return Yn&&_o(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!v_(Fo[0],ma[0],Yn))return 0}let _a=-1;const Ei=Zt===1?Zi:ti,Oo=Wr(rt),xa=Wr(St);if(Oo&64&&xa&64&&rt.symbol===St.symbol||Oo&4&&xa&4&&rt.target===St.target){N.assertEqual(Fo.length,ma.length);for(let Ns=0;Ns<ma.length;Ns++){const fs=fo(Fo[Ns],ma[Ns],!0,Yn,Rr,Ei(Fo[Ns],ma[Ns]));if(!fs)return 0;_a&=fs}}else if(Fo.length===1&&ma.length===1){const Ns=c===xp||!!V.noStrictGenericChecks,fs=Ua(Fo),Cc=Ua(ma);if(_a=fo(fs,Cc,Ns,Yn,Rr,Ei(fs,Cc)),!_a&&Yn&&Zt===1&&Oo&xa&&(((An=Cc.declaration)==null?void 0:An.kind)===176||((gr=fs.declaration)==null?void 0:gr.kind)===176)){const Uh=yv=>kh(yv,void 0,262144,Zt);return _o(f.Type_0_is_not_assignable_to_type_1,Uh(fs),Uh(Cc)),_o(f.Types_of_construct_signatures_are_incompatible),_a}}else e:for(const Ns of ma){const fs=Ro();let Cc=Yn;for(const Uh of Fo){const yv=fo(Uh,Ns,!0,Cc,Rr,Ei(Uh,Ns));if(yv){_a&=yv,nr(fs);continue e}Cc=!1}return Cc&&_o(f.Type_0_provides_no_match_for_the_signature_1,Hn(rt),kh(Ns,void 0,void 0,Zt)),0}return _a}function Cn(rt,St){const Zt=c9(rt,0),Yn=c9(rt,1),Rr=Pb(rt);return(Zt.length||Yn.length)&&!Rr.length?!!(Xo(St,0).length&&Zt.length||Xo(St,1).length&&Yn.length):!0}function ti(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(Zt,Yn)=>Eo(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Hn(Zt),Hn(Yn)):(Zt,Yn)=>Eo(f.Call_signature_return_types_0_and_1_are_incompatible,Hn(Zt),Hn(Yn))}function Zi(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(Zt,Yn)=>Eo(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Hn(Zt),Hn(Yn)):(Zt,Yn)=>Eo(f.Construct_signature_return_types_0_and_1_are_incompatible,Hn(Zt),Hn(Yn))}function fo(rt,St,Zt,Yn,Rr,An){const gr=c===Nh?16:c===wf?24:0;return Xge(Zt?A8(rt):rt,Zt?A8(St):St,gr,Yn,_o,An,Hr,uu);function Hr(Bi,Fo,ma){return br(Bi,Fo,3,ma,void 0,Rr)}}function Ea(rt,St,Zt){const Yn=Xo(rt,Zt),Rr=Xo(St,Zt);if(Yn.length!==Rr.length)return 0;let An=-1;for(let gr=0;gr<Yn.length;gr++){const Hr=x9(Yn[gr],Rr[gr],!1,!1,!1,br);if(!Hr)return 0;An&=Hr}return An}function Ec(rt,St,Zt,Yn){let Rr=-1;const An=St.keyType,gr=rt.flags&2097152?a9(rt):Pb(rt);for(const Hr of gr)if(!u6e(rt,Hr)&&lx(TN(Hr,8576),An)){const Bi=Db(Hr),Fo=De||Bi.flags&32768||An===Tt||!(Hr.flags&16777216)?Bi:mm(Bi,524288),ma=br(Fo,St.type,3,Zt,void 0,Yn);if(!ma)return Zt&&_o(f.Property_0_is_incompatible_with_index_signature,Si(Hr)),0;Rr&=ma}for(const Hr of gd(rt))if(lx(Hr.keyType,An)){const Bi=ks(Hr,St,Zt,Yn);if(!Bi)return 0;Rr&=Bi}return Rr}function ks(rt,St,Zt,Yn){const Rr=br(rt.type,St.type,3,Zt,void 0,Yn);return!Rr&&Zt&&(rt.keyType===St.keyType?_o(f._0_index_signatures_are_incompatible,Hn(rt.keyType)):_o(f._0_and_1_index_signatures_are_incompatible,Hn(rt.keyType),Hn(St.keyType))),Rr}function Ds(rt,St,Zt,Yn,Rr){if(c===op)return Ks(rt,St);const An=gd(St),gr=bt(An,Bi=>Bi.keyType===ke);let Hr=-1;for(const Bi of An){const Fo=c!==wf&&!Zt&&gr&&Bi.type.flags&1?-1:Kd(rt)&&gr?br(cv(rt),Bi.type,3,Yn):Du(rt,Bi,Yn,Rr);if(!Fo)return 0;Hr&=Fo}return Hr}function Du(rt,St,Zt,Yn){const Rr=E8(rt,St.keyType);return Rr?ks(Rr,St,Zt,Yn):!(Yn&1)&&(c!==wf||Wr(rt)&8192)&&ree(rt)?Ec(rt,St,Zt,Yn):(Zt&&_o(f.Index_signature_for_type_0_is_missing_in_type_1,Hn(St.keyType),Hn(rt)),0)}function Ks(rt,St){const Zt=gd(rt),Yn=gd(St);if(Zt.length!==Yn.length)return 0;for(const Rr of Yn){const An=Sg(rt,Rr.keyType);if(!(An&&br(An.type,Rr.type,3)&&An.isReadonly===Rr.isReadonly))return 0}return-1}function v_(rt,St,Zt){if(!rt.declaration||!St.declaration)return!0;const Yn=wA(rt.declaration,6),Rr=wA(St.declaration,6);return Rr===2||Rr===4&&Yn!==2||Rr!==4&&!Yn?!0:(Zt&&_o(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,wT(Yn),wT(Rr)),!1)}}function Qge(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Xe(n.types,Qge);if(n.flags&465829888){const a=zT(n);if(a&&a!==n)return Qge(a)}return __(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function d6e(n,a){return Wa(n)&&Wa(a)?et:gs(a).filter(c=>HZ(Ke(n,c.escapedName),dr(c)))}function HZ(n,a){return!!n&&!!a&&Cl(n,32768)&&!!W8(a)}function Dut(n){return gs(n).filter(a=>W8(dr(a)))}function p6e(n,a,c=Jge){return CFe(n,a,c)||wyt(n,a)||Oyt(n,a)||Wyt(n,a)||Fyt(n,a)}function Zge(n,a,c){const d=n.types,_=d.map(x=>x.flags&402784252?0:-1);for(const[x,k]of a){let F=!1;for(let H=0;H<d.length;H++)if(_[H]){const re=xt(d[H],k);re&&c(x(),re)?F=!0:_[H]=3}for(let H=0;H<d.length;H++)_[H]===3&&(_[H]=F?0:-1)}const v=Or(_,0)?ei(d.filter((x,k)=>_[k]),0):n;return v.flags&131072?n:v}function f6e(n){if(n.flags&524288){const a=p_(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Jn(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?Jn(n.types,f6e):!1}function Nut(n,a,c){for(const d of gs(n))if(Yve(a,d.escapedName,c))return!0;return!1}function eve(n){return n===$o||n===na||n.objectFlags&8?Q:_6e(n.symbol,n.typeParameters)}function m6e(n){return _6e(n,Ki(n).typeParameters)}function _6e(n,a=et){var c,d;const _=Ki(n);if(!_.variances){(c=sr)==null||c.push(sr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:vd(Zs(n))});const v=W0;W0||(W0=!0,zI=fu.length),_.variances=et;const x=[];for(const k of a){const F=tve(k);let H=F&16384?F&8192?0:1:F&8192?2:void 0;if(H===void 0){let re=!1,be=!1;const ge=da;da=Dt=>Dt?be=!0:re=!0;const Je=A9(n,k,Tp),gt=A9(n,k,Ms);H=(ba(gt,Je)?1:0)|(ba(Je,gt)?2:0),H===3&&ba(A9(n,k,xc),Je)&&(H=4),da=ge,(re||be)&&(re&&(H|=8),be&&(H|=16))}x.push(H)}v||(W0=!1,zI=0),_.variances=x,(d=sr)==null||d.pop({variances:x.map(N.formatVariance)})}return _.variances}function A9(n,a,c){const d=U1(a,c),_=Zs(n);if(Jt(_))return _;const v=n.flags&524288?EN(n,fy(Ki(n).typeParameters,d)):uy(_,fy(_.typeParameters,d));return mt.add(vd(v)),v}function qZ(n){return mt.has(vd(n))}function tve(n){var a;return rd((a=n.symbol)==null?void 0:a.declarations,(c,d)=>c|ud(d),0)&28672}function Cut(n,a){for(let c=0;c<a.length;c++)if((a[c]&7)===1&&n[c].flags&16384)return!0;return!1}function Put(n){return n.flags&262144&&!Md(n)}function Mut(n){return!!(Wr(n)&4)&&!n.node}function JZ(n){return Mut(n)&&bt(Js(n),a=>!!(a.flags&262144)||JZ(a))}function Lut(n,a,c,d){const _=[];let v="";const x=F(n,0),k=F(a,0);return`${v}${x},${k}${c}`;function F(H,re=0){let be=""+H.target.id;for(const ge of Js(H)){if(ge.flags&262144){if(d||Put(ge)){let Je=_.indexOf(ge);Je<0&&(Je=_.length,_.push(ge)),be+="="+Je;continue}v="*"}else if(re<4&&JZ(ge)){be+="<"+F(ge,re+1)+">";continue}be+="-"+ge.id}return be}}function KZ(n,a,c,d,_){if(d===op&&n.id>a.id){const x=n;n=a,a=x}const v=c?":"+c:"";return JZ(n)&&JZ(a)?Lut(n,a,v,_):`${n.id},${a.id}${v}`}function I9(n,a){if(xl(n)&6){for(const c of n.links.containingType.types){const d=va(c,n.escapedName),_=d&&I9(d,a);if(_)return _}return}return a(n)}function mx(n){return n.parent&&n.parent.flags&32?Zs(Cd(n)):void 0}function XZ(n){const a=mx(n),c=a&&Cp(a)[0];return c&&Ke(c,n.escapedName)}function kut(n,a){return I9(n,c=>{const d=mx(c);return d?_N(d,a):!1})}function wut(n,a){return!I9(a,c=>xf(c)&4?!kut(n,mx(c)):!1)}function h6e(n,a,c){return I9(a,d=>xf(d,c)&4?!_N(n,mx(d)):!1)?void 0:n}function qM(n,a,c,d=3){if(c>=d){if((Wr(n)&96)===96&&(n=g6e(n)),n.flags&2097152)return bt(n.types,k=>qM(k,a,c,d));const _=YZ(n);let v=0,x=0;for(let k=0;k<c;k++){const F=a[k];if(v6e(F,_)){if(F.id>=x&&(v++,v>=d))return!0;x=F.id}}}return!1}function g6e(n){let a;for(;(Wr(n)&96)===96&&(a=FT(n))&&(a.symbol||a.flags&2097152&&bt(a.types,c=>!!c.symbol));)n=a;return n}function v6e(n,a){return(Wr(n)&96)===96&&(n=g6e(n)),n.flags&2097152?bt(n.types,c=>v6e(c,a)):YZ(n)===a}function YZ(n){if(n.flags&524288&&!yve(n)){if(Wr(n)&4&&n.node)return n.node;if(n.symbol&&!(Wr(n)&16&&n.symbol.flags&32))return n.symbol;if(Wa(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 Out(n,a){return nve(n,a,M8)!==0}function nve(n,a,c){if(n===a)return-1;const d=xf(n)&6,_=xf(a)&6;if(d!==_)return 0;if(d){if(wN(n)!==wN(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return g_(n)!==g_(a)?0:c(dr(n),dr(a))}function Wut(n,a,c){const d=Xp(n),_=Xp(a),v=eh(n),x=eh(a),k=jh(n),F=jh(a);return!!(d===_&&v===x&&k===F||c&&v<=x)}function x9(n,a,c,d,_,v){if(n===a)return-1;if(!Wut(n,a,c)||Ne(n.typeParameters)!==Ne(a.typeParameters))return 0;if(a.typeParameters){const F=Mp(n.typeParameters,a.typeParameters);for(let H=0;H<a.typeParameters.length;H++){const re=n.typeParameters[H],be=a.typeParameters[H];if(!(re===be||v(lo(GM(re),F)||hn,GM(be)||hn)&&v(lo(GT(re),F)||hn,GT(be)||hn)))return 0}n=xN(n,F,!0)}let x=-1;if(!d){const F=oE(n);if(F){const H=oE(a);if(H){const re=v(F,H);if(!re)return 0;x&=re}}}const k=Xp(a);for(let F=0;F<k;F++){const H=h_(n,F),re=h_(a,F),be=v(re,H);if(!be)return 0;x&=be}if(!_){const F=Gf(n),H=Gf(a);x&=F||H?Fut(F,H,v):v(ps(n),ps(a))}return x}function Fut(n,a,c){return n&&a&&Cge(n,a)?n.type===a.type?-1:n.type&&a.type?c(n.type,a.type):0:0}function zut(n){let a;for(const c of n)if(!(c.flags&131072)){const d=_v(c);if(a??(a=d),d===c||d!==a)return!1}return!0}function y6e(n){return rd(n,(a,c)=>a|(c.flags&1048576?y6e(c.types):c.flags),0)}function But(n){if(n.length===1)return n[0];const a=X?Zo(n,d=>dc(d,_=>!(_.flags&98304))):n,c=zut(a)?ei(a):rd(a,(d,_)=>Wb(d,_)?_:d);return a===n?c:N9(c,y6e(n)&98304)}function Gut(n){return rd(n,(a,c)=>Wb(c,a)?c:a)}function Uf(n){return!!(Wr(n)&4)&&(n.target===$o||n.target===na)}function JM(n){return!!(Wr(n)&4)&&n.target===na}function cE(n){return Uf(n)||Wa(n)}function R9(n){return Uf(n)&&!JM(n)||Wa(n)&&!n.target.readonly}function D9(n){return Uf(n)?Js(n)[0]:void 0}function my(n){return Uf(n)||!(n.flags&98304)&&ba(n,df)}function rve(n){return R9(n)||!(n.flags&98305)&&ba(n,ec)}function ive(n){if(!(Wr(n)&4)||!(Wr(n.target)&3))return;if(Wr(n)&33554432)return Wr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(Wr(a)&1){const _=As(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}const c=Cp(a);if(c.length!==1||Cb(n.symbol).size)return;let d=Ne(a.typeParameters)?lo(c[0],Mp(a.typeParameters,Js(n).slice(0,a.typeParameters.length))):c[0];return Ne(Js(n))>Ne(a.typeParameters)&&(d=Jp(d,Xa(Js(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=d}function b6e(n){return X?n===Mi:n===Lt}function $Z(n){const a=D9(n);return!!a&&b6e(a)}function KM(n){let a;return Wa(n)||!!va(n,"0")||my(n)&&!!(a=Ke(n,"length"))&&cp(a,c=>!!(c.flags&256))}function QZ(n){return my(n)||KM(n)}function Vut(n,a){const c=Ke(n,""+a);if(c)return c;if(cp(n,Wa))return A6e(n,a,V.noUncheckedIndexedAccess?Oe:void 0)}function jut(n){return!(n.flags&240544)}function __(n){return!!(n.flags&109472)}function E6e(n){const a=uv(n);return a.flags&2097152?bt(a.types,__):__(a)}function Uut(n){return n.flags&2097152&&In(n.types,__)||n}function w8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Jn(n.types,__):__(n)}function _v(n){return n.flags&1056?vZ(n):n.flags&402653312?ke:n.flags&256?Tt:n.flags&2048?kt:n.flags&512?Pi:n.flags&1048576?Hut(n):n}function Hut(n){const a=`B${vd(n)}`;return qI(a)??cb(a,dl(n,_v))}function ove(n){return n.flags&402653312?ke:n.flags&288?Tt:n.flags&2048?kt:n.flags&512?Pi:n.flags&1048576?dl(n,ove):n}function q1(n){return n.flags&1056&&j1(n)?vZ(n):n.flags&128&&j1(n)?ke:n.flags&256&&j1(n)?Tt:n.flags&2048&&j1(n)?kt:n.flags&512&&j1(n)?Pi:n.flags&1048576?dl(n,q1):n}function S6e(n){return n.flags&8192?xi:n.flags&1048576?dl(n,S6e):n}function ave(n,a){return Vee(n,a)||(n=S6e(q1(n))),yd(n)}function qut(n,a,c){if(n&&__(n)){const d=a?c?$8(a):a:void 0;n=ave(n,d)}return n}function sve(n,a,c,d){if(n&&__(n)){const _=a?$1(c,a,d):void 0;n=ave(n,_)}return n}function Wa(n){return!!(Wr(n)&4&&n.target.objectFlags&8)}function zb(n){return Wa(n)&&!!(n.target.combinedFlags&8)}function T6e(n){return zb(n)&&n.target.elementFlags.length===1}function ZZ(n){return XM(n,n.target.fixedLength)}function A6e(n,a,c){return dl(n,d=>{const _=d,v=ZZ(_);return v?c&&a>=Dge(_.target)?ei([v,c]):v:Oe})}function Jut(n){const a=ZZ(n);return a&&Vu(a)}function XM(n,a,c=0,d=!1,_=!1){const v=dy(n)-c;if(a<v){const x=Js(n),k=[];for(let F=a;F<v;F++){const H=x[F];k.push(n.target.elementFlags[F]&8?Pp(H,Tt):H)}return d?ya(k):ei(k,_?0:1)}}function Kut(n,a){return dy(n)===dy(a)&&Jn(n.target.elementFlags,(c,d)=>(c&12)===(a.target.elementFlags[d]&12))}function I6e({value:n}){return n.base10Value==="0"}function x6e(n){return dc(n,a=>fm(a,4194304))}function Xut(n){return dl(n,Yut)}function Yut(n){return n.flags&4?Qo:n.flags&8?Ja:n.flags&64?Zu:n===En||n===en||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&I6e(n)?n:Vr}function N9(n,a){const c=a&~n.flags&98304;return c===0?n:ei(c===32768?[n,Oe]:c===65536?[n,fe]:[n,Oe,fe])}function Bb(n,a=!1){N.assert(X);const c=a?me:Oe;return n===c||n.flags&1048576&&n.types[0]===c?n:ei([n,c])}function $ut(n){return jd||(jd=jM("NonNullable",524288,void 0)||ft),jd!==ft?EN(jd,[n]):ya([n,Ca])}function hv(n){return X?QT(n,2097152):n}function R6e(n){return X?ei([n,J]):n}function eee(n){return X?pee(n,J):n}function tee(n,a,c){return c?lC(a)?Bb(n):R6e(n):n}function O8(n,a){return p4(a)?hv(n):qu(a)?eee(n):n}function Gb(n,a){return De&&a?pee(n,L):n}function W8(n){return n===L||!!(n.flags&1048576)&&n.types[0]===L}function nee(n){return De?pee(n,L):mm(n,524288)}function Qut(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function ree(n){const a=Wr(n);return n.flags&2097152?Jn(n.types,ree):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!ite(n))||!!(a&4194304)||!!(a&1024&&ree(n.source))}function XT(n,a){const c=Ka(n.flags,n.escapedName,xl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);const d=Ki(n).nameType;return d&&(c.links.nameType=d),c}function Zut(n,a){const c=ca();for(const d of Pb(n)){const _=dr(d),v=a(_);c.set(d.escapedName,v===_?d:XT(d,v))}return c}function F8(n){if(!(pE(n)&&Wr(n)&8192))return n;const a=n.regularType;if(a)return a;const c=n,d=Zut(n,F8),_=Ls(c.symbol,d,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function D6e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function N6e(n){if(!n.siblings){const a=[];for(const c of N6e(n.parent))if(pE(c)){const d=rE(c,n.propertyName);d&&ZT(dr(d),_=>{a.push(_)})}n.siblings=a}return n.siblings}function edt(n){if(!n.resolvedProperties){const a=new Map;for(const c of N6e(n))if(pE(c)&&!(Wr(c)&2097152))for(const d of gs(c))a.set(d.escapedName,d);n.resolvedProperties=zo(a.values())}return n.resolvedProperties}function tdt(n,a){if(!(n.flags&4))return n;const c=dr(n),d=a&&D6e(a,n.escapedName,void 0),_=lve(c,d);return _===c?n:XT(n,_)}function ndt(n){const a=He.get(n.escapedName);if(a)return a;const c=XT(n,me);return c.flags|=16777216,He.set(n.escapedName,c),c}function rdt(n,a){const c=ca();for(const _ of Pb(n))c.set(_.escapedName,tdt(_,a));if(a)for(const _ of edt(a))c.has(_.escapedName)||c.set(_.escapedName,ndt(_));const d=Ls(n.symbol,c,et,et,Zo(gd(n),_=>Bh(_.keyType,Kp(_.type),_.isReadonly)));return d.objectFlags|=Wr(n)&266240,d}function Kp(n){return lve(n,void 0)}function lve(n,a){if(Wr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=j;else if(pE(n))c=rdt(n,a);else if(n.flags&1048576){const d=a||D6e(void 0,void 0,n.types),_=Zo(n.types,v=>v.flags&98304?v:lve(v,d));c=ei(_,bt(_,mv)?2:1)}else n.flags&2097152?c=ya(Zo(n.types,Kp)):cE(n)&&(c=uy(n.target,Zo(Js(n),Kp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function iee(n){let a=!1;if(Wr(n)&65536){if(n.flags&1048576)if(bt(n.types,mv))a=!0;else for(const c of n.types)iee(c)&&(a=!0);if(cE(n))for(const c of Js(n))iee(c)&&(a=!0);if(pE(n))for(const c of Pb(n)){const d=dr(c);Wr(d)&65536&&(iee(d)||qe(c.valueDeclaration,f.Object_literal_s_property_0_implicitly_has_an_1_type,Si(c),Hn(Kp(d))),a=!0)}}return a}function uE(n,a,c){const d=Hn(Kp(a));if(lr(n)&&!gk(Un(n),V))return;let _;switch(n.kind){case 226:case 172:case 171:_=de?f.Member_0_implicitly_has_an_1_type:f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const v=n;if(Ve(v.name)){const x=r0(v.name);if((ZA(v.parent)||vh(v.parent)||yh(v.parent))&&v.parent.parameters.includes(v)&&(yl(v,v.name.escapedText,788968,void 0,v.name.escapedText,!0)||x&&aU(x))){const k="arg"+v.parent.parameters.indexOf(v),F=xs(v.name)+(v.dotDotDotToken?"[]":"");mu(de,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,k,F);return}}_=n.dotDotDotToken?de?f.Rest_parameter_0_implicitly_has_an_any_type:f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:de?f.Parameter_0_implicitly_has_an_1_type:f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(_=f.Binding_element_0_implicitly_has_an_1_type,!de)return;break;case 324:qe(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return;case 330:de&&JR(n.parent)&&qe(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,d);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(de&&!n.name){c===3?qe(n,f.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,d):qe(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return}_=de?c===3?f._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:de&&qe(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:_=de?f.Variable_0_implicitly_has_an_1_type:f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}mu(de,n,_,xs(Lo(n)),d)}function oee(n,a,c){r(()=>{de&&Wr(a)&65536&&(!c||!Uve(n))&&(iee(a)||uE(n,a,c))})}function cve(n,a,c){const d=Xp(n),_=Xp(a),v=q8(n),x=q8(a),k=x?_-1:_,F=v?k:Math.min(d,k),H=oE(n);if(H){const re=oE(a);re&&c(H,re)}for(let re=0;re<F;re++)c(h_(n,re),h_(a,re));x&&c(eB(n,F,BT(x)&&!Gm(x,rve)),x)}function uve(n,a,c){const d=Gf(n),_=Gf(a);d&&_&&Cge(d,_)&&d.type&&_.type?c(d.type,_.type):c(ps(n),ps(a))}function z8(n,a,c,d){return dve(n.map(fve),a,c,d||Jge)}function idt(n,a=0){return n&&dve(Wt(n.inferences,C6e),n.signature,n.flags|a,n.compareTypes)}function dve(n,a,c,d){const _={inferences:n,signature:a,flags:c,compareTypes:d,mapper:Ts,nonFixingMapper:Ts};return _.mapper=odt(_),_.nonFixingMapper=adt(_),_}function odt(n){return Vge(Wt(n.inferences,a=>a.typeParameter),Wt(n.inferences,(a,c)=>()=>(a.isFixed||(sdt(n),aee(n.inferences),a.isFixed=!0),bve(n,c))))}function adt(n){return Vge(Wt(n.inferences,a=>a.typeParameter),Wt(n.inferences,(a,c)=>()=>bve(n,c)))}function aee(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function pve(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function sdt(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:c}of n.intraExpressionInferenceSites){const d=a.kind===174?A4e(a,2):Yd(a,2);d&&gv(n.inferences,c,d)}n.intraExpressionInferenceSites=void 0}}function fve(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function C6e(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 ldt(n){const a=mn(n.inferences,LN);return a.length?dve(Wt(a,C6e),n.signature,n.flags,n.compareTypes):void 0}function mve(n){return n&&n.mapper}function dE(n){const a=Wr(n);if(a&524288)return!!(a&1048576);const c=!!(n.flags&465829888||n.flags&524288&&!P6e(n)&&(a&4&&(n.node||bt(Js(n),dE))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!P6e(n)&&bt(n.types,dE));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function P6e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=pl(n.aliasSymbol,265);return!!(a&&Vn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function B8(n,a,c=0){return!!(n===a||n.flags&3145728&&bt(n.types,d=>B8(d,a,c))||c<3&&n.flags&16777216&&(B8(aE(n),a,c+1)||B8(sE(n),a,c+1)))}function cdt(n,a){const c=Gf(n);return c?!!c.type&&B8(c.type,a):B8(ps(n),a)}function udt(n){const a=ca();ZT(n,d=>{if(!(d.flags&128))return;const _=_l(d.value),v=Ka(4,_);v.links.type=j,d.symbol&&(v.declarations=d.symbol.declarations,v.valueDeclaration=d.symbol.valueDeclaration),a.set(_,v)});const c=n.flags&4?[Bh(ke,Ca,!1)]:et;return Ls(void 0,a,et,et,c)}function M6e(n,a,c){const d=n.id+","+a.id+","+c.id;if(Uc.has(d))return Uc.get(d);const _=n.id+","+(a.target||a).id;if(Or(ip,_))return;ip.push(_);const v=ddt(n,a,c);return ip.pop(),Uc.set(d,v),v}function _ve(n){return!(Wr(n)&262144)||pE(n)&&bt(gs(n),a=>_ve(dr(a)))||Wa(n)&&bt(G1(n),_ve)}function ddt(n,a,c){if(!(Sg(n,ke)||gs(n).length!==0&&_ve(n)))return;if(Uf(n))return Vu(see(Js(n)[0],a,c),JM(n));if(Wa(n)){const _=Wt(G1(n),x=>see(x,a,c)),v=Fh(a)&4?Zo(n.target.elementFlags,x=>x&2?1:x):n.target.elementFlags;return Gh(_,v,n.target.readonly,n.target.labeledElementDeclarations)}const d=Wf(1040,void 0);return d.source=n,d.mappedType=a,d.constraintType=c,d}function pdt(n){const a=Ki(n);return a.type||(a.type=see(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function see(n,a,c){const d=Pp(c.type,d_(a)),_=cv(a),v=fve(d);return gv([v],n,_),L6e(v)||hn}function*hve(n,a,c,d){const _=gs(a);for(const v of _)if(!SOe(v)&&(c||!(v.flags&16777216||xl(v)&48))){const x=va(n,v.escapedName);if(!x)yield v;else if(d){const k=dr(v);if(k.flags&109472){const F=dr(x);F.flags&1||yd(F)===yd(k)||(yield v)}}}}function gve(n,a,c,d){return b6(hve(n,a,c,d))}function fdt(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 mdt(n,a){return Wa(n)&&Wa(a)?fdt(n,a):!!gve(n,a,!1,!0)&&!!gve(a,n,!1,!1)}function L6e(n){return n.candidates?ei(n.candidates,2):n.contraCandidates?ya(n.contraCandidates):void 0}function vve(n){return!!Zr(n).skipDirectInference}function k6e(n){return!!(n.symbol&&bt(n.symbol.declarations,vve))}function _dt(n,a){const c=n.texts[0],d=a.texts[0],_=n.texts[n.texts.length-1],v=a.texts[a.texts.length-1],x=Math.min(c.length,d.length),k=Math.min(_.length,v.length);return c.slice(0,x)!==d.slice(0,x)||_.slice(_.length-k)!==v.slice(v.length-k)}function w6e(n,a){if(n==="")return!1;const c=+n;return isFinite(c)&&(!a||""+c===n)}function hdt(n){return WZ(yU(n))}function lee(n,a){if(a.flags&1)return!0;if(a.flags&134217732)return ba(n,a);if(a.flags&268435456){const c=[];for(;a.flags&268435456;)c.unshift(a.symbol),a=a.type;return rd(c,(_,v)=>dx(v,_),n)===n&&lee(n,a)}return!1}function O6e(n,a){if(a.flags&2097152)return Jn(a.types,c=>c===lc||O6e(n,c));if(a.flags&4||ba(n,a))return!0;if(n.flags&128){const c=n.value;return!!(a.flags&8&&w6e(c,!1)||a.flags&64&&U3(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&lee(Xd(c),a)||a.flags&134217728&&cee(n,a))}if(n.flags&134217728){const c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&ba(n.types[0],a)}return!1}function W6e(n,a){return n.flags&128?F6e([n.value],et,a):n.flags&134217728?Ba(n.texts,a.texts)?Wt(n.types,gdt):F6e(n.texts,n.types,a):void 0}function cee(n,a){const c=W6e(n,a);return!!c&&Jn(c,(d,_)=>O6e(d,a.types[_]))}function gdt(n){return n.flags&402653317?n:jT(["",""],[n])}function F6e(n,a,c){const d=n.length-1,_=n[0],v=n[d],x=c.texts,k=x.length-1,F=x[0],H=x[k];if(d===0&&_.length<F.length+H.length||!_.startsWith(F)||!v.endsWith(H))return;const re=v.slice(0,v.length-H.length),be=[];let ge=0,Je=F.length;for(let an=1;an<k;an++){const cn=x[an];if(cn.length>0){let ar=ge,Wn=Je;for(;Wn=gt(ar).indexOf(cn,Wn),!(Wn>=0);){if(ar++,ar===n.length)return;Wn=0}Dt(ar,Wn),Je+=cn.length}else if(Je<gt(ge).length)Dt(ge,Je+1);else if(ge<d)Dt(ge+1,0);else return}return Dt(d,gt(d).length),be;function gt(an){return an<d?n[an]:re}function Dt(an,cn){const ar=an===ge?Xd(gt(an).slice(Je,cn)):jT([n[ge].slice(Je),...n.slice(ge+1,an),gt(an).slice(0,cn)],a.slice(ge,an));be.push(ar),ge=an,Je=cn}}function gv(n,a,c,d=0,_=!1){let v=!1,x,k=2048,F,H,re,be=0;ge(a,c);function ge(On,er){if(!(!dE(er)||VM(er))){if(On===Rt||On===Ye){const ao=x;x=On,ge(er,er),x=ao;return}if(On.aliasSymbol&&On.aliasSymbol===er.aliasSymbol){if(On.aliasTypeArguments){const ao=Ki(On.aliasSymbol).typeParameters,br=zh(ao),Po=Mb(On.aliasTypeArguments,ao,br,lr(On.aliasSymbol.valueDeclaration)),ss=Mb(er.aliasTypeArguments,ao,br,lr(On.aliasSymbol.valueDeclaration));ar(Po,ss,m6e(On.aliasSymbol))}return}if(On===er&&On.flags&3145728){for(const ao of On.types)ge(ao,ao);return}if(er.flags&1048576){const[ao,br]=cn(On.flags&1048576?On.types:[On],er.types,vdt),[Po,ss]=cn(ao,br,ydt);if(ss.length===0)return;if(er=ei(ss),Po.length===0){Je(On,er,1);return}On=ei(Po)}else if(er.flags&2097152&&!Jn(er.types,wZ)&&!(On.flags&1048576)){const[ao,br]=cn(On.flags&2097152?On.types:[On],er.types,fv);if(ao.length===0||br.length===0)return;On=ya(ao),er=ya(br)}if(er.flags&41943040){if(VM(er))return;er=wb(er)}if(er.flags&8650752){if(k6e(On))return;const ao=Bn(er);if(ao){if(Wr(On)&262144||On===yn)return;if(!ao.isFixed){const Po=x||On;if(Po===Ye)return;(ao.priority===void 0||d<ao.priority)&&(ao.candidates=void 0,ao.contraCandidates=void 0,ao.topLevel=!0,ao.priority=d),d===ao.priority&&(_&&!v?Or(ao.contraCandidates,Po)||(ao.contraCandidates=Rn(ao.contraCandidates,Po),aee(n)):Or(ao.candidates,Po)||(ao.candidates=Rn(ao.candidates,Po),aee(n))),!(d&128)&&er.flags&262144&&ao.topLevel&&!B8(c,er)&&(ao.topLevel=!1,aee(n))}k=Math.min(k,d);return}const br=pv(er,!1);if(br!==er)ge(On,br);else if(er.flags&8388608){const Po=pv(er.indexType,!1);if(Po.flags&465829888){const ss=F8e(pv(er.objectType,!1),Po,!1);ss&&ss!==er&&ge(On,ss)}}}if(Wr(On)&4&&Wr(er)&4&&(On.target===er.target||Uf(On)&&Uf(er))&&!(On.node&&er.node))ar(Js(On),Js(er),eve(On.target));else if(On.flags&4194304&&er.flags&4194304)Wn(On.type,er.type);else if((w8(On)||On.flags&4)&&er.flags&4194304){const ao=udt(On);gt(ao,er.type,256)}else if(On.flags&8388608&&er.flags&8388608)ge(On.objectType,er.objectType),ge(On.indexType,er.indexType);else if(On.flags&268435456&&er.flags&268435456)On.symbol===er.symbol&&ge(On.type,er.type);else if(On.flags&33554432)ge(On.baseType,er),Je(hge(On),er,4);else if(er.flags&16777216)an(On,er,nr);else if(er.flags&3145728)tr(On,er.types,er.flags);else if(On.flags&1048576){const ao=On.types;for(const br of ao)ge(br,er)}else if(er.flags&134217728)Ro(On,er);else{if(On=f_(On),Kd(On)&&Kd(er)&&an(On,er,Eo),!(d&512&&On.flags&467927040)){const ao=Ld(On);if(ao!==On&&!(ao.flags&2621440))return ge(ao,er);On=ao}On.flags&2621440&&an(On,er,Bo)}}}function Je(On,er,ao){const br=d;d|=ao,ge(On,er),d=br}function gt(On,er,ao){const br=d;d|=ao,Wn(On,er),d=br}function Dt(On,er,ao,br){const Po=d;d|=br,tr(On,er,ao),d=Po}function an(On,er,ao){const br=On.id+","+er.id,Po=F&&F.get(br);if(Po!==void 0){k=Math.min(k,Po);return}(F||(F=new Map)).set(br,-1);const ss=k;k=2048;const Ss=be;(H??(H=[])).push(On),(re??(re=[])).push(er),qM(On,H,H.length,2)&&(be|=1),qM(er,re,re.length,2)&&(be|=2),be!==3?ao(On,er):k=-1,re.pop(),H.pop(),be=Ss,F.set(br,k),k=Math.min(k,ss)}function cn(On,er,ao){let br,Po;for(const ss of er)for(const Ss of On)ao(Ss,ss)&&(ge(Ss,ss),br=Rg(br,Ss),Po=Rg(Po,ss));return[br?mn(On,ss=>!Or(br,ss)):On,Po?mn(er,ss=>!Or(Po,ss)):er]}function ar(On,er,ao){const br=On.length<er.length?On.length:er.length;for(let Po=0;Po<br;Po++)Po<ao.length&&(ao[Po]&7)===2?Wn(On[Po],er[Po]):ge(On[Po],er[Po])}function Wn(On,er){_=!_,ge(On,er),_=!_}function ln(On,er){oe||d&1024?Wn(On,er):ge(On,er)}function Bn(On){if(On.flags&8650752){for(const er of n)if(On===er.typeParameter)return er}}function zn(On){let er;for(const ao of On){const br=ao.flags&2097152&&In(ao.types,Po=>!!Bn(Po));if(!br||er&&br!==er)return;er=br}return er}function tr(On,er,ao){let br=0;if(ao&1048576){let Po;const ss=On.flags&1048576?On.types:[On],Ss=new Array(ss.length);let ju=!1;for(const Fa of er)if(Bn(Fa))Po=Fa,br++;else for(let kd=0;kd<ss.length;kd++){const Wl=k;k=2048,ge(ss[kd],Fa),k===d&&(Ss[kd]=!0),ju=ju||k===-1,k=Math.min(k,Wl)}if(br===0){const Fa=zn(er);Fa&&Je(On,Fa,1);return}if(br===1&&!ju){const Fa=Do(ss,(kd,Wl)=>Ss[Wl]?void 0:kd);if(Fa.length){ge(ei(Fa),Po);return}}}else for(const Po of er)Bn(Po)?br++:ge(On,Po);if(ao&2097152?br===1:br>0)for(const Po of er)Bn(Po)&&Je(On,Po,1)}function Kn(On,er,ao){if(ao.flags&1048576||ao.flags&2097152){let br=!1;for(const Po of ao.types)br=Kn(On,er,Po)||br;return br}if(ao.flags&4194304){const br=Bn(ao.type);if(br&&!br.isFixed&&!k6e(On)){const Po=M6e(On,er,ao);Po&&Je(Po,br.typeParameter,Wr(On)&262144?16:8)}return!0}if(ao.flags&262144){Je(X_(On,On.pattern?2:0),ao,32);const br=zT(ao);if(br&&Kn(On,er,br))return!0;const Po=Wt(gs(On),dr),ss=Wt(gd(On),Ss=>Ss!==jr?Ss.type:Vr);return ge(ei(So(Po,ss)),cv(er)),!0}return!1}function nr(On,er){if(On.flags&16777216)ge(On.checkType,er.checkType),ge(On.extendsType,er.extendsType),ge(aE(On),aE(er)),ge(sE(On),sE(er));else{const ao=[aE(er),sE(er)];Dt(On,ao,er.flags,_?64:0)}}function Ro(On,er){const ao=W6e(On,er),br=er.types;if(ao||Jn(er.texts,Po=>Po.length===0))for(let Po=0;Po<br.length;Po++){const ss=ao?ao[Po]:Vr,Ss=br[Po];if(ss.flags&128&&Ss.flags&8650752){const ju=Bn(Ss),Fa=ju?Gu(ju.typeParameter):void 0;if(Fa&&!Nt(Fa)){const kd=Fa.flags&1048576?Fa.types:[Fa];let Wl=rd(kd,(bl,ut)=>bl|ut.flags,0);if(!(Wl&4)){const bl=ss.value;Wl&296&&!w6e(bl,!0)&&(Wl&=-297),Wl&2112&&!U3(bl,!0)&&(Wl&=-2113);const ut=rd(kd,(Ae,kn)=>kn.flags&Wl?Ae.flags&4?Ae:kn.flags&4?ss:Ae.flags&134217728?Ae:kn.flags&134217728&&cee(ss,kn)?ss:Ae.flags&268435456?Ae:kn.flags&268435456&&bl===k8e(kn.symbol,bl)?ss:Ae.flags&128?Ae:kn.flags&128&&kn.value===bl?kn:Ae.flags&8?Ae:kn.flags&8?m_(+bl):Ae.flags&32?Ae:kn.flags&32?m_(+bl):Ae.flags&256?Ae:kn.flags&256&&kn.value===+bl?kn:Ae.flags&64?Ae:kn.flags&64?hdt(bl):Ae.flags&2048?Ae:kn.flags&2048&&HE(kn.value)===bl?kn:Ae.flags&16?Ae:kn.flags&16?bl==="true"?Gn:bl==="false"?en:Pi:Ae.flags&512?Ae:kn.flags&512&&kn.intrinsicName===bl?kn:Ae.flags&32768?Ae:kn.flags&32768&&kn.intrinsicName===bl?kn:Ae.flags&65536?Ae:kn.flags&65536&&kn.intrinsicName===bl?kn:Ae:Ae,Vr);if(!(ut.flags&131072)){ge(ut,Ss);continue}}}}ge(ss,Ss)}}function Eo(On,er){ge(yf(On),yf(er)),ge(cv(On),cv(er));const ao=cy(On),br=cy(er);ao&&br&&ge(ao,br)}function Bo(On,er){var ao,br;if(Wr(On)&4&&Wr(er)&4&&(On.target===er.target||Uf(On)&&Uf(er))){ar(Js(On),Js(er),eve(On.target));return}if(Kd(On)&&Kd(er)&&Eo(On,er),Wr(er)&32&&!er.declaration.nameType){const Po=yf(er);if(Kn(On,er,Po))return}if(!mdt(On,er)){if(cE(On)){if(Wa(er)){const Po=dy(On),ss=dy(er),Ss=Js(er),ju=er.target.elementFlags;if(Wa(On)&&Kut(On,er)){for(let Wl=0;Wl<ss;Wl++)ge(Js(On)[Wl],Ss[Wl]);return}const Fa=Wa(On)?Math.min(On.target.fixedLength,er.target.fixedLength):0,kd=Math.min(Wa(On)?x8(On.target,3):0,er.target.hasRestElement?x8(er.target,3):0);for(let Wl=0;Wl<Fa;Wl++)ge(Js(On)[Wl],Ss[Wl]);if(!Wa(On)||Po-Fa-kd===1&&On.target.elementFlags[Fa]&4){const Wl=Js(On)[Fa];for(let bl=Fa;bl<ss-kd;bl++)ge(ju[bl]&8?Vu(Wl):Wl,Ss[bl])}else{const Wl=ss-Fa-kd;if(Wl===2){if(ju[Fa]&ju[Fa+1]&8){const bl=Bn(Ss[Fa]);bl&&bl.impliedArity!==void 0&&(ge(UM(On,Fa,kd+Po-bl.impliedArity),Ss[Fa]),ge(UM(On,Fa+bl.impliedArity,kd),Ss[Fa+1]))}else if(ju[Fa]&8&&ju[Fa+1]&4){const bl=(ao=Bn(Ss[Fa]))==null?void 0:ao.typeParameter,ut=bl&&Gu(bl);if(ut&&Wa(ut)&&!ut.target.hasRestElement){const Ae=ut.target.fixedLength;ge(UM(On,Fa,Po-(Fa+Ae)),Ss[Fa]),ge(XM(On,Fa+Ae,kd),Ss[Fa+1])}}else if(ju[Fa]&4&&ju[Fa+1]&8){const bl=(br=Bn(Ss[Fa+1]))==null?void 0:br.typeParameter,ut=bl&&Gu(bl);if(ut&&Wa(ut)&&!ut.target.hasRestElement){const Ae=ut.target.fixedLength,kn=Po-x8(er.target,3),Cr=kn-Ae,pi=Gh(Js(On).slice(Cr,kn),On.target.elementFlags.slice(Cr,kn),!1,On.target.labeledElementDeclarations&&On.target.labeledElementDeclarations.slice(Cr,kn));ge(XM(On,Fa,kd+Ae),Ss[Fa]),ge(pi,Ss[Fa+1])}}}else if(Wl===1&&ju[Fa]&8){const bl=er.target.elementFlags[ss-1]&2,ut=UM(On,Fa,kd);Je(ut,Ss[Fa],bl?2:0)}else if(Wl===1&&ju[Fa]&4){const bl=XM(On,Fa,kd);bl&&ge(bl,Ss[Fa])}}for(let Wl=0;Wl<kd;Wl++)ge(Js(On)[Po-Wl-1],Ss[ss-Wl-1]);return}if(Uf(er)){up(On,er);return}}_o(On,er),Nc(On,er,0),Nc(On,er,1),up(On,er)}}function _o(On,er){const ao=Pb(er);for(const br of ao){const Po=va(On,br.escapedName);Po&&!bt(Po.declarations,vve)&&ge(dr(Po),dr(br))}}function Nc(On,er,ao){const br=Xo(On,ao),Po=br.length;if(Po>0){const ss=Xo(er,ao),Ss=ss.length;for(let ju=0;ju<Ss;ju++){const Fa=Math.max(Po-Ss+ju,0);Hf(Ilt(br[Fa]),A8(ss[ju]))}}}function Hf(On,er){if(!(On.flags&64)){const ao=v,br=er.declaration?er.declaration.kind:0;v=v||br===174||br===173||br===176,cve(On,er,ln),v=ao}uve(On,er,ge)}function up(On,er){const ao=Wr(On)&Wr(er)&32?8:0,br=gd(er);if(ree(On))for(const Po of br){const ss=[];for(const Ss of gs(On))if(lx(TN(Ss,8576),Po.keyType)){const ju=dr(Ss);ss.push(Ss.flags&16777216?nee(ju):ju)}for(const Ss of gd(On))lx(Ss.keyType,Po.keyType)&&ss.push(Ss.type);ss.length&&Je(ei(ss),Po.type,ao)}for(const Po of br){const ss=E8(On,Po.keyType);ss&&Je(ss.type,Po.type,ao)}}}function vdt(n,a){return a===L?n===a:fv(n,a)||!!(a.flags&4&&n.flags&128||a.flags&8&&n.flags&256)}function ydt(n,a){return!!(n.flags&524288&&a.flags&524288&&n.symbol&&n.symbol===a.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===a.aliasSymbol)}function bdt(n){const a=Md(n);return!!a&&Cl(a.flags&16777216?Yhe(a):a,406978556)}function pE(n){return!!(Wr(n)&128)}function yve(n){return!!(Wr(n)&16512)}function Edt(n){if(n.length>1){const a=mn(n,yve);if(a.length){const c=ei(a,2);return So(mn(n,d=>!yve(d)),[c])}}return n}function Sdt(n){return n.priority&416?ya(n.contraCandidates):Gut(n.contraCandidates)}function Tdt(n,a){const c=Edt(n.candidates),d=bdt(n.typeParameter)||BT(n.typeParameter),_=!d&&n.topLevel&&(n.isFixed||!cdt(a,n.typeParameter)),v=d?Zo(c,yd):_?Zo(c,q1):c,x=n.priority&416?ei(v,2):But(v);return Kp(x)}function bve(n,a){const c=n.inferences[a];if(!c.inferredType){let d,_;if(n.signature){const x=c.candidates?Tdt(c,n.signature):void 0,k=c.contraCandidates?Sdt(c):void 0;if(x||k){const F=x&&(!k||!(x.flags&131072)&&bt(c.contraCandidates,H=>Wb(x,H))&&Jn(n.inferences,H=>H!==c&&Md(H.typeParameter)!==c.typeParameter||Jn(H.candidates,re=>Wb(re,x))));d=F?x:k,_=F?k:x}else if(n.flags&1)d=vo;else{const F=GT(c.typeParameter);F&&(d=lo(F,eut(Zct(n,a),n.nonFixingMapper)))}}else d=L6e(c);c.inferredType=d||Eve(!!(n.flags&2));const v=Md(c.typeParameter);if(v){const x=lo(v,n.nonFixingMapper);(!d||!n.compareTypes(d,Jp(x,d)))&&(c.inferredType=_&&n.compareTypes(_,Jp(x,_))?_:x)}}return c.inferredType}function Eve(n){return n?j:hn}function Sve(n){const a=[];for(let c=0;c<n.inferences.length;c++)a.push(bve(n,c));return a}function z6e(n){switch(n.escapedText){case"document":case"console":return f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return V.types?f.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:f.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 V.types?f.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:f.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 V.types?f.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:f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return V.types?f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun;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 f.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(sa(n.parent))return f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return n.parent.kind===304?f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:f.Cannot_find_name_0}}function Bm(n){const a=Zr(n);return a.resolvedSymbol||(a.resolvedSymbol=!Fl(n)&&yl(n,n.escapedText,1160127,z6e(n),n,!I3(n),!1)||ft),a.resolvedSymbol}function Tve(n){return!!(n.flags&33554432||Vn(n,a=>md(a)||xm(a)||yp(a)))}function uee(n,a,c,d){switch(n.kind){case 80:if(!kA(n)){const x=Bm(n);return x!==ft?`${d?as(d):"-1"}|${vd(a)}|${vd(c)}|${Sa(x)}`:void 0}case 110:return`0|${d?as(d):"-1"}|${vd(a)}|${vd(c)}`;case 235:case 217:return uee(n.expression,a,c,d);case 166:const _=uee(n.left,a,c,d);return _&&_+"."+n.right.escapedText;case 211:case 212:const v=YT(n);if(v!==void 0){const x=uee(n.expression,a,c,d);return x&&x+"."+v}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${as(n)}#${vd(a)}`}}function Iu(n,a){switch(a.kind){case 217:case 235:return Iu(n,a.expression);case 226:return Pc(a)&&Iu(n,a.left)||mr(a)&&a.operatorToken.kind===28&&Iu(n,a.right)}switch(n.kind){case 236:return a.kind===236&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return kA(n)?a.kind===110:a.kind===80&&Bm(n)===Bm(a)||(Oi(a)||$a(a))&&hf(Bm(n))===Ir(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Iu(n.expression,a);case 211:case 212:const c=YT(n),d=ws(a)?YT(a):void 0;return c!==void 0&&d!==void 0&&d===c&&Iu(n.expression,a.expression);case 166:return ws(a)&&n.right.escapedText===YT(a)&&Iu(n.left,a.expression);case 226:return mr(n)&&n.operatorToken.kind===28&&Iu(n.right,a)}return!1}function YT(n){if(Fr(n))return n.name.escapedText;if($s(n))return Adt(n);if($a(n)){const a=es(n);return a?_l(a):void 0}if(Ao(n))return""+n.parent.parameters.indexOf(n)}function Ave(n){return n.flags&8192?n.escapedName:n.flags&384?_l(""+n.value):void 0}function Adt(n){return ef(n.argumentExpression)?_l(n.argumentExpression.text):Bl(n.argumentExpression)?Idt(n.argumentExpression):void 0}function Idt(n){const a=Hs(n,111551,!0);if(!a||!(e2(a)||a.flags&8))return;const c=a.valueDeclaration;if(c===void 0)return;const d=ro(c);if(d){const _=Ave(d);if(_!==void 0)return _}if(_S(c)&&Zg(c,n)){const _=OL(c);if(_){const v=ta(c.parent)?K_(c):Ru(_);return v&&Ave(v)}if(i1(c))return nR(c.name)}}function B6e(n,a){for(;ws(n);)if(n=n.expression,Iu(n,a))return!0;return!1}function $T(n,a){for(;qu(n);)if(n=n.expression,Iu(n,a))return!0;return!1}function YM(n,a){if(n&&n.flags&1048576){const c=GOe(n,a);if(c&&xl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!AN(dr(c))),!!c.links.isDiscriminantProperty}return!1}function G6e(n,a){let c;for(const d of n)if(YM(a,d.escapedName)){if(c){c.push(d);continue}c=[d]}return c}function xdt(n,a){const c=new Map;let d=0;for(const _ of n)if(_.flags&61603840){const v=Ke(_,a);if(v){if(!w8(v))return;let x=!1;ZT(v,k=>{const F=vd(yd(k)),H=c.get(F);H?H!==hn&&(c.set(F,hn),x=!0):c.set(F,_)}),x||d++}}return d>=10&&d*2>=n.length?c:void 0}function C9(n){const a=n.types;if(!(a.length<10||Wr(n)&32768||ou(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){const c=Xe(a,_=>_.flags&59506688?Xe(gs(_),v=>__(dr(v))?v.escapedName:void 0):void 0),d=c&&xdt(a,c);n.keyPropertyName=d?c:"",n.constituentMap=d}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function P9(n,a){var c;const d=(c=n.constituentMap)==null?void 0:c.get(vd(yd(a)));return d!==hn?d:void 0}function V6e(n,a){const c=C9(n),d=c&&Ke(a,c);return d&&P9(n,d)}function Rdt(n,a){const c=C9(n),d=c&&In(a.properties,v=>v.symbol&&v.kind===303&&v.symbol.escapedName===c&&z9(v.initializer)),_=d&&sB(d.initializer);return _&&P9(n,_)}function j6e(n,a){return Iu(n,a)||B6e(n,a)}function U6e(n,a){if(n.arguments){for(const c of n.arguments)if(j6e(a,c)||$T(c,a))return!0}return!!(n.expression.kind===211&&j6e(a,n.expression.expression))}function Ive(n){return(!n.id||n.id<0)&&(n.id=Use,Use++),n.id}function Ddt(n,a){if(!(n.flags&1048576))return ba(n,a);for(const c of n.types)if(ba(c,a))return!0;return!1}function Ndt(n,a){if(n===a)return n;if(a.flags&131072)return a;const c=`A${vd(n)},${vd(a)}`;return qI(c)??cb(c,Cdt(n,a))}function Cdt(n,a){const c=dc(n,_=>Ddt(a,_)),d=a.flags&512&&j1(a)?dl(c,fx):c;return ba(a,d)?d:n}function xve(n){const a=p_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Wb(n,Ot))}function $M(n,a){return Rve(n,a)&a}function fm(n,a){return $M(n,a)!==0}function Rve(n,a){n.flags&467927040&&(n=Gu(n)||hn);const c=n.flags;if(c&268435460)return X?16317953:16776705;if(c&134217856){const d=c&128&&n.value==="";return X?d?12123649:7929345:d?12582401:16776705}if(c&40)return X?16317698:16776450;if(c&256){const d=n.value===0;return X?d?12123394:7929090:d?12582146:16776450}if(c&64)return X?16317188:16775940;if(c&2048){const d=I6e(n);return X?d?12122884:7928580:d?12581636:16775940}return c&16?X?16316168:16774920:c&528?X?n===en||n===En?12121864:7927560:n===en||n===En?12580616:16774920:c&524288?a&(X?83427327:83886079)?Wr(n)&16&&mv(n)?X?83427327:83886079:xve(n)?X?7880640:16728e3:X?7888800:16736160:0:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?X?7925520:16772880:c&67108864?X?7888800:16736160:c&131072?0:c&1048576?rd(n.types,(d,_)=>d|Rve(_,a),0):c&2097152?Pdt(n,a):83886079}function Pdt(n,a){const c=Cl(n,402784252);let d=0,_=134217727;for(const v of n.types)if(!(c&&v.flags&524288)){const x=Rve(v,a);d|=x,_&=x}return d&8256|_&134209471}function mm(n,a){return dc(n,c=>fm(c,a))}function QT(n,a){const c=H6e(mm(X&&n.flags&2?cl:n,a));if(X)switch(a){case 524288:return dl(c,d=>fm(d,65536)?ya([d,fm(d,131072)&&!Cl(c,65536)?ei([Ca,fe]):Ca]):d);case 1048576:return dl(c,d=>fm(d,131072)?ya([d,fm(d,65536)&&!Cl(c,32768)?ei([Ca,Oe]):Ca]):d);case 2097152:case 4194304:return dl(c,d=>fm(d,262144)?$ut(d):d)}return c}function H6e(n){return n===cl?hn:n}function Dve(n,a){return a?ei([hi(n),Ru(a)]):n}function q6e(n,a){var c;const d=py(a);if(!tm(d))return _t;const _=nm(d);return Ke(n,_)||G8((c=cx(n,_))==null?void 0:c.type)||_t}function J6e(n,a){return cp(n,KM)&&Vut(n,a)||G8(hy(65,n,Oe,void 0))||_t}function G8(n){return n&&(V.noUncheckedIndexedAccess?ei([n,L]):n)}function K6e(n){return Vu(hy(65,n,Oe,void 0)||_t)}function Mdt(n){return n.parent.kind===209&&Nve(n.parent)||n.parent.kind===303&&Nve(n.parent.parent)?Dve(M9(n),n.right):Ru(n.right)}function Nve(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function Ldt(n,a){return J6e(M9(n),n.elements.indexOf(a))}function kdt(n){return K6e(M9(n.parent))}function X6e(n){return q6e(M9(n.parent),n.name)}function wdt(n){return Dve(X6e(n),n.objectAssignmentInitializer)}function M9(n){const{parent:a}=n;switch(a.kind){case 249:return ke;case 250:return fB(a)||_t;case 226:return Mdt(a);case 220:return Oe;case 209:return Ldt(a,n);case 230:return kdt(a);case 303:return X6e(a);case 304:return wdt(a)}return _t}function Odt(n){const a=n.parent,c=$6e(a.parent),d=a.kind===206?q6e(c,n.propertyName||n.name):n.dotDotDotToken?K6e(c):J6e(c,a.elements.indexOf(n));return Dve(d,n.initializer)}function Y6e(n){return Zr(n).resolvedType||Ru(n)}function Wdt(n){return n.initializer?Y6e(n.initializer):n.parent.parent.kind===249?ke:n.parent.parent.kind===250&&fB(n.parent.parent)||_t}function $6e(n){return n.kind===260?Wdt(n):Odt(n)}function Fdt(n){return n.kind===260&&n.initializer&&Ab(n.initializer)||n.kind!==208&&n.parent.kind===226&&Ab(n.parent.right)}function J1(n){switch(n.kind){case 217:return J1(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return J1(n.left);case 28:return J1(n.right)}}return n}function Q6e(n){const{parent:a}=n;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===n||a.kind===226&&a.operatorToken.kind===28&&a.right===n?Q6e(a):n}function zdt(n){return n.kind===296?yd(Ru(n.expression)):Vr}function dee(n){const a=Zr(n);if(!a.switchTypes){a.switchTypes=[];for(const c of n.caseBlock.clauses)a.switchTypes.push(zdt(c))}return a.switchTypes}function Z6e(n){if(bt(n.caseBlock.clauses,c=>c.kind===296&&!ls(c.expression)))return;const a=[];for(const c of n.caseBlock.clauses){const d=c.kind===296?c.expression.text:void 0;a.push(d&&!Or(a,d)?d:void 0)}return a}function Bdt(n,a){return n.flags&1048576?!Xe(n.types,c=>!Or(a,c)):Or(a,n)}function QM(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&Gdt(n,a))}function Gdt(n,a){if(n.flags&1048576){for(const c of n.types)if(!dv(a.types,c))return!1;return!0}return n.flags&1056&&vZ(n)===a?!0:dv(a.types,n)}function ZT(n,a){return n.flags&1048576?Xe(n.types,a):a(n)}function Gm(n,a){return n.flags&1048576?bt(n.types,a):a(n)}function cp(n,a){return n.flags&1048576?Jn(n.types,a):a(n)}function Vdt(n,a){return n.flags&3145728?Jn(n.types,a):a(n)}function dc(n,a){if(n.flags&1048576){const c=n.types,d=mn(c,a);if(d===c)return n;const _=n.origin;let v;if(_&&_.flags&1048576){const x=_.types,k=mn(x,F=>!!(F.flags&1048576)||a(F));if(x.length-k.length===c.length-d.length){if(k.length===1)return k[0];v=Nge(1048576,k)}}return Pge(d,n.objectFlags&16809984,void 0,void 0,v)}return n.flags&131072||a(n)?n:Vr}function pee(n,a){return dc(n,c=>c!==a)}function jdt(n){return n.flags&1048576?n.types.length:1}function dl(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const d=n.origin,_=d&&d.flags&1048576?d.types:n.types;let v,x=!1;for(const k of _){const F=k.flags&1048576?dl(k,a,c):a(k);x||(x=k!==F),F&&(v?v.push(F):v=[F])}return x?v&&ei(v,c?0:1):n}function e4e(n,a,c,d){return n.flags&1048576&&c?ei(Wt(n.types,a),1,c,d):dl(n,a)}function ZM(n,a){return dc(n,c=>(c.flags&a)!==0)}function t4e(n,a){return Cl(n,134217804)&&Cl(a,402655616)?dl(n,c=>c.flags&4?ZM(a,402653316):UT(c)&&!Cl(a,402653188)?ZM(a,128):c.flags&8?ZM(a,264):c.flags&64?ZM(a,2112):c):n}function RN(n){return n.flags===0}function eA(n){return n.flags===0?n.type:n}function DN(n,a){return a?{flags:0,type:n.flags&131072?vo:n}:n}function Udt(n){const a=Wf(256);return a.elementType=n,a}function Cve(n){return wn[n.id]||(wn[n.id]=Udt(n))}function n4e(n,a){const c=F8(_v(sB(a)));return QM(c,n.elementType)?n:Cve(ei([n.elementType,c]))}function Hdt(n){return n.flags&131072?Hc:Vu(n.flags&1048576?ei(n.types,2):n)}function qdt(n){return n.finalArrayType||(n.finalArrayType=Hdt(n.elementType))}function L9(n){return Wr(n)&256?qdt(n):n}function Jdt(n){return Wr(n)&256?n.elementType:Vr}function Kdt(n){let a=!1;for(const c of n)if(!(c.flags&131072)){if(!(Wr(c)&256))return!1;a=!0}return a}function r4e(n){const a=Q6e(n),c=a.parent,d=Fr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Ve(c.name)&&kj(c.name)),_=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!eg(c.parent)&&xu(Ru(c.argumentExpression),296);return d||_}function Xdt(n){return(Oi(n)||qo(n)||gp(n)||Ao(n))&&!!(yu(n)||lr(n)&&Ly(n)&&n.initializer&&qE(n.initializer)&&em(n.initializer))}function fee(n,a){if(n=Vl(n),n.flags&8752)return dr(n);if(n.flags&7){if(xl(n)&262144){const d=n.links.syntheticOrigin;if(d&&fee(d))return dr(n)}const c=n.valueDeclaration;if(c){if(Xdt(c))return dr(n);if(Oi(c)&&c.parent.parent.kind===250){const d=c.parent.parent,_=k9(d.expression,void 0);if(_){const v=d.awaitModifier?15:13;return hy(v,_,Oe,void 0)}}a&&Ma(a,kr(c,f._0_needs_an_explicit_type_annotation,Si(n)))}}}function k9(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:const c=hf(Bm(n));return fee(c,a);case 110:return hpt(n);case 108:return Wve(n);case 211:{const d=k9(n.expression,a);if(d){const _=n.name;let v;if(qi(_)){if(!d.symbol)return;v=va(d,ek(d.symbol,_.escapedText))}else v=va(d,_.escapedText);return v&&fee(v,a)}return}case 217:return k9(n.expression,a)}}function w9(n){const a=Zr(n);let c=a.effectsSignature;if(c===void 0){let d;if(mr(n)){const x=NN(n.right);d=Dye(x)}else n.parent.kind===244?d=k9(n.expression,void 0):n.expression.kind!==108&&(qu(n)?d=$_(O8(mo(n.expression),n.expression),n.expression):d=NN(n.expression));const _=Xo(d&&Ld(d)||hn,0),v=_.length===1&&!_[0].typeParameters?_[0]:bt(_,i4e)?PN(n):void 0;c=a.effectsSignature=v&&i4e(v)?v:un}return c===un?void 0:c}function i4e(n){return!!(Gf(n)||n.declaration&&(yN(n.declaration)||hn).flags&131072)}function Ydt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const c=hs(a.expression);return ws(c)?hs(c.expression):void 0}function $dt(n){const a=Vn(n,OV),c=Un(n),d=_h(c,a.statements.pos);ts.add($c(c,d.start,d.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function O9(n){const a=mee(n,!1);return Mt=n,jt=a,a}function W9(n){const a=hs(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(W9(a.left)||W9(a.right))||a.operatorToken.kind===57&&W9(a.left)&&W9(a.right))}function mee(n,a){for(;;){if(n===Mt)return jt;const c=n.flags;if(c&4096){if(!a){const d=Ive(n),_=dT[d];return _!==void 0?_:dT[d]=mee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){const d=w9(n.node);if(d){const _=Gf(d);if(_&&_.kind===3&&!_.type){const v=n.node.arguments[_.parameterIndex];if(v&&W9(v))return!1}if(ps(d).flags&131072)return!1}n=n.antecedent}else{if(c&4)return bt(n.antecedents,d=>mee(d,!1));if(c&8){const d=n.antecedents;if(d===void 0||d.length===0)return!1;n=d[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&z3e(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){Mt=void 0;const d=n.target,_=d.antecedents;d.antecedents=n.antecedents;const v=mee(n.antecedent,!1);return d.antecedents=_,v}else return!(c&1)}}}function _ee(n,a){for(;;){const c=n.flags;if(c&4096){if(!a){const d=Ive(n),_=HI[d];return _!==void 0?_:HI[d]=_ee(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return Jn(n.antecedents,d=>_ee(d,!1));if(c&8)n=n.antecedents[0];else if(c&1024){const d=n.target,_=d.antecedents;d.antecedents=n.antecedents;const v=_ee(n.antecedent,!1);return d.antecedents=_,v}else return!!(c&1)}}}function o4e(n){switch(n.kind){case 110:return!0;case 80:if(!kA(n)){const c=Bm(n);return e2(c)||gee(c)&&!a4e(c)}break;case 211:case 212:return o4e(n.expression)&&g_(Zr(n).resolvedSymbol||ft);case 206:case 207:const a=R_(n.parent);return Ao(a)||Doe(a)?!Pve(a):Oi(a)&&yB(a)}return!1}function Vb(n,a,c=a,d,_=(v=>(v=ri(n,qL))==null?void 0:v.flowNode)()){let v,x=!1,k=0;if(ze)return _t;if(!_)return a;Ze++;const F=Xg,H=eA(ge(_));Xg=F;const re=Wr(H)&256&&r4e(n)?Hc:L9(H);if(re===Ri||n.parent&&n.parent.kind===235&&!(re.flags&131072)&&mm(re,2097152).flags&131072)return a;return re===q?hn:re;function be(){return x?v:(x=!0,v=uee(n,a,c,d))}function ge(lt){var wt;if(k===2e3)return(wt=sr)==null||wt.instant(sr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:lt.id}),ze=!0,$dt(n),_t;k++;let dn;for(;;){const Ut=lt.flags;if(Ut&4096){for(let Fn=F;Fn<Xg;Fn++)if(jI[Fn]===lt)return k--,UI[Fn];dn=lt}let _n;if(Ut&16){if(_n=gt(lt),!_n){lt=lt.antecedent;continue}}else if(Ut&512){if(_n=an(lt),!_n){lt=lt.antecedent;continue}}else if(Ut&96)_n=ar(lt);else if(Ut&128)_n=Wn(lt);else if(Ut&12){if(lt.antecedents.length===1){lt=lt.antecedents[0];continue}_n=Ut&4?ln(lt):Bn(lt)}else if(Ut&256){if(_n=cn(lt),!_n){lt=lt.antecedent;continue}}else if(Ut&1024){const Fn=lt.target,ki=Fn.antecedents;Fn.antecedents=lt.antecedents,_n=ge(lt.antecedent),Fn.antecedents=ki}else if(Ut&2){const Fn=lt.node;if(Fn&&Fn!==d&&n.kind!==211&&n.kind!==212&&!(n.kind===110&&Fn.kind!==219)){lt=Fn.flowNode;continue}_n=c}else _n=n6(a);return dn&&(jI[Xg]=dn,UI[Xg]=_n,Xg++),k--,_n}}function Je(lt){const wt=lt.node;return Mve(wt.kind===260||wt.kind===208?$6e(wt):M9(wt),n)}function gt(lt){const wt=lt.node;if(Iu(n,wt)){if(!O9(lt))return Ri;if(MA(wt)===2){const Ut=ge(lt.antecedent);return DN(_v(eA(Ut)),RN(Ut))}if(a===it||a===Hc){if(Fdt(wt))return Cve(Vr);const Ut=q1(Je(lt));return ba(Ut,a)?Ut:ec}const dn=xj(wt)?_v(a):a;return dn.flags&1048576?Ndt(dn,Je(lt)):dn}if(B6e(n,wt)){if(!O9(lt))return Ri;if(Oi(wt)&&(lr(wt)||yB(wt))){const dn=WL(wt);if(dn&&(dn.kind===218||dn.kind===219))return ge(lt.antecedent)}return a}if(Oi(wt)&&wt.parent.parent.kind===249&&(Iu(n,wt.parent.parent.expression)||$T(wt.parent.parent.expression,n)))return eye(L9(eA(ge(lt.antecedent))))}function Dt(lt,wt){const dn=hs(wt,!0);if(dn.kind===97)return Ri;if(dn.kind===226){if(dn.operatorToken.kind===56)return Dt(Dt(lt,dn.left),dn.right);if(dn.operatorToken.kind===57)return ei([Dt(lt,dn.left),Dt(lt,dn.right)])}return Ur(lt,dn,!0)}function an(lt){const wt=w9(lt.node);if(wt){const dn=Gf(wt);if(dn&&(dn.kind===2||dn.kind===3)){const Ut=ge(lt.antecedent),_n=L9(eA(Ut)),Fn=dn.type?Ii(_n,dn,lt.node,!0):dn.kind===3&&dn.parameterIndex>=0&&dn.parameterIndex<lt.node.arguments.length?Dt(_n,lt.node.arguments[dn.parameterIndex]):_n;return Fn===_n?Ut:DN(Fn,RN(Ut))}if(ps(wt).flags&131072)return Ri}}function cn(lt){if(a===it||a===Hc){const wt=lt.node,dn=wt.kind===213?wt.expression.expression:wt.left.expression;if(Iu(n,J1(dn))){const Ut=ge(lt.antecedent),_n=eA(Ut);if(Wr(_n)&256){let Fn=_n;if(wt.kind===213)for(const ki of wt.arguments)Fn=n4e(Fn,ki);else{const ki=sB(wt.left.argumentExpression);xu(ki,296)&&(Fn=n4e(Fn,wt.right))}return Fn===_n?Ut:DN(Fn,RN(Ut))}return Ut}}}function ar(lt){const wt=ge(lt.antecedent),dn=eA(wt);if(dn.flags&131072)return wt;const Ut=(lt.flags&32)!==0,_n=L9(dn),Fn=Ur(_n,lt.node,Ut);return Fn===_n?wt:DN(Fn,RN(wt))}function Wn(lt){const wt=hs(lt.switchStatement.expression),dn=ge(lt.antecedent);let Ut=eA(dn);if(Iu(n,wt))Ut=Ss(Ut,lt.switchStatement,lt.clauseStart,lt.clauseEnd);else if(wt.kind===221&&Iu(n,wt.expression))Ut=kd(Ut,lt.switchStatement,lt.clauseStart,lt.clauseEnd);else if(wt.kind===112)Ut=Wl(Ut,lt.switchStatement,lt.clauseStart,lt.clauseEnd);else{X&&($T(wt,n)?Ut=ss(Ut,lt.switchStatement,lt.clauseStart,lt.clauseEnd,Fn=>!(Fn.flags&163840)):wt.kind===221&&$T(wt.expression,n)&&(Ut=ss(Ut,lt.switchStatement,lt.clauseStart,lt.clauseEnd,Fn=>!(Fn.flags&131072||Fn.flags&128&&Fn.value==="undefined"))));const _n=Kn(wt,Ut);_n&&(Ut=Eo(Ut,_n,lt.switchStatement,lt.clauseStart,lt.clauseEnd))}return DN(Ut,RN(dn))}function ln(lt){const wt=[];let dn=!1,Ut=!1,_n;for(const Fn of lt.antecedents){if(!_n&&Fn.flags&128&&Fn.clauseStart===Fn.clauseEnd){_n=Fn;continue}const ki=ge(Fn),Br=eA(ki);if(Br===a&&a===c)return Br;Ef(wt,Br),QM(Br,c)||(dn=!0),RN(ki)&&(Ut=!0)}if(_n){const Fn=ge(_n),ki=eA(Fn);if(!(ki.flags&131072)&&!Or(wt,ki)&&!z3e(_n.switchStatement)){if(ki===a&&a===c)return ki;wt.push(ki),QM(ki,c)||(dn=!0),RN(Fn)&&(Ut=!0)}}return DN(zn(wt,dn?2:1),Ut)}function Bn(lt){const wt=Ive(lt),dn=BI[wt]||(BI[wt]=new Map),Ut=be();if(!Ut)return a;const _n=dn.get(Ut);if(_n)return _n;for(let Cn=V_;Cn<ff;Cn++)if(XD[Cn]===lt&&GI[Cn]===Ut&&VI[Cn].length)return DN(zn(VI[Cn],1),!0);const Fn=[];let ki=!1,Br;for(const Cn of lt.antecedents){let ti;if(!Br)ti=Br=ge(Cn);else{XD[ff]=lt,GI[ff]=Ut,VI[ff]=Fn,ff++;const fo=bn;bn=void 0,ti=ge(Cn),bn=fo,ff--;const Ea=dn.get(Ut);if(Ea)return Ea}const Zi=eA(ti);if(Ef(Fn,Zi),QM(Zi,c)||(ki=!0),Zi===a)break}const Go=zn(Fn,ki?2:1);return RN(Br)?DN(Go,!0):(dn.set(Ut,Go),Go)}function zn(lt,wt){if(Kdt(lt))return Cve(ei(Wt(lt,Jdt)));const dn=H6e(ei(Zo(lt,L9),wt));return dn!==a&&dn.flags&a.flags&1048576&&Ba(dn.types,a.types)?a:dn}function tr(lt){if(ta(n)||qE(n)||Tm(n)){if(Ve(lt)){const dn=Bm(lt).valueDeclaration;if(dn&&($a(dn)||Ao(dn))&&n===dn.parent&&!dn.initializer&&!dn.dotDotDotToken)return dn}}else if(ws(lt)){if(Iu(n,lt.expression))return lt}else if(Ve(lt)){const wt=Bm(lt);if(e2(wt)){const dn=wt.valueDeclaration;if(Oi(dn)&&!dn.type&&dn.initializer&&ws(dn.initializer)&&Iu(n,dn.initializer.expression))return dn.initializer;if($a(dn)&&!dn.initializer){const Ut=dn.parent.parent;if(Oi(Ut)&&!Ut.type&&Ut.initializer&&(Ve(Ut.initializer)||ws(Ut.initializer))&&Iu(n,Ut.initializer))return dn}}}}function Kn(lt,wt){if(a.flags&1048576||wt.flags&1048576){const dn=tr(lt);if(dn){const Ut=YT(dn);if(Ut){const _n=a.flags&1048576&&QM(wt,a)?a:wt;if(YM(_n,Ut))return dn}}}}function nr(lt,wt,dn){const Ut=YT(wt);if(Ut===void 0)return lt;const _n=qu(wt),Fn=X&&(_n||Coe(wt))&&Cl(lt,98304);let ki=Ke(Fn?mm(lt,2097152):lt,Ut);if(!ki)return lt;ki=Fn&&_n?Bb(ki):ki;const Br=dn(ki);return dc(lt,Go=>{const Cn=xt(Go,Ut)||hn;return!(Cn.flags&131072)&&!(Br.flags&131072)&&E9(Br,Cn)})}function Ro(lt,wt,dn,Ut,_n){if((dn===37||dn===38)&&lt.flags&1048576){const Fn=C9(lt);if(Fn&&Fn===YT(wt)){const ki=P9(lt,Ru(Ut));if(ki)return dn===(_n?37:38)?ki:__(Ke(ki,Fn)||hn)?pee(lt,ki):lt}}return nr(lt,wt,Fn=>ao(Fn,dn,Ut,_n))}function Eo(lt,wt,dn,Ut,_n){if(Ut<_n&&lt.flags&1048576&&C9(lt)===YT(wt)){const Fn=dee(dn).slice(Ut,_n),ki=ei(Wt(Fn,Br=>P9(lt,Br)||hn));if(ki!==hn)return ki}return nr(lt,wt,Fn=>Ss(Fn,dn,Ut,_n))}function Bo(lt,wt,dn){if(Iu(n,wt))return QT(lt,dn?4194304:8388608);X&&dn&&$T(wt,n)&&(lt=QT(lt,2097152));const Ut=Kn(wt,lt);return Ut?nr(lt,Ut,_n=>mm(_n,dn?4194304:8388608)):lt}function _o(lt,wt,dn){const Ut=va(lt,wt);return Ut?!!(Ut.flags&16777216||xl(Ut)&48)||dn:!!cx(lt,wt)||!dn}function Nc(lt,wt,dn){const Ut=nm(wt);if(Gm(lt,Fn=>_o(Fn,Ut,!0)))return dc(lt,Fn=>_o(Fn,Ut,dn));if(dn){const Fn=nct();if(Fn)return ya([lt,EN(Fn,[wt,hn])])}return lt}function Hf(lt,wt,dn,Ut,_n){return _n=_n!==(dn.kind===112)!=(Ut!==38&&Ut!==36),Ur(lt,wt,_n)}function up(lt,wt,dn){switch(wt.operatorToken.kind){case 64:case 76:case 77:case 78:return Bo(Ur(lt,wt.right,dn),wt.left,dn);case 35:case 36:case 37:case 38:const Ut=wt.operatorToken.kind,_n=J1(wt.left),Fn=J1(wt.right);if(_n.kind===221&&ls(Fn))return br(lt,_n,Ut,Fn,dn);if(Fn.kind===221&&ls(_n))return br(lt,Fn,Ut,_n,dn);if(Iu(n,_n))return ao(lt,Ut,Fn,dn);if(Iu(n,Fn))return ao(lt,Ut,_n,dn);X&&($T(_n,n)?lt=er(lt,Ut,Fn,dn):$T(Fn,n)&&(lt=er(lt,Ut,_n,dn)));const ki=Kn(_n,lt);if(ki)return Ro(lt,ki,Ut,Fn,dn);const Br=Kn(Fn,lt);if(Br)return Ro(lt,Br,Ut,_n,dn);if(bl(_n))return ut(lt,Ut,Fn,dn);if(bl(Fn))return ut(lt,Ut,_n,dn);if(fC(Fn)&&!ws(_n))return Hf(lt,_n,Fn,Ut,dn);if(fC(_n)&&!ws(Fn))return Hf(lt,Fn,_n,Ut,dn);break;case 104:return Ae(lt,wt,dn);case 103:if(qi(wt.left))return On(lt,wt,dn);const Go=J1(wt.right);if(W8(lt)&&ws(n)&&Iu(n.expression,Go)){const Cn=Ru(wt.left);if(tm(Cn)&&YT(n)===nm(Cn))return mm(lt,dn?524288:65536)}if(Iu(n,Go)){const Cn=Ru(wt.left);if(tm(Cn))return Nc(lt,Cn,dn)}break;case 28:return Ur(lt,wt.right,dn);case 56:return dn?Ur(Ur(lt,wt.left,!0),wt.right,!0):ei([Ur(lt,wt.left,!1),Ur(lt,wt.right,!1)]);case 57:return dn?ei([Ur(lt,wt.left,!0),Ur(lt,wt.right,!0)]):Ur(Ur(lt,wt.left,!1),wt.right,!1)}return lt}function On(lt,wt,dn){const Ut=J1(wt.right);if(!Iu(n,Ut))return lt;N.assertNode(wt.left,qi);const _n=Dee(wt.left);if(_n===void 0)return lt;const Fn=_n.parent,ki=mc(N.checkDefined(_n.valueDeclaration,"should always have a declaration"))?dr(Fn):Zs(Fn);return Cr(lt,ki,dn,!0)}function er(lt,wt,dn,Ut){const _n=wt===35||wt===37,Fn=wt===35||wt===36?98304:32768,ki=Ru(dn);return _n!==Ut&&cp(ki,Go=>!!(Go.flags&Fn))||_n===Ut&&cp(ki,Go=>!(Go.flags&(3|Fn)))?QT(lt,2097152):lt}function ao(lt,wt,dn,Ut){if(lt.flags&1)return lt;(wt===36||wt===38)&&(Ut=!Ut);const _n=Ru(dn),Fn=wt===35||wt===36;if(_n.flags&98304){if(!X)return lt;const ki=Fn?Ut?262144:2097152:_n.flags&65536?Ut?131072:1048576:Ut?65536:524288;return QT(lt,ki)}if(Ut){if(!Fn&&(lt.flags&2||Gm(lt,Vh))){if(_n.flags&469893116||Vh(_n))return _n;if(_n.flags&524288)return Jr}const ki=dc(lt,Br=>E9(Br,_n)||Fn&&Qut(Br,_n));return t4e(ki,_n)}return __(_n)?dc(lt,ki=>!(E6e(ki)&&E9(ki,_n))):lt}function br(lt,wt,dn,Ut,_n){(dn===36||dn===38)&&(_n=!_n);const Fn=J1(wt.expression);if(!Iu(n,Fn)){X&&$T(Fn,n)&&_n===(Ut.text!=="undefined")&&(lt=QT(lt,2097152));const ki=Kn(Fn,lt);return ki?nr(lt,ki,Br=>Po(Br,Ut,_n)):lt}return Po(lt,Ut,_n)}function Po(lt,wt,dn){return dn?ju(lt,wt.text):QT(lt,Rq.get(wt.text)||32768)}function ss(lt,wt,dn,Ut,_n){return dn!==Ut&&Jn(dee(wt).slice(dn,Ut),_n)?mm(lt,2097152):lt}function Ss(lt,wt,dn,Ut){const _n=dee(wt);if(!_n.length)return lt;const Fn=_n.slice(dn,Ut),ki=dn===Ut||Or(Fn,Vr);if(lt.flags&2&&!ki){let ti;for(let Zi=0;Zi<Fn.length;Zi+=1){const fo=Fn[Zi];if(fo.flags&469893116)ti!==void 0&&ti.push(fo);else if(fo.flags&524288)ti===void 0&&(ti=Fn.slice(0,Zi)),ti.push(Jr);else return lt}return ei(ti===void 0?Fn:ti)}const Br=ei(Fn),Go=Br.flags&131072?Vr:t4e(dc(lt,ti=>E9(Br,ti)),Br);if(!ki)return Go;const Cn=dc(lt,ti=>!(E6e(ti)&&Or(_n,yd(Uut(ti)))));return Go.flags&131072?Cn:ei([Go,Cn])}function ju(lt,wt){switch(wt){case"string":return Fa(lt,ke,1);case"number":return Fa(lt,Tt,2);case"bigint":return Fa(lt,kt,4);case"boolean":return Fa(lt,Pi,8);case"symbol":return Fa(lt,xi,16);case"object":return lt.flags&1?lt:ei([Fa(lt,Jr,32),Fa(lt,fe,131072)]);case"function":return lt.flags&1?lt:Fa(lt,Ot,64);case"undefined":return Fa(lt,Oe,65536)}return Fa(lt,Jr,128)}function Fa(lt,wt,dn){return dl(lt,Ut=>Y_(Ut,wt,wf)?fm(Ut,dn)?Ut:Vr:Wb(wt,Ut)?wt:fm(Ut,dn)?ya([Ut,wt]):Vr)}function kd(lt,wt,dn,Ut){const _n=Z6e(wt);if(!_n)return lt;const Fn=mi(wt.caseBlock.clauses,Go=>Go.kind===297);if(dn===Ut||Fn>=dn&&Fn<Ut){const Go=F3e(dn,Ut,_n);return dc(lt,Cn=>$M(Cn,Go)===Go)}const Br=_n.slice(dn,Ut);return ei(Wt(Br,Go=>Go?ju(lt,Go):Vr))}function Wl(lt,wt,dn,Ut){const _n=mi(wt.caseBlock.clauses,Br=>Br.kind===297),Fn=dn===Ut||_n>=dn&&_n<Ut;for(let Br=0;Br<dn;Br++){const Go=wt.caseBlock.clauses[Br];Go.kind===296&&(lt=Ur(lt,Go.expression,!1))}if(Fn){for(let Br=Ut;Br<wt.caseBlock.clauses.length;Br++){const Go=wt.caseBlock.clauses[Br];Go.kind===296&&(lt=Ur(lt,Go.expression,!1))}return lt}const ki=wt.caseBlock.clauses.slice(dn,Ut);return ei(Wt(ki,Br=>Br.kind===296?Ur(lt,Br.expression,!0):Vr))}function bl(lt){return(Fr(lt)&&Sr(lt.name)==="constructor"||$s(lt)&&ls(lt.argumentExpression)&&lt.argumentExpression.text==="constructor")&&Iu(n,lt.expression)}function ut(lt,wt,dn,Ut){if(Ut?wt!==35&&wt!==37:wt!==36&&wt!==38)return lt;const _n=Ru(dn);if(!ibe(_n)&&!is(_n))return lt;const Fn=va(_n,"prototype");if(!Fn)return lt;const ki=dr(Fn),Br=Nt(ki)?void 0:ki;if(!Br||Br===Pe||Br===Ot)return lt;if(Nt(lt))return Br;return dc(lt,Cn=>Go(Cn,Br));function Go(Cn,ti){return Cn.flags&524288&&Wr(Cn)&1||ti.flags&524288&&Wr(ti)&1?Cn.symbol===ti.symbol:Wb(Cn,ti)}}function Ae(lt,wt,dn){const Ut=J1(wt.left);if(!Iu(n,Ut))return dn&&X&&$T(Ut,n)?QT(lt,2097152):lt;const _n=wt.right,Fn=Ru(_n);if(!lE(Fn,Pe))return lt;const ki=w9(wt),Br=ki&&Gf(ki);if(Br&&Br.kind===1&&Br.parameterIndex===0)return Cr(lt,Br.type,dn,!0);if(!lE(Fn,Ot))return lt;const Go=dl(Fn,kn);return Nt(lt)&&(Go===Pe||Go===Ot)||!dn&&!(Go.flags&524288&&!Vh(Go))?lt:Cr(lt,Go,dn,!0)}function kn(lt){const wt=Ke(lt,"prototype");if(wt&&!Nt(wt))return wt;const dn=Xo(lt,1);return dn.length?ei(Wt(dn,Ut=>ps(A8(Ut)))):Ca}function Cr(lt,wt,dn,Ut){const _n=lt.flags&1048576?`N${vd(lt)},${vd(wt)},${(dn?1:0)|(Ut?2:0)}`:void 0;return qI(_n)??cb(_n,pi(lt,wt,dn,Ut))}function pi(lt,wt,dn,Ut){if(!dn){if(lt===wt)return Vr;if(Ut)return dc(lt,Go=>!lE(Go,wt));const Br=Cr(lt,wt,!0,!1);return dc(lt,Go=>!QM(Go,Br))}if(lt.flags&3||lt===wt)return wt;const _n=Ut?lE:Wb,Fn=lt.flags&1048576?C9(lt):void 0,ki=dl(wt,Br=>{const Go=Fn&&Ke(Br,Fn),Cn=Go&&P9(lt,Go),ti=dl(Cn||lt,Ut?Zi=>lE(Zi,Br)?Zi:lE(Br,Zi)?Br:Vr:Zi=>b9(Zi,Br)?Zi:b9(Br,Zi)?Br:Wb(Zi,Br)?Zi:Wb(Br,Zi)?Br:Vr);return ti.flags&131072?dl(lt,Zi=>Cl(Zi,465829888)&&_n(Br,Gu(Zi)||hn)?ya([Zi,Br]):Vr):ti});return ki.flags&131072?Wb(wt,lt)?wt:ba(lt,wt)?lt:ba(wt,lt)?wt:ya([lt,wt]):ki}function Ai(lt,wt,dn){if(U6e(wt,n)){const Ut=dn||!uS(wt)?w9(wt):void 0,_n=Ut&&Gf(Ut);if(_n&&(_n.kind===0||_n.kind===1))return Ii(lt,_n,wt,dn)}if(W8(lt)&&ws(n)&&Fr(wt.expression)){const Ut=wt.expression;if(Iu(n.expression,J1(Ut.expression))&&Ve(Ut.name)&&Ut.name.escapedText==="hasOwnProperty"&&wt.arguments.length===1){const _n=wt.arguments[0];if(ls(_n)&&YT(n)===_l(_n.text))return mm(lt,dn?524288:65536)}}return lt}function Ii(lt,wt,dn,Ut){if(wt.type&&!(Nt(lt)&&(wt.type===Pe||wt.type===Ot))){const _n=Ydt(wt,dn);if(_n){if(Iu(n,_n))return Cr(lt,wt.type,Ut,!1);X&&$T(_n,n)&&(Ut&&!fm(wt.type,65536)||!Ut&&cp(wt.type,H9))&&(lt=QT(lt,2097152));const Fn=Kn(_n,lt);if(Fn)return nr(lt,Fn,ki=>Cr(ki,wt.type,Ut,!1))}}return lt}function Ur(lt,wt,dn){if(p4(wt)||mr(wt.parent)&&(wt.parent.operatorToken.kind===61||wt.parent.operatorToken.kind===78)&&wt.parent.left===wt)return xr(lt,wt,dn);switch(wt.kind){case 80:if(!Iu(n,wt)&&M<5){const Ut=Bm(wt);if(e2(Ut)){const _n=Ut.valueDeclaration;if(_n&&Oi(_n)&&!_n.type&&_n.initializer&&o4e(n)){M++;const Fn=Ur(lt,_n.initializer,dn);return M--,Fn}}}case 110:case 108:case 211:case 212:return Bo(lt,wt,dn);case 213:return Ai(lt,wt,dn);case 217:case 235:return Ur(lt,wt.expression,dn);case 226:return up(lt,wt,dn);case 224:if(wt.operator===54)return Ur(lt,wt.operand,!dn);break}return lt}function xr(lt,wt,dn){if(Iu(n,wt))return QT(lt,dn?2097152:262144);const Ut=Kn(wt,lt);return Ut?nr(lt,Ut,_n=>mm(_n,dn?2097152:262144)):lt}}function Qdt(n,a){if(n=hf(n),(a.kind===80||a.kind===81)&&(zC(a)&&(a=a.parent),Qh(a)&&(!eg(a)||WA(a)))){const c=eee(WA(a)&&a.kind===211?xee(a,void 0,!0):Ru(a));if(hf(Zr(a).resolvedSymbol)===n)return c}return wg(a)&&Mv(a.parent)&&zm(a.parent)?Qz(a.parent.symbol):Qj(a)&&WA(a.parent)?F1(n):Db(n)}function V8(n){return Vn(n.parent,a=>ea(a)&&!bS(a)||a.kind===268||a.kind===312||a.kind===172)}function a4e(n){return!s4e(n,void 0)}function s4e(n,a){const c=Vn(n.valueDeclaration,hee);if(!c)return!1;const d=Zr(c);return d.flags&131072||(d.flags|=131072,Zdt(c)||c4e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPos<a.pos}function Pve(n){return N.assert(Oi(n)||Ao(n)),l4e(n.name)}function l4e(n){return n.kind===80?a4e(Ir(n.parent)):bt(n.elements,a=>a.kind!==232&&l4e(a.name))}function Zdt(n){return!!Vn(n.parent,a=>hee(a)&&!!(Zr(a).flags&131072))}function hee(n){return Bs(n)||$i(n)}function c4e(n){switch(n.kind){case 80:if(eg(n)){const c=Bm(n);if(gee(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){const d=Vn(n,hee),_=Vn(c.valueDeclaration,hee);c.lastAssignmentPos=d===_?ept(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:const a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){const c=Hs(n.propertyName||n.name,111551,!0,!0);c&&gee(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}ji(n)||Uo(n,c4e)}function ept(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:c=n.end}n=n.parent}return c}function e2(n){return n.flags&3&&($ve(n)&6)!==0}function gee(n){const a=n.valueDeclaration&&R_(n.valueDeclaration);return!!a&&(Ao(a)||Oi(a)&&(r1(a.parent)||tpt(a)))}function tpt(n){return!!(n.parent.flags&1)&&!(n0(n)&32||n.parent.parent.kind===243&&Ch(n.parent.parent.parent))}function npt(n){const a=Zr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Oh(n,9))return mN(n.symbol),!0;const c=!!fm(r2(n,0),16777216);if(!J_())return mN(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function rpt(n,a){return X&&a.kind===169&&a.initializer&&fm(n,16777216)&&!npt(a)?mm(n,524288):n}function ipt(n,a){const c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(Gm(n,d4e)&&qT(Ru(c.argumentExpression)))}function u4e(n){return n.flags&2097152?bt(n.types,u4e):!!(n.flags&465829888&&uv(n).flags&1146880)}function d4e(n){return n.flags&2097152?bt(n.types,d4e):!!(n.flags&465829888&&!Cl(uv(n),98304))}function opt(n,a){const c=(Ve(n)||Fr(n)||$s(n))&&!((k_(n.parent)||GS(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Yd(n,8):Yd(n,void 0));return c&&!AN(c)}function Mve(n,a,c){return!(c&&c&2)&&Gm(n,u4e)&&(ipt(n,a)||opt(a,c))?dl(n,uv):n}function p4e(n){return!!Vn(n,a=>{const c=a.parent;return c===void 0?"quit":kl(c)?c.expression===a&&Bl(a):Ku(c)?c.name===a||c.propertyName===a:!1})}function vee(n,a){if(It&&IT(n,111551)&&!DS(a)){const c=Oc(n);Au(n,!0)&1160127&&(rm(V)||KE(V)&&p4e(a)||!r6(hf(c))?gb(n):ru(n))}}function apt(n,a,c){var d;const _=dr(n,c),v=n.valueDeclaration;if(v){if($a(v)&&!v.initializer&&!v.dotDotDotToken&&v.parent.elements.length>=2){const x=v.parent.parent,k=R_(x);if(k.kind===260&&eS(k)&6||k.kind===169){const F=Zr(x);if(!(F.flags&4194304)){F.flags|=4194304;const H=zr(x,0),re=H&&dl(H,uv);if(F.flags&=-4194305,re&&re.flags&1048576&&!(k.kind===169&&Pve(k))){const be=v.parent,ge=Vb(be,re,re,void 0,a.flowNode);return ge.flags&131072?Vr:bg(v,ge,!0)}}}}if(Ao(v)&&!v.type&&!v.initializer&&!v.dotDotDotToken){const x=v.parent;if(x.parameters.length>=2&&VZ(x)){const k=U8(x);if(k&&k.parameters.length===1&&Yu(k)){const F=zM(lo(dr(k.parameters[0]),(d=K1(x))==null?void 0:d.nonFixingMapper));if(F.flags&1048576&&cp(F,Wa)&&!bt(x.parameters,Pve)){const H=Vb(x,F,F,void 0,a.flowNode),re=x.parameters.indexOf(v)-(BE(x)?1:0);return Pp(H,m_(re))}}}}}return _}function spt(n,a){if(kA(n))return F9(n);const c=Bm(n);if(c===ft)return _t;if(c===Bt){if(X4e(n))return qe(n,f.arguments_cannot_be_referenced_in_property_initializers),_t;let ln=Bp(n);if(ln)for(se<2&&(ln.kind===219?qe(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Qr(ln,1024)&&qe(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Zr(ln).flags|=512;ln&&Gs(ln);)ln=Bp(ln),ln&&(Zr(ln).flags|=512);return dr(c)}cpt(n)&&vee(c,n);const d=hf(c),_=Qye(d,n);ub(_)&&kge(n,_)&&_.declarations&&iy(n,_.declarations,n.escapedText);let v=d.valueDeclaration;if(v&&d.flags&32&&di(v)&&v.name!==n){let ln=Fd(n,!1,!1);for(;ln.kind!==312&&ln.parent!==v;)ln=Fd(ln,!1,!1);ln.kind!==312&&(Zr(v).flags|=262144,Zr(ln).flags|=262144,Zr(n).flags|=536870912)}ppt(n,c);let x=apt(d,n,a);const k=MA(n);if(k){if(!(d.flags&3)&&!(lr(n)&&d.flags&512)){const ln=d.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:d.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:d.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:d.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:d.flags&2097152?f.Cannot_assign_to_0_because_it_is_an_import:f.Cannot_assign_to_0_because_it_is_not_a_variable;return qe(n,ln,Si(c)),_t}if(g_(d))return d.flags&3?qe(n,f.Cannot_assign_to_0_because_it_is_a_constant,Si(c)):qe(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Si(c)),_t}const F=d.flags&2097152;if(d.flags&3){if(k===1)return xj(n)?_v(x):x}else if(F)v=wm(c);else return x;if(!v)return x;x=Mve(x,n,a);const H=R_(v).kind===169,re=V8(v);let be=V8(n);const ge=be!==re,Je=n.parent&&n.parent.parent&&jv(n.parent)&&Nve(n.parent.parent),gt=c.flags&134217728,Dt=x===it||x===Hc,an=Dt&&n.parent.kind===235;for(;be!==re&&(be.kind===218||be.kind===219||B4(be))&&(e2(d)&&x!==Hc||gee(d)&&s4e(d,n));)be=V8(be);const cn=H||F||ge||Je||gt||lpt(n,v)||x!==it&&x!==Hc&&(!X||(x.flags&16387)!==0||DS(n)||Tve(n)||n.parent.kind===281)||n.parent.kind===235||v.kind===260&&v.exclamationToken||v.flags&33554432,ar=an?Oe:cn?H?rpt(x,v):x:Dt?Oe:Bb(x),Wn=an?hv(Vb(n,x,ar,be)):Vb(n,x,ar,be);if(!r4e(n)&&(x===it||x===Hc)){if(Wn===it||Wn===Hc)return de&&(qe(Lo(v),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Si(c),Hn(Wn)),qe(n,f.Variable_0_implicitly_has_an_1_type,Si(c),Hn(Wn))),n6(Wn)}else if(!cn&&!HM(x)&&HM(Wn))return qe(n,f.Variable_0_is_used_before_being_assigned,Si(c)),x;return k?_v(Wn):Wn}function lpt(n,a){if($a(a)){const c=Vn(n,$a);return c&&R_(c)===R_(a)}}function cpt(n){var a;const c=n.parent;if(c){if(Fr(c)&&c.expression===n||Ku(c)&&c.isTypeOnly)return!1;const d=(a=c.parent)==null?void 0:a.parent;if(d&&Yl(d)&&d.isTypeOnly)return!1}return!0}function upt(n,a){return!!Vn(n,c=>c===a?"quit":ea(c)||c.parent&&qo(c.parent)&&!mc(c.parent)&&c.parent.initializer===c)}function dpt(n,a){return Vn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Lve(n){return Vn(n,a=>!a||wj(a)?"quit":Py(a,!1))}function ppt(n,a){if(se>=2||!(a.flags&34)||!a.valueDeclaration||$i(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;const c=mh(a.valueDeclaration),d=upt(n,c),_=Lve(c);if(_){if(d){let v=!0;if(zS(c)){const x=f0(a.valueDeclaration,261);if(x&&x.parent===c){const k=dpt(n.parent,c);if(k){const F=Zr(k);F.flags|=8192;const H=F.capturedBlockScopeBindings||(F.capturedBlockScopeBindings=[]);Ef(H,a),k===c.initializer&&(v=!1)}}}v&&(Zr(_).flags|=4096)}if(zS(c)){const v=f0(a.valueDeclaration,261);v&&v.parent===c&&mpt(n,c)&&(Zr(a.valueDeclaration).flags|=65536)}Zr(a.valueDeclaration).flags|=32768}d&&(Zr(a.valueDeclaration).flags|=16384)}function fpt(n,a){const c=Zr(n);return!!c&&Or(c.capturedBlockScopeBindings,Ir(a))}function mpt(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let d=!1;if(eg(c))d=!0;else if(c.parent.kind===224||c.parent.kind===225){const _=c.parent;d=_.operator===46||_.operator===47}return d?!!Vn(c,_=>_===a?"quit":_===a.statement):!1}function kve(n,a){if(Zr(n).flags|=2,a.kind===172||a.kind===176){const c=a.parent;Zr(c).flags|=4}else Zr(a).flags|=4}function f4e(n){return yS(n)?n:ea(n)?void 0:Uo(n,f4e)}function wve(n){const a=Ir(n),c=Zs(a);return Np(c)===Be}function m4e(n,a,c){const d=a.parent;FE(d)&&!wve(d)&&qL(n)&&n.flowNode&&!_ee(n.flowNode,!1)&&qe(n,c)}function _pt(n,a){qo(a)&&mc(a)&&ne&&a.initializer&&eL(a.initializer,n.pos)&&Tf(a.parent)&&qe(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function F9(n){const a=DS(n);let c=Fd(n,!0,!0),d=!1,_=!1;for(c.kind===176&&m4e(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=Fd(c,!1,!_),d=!0),c.kind===167){c=Fd(c,!d,!1),_=!0;continue}break}if(_pt(n,c),_)qe(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:qe(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:qe(n,f.this_cannot_be_referenced_in_current_location);break;case 176:_4e(n,c)&&qe(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&d&&se<2&&kve(n,c);const v=Ove(n,!0,c);if(ie){const x=dr(ot);if(v===x&&d)qe(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!v){const k=qe(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!$i(c)){const F=Ove(c);F&&F!==x&&Ma(k,kr(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return v||j}function Ove(n,a=!0,c=Fd(n,!1,!1)){const d=lr(n);if(ea(c)&&(!zve(n)||BE(c))){let _=zhe(c)||d&&vpt(c);if(!_){const v=gpt(c);if(d&&v){const x=mo(v).symbol;x&&x.members&&x.flags&16&&(_=Zs(x).thisType)}else Z_(c)&&(_=Zs(rs(c.symbol)).thisType);_||(_=y4e(c))}if(_)return Vb(n,_)}if(di(c.parent)){const _=Ir(c.parent),v=aa(c)?dr(_):Zs(_).thisType;return Vb(n,v)}if($i(c))if(c.commonJsModuleIndicator){const _=Ir(c);return _&&dr(_)}else{if(c.externalModuleIndicator)return Oe;if(a)return dr(ot)}}function hpt(n){const a=Fd(n,!1,!1);if(ea(a)){const c=dm(a);if(c.thisParameter)return fee(c.thisParameter)}if(di(a.parent)){const c=Ir(a.parent);return aa(a)?dr(c):Zs(c).thisType}}function gpt(n){if(n.kind===218&&mr(n.parent)&&zl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&mr(n.parent.parent)&&zl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&mr(n.parent.parent.parent)&&zl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&hc(n.parent)&&Ve(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&La(n.parent.parent)&&sa(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&zl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Hl(n)&&Ve(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&La(n.parent)&&sa(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&zl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function vpt(n){const a=l4(n);if(a&&a.typeExpression)return Ti(a.typeExpression);const c=BM(n);if(c)return oE(c)}function _4e(n,a){return!!Vn(n,c=>Bs(c)?"quit":c.kind===169&&c.parent===a)}function Wve(n){const a=n.parent.kind===213&&n.parent.expression===n,c=CL(n,!0);let d=c,_=!1,v=!1;if(!a){for(;d&&d.kind===219;)Qr(d,1024)&&(v=!0),d=CL(d,!0),_=se<2;d&&Qr(d,1024)&&(v=!0)}let x=0;if(!d||!re(d)){const be=Vn(n,ge=>ge===d?"quit":ge.kind===167);return be&&be.kind===167?qe(n,f.super_cannot_be_referenced_in_a_computed_property_name):a?qe(n,f.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!d||!d.parent||!(di(d.parent)||d.parent.kind===210)?qe(n,f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):qe(n,f.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),_t}if(!a&&c.kind===176&&m4e(n,d,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),aa(d)||a?(x=32,!a&&se>=2&&se<=8&&(qo(d)||Rl(d))&&Ure(n.parent,be=>{(!$i(be)||Fp(be))&&(Zr(be).flags|=2097152)})):x=16,Zr(n).flags|=x,d.kind===174&&v&&(zd(n.parent)&&eg(n.parent)?Zr(d).flags|=256:Zr(d).flags|=128),_&&kve(n.parent,d),d.parent.kind===210)return se<2?(qe(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_t):j;const k=d.parent;if(!FE(k))return qe(n,f.super_can_only_be_referenced_in_a_derived_class),_t;if(wve(k))return a?_t:Be;const F=Zs(Ir(k)),H=F&&Cp(F)[0];if(!H)return _t;if(d.kind===176&&_4e(n,d))return qe(n,f.super_cannot_be_referenced_in_constructor_arguments),_t;return x===32?Np(F):Jp(H,F.thisType);function re(be){return a?be.kind===176:di(be.parent)||be.parent.kind===210?aa(be)?be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===175:be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===171||be.kind===176:!1}}function h4e(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function g4e(n){return Wr(n)&4&&n.target===Gl?Js(n)[0]:void 0}function ypt(n){return dl(n,a=>a.flags&2097152?Xe(a.types,g4e):g4e(a))}function v4e(n,a){let c=n,d=a;for(;d;){const _=ypt(d);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,d=mE(c,void 0)}}function y4e(n){if(n.kind===219)return;if(VZ(n)){const c=U8(n);if(c){const d=c.thisParameter;if(d)return dr(d)}}const a=lr(n);if(ie||a){const c=h4e(n);if(c){const _=mE(c,void 0),v=v4e(c,_);return v?lo(v,mve(K1(c))):Kp(_?hv(_):nc(c))}const d=kv(n.parent);if(Pc(d)){const _=d.left;if(ws(_)){const{expression:v}=_;if(a&&Ve(v)){const x=Un(d);if(x.commonJsModuleIndicator&&Bm(v)===x.symbol)return}return Kp(nc(v))}}}}function b4e(n){const a=n.parent;if(!VZ(a))return;const c=bS(a);if(c&&c.arguments){const _=kee(c),v=a.parameters.indexOf(n);if(n.dotDotDotToken)return dye(_,v,_.length,j,void 0,0);const x=Zr(c),k=x.resolvedSignature;x.resolvedSignature=Et;const F=v<_.length?q1(mo(_[v])):n.initializer?void 0:Lt;return x.resolvedSignature=k,F}const d=U8(a);if(d){const _=a.parameters.indexOf(n)-(BE(a)?1:0);return n.dotDotDotToken&&el(a.parameters)===n?eB(d,_):Y1(d,_)}}function Fve(n,a){const c=yu(n)||(lr(n)?K3(n):void 0);if(c)return Ti(c);switch(n.kind){case 169:return b4e(n);case 208:return bpt(n,a);case 172:if(aa(n))return Ept(n,a)}}function bpt(n,a){const c=n.parent.parent,d=n.propertyName||n.name,_=Fve(c,a)||c.kind!==208&&c.initializer&&r2(c,n.dotDotDotToken?32:0);if(!_||ta(d)||AL(d))return;if(c.name.kind===207){const x=tR(n.parent.elements,n);return x<0?void 0:Vve(_,x)}const v=py(d);if(tm(v)){const x=nm(v);return Ke(_,x)}}function Ept(n,a){const c=yt(n.parent)&&Yd(n.parent,a);if(c)return fE(c,Ir(n).escapedName)}function Spt(n,a){const c=n.parent;if(Ly(c)&&n===c.initializer){const d=Fve(c,a);if(d)return d;if(!(a&8)&&ta(c.name)&&c.name.elements.length>0)return P(c.name,!0,!1)}}function Tpt(n,a){const c=Bp(n);if(c){let d=yee(c,a);if(d){const _=Bc(c);if(_&1){const v=(_&2)!==0;d.flags&1048576&&(d=dc(d,k=>!!$1(1,k,v)));const x=$1(1,d,(_&2)!==0);if(!x)return;d=x}if(_&2){const v=dl(d,_y);return v&&ei([v,w3e(v)])}return d}}}function Apt(n,a){const c=Yd(n,a);if(c){const d=_y(c);return d&&ei([d,w3e(d)])}}function Ipt(n,a){const c=Bp(n);if(c){const d=Bc(c);let _=yee(c,a);if(_){const v=(d&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=dc(_,x=>!!$1(1,x,v))),n.asteriskToken?_:$1(0,_,v)}}}function zve(n){let a=!1;for(;n.parent&&!ea(n.parent);){if(Ao(n.parent)&&(a||n.parent.initializer===n))return!0;$a(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function E4e(n,a){const c=!!(Bc(a)&2),d=yee(a,void 0);if(d)return $1(n,d,c)||void 0}function yee(n,a){const c=yN(n);if(c)return c;const d=Uve(n);if(d&&!TZ(d)){const v=ps(d),x=Bc(n);return x&1?dc(v,k=>!!(k.flags&58998787)||Mye(k,x,void 0)):x&2?dc(v,k=>!!(k.flags&58998787)||!!a2(k)):v}const _=bS(n);if(_)return Yd(_,a)}function S4e(n,a){const d=kee(n).indexOf(a);return d===-1?void 0:Bve(n,d)}function Bve(n,a){if(zp(n))return a===0?ke:a===1?u8e(!1):j;const c=Zr(n).resolvedSignature===Er?Er:PN(n);if(ld(n)&&a===0)return Tee(c,n);const d=c.parameters.length-1;return Yu(c)&&a>=d?Pp(dr(c.parameters[d]),m_(a-d),256):h_(c,a)}function xpt(n){const a=Aye(n);return a?VT(a):void 0}function Rpt(n,a){if(n.parent.kind===215)return S4e(n.parent,a)}function Dpt(n,a){const c=n.parent,{left:d,operatorToken:_,right:v}=c;switch(_.kind){case 64:case 77:case 76:case 78:return n===v?Cpt(c):void 0;case 57:case 61:const x=Yd(c,a);return n===v&&(x&&x.pattern||!x&&!die(c))?Ru(d):x;case 56:case 28:return n===v?Yd(c,a):void 0;default:return}}function Npt(n){if(T_(n)&&n.symbol)return n.symbol;if(Ve(n))return Bm(n);if(Fr(n)){const c=Ru(n.expression);return qi(n.name)?a(c,n.name):va(c,n.name.escapedText)}if($s(n)){const c=nc(n.argumentExpression);if(!tm(c))return;const d=Ru(n.expression);return va(d,nm(c))}return;function a(c,d){const _=Ree(d.escapedText,d);return _&&tye(c,_)}}function Cpt(n){var a,c;const d=zl(n);switch(d){case 0:case 4:const _=Npt(n.left),v=_&&_.valueDeclaration;if(v&&(qo(v)||gp(v))){const F=yu(v);return F&&lo(Ti(F),Ki(_).mapper)||(qo(v)?v.initializer&&Ru(n.left):void 0)}return d===0?Ru(n.left):T4e(n);case 5:if(bee(n,d))return T4e(n);if(!T_(n.left)||!n.left.symbol)return Ru(n.left);{const F=n.left.symbol.valueDeclaration;if(!F)return;const H=oa(n.left,ws),re=yu(F);if(re)return Ti(re);if(Ve(H.expression)){const be=H.expression,ge=yl(be,be.escapedText,111551,void 0,be.escapedText,!0);if(ge){const Je=ge.valueDeclaration&&yu(ge.valueDeclaration);if(Je){const gt=kg(H);if(gt!==void 0)return fE(Ti(Je),gt)}return}}return lr(F)||F===n.left?void 0:Ru(n.left)}case 1:case 6:case 3:case 2:let x;d!==2&&(x=T_(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(c=n.symbol)==null?void 0:c.valueDeclaration);const k=x&&yu(x);return k?Ti(k):void 0;case 7:case 8:case 9:return N.fail("Does not apply");default:return N.assertNever(d)}}function bee(n,a=zl(n)){if(a===4)return!0;if(!lr(n)||a!==5||!Ve(n.left.expression))return!1;const c=n.left.expression.escapedText,d=yl(n.left,c,111551,void 0,void 0,!0,!0);return H4(d==null?void 0:d.valueDeclaration)}function T4e(n){if(!n.symbol)return Ru(n.left);if(n.symbol.valueDeclaration){const _=yu(n.symbol.valueDeclaration);if(_){const v=Ti(_);if(v)return v}}const a=oa(n.left,ws);if(!Tm(Fd(a.expression,!1,!1)))return;const c=F9(a.expression),d=kg(a);return d!==void 0&&fE(c,d)||void 0}function Ppt(n){return!!(xl(n)&262144&&!n.links.type&&ax(n,0)>=0)}function fE(n,a,c){return dl(n,d=>{var _;if(Kd(d)&&!d.declaration.nameType){const v=yf(d),x=Gu(v)||v,k=c||Xd(Vi(a));if(ba(k,x))return kZ(d,k)}else if(d.flags&3670016){const v=va(d,a);if(v)return Ppt(v)?void 0:Gb(dr(v),!!(v&&v.flags&16777216));if(Wa(d)&&og(a)&&+a>=0){const x=XM(d,d.target.fixedLength,0,!1,!0);if(x)return x}return(_=rge(ige(d),c||Xd(Vi(a))))==null?void 0:_.type}},!0)}function A4e(n,a){if(N.assert(Tm(n)),!(n.flags&67108864))return Gve(n,a)}function Gve(n,a){const c=n.parent,d=hc(n)&&Fve(n,a);if(d)return d;const _=mE(c,a);if(_){if(gN(n)){const v=Ir(n);return fE(_,v.escapedName,Ki(v).nameType)}if(Wy(n)){const v=Lo(n);if(v&&Za(v)){const x=mo(v.expression),k=tm(x)&&fE(_,nm(x));if(k)return k}}if(n.name){const v=py(n.name);return dl(_,x=>{var k;return(k=rge(ige(x),v))==null?void 0:k.type},!0)}}}function Mpt(n){let a,c;for(let d=0;d<n.length;d++)$m(n[d])&&(a??(a=d),c=d);return{first:a,last:c}}function Vve(n,a,c,d,_){return n&&dl(n,v=>{if(Wa(v)){if((d===void 0||a<d)&&a<v.target.fixedLength)return Gb(Js(v)[a],!!v.target.elementFlags[a]);const x=c!==void 0&&(_===void 0||a>_)?c-a:0,k=x>0&&v.target.hasRestElement?x8(v.target,3):0;return x>0&&x<=k?Js(v)[dy(v)-x]:XM(v,d===void 0?v.target.fixedLength:Math.min(v.target.fixedLength,d),c===void 0||_===void 0?k:Math.min(k,c-_),!1,!0)}return(!d||a<d)&&fE(v,""+a)||jye(1,v,Oe,void 0,!1)},!0)}function Lpt(n,a){const c=n.parent;return n===c.whenTrue||n===c.whenFalse?Yd(c,a):void 0}function kpt(n,a,c){const d=mE(n.openingElement.attributes,c),_=V9(tA(n));if(!(d&&!Nt(d)&&_&&_!==""))return;const v=bR(n.children),x=v.indexOf(a),k=fE(d,_);return k&&(v.length===1?k:dl(k,F=>my(F)?Pp(F,m_(x)):F,!0))}function wpt(n,a){const c=n.parent;return y4(c)?Yd(n,a):sg(c)?kpt(c,n,a):void 0}function I4e(n,a){if(w_(n)){const c=mE(n.parent,a);return!c||Nt(c)?void 0:fE(c,iP(n.name))}else return Yd(n.parent,a)}function z9(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return z9(n.expression);case 294:return!n.expression||z9(n.expression)}return!1}function Opt(n,a){return Rdt(a,n)||Zge(a,So(Wt(mn(n.properties,c=>c.symbol?c.kind===303?z9(c.initializer)&&YM(a,c.symbol.escapedName):c.kind===304?YM(a,c.symbol.escapedName):!1:!1),c=>[()=>sB(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),Wt(mn(gs(a),c=>{var d;return!!(c.flags&16777216)&&!!((d=n==null?void 0:n.symbol)!=null&&d.members)&&!n.symbol.members.has(c.escapedName)&&YM(a,c.escapedName)}),c=>[()=>Oe,c.escapedName])),ba)}function Wpt(n,a){const c=V9(tA(n));return Zge(a,So(Wt(mn(n.properties,d=>!!d.symbol&&d.kind===291&&YM(a,d.symbol.escapedName)&&(!d.initializer||z9(d.initializer))),d=>[d.initializer?()=>sB(d.initializer):()=>Gn,d.symbol.escapedName]),Wt(mn(gs(a),d=>{var _;if(!(d.flags&16777216)||!((_=n==null?void 0:n.symbol)!=null&&_.members))return!1;const v=n.parent.parent;return d.escapedName===c&&sg(v)&&bR(v.children).length?!1:!n.symbol.members.has(d.escapedName)&&YM(a,d.escapedName)}),d=>[()=>Oe,d.escapedName])),ba)}function mE(n,a){const c=Tm(n)?A4e(n,a):Yd(n,a),d=Eee(c,n,a);if(d&&!(a&&a&2&&d.flags&8650752)){const _=dl(d,v=>Wr(v)&32?v:Ld(v),!0);return _.flags&1048576&&La(n)?Opt(n,_):_.flags&1048576&&n1(n)?Wpt(n,_):_}}function Eee(n,a,c){if(n&&Cl(n,465829888)){const d=K1(a);if(d&&c&1&&bt(d.inferences,b_t))return See(n,d.nonFixingMapper);if(d!=null&&d.returnMapper){const _=See(n,d.returnMapper);return _.flags&1048576&&dv(_.types,En)&&dv(_.types,qn)?dc(_,v=>v!==En&&v!==qn):_}}return n}function See(n,a){return n.flags&465829888?lo(n,a):n.flags&1048576?ei(Wt(n.types,c=>See(c,a)),0):n.flags&2097152?ya(Wt(n.types,c=>See(c,a))):n}function Yd(n,a){var c;if(n.flags&67108864)return;const d=R4e(n,!a);if(d>=0)return vn[d];const{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Spt(n,a);case 219:case 253:return Tpt(n,a);case 229:return Ipt(_,a);case 223:return Apt(_,a);case 213:case 214:return S4e(_,n);case 170:return xpt(_);case 216:case 234:return Pg(_.type)?Yd(_,a):Ti(_.type);case 226:return Dpt(n,a);case 303:case 304:return Gve(_,a);case 305:return Yd(_.parent,a);case 209:{const v=_,x=mE(v,a),k=tR(v.elements,n),F=(c=Zr(v)).spreadIndices??(c.spreadIndices=Mpt(v.elements));return Vve(x,k,v.elements.length,F.first,F.last)}case 227:return Lpt(n,a);case 239:return N.assert(_.parent.kind===228),Rpt(_.parent,n);case 217:{if(lr(_)){if(SU(_))return Ti(TU(_));const v=i0(_);if(v&&!Pg(v.typeExpression.type))return Ti(v.typeExpression.type)}return Yd(_,a)}case 235:return Yd(_,a);case 238:return Ti(_.type);case 277:return ro(_);case 294:return wpt(_,a);case 291:case 293:return I4e(_,a);case 286:case 285:return Gpt(_,a);case 301:return Bpt(_)}}function x4e(n){B9(n,Yd(n,void 0),!0)}function B9(n,a,c){Qn[_i]=n,vn[_i]=a,Zn[_i]=c,_i++}function j8(){_i--}function R4e(n,a){for(let c=_i-1;c>=0;c--)if(n===Qn[c]&&(a||!Zn[c]))return c;return-1}function Fpt(n,a){cr[fr]=n,ni[fr]=a,fr++}function zpt(){fr--}function K1(n){for(let a=fr-1;a>=0;a--)if(WE(n,cr[a]))return ni[a]}function Bpt(n){return fE(bge(!1),Y3(n))}function Gpt(n,a){if(k_(n)&&a!==4){const c=R4e(n.parent,!a);if(c>=0)return vn[c]}return Bve(n,0)}function Tee(n,a){return u3e(a)!==0?Vpt(n,a):Hpt(n,a)}function Vpt(n,a){let c=Sye(n,hn);c=D4e(a,tA(a),c);const d=X1(of.IntrinsicAttributes,a);return Jt(d)||(c=i9(d,c)),c}function jpt(n,a){if(n.compositeSignatures){const d=[];for(const _ of n.compositeSignatures){const v=ps(_);if(Nt(v))return v;const x=Ke(v,a);if(!x)return;d.push(x)}return ya(d)}const c=ps(n);return Nt(c)?c:Ke(c,a)}function Upt(n){if(_x(n.tagName)){const c=W4e(n),d=wee(n,c);return VT(d)}const a=nc(n.tagName);if(a.flags&128){const c=O4e(a,n);if(!c)return _t;const d=wee(n,c);return VT(d)}return a}function D4e(n,a,c){const d=dft(a);if(d){const _=Upt(n),v=B4e(d,lr(n),_,c);if(v)return v}return c}function Hpt(n,a){const c=tA(a),d=fft(c);let _=d===void 0?Sye(n,hn):d===""?ps(n):jpt(n,d);if(!_)return d&&Ne(a.attributes.properties)&&qe(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Vi(d)),hn;if(_=D4e(a,c,_),Nt(_))return _;{let v=_;const x=X1(of.IntrinsicClassAttributes,a);if(!Jt(x)){const F=Lr(x.symbol),H=ps(n);let re;if(F){const be=Mb([H],F,zh(F),lr(a));re=lo(x,Mp(F,be))}else re=x;v=i9(re,v)}const k=X1(of.IntrinsicAttributes,a);return Jt(k)||(v=i9(k,v)),v}}function qpt(n){return dd(V,"noImplicitAny")?rd(n,(a,c)=>a===c||!a?a:ROe(a.typeParameters,c.typeParameters)?Xpt(a,c):void 0):void 0}function Jpt(n,a,c){if(!n||!a)return n||a;const d=ei([dr(n),lo(dr(a),c)]);return XT(n,d)}function Kpt(n,a,c){const d=Xp(n),_=Xp(a),v=d>=_?n:a,x=v===n?a:n,k=v===n?d:_,F=jh(n)||jh(a),H=F&&!jh(v),re=new Array(k+(H?1:0));for(let be=0;be<k;be++){let ge=Y1(v,be);v===a&&(ge=lo(ge,c));let Je=Y1(x,be)||hn;x===a&&(Je=lo(Je,c));const gt=ei([ge,Je]),Dt=F&&!H&&be===k-1,an=be>=eh(v)&&be>=eh(x),cn=be>=d?void 0:n2(n,be),ar=be>=_?void 0:n2(a,be),Wn=cn===ar?cn:cn?ar?void 0:cn:ar,ln=Ka(1|(an&&!Dt?16777216:0),Wn||`arg${be}`);ln.links.type=Dt?Vu(gt):gt,re[be]=ln}if(H){const be=Ka(1,"args");be.links.type=Vu(h_(x,k)),x===a&&(be.links.type=lo(be.links.type,c)),re[k]=be}return re}function Xpt(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=Mp(a.typeParameters,n.typeParameters));const _=n.declaration,v=Kpt(n,a,d),x=Jpt(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),F=Eg(_,c,x,v,void 0,void 0,k,(n.flags|a.flags)&167);return F.compositeKind=2097152,F.compositeSignatures=So(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),d&&(F.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?H1(n.mapper,d):d),F}function jve(n,a){const c=Xo(n,0),d=mn(c,_=>!Ypt(_,a));return d.length===1?d[0]:qpt(d)}function Ypt(n,a){let c=0;for(;c<a.parameters.length;c++){const d=a.parameters[c];if(d.initializer||d.questionToken||d.dotDotDotToken||bk(d))break}return a.parameters.length&&GE(a.parameters[0])&&c--,!jh(n)&&Xp(n)<c}function Uve(n){return qE(n)||Tm(n)?U8(n):void 0}function U8(n){N.assert(n.kind!==174||Tm(n));const a=BM(n);if(a)return a;const c=mE(n,1);if(!c)return;if(!(c.flags&1048576))return jve(c,n);let d;const _=c.types;for(const v of _){const x=jve(v,n);if(x)if(!d)d=[x];else if(x9(d[0],x,!1,!0,!0,M8))d.push(x);else return}if(d)return d.length===1?d[0]:IOe(d[0],d)}function $pt(n,a){se<2&&Dc(n,V.downlevelIteration?1536:1024);const c=mo(n.expression,a);return hy(33,c,Oe,n.expression)}function Qpt(n){return n.isSpread?Pp(n.type,Tt):n.type}function t2(n){return n.kind===208&&!!n.initializer||n.kind===226&&n.operatorToken.kind===64}function Zpt(n){const a=kv(n.parent);return $m(a)&&S_(a.parent)}function N4e(n,a,c){const d=n.elements,_=d.length,v=[],x=[];x4e(n);const k=eg(n),F=i2(n),H=mE(n,void 0),re=Zpt(n)||!!H&&Gm(H,ge=>KM(ge)||Kd(ge)&&!ge.nameType&&!!C8(ge.target||ge));let be=!1;for(let ge=0;ge<_;ge++){const Je=d[ge];if(Je.kind===230){se<2&&Dc(Je,V.downlevelIteration?1536:1024);const gt=mo(Je.expression,a,c);if(my(gt))v.push(gt),x.push(8);else if(k){const Dt=iE(gt,Tt)||jye(65,gt,Oe,void 0,!1)||hn;v.push(Dt),x.push(4)}else v.push(hy(33,gt,Oe,Je.expression)),x.push(4)}else if(De&&Je.kind===232)be=!0,v.push(me),x.push(2);else{const gt=o2(Je,a,c);if(v.push(lp(gt,!0,be)),x.push(be?2:1),re&&a&&a&2&&!(a&4)&&Vf(Je)){const Dt=K1(n);N.assert(Dt),pve(Dt,Je,gt)}}}return j8(),k?Gh(v,x):C4e(c||F||re?Gh(v,x,F&&!(H&&Gm(H,rve))):Vu(v.length?ei(Zo(v,(ge,Je)=>x[Je]&8?kb(ge,Tt)||j:ge),2):X?Mi:Lt,F))}function C4e(n){if(!(Wr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=QOe(n),a.objectFlags|=147456),a}function eft(n){switch(n.kind){case 167:return tft(n);case 80:return og(n.escapedText);case 9:case 11:return og(n.text);default:return!1}}function tft(n){return xu(Tg(n),296)}function Tg(n){const a=Zr(n.expression);if(!a.resolvedType){if((yp(n.parent.parent)||di(n.parent.parent)||md(n.parent.parent))&&mr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=_t;if(a.resolvedType=mo(n.expression),qo(n.parent)&&!mc(n.parent)&&Qc(n.parent.parent)){const c=mh(n.parent.parent),d=Lve(c);d&&(Zr(d).flags|=4096,Zr(n).flags|=32768,Zr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!xu(a.resolvedType,402665900)&&!ba(a.resolvedType,Nn))&&qe(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function nft(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return og(n.escapedName)||c&&ad(c)&&eft(c.name)}function P4e(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return tk(n)||c&&ad(c)&&Za(c.name)&&xu(Tg(c.name),4096)}function Hve(n,a,c,d){const _=[];for(let x=a;x<c.length;x++){const k=c[x];(d===ke&&!P4e(k)||d===Tt&&nft(k)||d===xi&&P4e(k))&&_.push(dr(c[x]))}const v=_.length?ei(_,2):Oe;return Bh(d,v,i2(n))}function qve(n){N.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Ki(n);if(!a.immediateTarget){const c=wm(n);if(!c)return N.fail();a.immediateTarget=Up(c,!0)}return a.immediateTarget}function rft(n,a=0){var c;const d=eg(n);cyt(n,d);const _=X?ca():void 0;let v=ca(),x=[],k=Ca;x4e(n);const F=mE(n,void 0),H=F&&F.pattern&&(F.pattern.kind===206||F.pattern.kind===210),re=i2(n),be=re?8:0,ge=lr(n)&&!Y4(n),Je=ge?xV(n):void 0,gt=!F&&ge&&!Je;let Dt=Ee,an=!1,cn=!1,ar=!1,Wn=!1;for(const zn of n.properties)zn.name&&Za(zn.name)&&Tg(zn.name);let ln=0;for(const zn of n.properties){let tr=Ir(zn);const Kn=zn.name&&zn.name.kind===167?Tg(zn.name):void 0;if(zn.kind===303||zn.kind===304||Tm(zn)){let nr=zn.kind===303?Y3e(zn,a):zn.kind===304?o2(!d&&zn.objectAssignmentInitializer?zn.objectAssignmentInitializer:zn.name,a):$3e(zn,a);if(ge){const Bo=ov(zn);Bo?(nd(nr,Bo,zn),nr=Bo):Je&&Je.typeExpression&&nd(nr,Ti(Je.typeExpression),zn)}Dt|=Wr(nr)&458752;const Ro=Kn&&tm(Kn)?Kn:void 0,Eo=Ro?Ka(4|tr.flags,nm(Ro),be|4096):Ka(4|tr.flags,tr.escapedName,be);if(Ro&&(Eo.links.nameType=Ro),d)(zn.kind===303&&t2(zn.initializer)||zn.kind===304&&zn.objectAssignmentInitializer)&&(Eo.flags|=16777216);else if(H&&!(Wr(F)&512)){const Bo=va(F,tr.escapedName);Bo?Eo.flags|=Bo.flags&16777216:!V.suppressExcessPropertyErrors&&!Sg(F,ke)&&qe(zn.name,f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(tr),Hn(F))}if(Eo.declarations=tr.declarations,Eo.parent=tr.parent,tr.valueDeclaration&&(Eo.valueDeclaration=tr.valueDeclaration),Eo.links.type=nr,Eo.links.target=tr,tr=Eo,_==null||_.set(Eo.escapedName,Eo),F&&a&2&&!(a&4)&&(zn.kind===303||zn.kind===174)&&Vf(zn)){const Bo=K1(n);N.assert(Bo);const _o=zn.kind===303?zn.initializer:zn;pve(Bo,_o,nr)}}else if(zn.kind===305){se<2&&Dc(zn,2),x.length>0&&(k=V1(k,Bn(),n.symbol,Dt,re),x=[],v=ca(),cn=!1,ar=!1,Wn=!1);const nr=f_(mo(zn.expression,a&2));if(G9(nr)){const Ro=zge(nr,re);if(_&&L4e(Ro,_,zn),ln=x.length,Jt(k))continue;k=V1(k,Ro,n.symbol,Dt,re)}else qe(zn,f.Spread_types_may_only_be_created_from_object_types),k=_t;continue}else N.assert(zn.kind===177||zn.kind===178),hx(zn);Kn&&!(Kn.flags&8576)?ba(Kn,Nn)&&(ba(Kn,Tt)?ar=!0:ba(Kn,xi)?Wn=!0:cn=!0,d&&(an=!0)):v.set(tr.escapedName,tr),x.push(tr)}if(j8(),H){const zn=Vn(F.pattern.parent,Kn=>Kn.kind===260||Kn.kind===226||Kn.kind===169);if(Vn(n,Kn=>Kn===zn||Kn.kind===305).kind!==305)for(const Kn of gs(F))!v.get(Kn.escapedName)&&!va(k,Kn.escapedName)&&(Kn.flags&16777216||qe(Kn.valueDeclaration||((c=ri(Kn,ph))==null?void 0:c.links.bindingElement),f.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),v.set(Kn.escapedName,Kn),x.push(Kn))}if(Jt(k))return _t;if(k!==Ca)return x.length>0&&(k=V1(k,Bn(),n.symbol,Dt,re),x=[],v=ca(),cn=!1,ar=!1),dl(k,zn=>zn===Ca?Bn():zn);return Bn();function Bn(){const zn=[];cn&&zn.push(Hve(n,ln,x,ke)),ar&&zn.push(Hve(n,ln,x,Tt)),Wn&&zn.push(Hve(n,ln,x,xi));const tr=Ls(n.symbol,v,et,et,zn);return tr.objectFlags|=Dt|128|131072,gt&&(tr.objectFlags|=4096),an&&(tr.objectFlags|=512),d&&(tr.pattern=n),tr}}function G9(n){const a=x6e(dl(n,uv));return!!(a.flags&126615553||a.flags&3145728&&Jn(a.types,G9))}function ift(n){Xve(n)}function oft(n,a){return hx(n),j9(n)||j}function aft(n){Xve(n.openingElement),_x(n.closingElement.tagName)?Iee(n.closingElement):mo(n.closingElement.tagName),Aee(n)}function sft(n,a){return hx(n),j9(n)||j}function lft(n){Xve(n.openingFragment);const a=Un(n);return L3(V)&&(V.jsxFactory||a.pragmas.has("jsx"))&&!V.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&qe(n,V.jsxFactory?f.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:f.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Aee(n),j9(n)||j}function Jve(n){return n.includes("-")}function _x(n){return Ve(n)&&SR(n.escapedText)||Qm(n)}function M4e(n,a){return n.initializer?o2(n.initializer,a):Gn}function cft(n,a=0){const c=n.attributes,d=Yd(c,0),_=X?ca():void 0;let v=ca(),x=ml,k=!1,F,H=!1,re=2048;const be=V9(tA(n));for(const gt of c.properties){const Dt=gt.symbol;if(w_(gt)){const an=M4e(gt,a);re|=Wr(an)&458752;const cn=Ka(4|Dt.flags,Dt.escapedName);if(cn.declarations=Dt.declarations,cn.parent=Dt.parent,Dt.valueDeclaration&&(cn.valueDeclaration=Dt.valueDeclaration),cn.links.type=an,cn.links.target=Dt,v.set(cn.escapedName,cn),_==null||_.set(cn.escapedName,cn),iP(gt.name)===be&&(H=!0),d){const ar=va(d,Dt.escapedName);ar&&ar.declarations&&ub(ar)&&Ve(gt.name)&&iy(gt.name,ar.declarations,gt.name.escapedText)}if(d&&a&2&&!(a&4)&&Vf(gt)){const ar=K1(c);N.assert(ar);const Wn=gt.initializer.expression;pve(ar,Wn,an)}}else{N.assert(gt.kind===293),v.size>0&&(x=V1(x,Je(),c.symbol,re,!1),v=ca());const an=f_(mo(gt.expression,a&2));Nt(an)&&(k=!0),G9(an)?(x=V1(x,an,c.symbol,re,!1),_&&L4e(an,_,gt)):(qe(gt.expression,f.Spread_types_may_only_be_created_from_object_types),F=F?ya([F,an]):an)}}k||v.size>0&&(x=V1(x,Je(),c.symbol,re,!1));const ge=n.parent.kind===284?n.parent:void 0;if(ge&&ge.openingElement===n&&bR(ge.children).length>0){const gt=Aee(ge,a);if(!k&&be&&be!==""){H&&qe(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Vi(be));const Dt=mE(n.attributes,void 0),an=Dt&&fE(Dt,be),cn=Ka(4,be);cn.links.type=gt.length===1?gt[0]:an&&Gm(an,KM)?Gh(gt):Vu(ei(gt)),cn.valueDeclaration=w.createPropertySignature(void 0,Vi(be),void 0,void 0),Ha(cn.valueDeclaration,c),cn.valueDeclaration.symbol=cn;const ar=ca();ar.set(be,cn),x=V1(x,Ls(c.symbol,ar,et,et,et),c.symbol,re,!1)}}if(k)return j;if(F&&x!==ml)return ya([F,x]);return F||(x===ml?Je():x);function Je(){re|=Ee;const gt=Ls(c.symbol,v,et,et,et);return gt.objectFlags|=re|128|131072,gt}}function Aee(n,a){const c=[];for(const d of n.children)if(d.kind===12)d.containsOnlyTriviaWhiteSpaces||c.push(ke);else{if(d.kind===294&&!d.expression)continue;c.push(o2(d,a))}return c}function L4e(n,a,c){for(const d of gs(n))if(!(d.flags&16777216)){const _=a.get(d.escapedName);if(_){const v=qe(_.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Vi(_.escapedName));Ma(v,kr(c,f.This_spread_always_overwrites_this_property))}}}function uft(n,a){return cft(n.parent,a)}function X1(n,a){const c=tA(a),d=c&&Dp(c),_=d&&Jd(d,n,788968);return _?Zs(_):_t}function Iee(n){const a=Zr(n);if(!a.resolvedSymbol){const c=X1(of.IntrinsicElements,n);if(Jt(c))return de&&qe(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Vi(of.IntrinsicElements)),a.resolvedSymbol=ft;{if(!Ve(n.tagName)&&!Qm(n.tagName))return N.fail();const d=Qm(n.tagName)?VA(n.tagName):n.tagName.escapedText,_=va(c,d);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;const v=sFe(c,Xd(Vi(d)));return v?(a.jsxFlags|=2,a.resolvedSymbol=v):xt(c,d)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(qe(n,f.Property_0_does_not_exist_on_type_1,AU(n.tagName),"JSX."+of.IntrinsicElements),a.resolvedSymbol=ft)}}return a.resolvedSymbol}function Kve(n){const a=n&&Un(n),c=a&&Zr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const d=w3(k3(V,a),V);if(!d)return;const v=pd(V)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations,x=V.importHelpers?1:0,k=a==null?void 0:a.imports[x];k&&N.assert(Ys(k)&&k.text===d,`Expected sourceFile.imports[${x}] to be the synthesized JSX runtime import`);const F=H_(k||n,d,v,n),H=F&&F!==ft?rs(Vl(F)):void 0;return c&&(c.jsxImplicitImportContainer=H||!1),H}function tA(n){const a=n&&Zr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let d=Kve(n);if(!d||d===ft){const _=B0(n);d=yl(n,_,1920,void 0,_,!1)}if(d){const _=Vl(Jd(Dp(Vl(d)),of.JSX,1920));if(_&&_!==ft)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}const c=Vl(jM(of.JSX,1920,void 0));if(c!==ft)return c}function k4e(n,a){const c=a&&Jd(a.exports,n,788968),d=c&&Zs(c),_=d&&gs(d);if(_){if(_.length===0)return"";if(_.length===1)return _[0].escapedName;_.length>1&&c.declarations&&qe(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Vi(n))}}function dft(n){return n&&Jd(n.exports,of.LibraryManagedAttributes,788968)}function pft(n){return n&&Jd(n.exports,of.ElementType,788968)}function fft(n){return k4e(of.ElementAttributesPropertyNameContainer,n)}function V9(n){return k4e(of.ElementChildrenAttributeNameContainer,n)}function w4e(n,a){if(n.flags&4)return[Et];if(n.flags&128){const _=O4e(n,a);return _?[wee(a,_)]:(qe(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+of.IntrinsicElements),et)}const c=Ld(n);let d=Xo(c,1);return d.length===0&&(d=Xo(c,0)),d.length===0&&c.flags&1048576&&(d=Hhe(Wt(c.types,_=>w4e(_,a)))),d}function O4e(n,a){const c=X1(of.IntrinsicElements,a);if(!Jt(c)){const d=n.value,_=va(c,_l(d));if(_)return dr(_);const v=iE(c,ke);return v||void 0}return j}function mft(n,a,c){if(n===1){const _=z4e(c);_&&jf(a,_,qd,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,d)}else if(n===0){const _=F4e(c);_&&jf(a,_,qd,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,d)}else{const _=z4e(c),v=F4e(c);if(!_||!v)return;const x=ei([_,v]);jf(a,x,qd,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,d)}function d(){const _=fc(c.tagName);return Vo(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function W4e(n){var a;N.assert(_x(n.tagName));const c=Zr(n);if(!c.resolvedJsxElementAttributesType){const d=Iee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=dr(d)||_t;if(c.jsxFlags&2){const _=Qm(n.tagName)?VA(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=cx(X1(of.IntrinsicElements,n),_))==null?void 0:a.type)||_t}else return c.resolvedJsxElementAttributesType=_t}return c.resolvedJsxElementAttributesType}function F4e(n){const a=X1(of.ElementClass,n);if(!Jt(a))return a}function j9(n){return X1(of.Element,n)}function z4e(n){const a=j9(n);if(a)return ei([a,fe])}function _ft(n){const a=tA(n);if(!a)return;const c=pft(a);if(!c)return;const d=B4e(c,lr(n));if(!(!d||Jt(d)))return d}function B4e(n,a,...c){const d=Zs(n);if(n.flags&524288){const _=Ki(n).typeParameters;if(Ne(_)>=c.length){const v=Mb(c,_,c.length,a);return Ne(v)===0?d:EN(n,v)}}if(Ne(d.typeParameters)>=c.length){const _=Mb(c,d.typeParameters,c.length,a);return uy(d,_)}}function hft(n){const a=X1(of.IntrinsicElements,n);return a?gs(a):et}function gft(n){(V.jsx||0)===0&&qe(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),j9(n)===void 0&&de&&qe(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Xve(n){const a=ld(n);if(a&&uyt(n),gft(n),!Kve(n)){const c=ts&&V.jsx===2?f.Cannot_find_name_0:void 0,d=B0(n),_=a?n.tagName:n;let v;if(lI(n)&&d==="null"||(v=yl(_,d,111551,c,d,!0)),v&&(v.isReferenced=-1,It&&v.flags&2097152&&!Of(v)&&gb(v)),lI(n)){const x=Un(n),k=JI(x);k&&yl(_,k,111551,c,k,!0)}}if(a){const c=n,d=PN(c);Wee(d,n);const _=_ft(c);if(_!==void 0){const v=c.tagName,x=_x(v)?Xd(AU(v)):mo(v);jf(x,_,qd,v,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const k=fc(v);return Vo(void 0,f._0_cannot_be_used_as_a_JSX_component,k)})}else mft(u3e(c),ps(d),c)}}function Yve(n,a,c){if(n.flags&524288){if(rE(n,a)||cx(n,a)||y8(a)&&Sg(n,ke)||c&&Jve(a))return!0}else if(n.flags&3145728&&U9(n)){for(const d of n.types)if(Yve(d,a,c))return!0}return!1}function U9(n){return!!(n.flags&524288&&!(Wr(n)&512)||n.flags&67108864||n.flags&1048576&&bt(n.types,U9)||n.flags&2097152&&Jn(n.types,U9))}function vft(n,a){if(pyt(n),n.expression){const c=mo(n.expression,a);return n.dotDotDotToken&&c!==j&&!Uf(c)&&qe(n,f.JSX_spread_child_must_be_an_array_type),c}else return _t}function $ve(n){return n.valueDeclaration?eS(n.valueDeclaration):0}function Qve(n){if(n.flags&8192||xl(n)&4)return!0;if(lr(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&mr(a)&&zl(a)===3}}function Zve(n,a,c,d,_,v=!0){const x=v?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return G4e(n,a,c,d,_,x)}function G4e(n,a,c,d,_,v){var x;const k=xf(_,c);if(a){if(se<2&&V4e(_))return v&&qe(v,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(k&64)return v&&qe(v,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Si(_),Hn(mx(_))),!1;if(!(k&256)&&((x=_.declarations)!=null&&x.some(ure)))return v&&qe(v,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Si(_)),!1}if(k&64&&V4e(_)&&(PL(n)||lie(n)||im(n.parent)&&H4(n.parent.parent))){const H=Wg(Cd(_));if(H&&cvt(n))return v&&qe(v,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Si(_),Qf(H.name)),!1}if(!(k&6))return!0;if(k&2){const H=Wg(Cd(_));return tbe(n,H)?!0:(v&&qe(v,f.Property_0_is_private_and_only_accessible_within_class_1,Si(_),Hn(mx(_))),!1)}if(a)return!0;let F=oFe(n,H=>{const re=Zs(Ir(H));return h6e(re,_,c)});return!F&&(F=yft(n),F=F&&h6e(F,_,c),k&256||!F)?(v&&qe(v,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Si(_),Hn(mx(_)||d)),!1):k&256?!0:(d.flags&262144&&(d=d.isThisType?Md(d):Gu(d)),!d||!_N(d,F)?(v&&qe(v,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Si(_),Hn(F),Hn(d)),!1):!0)}function yft(n){const a=bft(n);let c=(a==null?void 0:a.type)&&Ti(a.type);if(c&&c.flags&262144&&(c=Md(c)),c&&Wr(c)&7)return ly(c)}function bft(n){const a=Fd(n,!1,!1);return a&&ea(a)?BE(a):void 0}function V4e(n){return!!I9(n,a=>!(a.flags&8192))}function NN(n){return $_(mo(n),n)}function H9(n){return fm(n,50331648)}function eye(n){return H9(n)?hv(n):n}function Eft(n,a){const c=Bl(n)?fp(n):void 0;if(n.kind===106){qe(n,f.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Ve(n)&&c==="undefined"){qe(n,f.The_value_0_cannot_be_used_here,"undefined");return}qe(n,a&16777216?a&33554432?f._0_is_possibly_null_or_undefined:f._0_is_possibly_undefined:f._0_is_possibly_null,c)}else qe(n,a&16777216?a&33554432?f.Object_is_possibly_null_or_undefined:f.Object_is_possibly_undefined:f.Object_is_possibly_null)}function Sft(n,a){qe(n,a&16777216?a&33554432?f.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:f.Cannot_invoke_an_object_which_is_possibly_undefined:f.Cannot_invoke_an_object_which_is_possibly_null)}function j4e(n,a,c){if(X&&n.flags&2){if(Bl(a)){const _=fp(a);if(_.length<100)return qe(a,f._0_is_of_type_unknown,_),_t}return qe(a,f.Object_is_of_type_unknown),_t}const d=$M(n,50331648);if(d&50331648){c(a,d);const _=hv(n);return _.flags&229376?_t:_}return n}function $_(n,a){return j4e(n,a,Eft)}function U4e(n,a){const c=$_(n,a);if(c.flags&16384){if(Bl(a)){const d=fp(a);if(Ve(a)&&d==="undefined")return qe(a,f.The_value_0_cannot_be_used_here,d),c;if(d.length<100)return qe(a,f._0_is_possibly_undefined,d),c}qe(a,f.Object_is_possibly_undefined)}return c}function xee(n,a,c){return n.flags&64?Tft(n,a):nye(n,n.expression,NN(n.expression),n.name,a,c)}function Tft(n,a){const c=mo(n.expression),d=O8(c,n.expression);return tee(nye(n,n.expression,$_(d,n.expression),n.name,a),n,d!==c)}function H4e(n,a){const c=X4(n)&&VE(n.left)?$_(F9(n.left),n.left):NN(n.left);return nye(n,n.left,c,n.right,a)}function q4e(n){for(;n.parent.kind===217;)n=n.parent;return S_(n.parent)&&n.parent.expression===n}function Ree(n,a){for(let c=j4(a);c;c=au(c)){const{symbol:d}=c,_=ek(d,n),v=d.members&&d.members.get(_)||d.exports&&d.exports.get(_);if(v)return v}}function Aft(n){if(!au(n))return Sn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!JW(n.parent)){if(!Qh(n))return Sn(n,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const a=mr(n.parent)&&n.parent.operatorToken.kind===103;if(!Dee(n)&&!a)return Sn(n,f.Cannot_find_name_0,Sr(n))}return!1}function Ift(n){Aft(n);const a=Dee(n);return a&&J9(a,void 0,!1),j}function Dee(n){if(!Qh(n))return;const a=Zr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=Ree(n.escapedText,n)),a.resolvedSymbol}function tye(n,a){return va(n,a.escapedName)}function xft(n,a,c){let d;const _=gs(n);_&&Xe(_,x=>{const k=x.valueDeclaration;if(k&&ad(k)&&qi(k.name)&&k.name.escapedText===a.escapedText)return d=x,!0});const v=km(a);if(d){const x=N.checkDefined(d.valueDeclaration),k=N.checkDefined(au(x));if(c!=null&&c.valueDeclaration){const F=c.valueDeclaration,H=au(F);if(N.assert(!!H),Vn(H,re=>k===re)){const re=qe(a,f.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,v,Hn(n));return Ma(re,kr(F,f.The_shadowing_declaration_of_0_is_defined_here,v),kr(x,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,v)),!0}}return qe(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,v,km(k.name||wF)),!0}return!1}function J4e(n,a){return(pN(a)||PL(n)&&kM(a))&&Fd(n,!0,!1)===wM(a)}function nye(n,a,c,d,_,v){const x=Zr(a).resolvedSymbol,k=MA(n),F=Ld(k!==0||q4e(n)?Kp(c):c),H=Nt(F)||F===vo;let re;if(qi(d)){se<99&&(k!==0&&Dc(n,1048576),k!==1&&Dc(n,524288));const ge=Ree(d.escapedText,d);if(k&&ge&&ge.valueDeclaration&&Hl(ge.valueDeclaration)&&Sn(d,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Sr(d)),H){if(ge)return Jt(F)?_t:F;if(j4(d)===void 0)return Sn(d,f.Private_identifiers_are_not_allowed_outside_class_bodies),j}if(re=ge&&tye(c,ge),re===void 0){if(xft(c,d,ge))return _t;const Je=j4(d);Je&&bL(Un(Je),V.checkJs)&&Sn(d,f.Private_field_0_must_be_declared_in_an_enclosing_class,Sr(d))}else re.flags&65536&&!(re.flags&32768)&&k!==1&&qe(n,f.Private_accessor_was_defined_without_a_getter)}else{if(H)return Ve(a)&&x&&vee(x,n),Jt(F)?_t:F;re=va(F,d.escapedText,Bee(F),n.kind===166)}Ve(a)&&x&&(rm(V)||!(re&&(r6(re)||re.flags&8&&n.parent.kind===306))||KE(V)&&p4e(n))&&vee(x,n);let be;if(re){const ge=Qye(re,d);if(ub(ge)&&kge(n,ge)&&ge.declarations&&iy(d,ge.declarations,d.escapedText),Rft(re,n,d),J9(re,n,e3e(a,x)),Zr(n).resolvedSymbol=re,Zve(n,a.kind===108,WA(n),F,re),j3e(n,re,k))return qe(d,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Sr(d)),_t;be=J4e(n,re)?it:v||I3(n)?F1(re):dr(re)}else{const ge=!qi(d)&&(k===0||!HT(c)||nP(c))?cx(F,d.escapedText):void 0;if(!(ge&&ge.type)){const Je=rye(n,c.symbol,!0);return!Je&&R8(c)?j:c.symbol===ot?(ot.exports.has(d.escapedText)&&ot.exports.get(d.escapedText).flags&418?qe(d,f.Property_0_does_not_exist_on_type_1,Vi(d.escapedText),Hn(c)):de&&qe(d,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Hn(c)),j):(d.escapedText&&!vT(n)&&Y4e(d,nP(c)?F:c,Je),_t)}ge.isReadonly&&(eg(n)||Rj(n))&&qe(n,f.Index_signature_in_type_0_only_permits_reading,Hn(F)),be=V.noUncheckedIndexedAccess&&!eg(n)?ei([ge.type,L]):ge.type,V.noPropertyAccessFromIndexSignature&&Fr(n)&&qe(d,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Vi(d.escapedText)),ge.declaration&&ry(ge.declaration)&&iy(d,[ge.declaration],d.escapedText)}return K4e(n,re,be,d,_)}function rye(n,a,c){var d;const _=Un(n);if(_&&V.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){const v=Xe(a==null?void 0:a.declarations,Un),x=!(a!=null&&a.valueDeclaration)||!di(a.valueDeclaration)||((d=a.valueDeclaration.heritageClauses)==null?void 0:d.length)||Lv(!1,a.valueDeclaration);return!(_!==v&&v&&Ch(v))&&!(c&&a&&a.flags&32&&x)&&!(n&&c&&Fr(n)&&n.expression.kind===110&&x)}return!1}function K4e(n,a,c,d,_){const v=MA(n);if(v===1)return Gb(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!tte(a.declarations))return c;if(c===it)return fN(n,a);c=Mve(c,n,_);let x=!1;if(X&&Ce&&ws(n)&&n.expression.kind===110){const F=a&&a.valueDeclaration;if(F&&qWe(F)&&!aa(F)){const H=V8(n);H.kind===176&&H.parent===F.parent&&!(F.flags&33554432)&&(x=!0)}}else X&&a&&a.valueDeclaration&&Fr(a.valueDeclaration)&&GL(a.valueDeclaration)&&V8(n)===V8(a.valueDeclaration)&&(x=!0);const k=Vb(n,c,x?Bb(c):c);return x&&!HM(c)&&HM(k)?(qe(d,f.Property_0_is_used_before_being_assigned,Si(a)),c):v?_v(k):k}function Rft(n,a,c){const{valueDeclaration:d}=n;if(!d||Un(a).isDeclarationFile)return;let _;const v=Sr(c);X4e(a)&&!_lt(d)&&!(ws(a)&&ws(a.expression))&&!Zg(d,c)&&!(Hl(d)&&ute(d)&256)&&(he||!Dft(n))?_=qe(c,f.Property_0_is_used_before_its_initialization,v):d.kind===263&&a.parent.kind!==183&&!(d.flags&33554432)&&!Zg(d,c)&&(_=qe(c,f.Class_0_used_before_its_declaration,v)),_&&Ma(_,kr(d,f._0_is_declared_here,v))}function X4e(n){return!!Vn(n,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Ko(a.parent)&&Rl(a.parent.parent)?!0:"quit";default:return Qh(a)?!1:"quit"}})}function Dft(n){if(!(n.parent.flags&32))return!1;let a=dr(n.parent);for(;;){if(a=a.symbol&&Nft(a),!a)return!1;const c=va(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Nft(n){const a=Cp(n);if(a.length!==0)return ya(a)}function Y4e(n,a,c){let d,_;if(!qi(n)&&a.flags&1048576&&!(a.flags&402784252)){for(const x of a.types)if(!va(x,n.escapedText)&&!cx(x,n.escapedText)){d=Vo(d,f.Property_0_does_not_exist_on_type_1,xs(n),Hn(x));break}}if($4e(n.escapedText,a)){const x=xs(n),k=Hn(a);d=Vo(d,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,k,k+"."+x)}else{const x=$8(a);if(x&&va(x,n.escapedText))d=Vo(d,f.Property_0_does_not_exist_on_type_1,xs(n),Hn(a)),_=kr(n,f.Did_you_forget_to_use_await);else{const k=xs(n),F=Hn(a),H=Mft(k,a);if(H!==void 0)d=Vo(d,f.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,k,F,H);else{const re=iye(n,a);if(re!==void 0){const be=El(re),ge=c?f.Property_0_may_not_exist_on_type_1_Did_you_mean_2:f.Property_0_does_not_exist_on_type_1_Did_you_mean_2;d=Vo(d,ge,k,F,be),_=re.valueDeclaration&&kr(re.valueDeclaration,f._0_is_declared_here,be)}else{const be=Cft(a)?f.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:f.Property_0_does_not_exist_on_type_1;d=Vo(tge(d,a),be,k,F)}}}}const v=Lg(Un(n),n,d);_&&Ma(v,_),i_(!c||d.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,v)}function Cft(n){return V.lib&&!V.lib.includes("dom")&&Vdt(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Vi(a.symbol.escapedName)))&&mv(n)}function $4e(n,a){const c=a.symbol&&va(dr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&aa(c.valueDeclaration)}function Pft(n){const a=km(n),d=Z3().get(a);return d&&jB(d.keys())}function Mft(n,a){const c=Ld(a).symbol;if(!c)return;const d=El(c),v=Z3().get(d);if(v){for(const[x,k]of v)if(Or(k,n))return x}}function Q4e(n,a){return q9(n,gs(a),106500)}function iye(n,a){let c=gs(a);if(typeof n!="string"){const d=n.parent;Fr(d)&&(c=mn(c,_=>t3e(d,a,_))),n=Sr(n)}return q9(n,c,111551)}function Z4e(n,a){const c=Mo(n)?n:Sr(n),d=gs(a);return(c==="for"?In(d,v=>El(v)==="htmlFor"):c==="class"?In(d,v=>El(v)==="className"):void 0)??q9(c,d,111551)}function oye(n,a){const c=iye(n,a);return c&&El(c)}function aye(n,a,c){return N.assert(a!==void 0,"outername should always be defined"),jp(n,a,c,void 0,a,!1,!1,!0,(_,v,x)=>{N.assertEqual(a,v,"name should equal outerName");const k=Jd(_,v,x);if(k)return k;let F;return _===Se?F=eo(["string","number","boolean","object","bigint","symbol"],re=>_.has(re.charAt(0).toUpperCase()+re.slice(1))?Ka(524288,re):void 0).concat(zo(_.values())):F=zo(_.values()),q9(Vi(v),F,x)})}function Lft(n,a,c){const d=aye(n,a,c);return d&&El(d)}function Nee(n,a){return a.exports&&q9(Sr(n),NT(a),2623475)}function kft(n,a){const c=Nee(n,a);return c&&El(c)}function wft(n,a,c){function d(x){const k=rE(n,x);if(k){const F=rA(dr(k));return!!F&&eh(F)>=1&&ba(c,h_(F,0))}return!1}const _=eg(a)?"set":"get";if(!d(_))return;let v=ck(a.expression);return v===void 0?v=_:v+="."+_,v}function Oft(n,a){const c=a.types.filter(d=>!!(d.flags&128));return KN(n.value,c,d=>d.value)}function q9(n,a,c){return KN(n,a,d);function d(_){const v=El(_);if(!uo(v,'"')){if(_.flags&c)return v;if(_.flags&2097152){const x=xT(_);if(x&&x.flags&c)return v}}}}function J9(n,a,c){const d=n&&n.flags&106500&&n.valueDeclaration;if(!d)return;const _=_p(d,2),v=n.valueDeclaration&&ad(n.valueDeclaration)&&qi(n.valueDeclaration.name);if(!(!_&&!v)&&!(a&&I3(a)&&!(n.flags&65536))){if(c){const x=Vn(a,Bs);if(x&&x.symbol===n)return}(xl(n)&1?Ki(n).target:n).isReferenced=-1}}function e3e(n,a){return n.kind===110||!!a&&Bl(n)&&a===Bm(Gp(n))}function Wft(n,a){switch(n.kind){case 211:return sye(n,n.expression.kind===108,a,Kp(mo(n.expression)));case 166:return sye(n,!1,a,Kp(mo(n.left)));case 205:return sye(n,!1,a,Ti(n))}}function t3e(n,a,c){return lye(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function sye(n,a,c,d){if(Nt(d))return!0;const _=va(d,c);return!!_&&lye(n,a,!1,d,_)}function lye(n,a,c,d,_){if(Nt(d))return!0;if(_.valueDeclaration&&sd(_.valueDeclaration)){const v=au(_.valueDeclaration);return!qu(n)&&!!Vn(n,x=>x===v)}return G4e(n,a,c,d,_)}function Fft(n){const a=n.initializer;if(a.kind===261){const c=a.declarations[0];if(c&&!ta(c.name))return Ir(c)}else if(a.kind===80)return Bm(a)}function zft(n){return gd(n).length===1&&!!Sg(n,Tt)}function Bft(n){const a=hs(n);if(a.kind===80){const c=Bm(a);if(c.flags&3){let d=n,_=n.parent;for(;_;){if(_.kind===249&&d===_.statement&&Fft(_)===c&&zft(Ru(_.expression)))return!0;d=_,_=_.parent}}}return!1}function Gft(n,a){return n.flags&64?Vft(n,a):n3e(n,NN(n.expression),a)}function Vft(n,a){const c=mo(n.expression),d=O8(c,n.expression);return tee(n3e(n,$_(d,n.expression),a),n,d!==c)}function n3e(n,a,c){const d=MA(n)!==0||q4e(n)?Kp(a):a,_=n.argumentExpression,v=mo(_);if(Jt(d)||d===vo)return d;if(Bee(d)&&!ls(_))return qe(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),_t;const x=Bft(_)?Tt:v,k=eg(n)?4|(HT(d)&&!nP(d)?2:0):32,F=kb(d,x,k,n)||_t;return uWe(K4e(n,Zr(n).resolvedSymbol,F,_,c),n)}function r3e(n){return S_(n)||QE(n)||ld(n)}function nA(n){return r3e(n)&&Xe(n.typeArguments,Ra),n.kind===215?mo(n.template):ld(n)?mo(n.attributes):mr(n)?mo(n.left):S_(n)&&Xe(n.arguments,a=>{mo(a)}),Et}function Q_(n){return nA(n),un}function jft(n,a,c){let d,_,v=0,x,k=-1,F;N.assert(!a.length);for(const H of n){const re=H.declaration&&Ir(H.declaration),be=H.declaration&&H.declaration.parent;!_||re===_?d&&be===d?x=x+1:(d=be,x=v):(x=v=a.length,d=be),_=re,Iq(H)?(k++,F=k,v++):F=x,a.splice(F,0,c?Wst(H,c):H)}}function Cee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function Pee(n){return mi(n,Cee)}function i3e(n){return!!(n.flags&16384)}function Uft(n){return!!(n.flags&49155)}function Mee(n,a,c,d=!1){let _,v=!1,x=Xp(c),k=eh(c);if(n.kind===215)if(_=a.length,n.template.kind===228){const F=Xa(n.template.templateSpans);v=Fl(F.literal)||!!F.literal.isUnterminated}else{const F=n.template;N.assert(F.kind===15),v=!!F.isUnterminated}else if(n.kind===170)_=p3e(n,c);else if(n.kind===226)_=1;else if(ld(n)){if(v=n.attributes.end===n.end,v)return!0;_=k===0?a.length:1,x=a.length===0?x:1,k=Math.min(k,1)}else if(n.arguments){_=d?a.length+1:a.length,v=n.arguments.end===n.end;const F=Pee(a);if(F>=0)return F>=eh(c)&&(jh(c)||F<Xp(c))}else return N.assert(n.kind===214),eh(c)===0;if(!jh(c)&&_>x)return!1;if(v||_>=k)return!0;for(let F=_;F<k;F++){const H=h_(c,F);if(dc(H,lr(n)&&!X?Uft:i3e).flags&131072)return!1}return!0}function cye(n,a){const c=Ne(n.typeParameters),d=zh(n.typeParameters);return!bt(a)||a.length>=d&&a.length<=c}function o3e(n,a){let c;return!!(n.target&&(c=Y1(n.target,a))&&AN(c))}function rA(n){return H8(n,0,!1)}function a3e(n){return H8(n,0,!1)||H8(n,1,!1)}function H8(n,a,c){if(n.flags&524288){const d=p_(n);if(c||d.properties.length===0&&d.indexInfos.length===0){if(a===0&&d.callSignatures.length===1&&d.constructSignatures.length===0)return d.callSignatures[0];if(a===1&&d.constructSignatures.length===1&&d.callSignatures.length===0)return d.constructSignatures[0]}}}function s3e(n,a,c,d){const _=z8(n.typeParameters,n,0,d),v=q8(a),x=c&&(v&&v.flags&262144?c.nonFixingMapper:c.mapper),k=x?xN(a,x):a;return cve(k,n,(F,H)=>{gv(_.inferences,F,H)}),c||uve(a,n,(F,H)=>{gv(_.inferences,F,H,128)}),T8(n,Sve(_),lr(a.declaration))}function Hft(n,a,c,d){const _=Tee(a,n),v=MN(n.attributes,_,d,c);return gv(d.inferences,v,_),Sve(d)}function l3e(n){if(!n)return ir;const a=mo(n);return jie(n)?a:sC(n.parent)?hv(a):qu(n.parent)?eee(a):a}function uye(n,a,c,d,_){if(ld(n))return Hft(n,a,d,_);if(n.kind!==170&&n.kind!==226){const F=Jn(a.typeParameters,re=>!!GT(re)),H=Yd(n,F?8:0);if(H){const re=ps(a);if(dE(re)){const be=K1(n);if(!(!F&&Yd(n,8)!==H)){const Dt=mve(idt(be,1)),an=lo(H,Dt),cn=rA(an),ar=cn&&cn.typeParameters?VT(lge(cn,cn.typeParameters)):an;gv(_.inferences,ar,re,128)}const Je=z8(a.typeParameters,a,_.flags),gt=lo(H,be&&be.returnMapper);gv(Je.inferences,gt,re),_.returnMapper=bt(Je.inferences,LN)?mve(ldt(Je)):void 0}}}const v=J8(a),x=v?Math.min(Xp(a)-1,c.length):c.length;if(v&&v.flags&262144){const F=In(_.inferences,H=>H.typeParameter===v);F&&(F.impliedArity=mi(c,Cee,x)<0?c.length-x:void 0)}const k=oE(a);if(k&&dE(k)){const F=d3e(n);gv(_.inferences,l3e(F),k)}for(let F=0;F<x;F++){const H=c[F];if(H.kind!==232){const re=h_(a,F);if(dE(re)){const be=MN(H,re,_,d);gv(_.inferences,be,re)}}}if(v&&dE(v)){const F=dye(c,x,c.length,v,_,d);gv(_.inferences,F,v)}return Sve(_)}function c3e(n){return n.flags&1048576?dl(n,c3e):n.flags&1||R9(Gu(n)||n)?n:Wa(n)?Gh(G1(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):Gh([n],[8])}function dye(n,a,c,d,_,v){const x=BT(d);if(a>=c-1){const re=n[c-1];if(Cee(re)){const be=re.kind===237?re.type:MN(re.expression,d,_,v);return my(be)?c3e(be):Vu(hy(33,be,Oe,re.kind===230?re.expression:re),x)}}const k=[],F=[],H=[];for(let re=a;re<c;re++){const be=n[re];if(Cee(be)){const ge=be.kind===237?be.type:mo(be.expression);my(ge)?(k.push(ge),F.push(8)):(k.push(hy(33,ge,Oe,be.kind===230?be.expression:be)),F.push(4))}else{const ge=Wa(d)?Vve(d,re-a,c-a)||hn:Pp(d,m_(re-a),256),Je=MN(be,ge,_,v),gt=x||Cl(ge,406978556);k.push(gt?yd(Je):q1(Je)),F.push(1)}be.kind===237&&be.tupleNameSource?H.push(be.tupleNameSource):H.push(void 0)}return Gh(k,F,x&&!Gm(d,rve),H)}function pye(n,a,c,d){const _=lr(n.declaration),v=n.typeParameters,x=Mb(Wt(a,Ti),v,zh(v),_);let k;for(let F=0;F<a.length;F++){N.assert(v[F]!==void 0,"Should not call checkTypeArguments with too many type arguments");const H=Md(v[F]);if(H){const re=c&&d?()=>Vo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,be=d||f.Type_0_does_not_satisfy_the_constraint_1;k||(k=Mp(v,x));const ge=x[F];if(!nd(ge,Jp(lo(H,k),ge),c?a[F]:void 0,be,re))return}}return x}function u3e(n){if(_x(n.tagName))return 2;const a=Ld(mo(n.tagName));return Ne(Xo(a,1))?0:Ne(Xo(a,0))?1:2}function qft(n,a,c,d,_,v,x){const k=Tee(a,n),F=MN(n.attributes,k,void 0,d),H=d&4?F8(F):F;return re()&&Kge(H,k,c,_?n.tagName:void 0,n.attributes,void 0,v,x);function re(){var be;if(Kve(n))return!0;const ge=(k_(n)||GS(n))&&!(_x(n.tagName)||Qm(n.tagName))?mo(n.tagName):void 0;if(!ge)return!0;const Je=Xo(ge,0);if(!Ne(Je))return!0;const gt=gFe(n);if(!gt)return!0;const Dt=Hs(gt,111551,!0,!1,n);if(!Dt)return!0;const an=dr(Dt),cn=Xo(an,0);if(!Ne(cn))return!0;let ar=!1,Wn=0;for(const Bn of cn){const zn=h_(Bn,0),tr=Xo(zn,0);if(Ne(tr))for(const Kn of tr){if(ar=!0,jh(Kn))return!0;const nr=Xp(Kn);nr>Wn&&(Wn=nr)}}if(!ar)return!0;let ln=1/0;for(const Bn of Je){const zn=eh(Bn);zn<ln&&(ln=zn)}if(ln<=Wn)return!0;if(_){const Bn=kr(n.tagName,f.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,fp(n.tagName),ln,fp(gt),Wn),zn=(be=Vm(n.tagName))==null?void 0:be.valueDeclaration;zn&&Ma(Bn,kr(zn,f._0_is_declared_here,fp(n.tagName))),x&&x.skipLogging&&(x.errors||(x.errors=[])).push(Bn),x.skipLogging||ts.add(Bn)}return!1}}function Lee(n){return n=hs(n),lH(n)?hs(n.expression):n}function K9(n,a,c,d,_,v,x){const k={errors:void 0,skipLogging:!0};if(ld(n))return qft(n,c,d,_,v,x,k)?void 0:(N.assert(!v||!!k.errors,"jsx should have errors when reporting errors"),k.errors||et);const F=oE(c);if(F&&F!==ir&&!($E(n)||sa(n)&&zd(n.expression))){const Je=d3e(n),gt=l3e(Je),Dt=v?Je||n:void 0,an=f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!jf(gt,F,d,Dt,an,x,k))return N.assert(!v||!!k.errors,"this parameter should have errors when reporting errors"),k.errors||et}const H=f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,re=J8(c),be=re?Math.min(Xp(c)-1,a.length):a.length;for(let Je=0;Je<be;Je++){const gt=a[Je];if(gt.kind!==232){const Dt=h_(c,Je),an=MN(gt,Dt,void 0,_),cn=_&4?F8(an):an,ar=Lee(gt);if(!Kge(cn,Dt,d,v?ar:void 0,ar,H,x,k))return N.assert(!v||!!k.errors,"parameter should have errors when reporting errors"),ge(gt,cn,Dt),k.errors||et}}if(re){const Je=dye(a,be,a.length,re,void 0,_),gt=a.length-be,Dt=v?gt===0?n:gt===1?Lee(a[be]):hh(X9(n,Je),a[be].pos,a[a.length-1].end):void 0;if(!jf(Je,re,d,Dt,H,void 0,k))return N.assert(!v||!!k.errors,"rest parameter should have errors when reporting errors"),ge(Dt,Je,re),k.errors||et}return;function ge(Je,gt,Dt){if(Je&&v&&k.errors&&k.errors.length){if(a2(Dt))return;const an=a2(gt);an&&Y_(an,Dt,d)&&Ma(k.errors[0],kr(Je,f.Did_you_forget_to_use_await))}}}function d3e(n){if(n.kind===226)return n.right;const a=n.kind===213?n.expression:n.kind===215?n.tag:n.kind===170&&!ne?n.expression:void 0;if(a){const c=$l(a);if(ws(c))return c.expression}}function X9(n,a,c,d){const _=Th.createSyntheticExpression(a,c,d);return dt(_,n),Ha(_,n),_}function kee(n){if(n.kind===215){const d=n.template,_=[X9(d,Mlt())];return d.kind===228&&Xe(d.templateSpans,v=>{_.push(v.expression)}),_}if(n.kind===170)return Jft(n);if(n.kind===226)return[n.left];if(ld(n))return n.attributes.properties.length>0||k_(n)&&n.parent.children.length>0?[n.attributes]:et;const a=n.arguments||et,c=Pee(a);if(c>=0){const d=a.slice(0,c);for(let _=c;_<a.length;_++){const v=a[_],x=v.kind===230&&(ff?mo(v.expression):nc(v.expression));x&&Wa(x)?Xe(G1(x),(k,F)=>{var H;const re=x.target.elementFlags[F],be=X9(v,re&4?Vu(k):k,!!(re&12),(H=x.target.labeledElementDeclarations)==null?void 0:H[F]);d.push(be)}):d.push(v)}return d}return a}function Jft(n){const a=n.expression,c=Aye(n);if(c){const d=[];for(const _ of c.parameters){const v=dr(_);d.push(X9(a,v))}return d}return N.fail()}function p3e(n,a){return V.experimentalDecorators?Kft(n,a):2}function Kft(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return D_(n.parent)?3:2;case 174:case 177:case 178:return se===0||a.parameters.length<=2?2:3;case 169:return 3;default:return N.fail()}}function f3e(n){const a=Un(n),{start:c,length:d}=vS(a,Fr(n.expression)?n.expression.name:n.expression);return{start:c,length:d,sourceFile:a}}function Y9(n,a,...c){if(sa(n)){const{sourceFile:d,start:_,length:v}=f3e(n);return"message"in a?$c(d,_,v,a,...c):cj(d,a)}else return"message"in a?kr(n,a,...c):Lg(Un(n),n,a)}function Xft(n){return S_(n)?Fr(n.expression)?n.expression.name:n.expression:QE(n)?Fr(n.tag)?n.tag.name:n.tag:ld(n)?n.tagName:n}function Yft(n){if(!sa(n)||!Ve(n.expression))return!1;const a=yl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a==null?void 0:a.valueDeclaration;if(!c||!Ao(c)||!qE(c.parent)||!$E(c.parent.parent)||!Ve(c.parent.parent.expression))return!1;const d=Ege(!1);return d?Vm(c.parent.parent.expression,!0)===d:!1}function m3e(n,a,c,d){var _;const v=Pee(c);if(v>-1)return kr(c[v],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,F=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY,re;for(const Dt of a){const an=eh(Dt),cn=Xp(Dt);an<x&&(x=an,re=Dt),k=Math.max(k,cn),an<c.length&&an>F&&(F=an),c.length<cn&&cn<H&&(H=cn)}const be=bt(a,jh),ge=be?x:x<k?x+"-"+k:x,Je=!be&&ge===1&&c.length===0&&Yft(n);if(Je&&lr(n))return Y9(n,f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const gt=Eu(n)?be?f.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:f.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:be?f.Expected_at_least_0_arguments_but_got_1:Je?f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:f.Expected_0_arguments_but_got_1;if(x<c.length&&c.length<k){if(d){let Dt=Vo(void 0,f.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,F,H);return Dt=Vo(Dt,d),Y9(n,Dt)}return Y9(n,f.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,F,H)}else if(c.length<x){let Dt;if(d){let cn=Vo(void 0,gt,ge,c.length);cn=Vo(cn,d),Dt=Y9(n,cn)}else Dt=Y9(n,gt,ge,c.length);const an=(_=re==null?void 0:re.declaration)==null?void 0:_.parameters[re.thisParameter?c.length+1:c.length];if(an){const cn=ta(an.name)?[f.An_argument_matching_this_binding_pattern_was_not_provided]:Xh(an)?[f.Arguments_for_the_rest_parameter_0_were_not_provided,Sr(Gp(an.name))]:[f.An_argument_for_0_was_not_provided,an.name?Sr(Gp(an.name)):c.length],ar=kr(an,...cn);return Ma(Dt,ar)}return Dt}else{const Dt=w.createNodeArray(c.slice(k)),an=Ua(Dt).pos;let cn=Xa(Dt).end;if(cn===an&&cn++,hh(Dt,an,cn),d){let ar=Vo(void 0,gt,ge,c.length);return ar=Vo(ar,d),IL(Un(n),Dt,ar)}return rR(Un(n),Dt,gt,ge,c.length)}}function $ft(n,a,c,d){const _=c.length;if(a.length===1){const k=a[0],F=zh(k.typeParameters),H=Ne(k.typeParameters);if(d){let re=Vo(void 0,f.Expected_0_type_arguments_but_got_1,F<H?F+"-"+H:F,_);return re=Vo(re,d),IL(Un(n),c,re)}return rR(Un(n),c,f.Expected_0_type_arguments_but_got_1,F<H?F+"-"+H:F,_)}let v=-1/0,x=1/0;for(const k of a){const F=zh(k.typeParameters),H=Ne(k.typeParameters);F>_?x=Math.min(x,F):H<_&&(v=Math.max(v,H))}if(v!==-1/0&&x!==1/0){if(d){let k=Vo(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,v,x);return k=Vo(k,d),IL(Un(n),c,k)}return rR(Un(n),c,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,v,x)}if(d){let k=Vo(void 0,f.Expected_0_type_arguments_but_got_1,v===-1/0?x:v,_);return k=Vo(k,d),IL(Un(n),c,k)}return rR(Un(n),c,f.Expected_0_type_arguments_but_got_1,v===-1/0?x:v,_)}function CN(n,a,c,d,_,v){const x=n.kind===215,k=n.kind===170,F=ld(n),H=n.kind===226,re=!U&&!c;let be;!k&&!H&&!yS(n)&&(be=n.typeArguments,(x||F||n.expression.kind!==108)&&Xe(be,Ra));const ge=c||[];jft(a,ge,_),N.assert(ge.length,"Revert #54442 and add a testcase with whatever triggered this");const Je=kee(n),gt=ge.length===1&&!ge[0].typeParameters;let Dt=!k&&!gt&&bt(Je,Vf)?4:0,an,cn,ar,Wn;const ln=!!(d&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(ge.length>1&&(Wn=zn(ge,Nh,gt,ln)),Wn||(Wn=zn(ge,qd,gt,ln)),Wn)return Wn;if(Wn=Qft(n,ge,Je,!!c,d),Zr(n).resolvedSignature=Wn,re)if(!v&&H&&(v=f.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),an)if(an.length===1||an.length>3){const tr=an[an.length-1];let Kn;an.length>3&&(Kn=Vo(Kn,f.The_last_overload_gave_the_following_error),Kn=Vo(Kn,f.No_overload_matches_this_call)),v&&(Kn=Vo(Kn,v));const nr=K9(n,Je,tr,qd,0,!0,()=>Kn);if(nr)for(const Ro of nr)tr.declaration&&an.length>3&&Ma(Ro,kr(tr.declaration,f.The_last_overload_is_declared_here)),Bn(tr,Ro),ts.add(Ro);else N.fail("No error for last overload signature")}else{const tr=[];let Kn=0,nr=Number.MAX_VALUE,Ro=0,Eo=0;for(const up of an){const er=K9(n,Je,up,qd,0,!0,()=>Vo(void 0,f.Overload_0_of_1_2_gave_the_following_error,Eo+1,ge.length,kh(up)));er?(er.length<=nr&&(nr=er.length,Ro=Eo),Kn=Math.max(Kn,er.length),tr.push(er)):N.fail("No error for 3 or fewer overload signatures"),Eo++}const Bo=Kn>1?tr[Ro]:Cs(tr);N.assert(Bo.length>0,"No errors reported for 3 or fewer overload signatures");let _o=Vo(Wt(Bo,Jre),f.No_overload_matches_this_call);v&&(_o=Vo(_o,v));const Nc=[...Do(Bo,up=>up.relatedInformation)];let Hf;if(Jn(Bo,up=>up.start===Bo[0].start&&up.length===Bo[0].length&&up.file===Bo[0].file)){const{file:up,start:On,length:er}=Bo[0];Hf={file:up,start:On,length:er,code:_o.code,category:_o.category,messageText:_o,relatedInformation:Nc}}else Hf=Lg(Un(n),Xft(n),_o,Nc);Bn(an[0],Hf),ts.add(Hf)}else if(cn)ts.add(m3e(n,[cn],Je,v));else if(ar)pye(ar,n.typeArguments,!0,v);else{const tr=mn(a,Kn=>cye(Kn,be));tr.length===0?ts.add($ft(n,a,be,v)):ts.add(m3e(n,tr,Je,v))}return Wn;function Bn(tr,Kn){var nr,Ro;const Eo=an,Bo=cn,_o=ar,Nc=((Ro=(nr=tr.declaration)==null?void 0:nr.symbol)==null?void 0:Ro.declarations)||et,up=Nc.length>1?In(Nc,On=>Bs(On)&&Kf(On.body)):void 0;if(up){const On=dm(up),er=!On.typeParameters;zn([On],qd,er)&&Ma(Kn,kr(up,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}an=Eo,cn=Bo,ar=_o}function zn(tr,Kn,nr,Ro=!1){if(an=void 0,cn=void 0,ar=void 0,nr){const Eo=tr[0];if(bt(be)||!Mee(n,Je,Eo,Ro))return;if(K9(n,Je,Eo,Kn,0,!1,void 0)){an=[Eo];return}return Eo}for(let Eo=0;Eo<tr.length;Eo++){const Bo=tr[Eo];if(!cye(Bo,be)||!Mee(n,Je,Bo,Ro))continue;let _o,Nc;if(Bo.typeParameters){let Hf;if(bt(be)){if(Hf=pye(Bo,be,!1),!Hf){ar=Bo;continue}}else Nc=z8(Bo.typeParameters,Bo,lr(n)?2:0),Hf=uye(n,Bo,Je,Dt|8,Nc),Dt|=Nc.flags&4?8:0;if(_o=T8(Bo,Hf,lr(Bo.declaration),Nc&&Nc.inferredTypeParameters),J8(Bo)&&!Mee(n,Je,_o,Ro)){cn=_o;continue}}else _o=Bo;if(K9(n,Je,_o,Kn,Dt,!1,void 0)){(an||(an=[])).push(_o);continue}if(Dt){if(Dt=0,Nc){const Hf=uye(n,Bo,Je,Dt,Nc);if(_o=T8(Bo,Hf,lr(Bo.declaration),Nc.inferredTypeParameters),J8(Bo)&&!Mee(n,Je,_o,Ro)){cn=_o;continue}}if(K9(n,Je,_o,Kn,Dt,!1,void 0)){(an||(an=[])).push(_o);continue}}return tr[Eo]=_o,_o}}}function Qft(n,a,c,d,_){return N.assert(a.length>0),hx(n),d||a.length===1||a.some(v=>!!v.typeParameters)?tmt(n,a,c,_):Zft(a)}function Zft(n){const a=eo(n,F=>F.thisParameter);let c;a.length&&(c=_3e(a,a.map(Z9)));const{min:d,max:_}=Eoe(n,emt),v=[];for(let F=0;F<_;F++){const H=eo(n,re=>Yu(re)?F<re.parameters.length-1?re.parameters[F]:Xa(re.parameters):F<re.parameters.length?re.parameters[F]:void 0);N.assert(H.length!==0),v.push(_3e(H,eo(n,re=>Y1(re,F))))}const x=eo(n,F=>Yu(F)?Xa(F.parameters):void 0);let k=128;if(x.length!==0){const F=Vu(ei(eo(n,KOe),2));v.push(h3e(x,F)),k|=1}return n.some(Iq)&&(k|=2),Eg(n[0].declaration,void 0,c,v,ya(n.map(ps)),void 0,d,k)}function emt(n){const a=n.parameters.length;return Yu(n)?a-1:a}function _3e(n,a){return h3e(n,ei(a,2))}function h3e(n,a){return XT(Ua(n),a)}function tmt(n,a,c,d){const _=imt(a,tn===void 0?c.length:tn),v=a[_],{typeParameters:x}=v;if(!x)return v;const k=r3e(n)?n.typeArguments:void 0,F=k?AZ(v,nmt(k,x,lr(n))):rmt(n,x,v,c,d);return a[_]=F,F}function nmt(n,a,c){const d=n.map(gx);for(;d.length>a.length;)d.pop();for(;d.length<a.length;)d.push(GT(a[d.length])||Md(a[d.length])||Eve(c));return d}function rmt(n,a,c,d,_){const v=z8(a,c,lr(n)?2:0),x=uye(n,c,d,_|4|8,v);return AZ(c,x)}function imt(n,a){let c=-1,d=-1;for(let _=0;_<n.length;_++){const v=n[_],x=Xp(v);if(jh(v)||x>=a)return _;x>d&&(d=x,c=_)}return c}function omt(n,a,c){if(n.expression.kind===108){const F=Wve(n.expression);if(Nt(F)){for(const H of n.arguments)mo(H);return Et}if(!Jt(F)){const H=I_(au(n));if(H){const re=Wh(F,H.typeArguments,H);return CN(n,re,a,c,0)}}return nA(n)}let d,_=mo(n.expression);if(uS(n)){const F=O8(_,n.expression);d=F===_?0:lC(n)?16:8,_=F}else d=0;if(_=j4e(_,n.expression,Sft),_===vo)return vr;const v=Ld(_);if(Jt(v))return Q_(n);const x=Xo(v,0),k=Xo(v,1).length;if($9(_,v,x.length,k))return!Jt(_)&&n.typeArguments&&qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),nA(n);if(!x.length){if(k)qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Hn(_));else{let F;if(n.arguments.length===1){const H=Un(n).text;Hu(H.charCodeAt(Pa(H,n.expression.end,!0)-1))&&(F=kr(n.expression,f.Are_you_missing_a_semicolon))}mye(n.expression,v,0,F)}return Q_(n)}return c&8&&!n.typeArguments&&x.some(amt)?(Z3e(n,c),Er):x.some(F=>lr(F.declaration)&&!!AV(F.declaration))?(qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Hn(_)),Q_(n)):CN(n,x,a,c,d)}function amt(n){return!!(n.typeParameters&&ibe(ps(n)))}function $9(n,a,c,d){return Nt(n)||Nt(a)&&!!(n.flags&262144)||!c&&!d&&!(a.flags&1048576)&&!(f_(a).flags&131072)&&ba(n,Ot)}function smt(n,a,c){if(n.arguments&&se<1){const x=Pee(n.arguments);x>=0&&qe(n.arguments[x],f.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let d=NN(n.expression);if(d===vo)return vr;if(d=Ld(d),Jt(d))return Q_(n);if(Nt(d))return n.typeArguments&&qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),nA(n);const _=Xo(d,1);if(_.length){if(!lmt(n,_[0]))return Q_(n);if(g3e(_,k=>!!(k.flags&4)))return qe(n,f.Cannot_create_an_instance_of_an_abstract_class),Q_(n);const x=d.symbol&&Wg(d.symbol);return x&&Qr(x,64)?(qe(n,f.Cannot_create_an_instance_of_an_abstract_class),Q_(n)):CN(n,_,a,c,0)}const v=Xo(d,0);if(v.length){const x=CN(n,v,a,c,0);return de||(x.declaration&&!Z_(x.declaration)&&ps(x)!==ir&&qe(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),oE(x)===ir&&qe(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return mye(n.expression,d,1),Q_(n)}function g3e(n,a){return To(n)?bt(n,c=>g3e(c,a)):n.compositeKind===1048576?bt(n.compositeSignatures,a):a(n)}function fye(n,a){const c=Cp(a);if(!Ne(c))return!1;const d=c[0];if(d.flags&2097152){const _=d.types,v=NOe(_);let x=0;for(const k of d.types){if(!v[x]&&Wr(k)&3&&(k.symbol===n||fye(n,k)))return!0;x++}return!1}return d.symbol===n?!0:fye(n,d)}function lmt(n,a){if(!a||!a.declaration)return!0;const c=a.declaration,d=wA(c,6);if(!d||c.kind!==176)return!0;const _=Wg(c.parent.symbol),v=Zs(c.parent.symbol);if(!tbe(n,_)){const x=au(n);if(x&&d&4){const k=gx(x);if(fye(c.parent.symbol,k))return!0}return d&2&&qe(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Hn(v)),d&4&&qe(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Hn(v)),!1}return!0}function v3e(n,a,c){let d;const _=c===0,v=oA(a),x=v&&Xo(v,c).length>0;if(a.flags&1048576){const F=a.types;let H=!1;for(const re of F)if(Xo(re,c).length!==0){if(H=!0,d)break}else if(d||(d=Vo(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Hn(re)),d=Vo(d,_?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,Hn(a))),H)break;H||(d=Vo(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,Hn(a))),d||(d=Vo(d,_?f.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:f.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Hn(a)))}else d=Vo(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Hn(a));let k=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(sa(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:F}=Zr(n);F&&F.flags&32768&&(k=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Vo(d,k),relatedMessage:x?f.Did_you_forget_to_use_await:void 0}}function mye(n,a,c,d){const{messageChain:_,relatedMessage:v}=v3e(n,a,c),x=Lg(Un(n),n,_);if(v&&Ma(x,kr(n,v)),sa(n.parent)){const{start:k,length:F}=f3e(n.parent);x.start=k,x.length=F}ts.add(x),y3e(a,c,d?Ma(x,d):x)}function y3e(n,a,c){if(!n.symbol)return;const d=Ki(n.symbol).originatingImport;if(d&&!zp(d)){const _=Xo(dr(Ki(n.symbol).target),a);if(!_||!_.length)return;Ma(c,kr(d,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function cmt(n,a,c){const d=mo(n.tag),_=Ld(d);if(Jt(_))return Q_(n);const v=Xo(_,0),x=Xo(_,1).length;if($9(d,_,v.length,x))return nA(n);if(!v.length){if(fd(n.parent)){const k=kr(n.tag,f.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return ts.add(k),Q_(n)}return mye(n.tag,_,0),Q_(n)}return CN(n,v,a,c,0)}function umt(n){switch(n.parent.kind){case 263:case 231:return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return N.fail()}}function dmt(n,a,c){const d=mo(n.expression),_=Ld(d);if(Jt(_))return Q_(n);const v=Xo(_,0),x=Xo(_,1).length;if($9(d,_,v.length,x))return nA(n);if(mmt(n,v)&&!Gd(n.expression)){const F=fc(n.expression,!1);return qe(n,f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,F),Q_(n)}const k=umt(n);if(!v.length){const F=v3e(n.expression,_,0),H=Vo(F.messageChain,k),re=Lg(Un(n.expression),n.expression,H);return F.relatedMessage&&Ma(re,kr(n.expression,F.relatedMessage)),ts.add(re),y3e(_,0,re),Q_(n)}return CN(n,v,a,c,0,k)}function wee(n,a){const c=tA(n),d=c&&Dp(c),_=d&&Jd(d,of.Element,788968),v=_&&At.symbolToEntityName(_,788968,n),x=w.createFunctionTypeNode(void 0,[w.createParameterDeclaration(void 0,void 0,"props",void 0,At.typeToTypeNode(a,n))],v?w.createTypeReferenceNode(v,void 0):w.createKeywordTypeNode(133)),k=Ka(1,"props");return k.links.type=a,Eg(x,void 0,void 0,[k],_?Zs(_):_t,void 0,1,0)}function pmt(n,a,c){if(_x(n.tagName)){const x=W4e(n),k=wee(n,x);return Fb(MN(n.attributes,Tee(k,n),void 0,0),x,n.tagName,n.attributes),Ne(n.typeArguments)&&(Xe(n.typeArguments,Ra),ts.add(rR(Un(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,Ne(n.typeArguments)))),k}const d=mo(n.tagName),_=Ld(d);if(Jt(_))return Q_(n);const v=w4e(d,n);return $9(d,_,v.length,0)?nA(n):v.length===0?(qe(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,fc(n.tagName)),Q_(n)):CN(n,v,a,c,0)}function fmt(n,a,c){const d=mo(n.right);if(!Nt(d)){const _=Dye(d);if(_){const v=Ld(_);if(Jt(v))return Q_(n);const x=Xo(v,0),k=Xo(v,1);if($9(_,v,x.length,k.length))return nA(n);if(x.length)return CN(n,x,a,c,0)}else if(!(ite(d)||Wb(d,Ot)))return qe(n.right,f.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),Q_(n)}return Et}function mmt(n,a){return a.length&&Jn(a,c=>c.minArgumentCount===0&&!Yu(c)&&c.parameters.length<p3e(n,c))}function _mt(n,a,c){switch(n.kind){case 213:return omt(n,a,c);case 214:return smt(n,a,c);case 215:return cmt(n,a,c);case 170:return dmt(n,a,c);case 286:case 285:return pmt(n,a,c);case 226:return fmt(n,a,c)}N.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function PN(n,a,c){const d=Zr(n),_=d.resolvedSignature;if(_&&_!==Er&&!a)return _;d.resolvedSignature=Er;let v=_mt(n,a,c||0);return v!==Er&&(d.resolvedSignature!==Er&&(v=d.resolvedSignature),d.resolvedSignature=V_===ff?v:_),v}function Z_(n){var a;if(!n||!lr(n))return!1;const c=Tc(n)||Os(n)?n:(Oi(n)||hc(n))&&n.initializer&&Os(n.initializer)?n.initializer:void 0;if(c){if(AV(n))return!0;if(hc(kv(c.parent)))return!1;const d=Ir(c);return!!((a=d==null?void 0:d.members)!=null&&a.size)}return!1}function _ye(n,a){var c,d;if(a){const _=Ki(a);if(!_.inferredClassSymbol||!_.inferredClassSymbol.has(Sa(n))){const v=ph(n)?n:gT(n);return v.exports=v.exports||ca(),v.members=v.members||ca(),v.flags|=a.flags&32,(c=a.exports)!=null&&c.size&&a_(v.exports,a.exports),(d=a.members)!=null&&d.size&&a_(v.members,a.members),(_.inferredClassSymbol||(_.inferredClassSymbol=new Map)).set(Sa(v),v),v}return _.inferredClassSymbol.get(Sa(n))}}function hmt(n){var a;const c=n&&Oee(n,!0),d=(a=c==null?void 0:c.exports)==null?void 0:a.get("prototype"),_=(d==null?void 0:d.valueDeclaration)&&gmt(d.valueDeclaration);return _?Ir(_):void 0}function Oee(n,a){if(!n.parent)return;let c,d;if(Oi(n.parent)&&n.parent.initializer===n){if(!lr(n)&&!(yB(n.parent)&&Bs(n)))return;c=n.parent.name,d=n.parent}else if(mr(n.parent)){const _=n.parent,v=n.parent.operatorToken.kind;if(v===64&&(a||_.right===n))c=_.left,d=c;else if((v===57||v===61)&&(Oi(_.parent)&&_.parent.initializer===_?(c=_.parent.name,d=_.parent):mr(_.parent)&&_.parent.operatorToken.kind===64&&(a||_.parent.right===_)&&(c=_.parent.left,d=c),!c||!TS(c)||!dR(c,_.left)))return}else a&&Tc(n)&&(c=n.name,d=n);if(!(!d||!c||!a&&!u0(n,zy(c))))return _f(d)}function gmt(n){if(!n.parent)return!1;let a=n.parent;for(;a&&a.kind===211;)a=a.parent;if(a&&mr(a)&&zy(a.left)&&a.operatorToken.kind===64){const c=Ej(a);return La(c)&&c}}function vmt(n,a){var c,d,_;vB(n,n.typeArguments);const v=PN(n,void 0,a);if(v===Er)return vo;if(Wee(v,n),n.expression.kind===108)return ir;if(n.kind===214){const k=v.declaration;if(k&&k.kind!==176&&k.kind!==180&&k.kind!==185&&!(E0(k)&&((d=(c=hR(k))==null?void 0:c.parent)==null?void 0:d.kind)===176)&&!_R(k)&&!Z_(k))return de&&qe(n,f.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),j}if(lr(n)&&T3e(n))return qOe(n.arguments[0]);const x=ps(v);if(x.flags&12288&&b3e(n))return Gge(kv(n.parent));if(n.kind===213&&!n.questionDotToken&&n.parent.kind===244&&x.flags&16384&&Gf(v)){if(!FC(n.expression))qe(n.expression,f.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!w9(n)){const k=qe(n.expression,f.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);k9(n.expression,k)}}if(lr(n)){const k=Oee(n,!1);if((_=k==null?void 0:k.exports)!=null&&_.size){const F=Ls(k,k.exports,et,et,et);return F.objectFlags|=4096,ya([x,F])}}return x}function Wee(n,a){if(!(n.flags&128)&&n.declaration&&n.declaration.flags&536870912){const c=Q9(a),d=ck(q4(a));DM(c,n.declaration,d,kh(n))}}function Q9(n){switch(n=hs(n),n.kind){case 213:case 170:case 214:return Q9(n.expression);case 215:return Q9(n.tag);case 286:case 285:return Q9(n.tagName);case 212:return n.argumentExpression;case 211:return n.name;case 183:const a=n;return Id(a.typeName)?a.typeName.right:a;default:return n}}function b3e(n){if(!sa(n))return!1;let a=n.expression;if(Fr(a)&&a.name.escapedText==="for"&&(a=a.expression),!Ve(a)||a.escapedText!=="Symbol")return!1;const c=d8e(!1);return c?c===yl(a,"Symbol",111551,void 0,void 0,!1):!1}function ymt(n){if(kyt(n),n.arguments.length===0)return rB(n,j);const a=n.arguments[0],c=nc(a),d=n.arguments.length>1?nc(n.arguments[1]):void 0;for(let v=2;v<n.arguments.length;++v)nc(n.arguments[v]);if((c.flags&32768||c.flags&65536||!ba(c,ke))&&qe(a,f.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Hn(c)),d){const v=u8e(!0);v!==Ca&&nd(d,N9(v,32768),n.arguments[1])}const _=hd(n,a);if(_){const v=sp(_,a,!0,!1);if(v)return rB(n,E3e(dr(v),v,_,a)||S3e(dr(v),v,_,a))}return rB(n,j)}function hye(n,a,c){const d=ca(),_=Ka(2097152,"default");return _.parent=a,_.links.nameType=Xd("default"),_.links.aliasTarget=Vl(n),d.set("default",_),Ls(c,d,et,et,et)}function E3e(n,a,c,d){if(ay(d)&&n&&!Jt(n)){const v=n;if(!v.defaultOnlyType){const x=hye(a,c);v.defaultOnlyType=x}return v.defaultOnlyType}}function S3e(n,a,c,d){var _;if(Y&&n&&!Jt(n)){const v=n;if(!v.syntheticType){const x=(_=c.declarations)==null?void 0:_.find($i);if(U_(x,c,!1,d)){const F=Ka(2048,"__type"),H=hye(a,c,F);F.links.type=H,v.syntheticType=G9(n)?V1(n,H,F,0,!1):H}else v.syntheticType=n}return v.syntheticType}return n}function T3e(n){if(!Td(n,!0))return!1;if(!Ve(n.expression))return N.fail();const a=yl(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(a===vt)return!0;if(a.flags&2097152)return!1;const c=a.flags&16?262:a.flags&3?260:0;if(c!==0){const d=pl(a,c);return!!d&&!!(d.flags&33554432)}return!1}function bmt(n){ayt(n)||vB(n,n.typeArguments),se<2&&Dc(n,262144);const a=PN(n);return Wee(a,n),ps(a)}function Emt(n,a){if(n.kind===216){const c=Un(n);c&&Sc(c.fileName,[".cts",".mts"])&&Sn(n,f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return A3e(n,a)}function gye(n){switch(n.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 209:case 210:case 228:return!0;case 217:return gye(n.expression);case 224:const a=n.operator,c=n.operand;return a===41&&(c.kind===9||c.kind===10)||a===40&&c.kind===9;case 211:case 212:const d=hs(n.expression),_=Bl(d)?Hs(d,111551,!0):void 0;return!!(_&&_.flags&384)}return!1}function A3e(n,a){const{type:c,expression:d}=I3e(n),_=mo(d,a);if(Pg(c))return gye(d)||qe(d,f.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),yd(_);const v=Zr(n);return v.assertionExpressionType=_,Ra(c),hx(n),Ti(c)}function I3e(n){let a,c;switch(n.kind){case 234:case 216:a=n.type,c=n.expression;break;case 217:a=nF(n),c=n.expression;break}return{type:a,expression:c}}function Smt(n){const{type:a}=I3e(n),c=Gd(n)?a:n,d=Zr(n);N.assertIsDefined(d.assertionExpressionType);const _=F8(_v(d.assertionExpressionType)),v=Ti(a);Jt(v)||r(()=>{const x=Kp(_);jZ(v,x)||l6e(_,v,c,f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function Tmt(n){const a=mo(n.expression),c=O8(a,n.expression);return tee(hv(c),n,c!==a)}function Amt(n){return n.flags&64?Tmt(n):hv(mo(n.expression))}function x3e(n){if(bFe(n),Xe(n.typeArguments,Ra),n.kind===233){const c=kv(n.parent);c.kind===226&&c.operatorToken.kind===104&&WE(n,c.right)&&qe(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=n.kind===233?mo(n.expression):VE(n.exprName)?F9(n.exprName):mo(n.exprName);return R3e(a,n)}function R3e(n,a){const c=a.typeArguments;if(n===vo||Jt(n)||!bt(c))return n;let d=!1,_;const v=k(n),x=d?_:n;return x&&ts.add(rR(Un(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Hn(x))),v;function k(H){let re=!1,be=!1;const ge=Je(H);return d||(d=be),re&&!be&&(_??(_=H)),ge;function Je(gt){if(gt.flags&524288){const Dt=p_(gt),an=F(Dt.callSignatures),cn=F(Dt.constructSignatures);if(re||(re=Dt.callSignatures.length!==0||Dt.constructSignatures.length!==0),be||(be=an.length!==0||cn.length!==0),an!==Dt.callSignatures||cn!==Dt.constructSignatures){const ar=Ls(Ka(0,"__instantiationExpression"),Dt.members,an,cn,Dt.indexInfos);return ar.objectFlags|=8388608,ar.node=a,ar}}else if(gt.flags&58982400){const Dt=Gu(gt);if(Dt){const an=Je(Dt);if(an!==Dt)return an}}else{if(gt.flags&1048576)return dl(gt,k);if(gt.flags&2097152)return ya(Zo(gt.types,Je))}return gt}}function F(H){const re=mn(H,be=>!!be.typeParameters&&cye(be,c));return Zo(re,be=>{const ge=pye(be,c,!0);return ge?T8(be,ge,lr(be.declaration)):be})}}function Imt(n){return Ra(n.type),vye(n.expression,n.type)}function vye(n,a,c){const d=mo(n,c),_=Ti(a);if(Jt(_))return _;const v=Vn(a.parent,x=>x.kind===238||x.kind===357);return Fb(d,_,v,n,f.Type_0_does_not_satisfy_the_expected_type_1),d}function xmt(n){return Syt(n),n.keywordToken===105?yye(n):n.keywordToken===102?Rmt(n):N.assertNever(n.keywordToken)}function D3e(n){switch(n.keywordToken){case 102:return c8e();case 105:const a=yye(n);return Jt(a)?_t:Umt(a);default:N.assertNever(n.keywordToken)}}function yye(n){const a=sie(n);if(a)if(a.kind===176){const c=Ir(a.parent);return dr(c)}else{const c=Ir(a);return dr(c)}else return qe(n,f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),_t}function Rmt(n){G===100||G===199?Un(n).impliedNodeFormat!==99&&qe(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):G<6&&G!==4&&qe(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=Un(n);return N.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?l8e():_t}function Z9(n){const a=n.valueDeclaration;return lp(dr(n),!1,!!a&&(Ly(a)||rP(a)))}function bye(n,a,c="arg"){return n?(N.assert(Ve(n.name)),n.name.escapedText):`${c}_${a}`}function n2(n,a,c){const d=n.parameters.length-(Yu(n)?1:0);if(a<d)return n.parameters[a].escapedName;const _=n.parameters[d]||ft,v=c||dr(_);if(Wa(v)){const x=v.target.labeledElementDeclarations,k=a-d;return bye(x==null?void 0:x[k],k,_.escapedName)}return _.escapedName}function Dmt(n,a){var c;if(((c=n.declaration)==null?void 0:c.kind)===324)return;const d=n.parameters.length-(Yu(n)?1:0);if(a<d){const k=n.parameters[a],F=N3e(k);return F?{parameter:F,parameterName:k.escapedName,isRestParameter:!1}:void 0}const _=n.parameters[d]||ft,v=N3e(_);if(!v)return;const x=dr(_);if(Wa(x)){const k=x.target.labeledElementDeclarations,F=a-d,H=k==null?void 0:k[F],re=!!(H!=null&&H.dotDotDotToken);return H?(N.assert(Ve(H.name)),{parameter:H.name,parameterName:H.name.escapedText,isRestParameter:re}):void 0}if(a===d)return{parameter:v,parameterName:_.escapedName,isRestParameter:!0}}function N3e(n){return n.valueDeclaration&&Ao(n.valueDeclaration)&&Ve(n.valueDeclaration.name)&&n.valueDeclaration.name}function C3e(n){return n.kind===202||Ao(n)&&n.name&&Ve(n.name)}function Nmt(n,a){const c=n.parameters.length-(Yu(n)?1:0);if(a<c){const v=n.parameters[a].valueDeclaration;return v&&C3e(v)?v:void 0}const d=n.parameters[c]||ft,_=dr(d);if(Wa(_)){const v=_.target.labeledElementDeclarations,x=a-c;return v&&v[x]}return d.valueDeclaration&&C3e(d.valueDeclaration)?d.valueDeclaration:void 0}function h_(n,a){return Y1(n,a)||j}function Y1(n,a){const c=n.parameters.length-(Yu(n)?1:0);if(a<c)return Z9(n.parameters[a]);if(Yu(n)){const d=dr(n.parameters[c]),_=a-c;if(!Wa(d)||d.target.hasRestElement||_<d.target.fixedLength)return Pp(d,m_(_))}}function eB(n,a,c){const d=Xp(n),_=eh(n),v=q8(n);if(v&&a>=d-1)return a===d-1?v:Vu(Pp(v,Tt));const x=[],k=[],F=[];for(let H=a;H<d;H++)!v||H<d-1?(x.push(h_(n,H)),k.push(H<_?1:2)):(x.push(v),k.push(8)),F.push(Nmt(n,H));return Gh(x,k,c,F)}function P3e(n,a){const c=eB(n,a),d=c&&D9(c);return d&&Nt(d)?j:c}function Xp(n){const a=n.parameters.length;if(Yu(n)){const c=dr(n.parameters[a-1]);if(Wa(c))return a+c.target.fixedLength-(c.target.hasRestElement?0:1)}return a}function eh(n,a){const c=a&1,d=a&2;if(d||n.resolvedMinArgumentCount===void 0){let _;if(Yu(n)){const v=dr(n.parameters[n.parameters.length-1]);if(Wa(v)){const x=mi(v.target.elementFlags,F=>!(F&1)),k=x<0?v.target.fixedLength:x;k>0&&(_=n.parameters.length-1+k)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(d)return _;for(let v=_-1;v>=0;v--){const x=h_(n,v);if(dc(x,i3e).flags&131072)break;_=v}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function jh(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]);return!Wa(a)||a.target.hasRestElement}return!1}function q8(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]);if(!Wa(a))return Nt(a)?ec:a;if(a.target.hasRestElement)return UM(a,a.target.fixedLength)}}function J8(n){const a=q8(n);return a&&!Uf(a)&&!Nt(a)?a:void 0}function Eye(n){return Sye(n,Vr)}function Sye(n,a){return n.parameters.length>0?h_(n,0):a}function M3e(n,a,c){const d=n.parameters.length-(Yu(n)?1:0);for(let _=0;_<d;_++){const v=n.parameters[_].valueDeclaration,x=yu(v);if(x){const k=lp(Ti(x),!1,rP(v)),F=h_(a,_);gv(c.inferences,k,F)}}}function Cmt(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){const d=n.thisParameter;(!d||d.valueDeclaration&&!d.valueDeclaration.type)&&(d||(n.thisParameter=XT(a.thisParameter,void 0)),tB(n.thisParameter,dr(a.thisParameter)))}const c=n.parameters.length-(Yu(n)?1:0);for(let d=0;d<c;d++){const _=n.parameters[d],v=_.valueDeclaration;if(!yu(v)){let x=Y1(a,d);if(x&&v.initializer){let k=r2(v,0);!ba(k,x)&&ba(x,k=Gee(v,k))&&(x=k)}tB(_,x)}}if(Yu(n)){const d=Xa(n.parameters);if(d.valueDeclaration?!yu(d.valueDeclaration):xl(d)&65536){const _=eB(a,c);tB(d,_)}}}function Pmt(n){n.thisParameter&&tB(n.thisParameter);for(const a of n.parameters)tB(a)}function tB(n,a){const c=Ki(n);if(c.type)a&&N.assertEqual(c.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{const d=n.valueDeclaration;c.type=lp(a||(d?B(d,!0):dr(n)),!1,!!d&&!d.initializer&&rP(d)),d&&d.name.kind!==80&&(c.type===hn&&(c.type=P(d.name)),L3e(d.name,c.type))}}function L3e(n,a){for(const c of n.elements)if(!Gc(c)){const d=bg(c,a,!1);c.name.kind===80?Ki(Ir(c)).type=d:L3e(c.name,d)}}function Mmt(n){return bN(Jlt(!0),[n])}function Lmt(n,a){return bN(Klt(!0),[n,a])}function kmt(n,a){return bN(Xlt(!0),[n,a])}function wmt(n,a){return bN(Ylt(!0),[n,a])}function Omt(n,a){return bN($lt(!0),[n,a])}function Wmt(n,a){return bN(ect(!0),[n,a])}function Fmt(n,a,c){const d=`${a?"p":"P"}${c?"s":"S"}${n.id}`;let _=ka.get(d);if(!_){const v=ca();v.set("name",_T("name",n)),v.set("private",_T("private",a?Gn:en)),v.set("static",_T("static",c?Gn:en)),_=Ls(void 0,v,et,et,et),ka.set(d,_)}return _}function k3e(n,a,c){const d=mc(n),_=qi(n.name),v=_?Xd(Sr(n.name)):py(n.name),x=Hl(n)?Lmt(a,c):tf(n)?kmt(a,c):vp(n)?wmt(a,c):Wd(n)?Omt(a,c):qo(n)?Wmt(a,c):N.failBadSyntaxKind(n),k=Fmt(v,_,d);return ya([x,k])}function zmt(n,a){return bN(Qlt(!0),[n,a])}function Bmt(n,a){return bN(Zlt(!0),[n,a])}function Gmt(n,a){const c=o_("this",n),d=o_("value",a);return Wye(void 0,c,[d],a,void 0,1)}function Tye(n,a,c){const d=o_("target",n),_=o_("context",a),v=ei([c,ir]);return Z8(void 0,void 0,[d,_],v)}function Vmt(n){const{parent:a}=n,c=Zr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=Et,a.kind){case 263:case 231:{const _=dr(Ir(a)),v=Mmt(_);c.decoratorSignature=Tye(_,v,_);break}case 174:case 177:case 178:{const d=a;if(!di(d.parent))break;const _=Hl(d)?VT(dm(d)):gx(d),v=mc(d)?dr(Ir(d.parent)):Bf(Ir(d.parent)),x=tf(d)?fWe(_):vp(d)?mWe(_):_,k=k3e(d,v,_),F=tf(d)?fWe(_):vp(d)?mWe(_):_;c.decoratorSignature=Tye(x,k,F);break}case 172:{const d=a;if(!di(d.parent))break;const _=gx(d),v=mc(d)?dr(Ir(d.parent)):Bf(Ir(d.parent)),x=D_(d)?zmt(v,_):Oe,k=k3e(d,v,_),F=D_(d)?Bmt(v,_):Gmt(v,_);c.decoratorSignature=Tye(x,k,F);break}}return c.decoratorSignature===Et?void 0:c.decoratorSignature}function jmt(n){const{parent:a}=n,c=Zr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=Et,a.kind){case 263:case 231:{const _=dr(Ir(a)),v=o_("target",_);c.decoratorSignature=Z8(void 0,void 0,[v],ei([_,ir]));break}case 169:{const d=a;if(!Ml(d.parent)&&!(Hl(d.parent)||vp(d.parent)&&di(d.parent.parent))||BE(d.parent)===d)break;const _=BE(d.parent)?d.parent.parameters.indexOf(d)-1:d.parent.parameters.indexOf(d);N.assert(_>=0);const v=Ml(d.parent)?dr(Ir(d.parent.parent)):cFe(d.parent),x=Ml(d.parent)?Oe:uFe(d.parent),k=m_(_),F=o_("target",v),H=o_("propertyKey",x),re=o_("parameterIndex",k);c.decoratorSignature=Z8(void 0,void 0,[F,H,re],ir);break}case 174:case 177:case 178:case 172:{const d=a;if(!di(d.parent))break;const _=cFe(d),v=o_("target",_),x=uFe(d),k=o_("propertyKey",x),F=qo(d)?ir:h8e(gx(d));if(se!==0&&(!qo(a)||D_(a))){const re=h8e(gx(d)),be=o_("descriptor",re);c.decoratorSignature=Z8(void 0,void 0,[v,k,be],ei([F,ir]))}else c.decoratorSignature=Z8(void 0,void 0,[v,k],ei([F,ir]));break}}return c.decoratorSignature===Et?void 0:c.decoratorSignature}function Aye(n){return ne?jmt(n):Vmt(n)}function nB(n){const a=p9(!0);return a!==wo?(n=_y(s2(n))||hn,uy(a,[n])):hn}function w3e(n){const a=f8e(!0);return a!==wo?(n=_y(s2(n))||hn,uy(a,[n])):hn}function rB(n,a){const c=nB(a);return c===hn?(qe(n,zp(n)?f.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),_t):(Ege(!0)||qe(n,zp(n)?f.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function Umt(n){const a=Ka(0,"NewTargetExpression"),c=Ka(4,"target",8);c.parent=a,c.links.type=n;const d=ca([c]);return a.members=d,Ls(a,d,et,et,et)}function Fee(n,a){if(!n.body)return _t;const c=Bc(n),d=(c&2)!==0,_=(c&1)!==0;let v,x,k,F=ir;if(n.body.kind!==241)v=nc(n.body,a&&a&-9),d&&(v=s2(Q8(v,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(_){const H=G3e(n,a);H?H.length>0&&(v=ei(H,2)):F=Vr;const{yieldTypes:re,nextTypes:be}=Hmt(n,a);x=bt(re)?ei(re,2):void 0,k=bt(be)?ya(be):void 0}else{const H=G3e(n,a);if(!H)return c&2?rB(n,Vr):Vr;if(H.length===0){const re=yee(n,void 0),be=re&&(mB(re,c)||ir).flags&32768?Oe:ir;return c&2?rB(n,be):be}v=ei(H,2)}if(v||x||k){if(x&&oee(n,x,3),v&&oee(n,v,1),k&&oee(n,k,2),v&&__(v)||x&&__(x)||k&&__(k)){const H=Uve(n),re=H?H===dm(n)?_?void 0:v:Eee(ps(H),n,void 0):void 0;_?(x=sve(x,re,0,d),v=sve(v,re,1,d),k=sve(k,re,2,d)):v=qut(v,re,d)}x&&(x=Kp(x)),v&&(v=Kp(v)),k&&(k=Kp(k))}return _?O3e(x||Vr,v||F,k||E4e(2,n)||hn,d):d?nB(v||F):v||F}function O3e(n,a,c,d){const _=d?Us:vc,v=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||hn,a=_.resolveIterationType(a,void 0)||hn,c=_.resolveIterationType(c,void 0)||hn,v===wo){const x=_.getGlobalIterableIteratorType(!1),k=x!==wo?DWe(x,_):void 0,F=k?k.returnType:j,H=k?k.nextType:Oe;return ba(a,F)&&ba(H,c)?x!==wo?I8(x,[n]):(_.getGlobalIterableIteratorType(!0),Ca):(_.getGlobalGeneratorType(!0),Ca)}return I8(v,[n,a,c])}function Hmt(n,a){const c=[],d=[],_=(Bc(n)&2)!==0;return Yre(n.body,v=>{const x=v.expression?mo(v.expression,a):Lt;Ef(c,W3e(v,x,j,_));let k;if(v.asteriskToken){const F=$ee(x,_?19:17,v.expression);k=F&&F.nextType}else k=Yd(v,void 0);k&&Ef(d,k)}),{yieldTypes:c,nextTypes:d}}function W3e(n,a,c,d){const _=n.expression||n,v=n.asteriskToken?hy(d?19:17,a,c,_):a;return d?oA(v,_,n.asteriskToken?f.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:f.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):v}function F3e(n,a,c){let d=0;for(let _=0;_<c.length;_++){const v=_<n||_>=a?c[_]:void 0;d|=v!==void 0?Rq.get(v)||32768:0}return d}function z3e(n){const a=Zr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const c=qmt(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function qmt(n){if(n.expression.kind===221){const d=Z6e(n);if(!d)return!1;const _=uv(nc(n.expression.expression)),v=F3e(0,0,d);return _.flags&3?(556800&v)===556800:!Gm(_,x=>$M(x,v)===v)}const a=nc(n.expression);if(!w8(a))return!1;const c=dee(n);return!c.length||bt(c,jut)?!1:Bdt(dl(a,yd),c)}function B3e(n){return n.endFlowNode&&O9(n.endFlowNode)}function G3e(n,a){const c=Bc(n),d=[];let _=B3e(n),v=!1;if(LE(n.body,x=>{let k=x.expression;if(k){if(k=hs(k,!0),c&2&&k.kind===223&&(k=hs(k.expression,!0)),k.kind===213&&k.expression.kind===80&&nc(k.expression).symbol===n.symbol){v=!0;return}let F=nc(k,a&&a&-9);c&2&&(F=s2(Q8(F,!1,n,f.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),Ef(d,F)}else _=!0}),!(d.length===0&&!_&&(v||Jmt(n))))return X&&d.length&&_&&!(Z_(n)&&d.some(x=>x.symbol===n.symbol))&&Ef(d,Oe),d}function Jmt(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function Iye(n,a){r(c);return;function c(){const d=Bc(n),_=a&&mB(a,d);if(_&&(Cl(_,16384)||_.flags&32769)||n.kind===173||Fl(n.body)||n.body.kind!==241||!B3e(n))return;const v=n.flags&1024,x=em(n)||n;if(_&&_.flags&131072)qe(x,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(_&&!v)qe(x,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(_&&X&&!ba(Oe,_))qe(x,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!_){if(!v)return;const k=ps(dm(n));if(OWe(n,k))return}qe(x,f.Not_all_code_paths_return_a_value)}}}function V3e(n,a){if(N.assert(n.kind!==174||Tm(n)),hx(n),Os(n)&&l2(n,n.name),a&&a&4&&Vf(n)){if(!em(n)&&!H3(n)){const d=U8(n);if(d&&dE(ps(d))){const _=Zr(n);if(_.contextFreeType)return _.contextFreeType;const v=Fee(n,a),x=Eg(void 0,void 0,void 0,et,v,void 0,0,64),k=Ls(n.symbol,K,[x],et,et);return k.objectFlags|=262144,_.contextFreeType=k}}return nn}return!lte(n)&&n.kind===218&&sbe(n),Kmt(n,a),dr(Ir(n))}function Kmt(n,a){const c=Zr(n);if(!(c.flags&64)){const d=U8(n);if(!(c.flags&64)){c.flags|=64;const _=Kc(Xo(dr(Ir(n)),0));if(!_)return;if(Vf(n))if(d){const v=K1(n);let x;if(a&&a&2){M3e(_,d,v);const k=q8(d);k&&k.flags&262144&&(x=xN(d,v.nonFixingMapper))}x||(x=v?xN(d,v.mapper):d),Cmt(_,x)}else Pmt(_);else if(d&&!n.typeParameters&&d.parameters.length>n.parameters.length){const v=K1(n);a&&a&2&&M3e(_,d,v)}if(d&&!yN(n)&&!_.resolvedReturnType){const v=Fee(n,a);_.resolvedReturnType||(_.resolvedReturnType=v)}X8(n)}}}function Xmt(n){N.assert(n.kind!==174||Tm(n));const a=Bc(n),c=yN(n);if(Iye(n,c),n.body)if(em(n)||ps(dm(n)),n.body.kind===241)Ra(n.body);else{const d=mo(n.body),_=c&&mB(c,a);if(_){const v=Lee(n.body);if((a&3)===2){const x=Q8(d,!1,v,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Fb(x,_,v,v)}else Fb(d,_,v,v)}}}function zee(n,a,c,d=!1){if(!ba(a,Ql)){const _=d&&a2(a);return G0(n,!!_&&ba(_,Ql),c),!1}return!0}function Ymt(n){if(!sa(n)||!SS(n))return!1;const a=nc(n.arguments[2]);if(Ke(a,"value")){const _=va(a,"writable"),v=_&&dr(_);if(!v||v===en||v===En)return!0;if(_&&_.valueDeclaration&&hc(_.valueDeclaration)){const x=_.valueDeclaration.initializer,k=mo(x);if(k===en||k===En)return!0}return!1}return!va(a,"set")}function g_(n){return!!(xl(n)&8||n.flags&4&&xf(n)&8||n.flags&3&&$ve(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||bt(n.declarations,Ymt))}function j3e(n,a,c){var d,_;if(c===0)return!1;if(g_(a)){if(a.flags&4&&ws(n)&&n.expression.kind===110){const v=Bp(n);if(!(v&&(v.kind===176||Z_(v))))return!0;if(a.valueDeclaration){const x=mr(a.valueDeclaration),k=v.parent===a.valueDeclaration.parent,F=v===a.valueDeclaration.parent,H=x&&((d=a.parent)==null?void 0:d.valueDeclaration)===v.parent,re=x&&((_=a.parent)==null?void 0:_.valueDeclaration)===v;return!(k||F||H||re)}}return!0}if(ws(n)){const v=hs(n.expression);if(v.kind===80){const x=Zr(v).resolvedSymbol;if(x.flags&2097152){const k=wm(x);return!!k&&k.kind===274}}}return!1}function K8(n,a,c){const d=$l(n,7);return d.kind!==80&&!ws(d)?(qe(n,a),!1):d.flags&64?(qe(n,c),!1):!0}function $mt(n){mo(n.expression);const a=hs(n.expression);if(!ws(a))return qe(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),Pi;Fr(a)&&qi(a.name)&&qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=Zr(a),d=hf(c.resolvedSymbol);return d&&(g_(d)?qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Qmt(a,d)),Pi}function Qmt(n,a){const c=dr(a);X&&!(c.flags&131075)&&!(De?a.flags&16777216:fm(c,16777216))&&qe(n,f.The_operand_of_a_delete_operator_must_be_optional)}function Zmt(n){return mo(n.expression),YD}function e_t(n){return hx(n),Lt}function U3e(n){let a=!1;const c=V4(n);if(c&&Rl(c)){const d=Ky(n)?f.await_expression_cannot_be_used_inside_a_class_static_block:f.await_using_statements_cannot_be_used_inside_a_class_static_block;qe(n,d),a=!0}else if(!(n.flags&65536))if(U4(n)){const d=Un(n);if(!Q1(d)){let _;if(!RA(d,V)){_??(_=_h(d,n.pos));const v=Ky(n)?f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,x=$c(d,_.start,_.length,v);ts.add(x),a=!0}switch(G){case 100:case 199:if(d.impliedNodeFormat===1){_??(_=_h(d,n.pos)),ts.add($c(d,_.start,_.length,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(se>=4)break;default:_??(_=_h(d,n.pos));const v=Ky(n)?f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;ts.add($c(d,_.start,_.length,v)),a=!0;break}}}else{const d=Un(n);if(!Q1(d)){const _=_h(d,n.pos),v=Ky(n)?f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,x=$c(d,_.start,_.length,v);if(c&&c.kind!==176&&!(Bc(c)&2)){const k=kr(c,f.Did_you_mean_to_mark_this_function_as_async);Ma(x,k)}ts.add(x),a=!0}}return Ky(n)&&zve(n)&&(qe(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function t_t(n){r(()=>U3e(n));const a=mo(n.expression),c=Q8(a,!0,n,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!Jt(c)&&!(a.flags&3)&&i_(!1,kr(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function n_t(n){const a=mo(n.operand);if(a===vo)return vo;switch(n.operand.kind){case 9:switch(n.operator){case 41:return fx(m_(-n.operand.text));case 40:return fx(m_(+n.operand.text))}break;case 10:if(n.operator===41)return fx(WZ({negative:!0,base10Value:$C(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return $_(a,n.operand),iB(a,12288)&&qe(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,pa(n.operator)),n.operator===40?(iB(a,2112)&&qe(n.operand,f.Operator_0_cannot_be_applied_to_type_1,pa(n.operator),Hn(_v(a))),Tt):xye(a);case 54:Vye(a,n.operand);const c=$M(a,12582912);return c===4194304?en:c===8388608?Gn:Pi;case 46:case 47:return zee(n.operand,$_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&K8(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),xye(a)}return _t}function r_t(n){const a=mo(n.operand);return a===vo?vo:(zee(n.operand,$_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&K8(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),xye(a))}function xye(n){return Cl(n,2112)?xu(n,3)||Cl(n,296)?Ql:kt:Tt}function iB(n,a){if(Cl(n,a))return!0;const c=uv(n);return!!c&&Cl(c,a)}function Cl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const c=n.types;for(const d of c)if(Cl(d,a))return!0}return!1}function xu(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&ba(n,Tt)||!!(a&2112)&&ba(n,kt)||!!(a&402653316)&&ba(n,ke)||!!(a&528)&&ba(n,Pi)||!!(a&16384)&&ba(n,ir)||!!(a&131072)&&ba(n,Vr)||!!(a&65536)&&ba(n,fe)||!!(a&32768)&&ba(n,Oe)||!!(a&4096)&&ba(n,xi)||!!(a&67108864)&&ba(n,Jr)}function oB(n,a,c){return n.flags&1048576?Jn(n.types,d=>oB(d,a,c)):xu(n,a,c)}function Bee(n){return!!(Wr(n)&16)&&!!n.symbol&&Rye(n.symbol)}function Rye(n){return(n.flags&128)!==0}function Dye(n){const a=CWe("hasInstance"),c=rE(n,a);if(c){const d=dr(c);if(d&&Xo(d,0).length!==0)return d}}function i_t(n,a,c,d,_){if(c===vo||d===vo)return vo;!Nt(c)&&oB(c,402784252)&&qe(n,f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),N.assert(b3(n.parent));const v=PN(n.parent,void 0,_);if(v===Er)return vo;const x=ps(v);return nd(x,Pi,a,f.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),Pi}function o_t(n){return Gm(n,a=>a===Nl||!!(a.flags&2097152)&&Vh(uv(a)))}function a_t(n,a,c,d){if(c===vo||d===vo)return vo;if(qi(n)){if(se<99&&Dc(n,2097152),!Zr(n).resolvedSymbol&&au(n)){const _=rye(n,d.symbol,!0);Y4e(n,d,_)}}else nd($_(c,n),Nn,n);return nd($_(d,a),Jr,a)&&o_t(d)&&qe(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Hn(d)),Pi}function s_t(n,a,c){const d=n.properties;if(X&&d.length===0)return $_(a,n);for(let _=0;_<d.length;_++)H3e(n,a,_,d,c);return a}function H3e(n,a,c,d,_=!1){const v=n.properties,x=v[c];if(x.kind===303||x.kind===304){const k=x.name,F=py(k);if(tm(F)){const be=nm(F),ge=va(a,be);ge&&(J9(ge,x,_),Zve(x,!1,!0,a,ge))}const H=Pp(a,F,32,k),re=Xi(x,H);return iA(x.kind===304?x:x.initializer,re)}else if(x.kind===305)if(c<v.length-1)qe(x,f.A_rest_element_must_be_last_in_a_destructuring_pattern);else{se<99&&Dc(x,4);const k=[];if(d)for(const H of d)jv(H)||k.push(H.name);const F=Fi(a,k,a.symbol);return vx(d,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),iA(x.expression,F)}else qe(x,f.Property_assignment_expected)}function l_t(n,a,c){const d=n.elements;se<2&&V.downlevelIteration&&Dc(n,512);const _=hy(193,a,Oe,n)||_t;let v=V.noUncheckedIndexedAccess?void 0:_;for(let x=0;x<d.length;x++){let k=_;n.elements[x].kind===230&&(k=v=v??(hy(65,a,Oe,n)||_t)),q3e(n,a,x,k,c)}return a}function q3e(n,a,c,d,_){const v=n.elements,x=v[c];if(x.kind!==232){if(x.kind!==230){const k=m_(c);if(my(a)){const F=32|(t2(x)?16:0),H=kb(a,k,F,X9(x,k))||_t,re=t2(x)?mm(H,524288):H,be=Xi(x,re);return iA(x,be,_)}return iA(x,d,_)}if(c<v.length-1)qe(x,f.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const k=x.expression;if(k.kind===226&&k.operatorToken.kind===64)qe(k.operatorToken,f.A_rest_element_cannot_have_an_initializer);else{vx(n.elements,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);const F=cp(a,Wa)?dl(a,H=>UM(H,c)):Vu(d);return iA(k,F,_)}}}}function iA(n,a,c,d){let _;if(n.kind===304){const v=n;v.objectAssignmentInitializer&&(X&&!fm(mo(v.objectAssignmentInitializer),16777216)&&(a=mm(a,524288)),p_t(v.name,v.equalsToken,v.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(Me(_,c),_=_.left,X&&(a=mm(a,524288))),_.kind===210?s_t(_,a,d):_.kind===209?l_t(_,a,c):c_t(_,a,c)}function c_t(n,a,c){const d=mo(n,c),_=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,v=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return K8(n,_,v)&&Fb(a,d,n,n),Kx(n)&&Dc(n.parent,1048576),a}function aB(n){switch(n=hs(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return aB(n.whenTrue)&&aB(n.whenFalse);case 226:return Ov(n.operatorToken.kind)?!1:aB(n.left)&&aB(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function Nye(n,a){return(a.flags&98304)!==0||jZ(n,a)}function u_t(){const n=aF(a,c,d,_,v,x);return(ge,Je)=>{const gt=n(ge,Je);return N.assertIsDefined(gt),gt};function a(ge,Je,gt){return Je?(Je.stackIndex++,Je.skip=!1,H(Je,void 0),be(Je,void 0)):Je={checkMode:gt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},lr(ge)&&DA(ge)?(Je.skip=!0,be(Je,mo(ge.right,gt)),Je):(d_t(ge),ge.operatorToken.kind===64&&(ge.left.kind===210||ge.left.kind===209)&&(Je.skip=!0,be(Je,iA(ge.left,mo(ge.right,gt),gt,ge.right.kind===110))),Je)}function c(ge,Je,gt){if(!Je.skip)return k(Je,ge)}function d(ge,Je,gt){if(!Je.skip){const Dt=re(Je);N.assertIsDefined(Dt),H(Je,Dt),be(Je,void 0);const an=ge.kind;if(ak(an)){let cn=gt.parent;for(;cn.kind===217||sk(cn);)cn=cn.parent;(an===56||FS(cn))&&Gye(gt.left,Dt,FS(cn)?cn.thenStatement:void 0),Vye(Dt,gt.left)}}}function _(ge,Je,gt){if(!Je.skip)return k(Je,ge)}function v(ge,Je){let gt;if(Je.skip)gt=re(Je);else{const Dt=F(Je);N.assertIsDefined(Dt);const an=re(Je);N.assertIsDefined(an),gt=J3e(ge.left,ge.operatorToken,ge.right,Dt,an,Je.checkMode,ge)}return Je.skip=!1,H(Je,void 0),be(Je,void 0),Je.stackIndex--,gt}function x(ge,Je,gt){return be(ge,Je),ge}function k(ge,Je){if(mr(Je))return Je;be(ge,mo(Je,ge.checkMode))}function F(ge){return ge.typeStack[ge.stackIndex]}function H(ge,Je){ge.typeStack[ge.stackIndex]=Je}function re(ge){return ge.typeStack[ge.stackIndex+1]}function be(ge,Je){ge.typeStack[ge.stackIndex+1]=Je}}function d_t(n){const{left:a,operatorToken:c,right:d}=n;c.kind===61&&(mr(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&Sn(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,pa(a.operatorToken.kind),pa(c.kind)),mr(d)&&(d.operatorToken.kind===57||d.operatorToken.kind===56)&&Sn(d,f._0_and_1_operations_cannot_be_mixed_without_parentheses,pa(d.operatorToken.kind),pa(c.kind)))}function p_t(n,a,c,d,_){const v=a.kind;if(v===64&&(n.kind===210||n.kind===209))return iA(n,mo(c,d),d,c.kind===110);let x;ak(v)?x=c2(n,d):x=mo(n,d);const k=mo(c,d);return J3e(n,a,c,x,k,d,_)}function J3e(n,a,c,d,_,v,x){const k=a.kind;switch(k){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(d===vo||_===vo)return vo;d=$_(d,n),_=$_(_,c);let ln;if(d.flags&528&&_.flags&528&&(ln=ge(a.kind))!==void 0)return qe(x||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,pa(a.kind),pa(ln)),Tt;{const tr=zee(n,d,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Kn=zee(c,_,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let nr;if(xu(d,3)&&xu(_,3)||!(Cl(d,2112)||Cl(_,2112)))nr=Tt;else if(F(d,_)){switch(k){case 50:case 73:an();break;case 43:case 68:se<3&&qe(x,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}nr=kt}else an(F),nr=_t;return tr&&Kn&&Je(nr),nr}case 40:case 65:if(d===vo||_===vo)return vo;!xu(d,402653316)&&!xu(_,402653316)&&(d=$_(d,n),_=$_(_,c));let Bn;return xu(d,296,!0)&&xu(_,296,!0)?Bn=Tt:xu(d,2112,!0)&&xu(_,2112,!0)?Bn=kt:xu(d,402653316,!0)||xu(_,402653316,!0)?Bn=ke:(Nt(d)||Nt(_))&&(Bn=Jt(d)||Jt(_)?_t:j),Bn&&!be(k)?Bn:Bn?(k===65&&Je(Bn),Bn):(an((Kn,nr)=>xu(Kn,402655727)&&xu(nr,402655727)),j);case 30:case 32:case 33:case 34:return be(k)&&(d=ove($_(d,n)),_=ove($_(_,c)),Dt((tr,Kn)=>{if(Nt(tr)||Nt(Kn))return!0;const nr=ba(tr,Ql),Ro=ba(Kn,Ql);return nr&&Ro||!nr&&!Ro&&E9(tr,Kn)})),Pi;case 35:case 36:case 37:case 38:if(!(v&&v&64)){if((LV(n)||LV(c))&&(!lr(n)||k===37||k===38)){const tr=k===35||k===37;qe(x,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,tr?"false":"true")}ar(x,k,n,c),Dt((tr,Kn)=>Nye(tr,Kn)||Nye(Kn,tr))}return Pi;case 104:return i_t(n,c,d,_,v);case 103:return a_t(n,c,d,_);case 56:case 77:{const tr=fm(d,4194304)?ei([Xut(X?d:_v(_)),_]):d;return k===77&&Je(_),tr}case 57:case 76:{const tr=fm(d,8388608)?ei([hv(x6e(d)),_],2):d;return k===76&&Je(_),tr}case 61:case 78:{const tr=fm(d,262144)?ei([hv(d),_],2):d;return k===78&&Je(_),tr}case 64:const zn=mr(n.parent)?zl(n.parent):0;return H(zn,_),gt(zn)?((!(_.flags&524288)||zn!==2&&zn!==6&&!mv(_)&&!xve(_)&&!(Wr(_)&1))&&Je(_),d):(Je(_),_);case 28:if(!V.allowUnreachableCode&&aB(n)&&!re(n.parent)){const tr=Un(n),Kn=tr.text,nr=Pa(Kn,n.pos);tr.parseDiagnostics.some(Eo=>Eo.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:EV(Eo,nr))||qe(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return N.fail()}function F(ln,Bn){return xu(ln,2112)&&xu(Bn,2112)}function H(ln,Bn){if(ln===2)for(const zn of Pb(Bn)){const tr=dr(zn);if(tr.symbol&&tr.symbol.flags&32){const Kn=zn.escapedName,nr=yl(zn.valueDeclaration,Kn,788968,void 0,Kn,!1);nr!=null&&nr.declarations&&nr.declarations.some(US)&&(cm(nr,f.Duplicate_identifier_0,Vi(Kn),zn),cm(zn,f.Duplicate_identifier_0,Vi(Kn),nr))}}}function re(ln){return ln.parent.kind===217&&hp(ln.left)&&ln.left.text==="0"&&(sa(ln.parent.parent)&&ln.parent.parent.expression===ln.parent||ln.parent.parent.kind===215)&&(ws(ln.right)||Ve(ln.right)&&ln.right.escapedText==="eval")}function be(ln){const Bn=iB(d,12288)?n:iB(_,12288)?c:void 0;return Bn?(qe(Bn,f.The_0_operator_cannot_be_applied_to_type_symbol,pa(ln)),!1):!0}function ge(ln){switch(ln){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Je(ln){Ov(k)&&r(Bn);function Bn(){let zn=d;if(WP(a.kind)&&n.kind===211&&(zn=xee(n,void 0,!0)),K8(n,f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let tr;if(De&&Fr(n)&&Cl(ln,32768)){const Kn=Ke(Ru(n.expression),n.name.escapedText);HZ(ln,Kn)&&(tr=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Fb(ln,zn,n,c,tr)}}}function gt(ln){var Bn;switch(ln){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const zn=_f(n),tr=DA(c);return!!tr&&La(tr)&&!!((Bn=zn==null?void 0:zn.exports)!=null&&Bn.size);default:return!1}}function Dt(ln){return ln(d,_)?!1:(an(ln),!0)}function an(ln){let Bn=!1;const zn=x||a;if(ln){const Eo=_y(d),Bo=_y(_);Bn=!(Eo===d&&Bo===_)&&!!(Eo&&Bo)&&ln(Eo,Bo)}let tr=d,Kn=_;!Bn&&ln&&([tr,Kn]=f_t(d,_,ln));const[nr,Ro]=ox(tr,Kn);cn(zn,Bn,nr,Ro)||G0(zn,Bn,f.Operator_0_cannot_be_applied_to_types_1_and_2,pa(a.kind),nr,Ro)}function cn(ln,Bn,zn,tr){switch(a.kind){case 37:case 35:case 38:case 36:return G0(ln,Bn,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,zn,tr);default:return}}function ar(ln,Bn,zn,tr){const Kn=Wn(hs(zn)),nr=Wn(hs(tr));if(Kn||nr){const Ro=qe(ln,f.This_condition_will_always_return_0,pa(Bn===37||Bn===35?97:112));if(Kn&&nr)return;const Eo=Bn===38||Bn===36?pa(54):"",Bo=Kn?tr:zn,_o=hs(Bo);Ma(Ro,kr(Bo,f.Did_you_mean_0,`${Eo}Number.isNaN(${Bl(_o)?fp(_o):"..."})`))}}function Wn(ln){if(Ve(ln)&&ln.escapedText==="NaN"){const Bn=tct();return!!Bn&&Bn===Bm(ln)}return!1}}function f_t(n,a,c){let d=n,_=a;const v=_v(n),x=_v(a);return c(v,x)||(d=v,_=x),[d,_]}function m_t(n){r(ge);const a=Bp(n);if(!a)return j;const c=Bc(a);if(!(c&1))return j;const d=(c&2)!==0;n.asteriskToken&&(d&&se<99&&Dc(n,26624),!d&&se<2&&V.downlevelIteration&&Dc(n,256));let _=yN(a);_&&_.flags&1048576&&(_=dc(_,Je=>Mye(Je,c,void 0)));const v=_&&wWe(_,d),x=v&&v.yieldType||j,k=v&&v.nextType||j,F=d?oA(k)||j:k,H=n.expression?mo(n.expression):Lt,re=W3e(n,H,F,d);if(_&&re&&Fb(re,x,n.expression||n,n.expression),n.asteriskToken)return Uye(d?19:17,1,H,n.expression)||j;if(_)return $1(2,_,d)||j;let be=E4e(2,a);return be||(be=j,r(()=>{if(de&&!xoe(n)){const Je=Yd(n,void 0);(!Je||Nt(Je))&&qe(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),be;function ge(){n.flags&16384||_u(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),zve(n)&&qe(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function __t(n,a){const c=c2(n.condition,a);Gye(n.condition,c,n.whenTrue);const d=mo(n.whenTrue,a),_=mo(n.whenFalse,a);return ei([d,_],2)}function K3e(n){const a=n.parent;return Gd(a)&&K3e(a)||$s(a)&&a.argumentExpression===n}function h_t(n){const a=[n.head.text],c=[];for(const _ of n.templateSpans){const v=mo(_.expression);iB(v,12288)&&qe(_.expression,f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(_.literal.text),c.push(ba(v,ko)?v:ke)}if(i2(n)||K3e(n)||Gm(Yd(n,void 0)||hn,g_t))return jT(a,c);const d=n.parent.kind!==215&&YWe(n);return d?fx(Xd(d)):ke}function g_t(n){return!!(n.flags&134217856||n.flags&58982400&&Cl(Gu(n)||hn,402653316))}function v_t(n){return n1(n)&&!GS(n.parent)?n.parent.parent:n}function MN(n,a,c,d){const _=v_t(n);B9(_,a,!1),Fpt(_,c);const v=mo(n,d|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const x=Cl(v,2944)&&Vee(v,Eee(a,n,void 0))?yd(v):v;return zpt(),j8(),x}function nc(n,a){if(a)return mo(n,a);const c=Zr(n);if(!c.resolvedType){const d=V_,_=bn;V_=ff,bn=void 0,c.resolvedType=mo(n,a),bn=_,V_=d}return c.resolvedType}function X3e(n){return n=hs(n,!0),n.kind===216||n.kind===234||XR(n)}function r2(n,a,c){const d=OL(n);if(lr(n)){const v=K3(n);if(v)return vye(d,v,a)}const _=Pye(d)||(c?MN(d,c,void 0,a||0):nc(d,a));return Ao(n)&&n.name.kind===207&&Wa(_)&&!_.target.hasRestElement&&dy(_)<n.name.elements.length?y_t(_,n.name):_}function y_t(n,a){const c=a.elements,d=G1(n).slice(),_=n.target.elementFlags.slice();for(let v=dy(n);v<c.length;v++){const x=c[v];(v<c.length-1||!(x.kind===208&&x.dotDotDotToken))&&(d.push(!Gc(x)&&t2(x)?WM(x,!1,!1):j),_.push(2),!Gc(x)&&!t2(x)&&uE(x,j))}return Gh(d,_,n.target.readonly)}function Gee(n,a){const c=eS(n)&6||w4(n)?a:q1(a);if(lr(n)){if(b6e(c))return uE(n,j),j;if($Z(c))return uE(n,ec),ec}return c}function Vee(n,a){if(a){if(a.flags&3145728){const c=a.types;return bt(c,d=>Vee(n,d))}if(a.flags&58982400){const c=Gu(a)||hn;return Cl(c,4)&&Cl(n,128)||Cl(c,8)&&Cl(n,256)||Cl(c,64)&&Cl(n,2048)||Cl(c,4096)&&Cl(n,8192)||Vee(n,c)}return!!(a.flags&406847616&&Cl(n,128)||a.flags&256&&Cl(n,256)||a.flags&2048&&Cl(n,2048)||a.flags&512&&Cl(n,512)||a.flags&8192&&Cl(n,8192))}return!1}function i2(n){const a=n.parent;return mS(a)&&Pg(a.type)||XR(a)&&Pg(nF(a))||gye(n)&&BT(Yd(n,0))||(Gd(a)||fd(a)||$m(a))&&i2(a)||(hc(a)||np(a)||gP(a))&&i2(a.parent)}function o2(n,a,c){const d=mo(n,a,c);return i2(n)||Zre(n)?yd(d):X3e(n)?d:ave(d,Eee(Yd(n,void 0),n,void 0))}function Y3e(n,a){return n.name.kind===167&&Tg(n.name),o2(n.initializer,a)}function $3e(n,a){TFe(n),n.name.kind===167&&Tg(n.name);const c=V3e(n,a);return Q3e(n,c,a)}function Q3e(n,a,c){if(c&&c&10){const d=H8(a,0,!0),_=H8(a,1,!0),v=d||_;if(v&&v.typeParameters){const x=mE(n,2);if(x){const k=H8(hv(x),d?0:1,!1);if(k&&!k.typeParameters){if(c&8)return Z3e(n,c),nn;const F=K1(n),H=F.signature&&ps(F.signature),re=H&&a3e(H);if(re&&!re.typeParameters&&!Jn(F.inferences,LN)){const be=T_t(F,v.typeParameters),ge=lge(v,be),Je=Wt(F.inferences,gt=>fve(gt.typeParameter));if(cve(ge,k,(gt,Dt)=>{gv(Je,gt,Dt,0,!0)}),bt(Je,LN)&&(uve(ge,k,(gt,Dt)=>{gv(Je,gt,Dt)}),!E_t(F.inferences,Je)))return S_t(F.inferences,Je),F.inferredTypeParameters=So(F.inferredTypeParameters,be),VT(ge)}return VT(s3e(v,k,F))}}}}return a}function Z3e(n,a){if(a&2){const c=K1(n);c.flags|=4}}function LN(n){return!!(n.candidates||n.contraCandidates)}function b_t(n){return!!(n.candidates||n.contraCandidates||WOe(n.typeParameter))}function E_t(n,a){for(let c=0;c<n.length;c++)if(LN(n[c])&&LN(a[c]))return!0;return!1}function S_t(n,a){for(let c=0;c<n.length;c++)!LN(n[c])&&LN(a[c])&&(n[c]=a[c])}function T_t(n,a){const c=[];let d,_;for(const v of a){const x=v.symbol.escapedName;if(Cye(n.inferredTypeParameters,x)||Cye(c,x)){const k=A_t(So(n.inferredTypeParameters,c),x),F=Ka(262144,k),H=gf(F);H.target=v,d=Rn(d,v),_=Rn(_,H),c.push(H)}else c.push(v)}if(_){const v=Mp(d,_);for(const x of _)x.mapper=v}return c}function Cye(n,a){return bt(n,c=>c.symbol.escapedName===a)}function A_t(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;const d=a.slice(0,c);for(let _=1;;_++){const v=d+_;if(!Cye(n,v))return v}}function eWe(n){const a=rA(n);if(a&&!a.typeParameters)return ps(a)}function I_t(n){const a=mo(n.expression),c=O8(a,n.expression),d=eWe(a);return d&&tee(d,n,c!==a)}function Ru(n){const a=Pye(n);if(a)return a;if(n.flags&268435456&&bn){const _=bn[as(n)];if(_)return _}const c=Ze,d=mo(n,64);if(Ze!==c){const _=bn||(bn=[]);_[as(n)]=d,Ioe(n,n.flags|268435456)}return d}function Pye(n){let a=hs(n,!0);if(XR(a)){const c=nF(a);if(!Pg(c))return Ti(c)}if(a=hs(n),Ky(a)){const c=Pye(a.expression);return c?oA(c):void 0}if(sa(a)&&a.expression.kind!==108&&!Td(a,!0)&&!b3e(a))return uS(a)?I_t(a):eWe(NN(a.expression));if(mS(a)&&!Pg(a.type))return Ti(a.type);if(DE(n)||fC(n))return mo(n)}function sB(n){const a=Zr(n);if(a.contextFreeType)return a.contextFreeType;B9(n,j,!1);const c=a.contextFreeType=mo(n,4);return j8(),c}function mo(n,a,c){var d,_;(d=sr)==null||d.push(sr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const v=C;C=n,A=0;const x=D_t(n,a,c),k=Q3e(n,x,a);return Bee(k)&&x_t(n,k),C=v,(_=sr)==null||_.pop(),k}function x_t(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&nte(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||qe(n,f.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),rm(V)&&(N.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!h0(n)&&qe(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,$e))}function R_t(n,a){if(Wp(n)){if(SU(n))return vye(n.expression,TU(n),a);if(XR(n))return A3e(n,a)}return mo(n.expression,a)}function D_t(n,a,c){const d=n.kind;if(i)switch(d){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(d){case 80:return spt(n,a);case 81:return Ift(n);case 110:return F9(n);case 108:return Wve(n);case 106:return Be;case 15:case 11:return vve(n)?Ye:fx(Xd(n.text));case 9:return dbe(n),fx(m_(+n.text));case 10:return Cyt(n),fx(WZ({negative:!1,base10Value:$C(n.text)}));case 112:return Gn;case 97:return en;case 228:return h_t(n);case 14:return vl;case 209:return N4e(n,a,c);case 210:return rft(n,a);case 211:return xee(n,a);case 166:return H4e(n,a);case 212:return Gft(n,a);case 213:if(n.expression.kind===102)return ymt(n);case 214:return vmt(n,a);case 215:return bmt(n);case 217:return R_t(n,a);case 231:return _gt(n);case 218:case 219:return V3e(n,a);case 221:return Zmt(n);case 216:case 234:return Emt(n,a);case 235:return Amt(n);case 233:return x3e(n);case 238:return Imt(n);case 236:return xmt(n);case 220:return $mt(n);case 222:return e_t(n);case 223:return t_t(n);case 224:return n_t(n);case 225:return r_t(n);case 226:return Me(n,a);case 227:return __t(n,a);case 230:return $pt(n,a);case 232:return Lt;case 229:return m_t(n);case 237:return Qpt(n);case 294:return vft(n,a);case 284:return sft(n);case 285:return oft(n);case 288:return lft(n);case 292:return uft(n,a);case 286:N.fail("Shouldn't ever directly check a JsxOpeningElement")}return _t}function tWe(n){Ig(n),n.expression&&_u(n.expression,f.Type_expected),Ra(n.constraint),Ra(n.default);const a=WT(Ir(n));Gu(a),llt(a)||qe(n.default,f.Type_parameter_0_has_a_circular_default,Hn(a));const c=Md(a),d=GT(a);c&&d&&nd(d,Jp(lo(c,U1(a,d)),d),n.default,f.Type_0_does_not_satisfy_the_constraint_1),hx(n),r(()=>u2(n.name,f.Type_parameter_name_cannot_be_0))}function N_t(n){var a,c;if(md(n.parent)||di(n.parent)||xm(n.parent)){const d=WT(Ir(n)),_=tve(d)&24576;if(_){const v=Ir(n.parent);if(xm(n.parent)&&!(Wr(Zs(v))&52))qe(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(_===8192||_===16384){(a=sr)==null||a.push(sr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:vd(Zs(v)),id:vd(d)});const x=A9(v,d,_===16384?Z:ue),k=A9(v,d,_===16384?ue:Z),F=d;O=d,nd(x,k,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),O=F,(c=sr)==null||c.pop()}}}}function nWe(n){Ig(n),pB(n);const a=Bp(n);Qr(n,31)&&(a.kind===176&&Kf(a.body)||qe(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Ve(n.name)&&n.name.escapedText==="constructor"&&qe(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&rP(n)&&ta(n.name)&&a.body&&qe(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Ve(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&qe(n,f.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&qe(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===219&&qe(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&qe(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!ta(n.name)&&!ba(f_(dr(n.symbol)),df)&&qe(n,f.A_rest_parameter_must_be_of_an_array_type)}function C_t(n){const a=P_t(n);if(!a){qe(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=dm(a),d=Gf(c);if(!d)return;Ra(n.type);const{parameterName:_}=n;if(d.kind===0||d.kind===2)FZ(_);else if(d.parameterIndex>=0){if(Yu(c)&&d.parameterIndex===c.parameters.length-1)qe(_,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(d.type){const v=()=>Vo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);nd(d.type,dr(c.parameters[d.parameterIndex]),n.type,void 0,v)}}else if(_){let v=!1;for(const{name:x}of a.parameters)if(ta(x)&&rWe(x,_,d.parameterName)){v=!0;break}v||qe(n.parameterName,f.Cannot_find_parameter_0,d.parameterName)}}function P_t(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const a=n.parent;if(n===a.type)return a}}function rWe(n,a,c){for(const d of n.elements){if(Gc(d))continue;const _=d.name;if(_.kind===80&&_.escapedText===c)return qe(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((_.kind===207||_.kind===206)&&rWe(_,a,c))return!0}}function X8(n){n.kind===181?iyt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&lte(n);const a=Bc(n);a&4||((a&3)===3&&se<99&&Dc(n,6144),(a&3)===2&&se<4&&Dc(n,64),a&3&&se<2&&Dc(n,128)),_B(Dy(n)),pgt(n),Xe(n.parameters,nWe),n.type&&Ra(n.type),r(c);function c(){Nht(n);let d=em(n),_=d;if(lr(n)){const v=i0(n);if(v&&v.typeExpression&&Df(v.typeExpression.type)){const x=rA(Ti(v.typeExpression));x&&x.declaration&&(d=em(x.declaration),_=v.typeExpression.type)}}if(de&&!d)switch(n.kind){case 180:qe(n,f.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:qe(n,f.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(d&&_){const v=Bc(n);if((v&5)===1){const x=Ti(d);x===ir?qe(_,f.A_generator_cannot_have_a_void_type_annotation):Mye(x,v,_)}else(v&3)===2&&lht(n,d,_)}n.kind!==181&&n.kind!==324&&jb(n)}}function Mye(n,a,c){const d=$1(0,n,(a&2)!==0)||j,_=$1(1,n,(a&2)!==0)||d,v=$1(2,n,(a&2)!==0)||hn,x=O3e(d,_,v,!!(a&2));return nd(x,n,c)}function M_t(n){const a=new Map,c=new Map,d=new Map;for(const v of n.members)if(v.kind===176)for(const x of v.parameters)pp(x,v)&&!ta(x.name)&&_(a,x.name,x.name.escapedText,3);else{const x=aa(v),k=v.name;if(!k)continue;const F=qi(k),H=F&&x?16:0,re=F?d:x?c:a,be=k&&pbe(k);if(be)switch(v.kind){case 177:_(re,k,be,1|H);break;case 178:_(re,k,be,2|H);break;case 172:_(re,k,be,3|H);break;case 174:_(re,k,be,8|H);break}}function _(v,x,k,F){const H=v.get(k);if(H)if((H&16)!==(F&16))qe(x,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,fc(x));else{const re=!!(H&8),be=!!(F&8);re||be?re!==be&&qe(x,f.Duplicate_identifier_0,fc(x)):H&F&-17?qe(x,f.Duplicate_identifier_0,fc(x)):v.set(k,H|F)}else v.set(k,F)}}function L_t(n){for(const a of n.members){const c=a.name;if(aa(a)&&c){const _=pbe(c);switch(_){case"name":case"length":case"caller":case"arguments":if(he)break;case"prototype":const v=f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=$0(Ir(n));qe(c,v,_,x);break}}}}function iWe(n){const a=new Map;for(const c of n.members)if(c.kind===171){let d;const _=c.name;switch(_.kind){case 11:case 9:d=_.text;break;case 80:d=Sr(_);break;default:continue}a.get(d)?(qe(Lo(c.symbol.valueDeclaration),f.Duplicate_identifier_0,d),qe(c.name,f.Duplicate_identifier_0,d)):a.set(d,!0)}}function Lye(n){if(n.kind===264){const c=Ir(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}const a=cge(Ir(n));if(a!=null&&a.declarations){const c=new Map;for(const d of a.declarations)d.parameters.length===1&&d.parameters[0].type&&ZT(Ti(d.parameters[0].type),_=>{const v=c.get(vd(_));v?v.declarations.push(d):c.set(vd(_),{type:_,declarations:[d]})});c.forEach(d=>{if(d.declarations.length>1)for(const _ of d.declarations)qe(_,f.Duplicate_index_signature_for_type_0,Hn(d.type))})}}function oWe(n){!Ig(n)&&!xyt(n)&&cte(n.name),pB(n),kye(n),Qr(n,64)&&n.kind===172&&n.initializer&&qe(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,xs(n.name))}function k_t(n){return qi(n.name)&&qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),oWe(n)}function w_t(n){TFe(n)||cte(n.name),Hl(n)&&n.asteriskToken&&Ve(n.name)&&Sr(n.name)==="constructor"&&qe(n.name,f.Class_constructor_may_not_be_a_generator),vWe(n),Qr(n,64)&&n.kind===174&&n.body&&qe(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,xs(n.name)),qi(n.name)&&!au(n)&&qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),kye(n)}function kye(n){if(qi(n.name)&&se<99){for(let a=mh(n);a;a=mh(a))Zr(a).flags|=1048576;if(Qc(n.parent)){const a=Lve(n.parent);a&&(Zr(n.name).flags|=32768,Zr(a).flags|=4096)}}}function O_t(n){Ig(n),Uo(n,Ra)}function W_t(n){X8(n),Ayt(n)||Iyt(n),Ra(n.body);const a=Ir(n),c=pl(a,n.kind);if(n===c&&Hee(a),Fl(n.body))return;r(_);return;function d(v){return sd(v)?!0:v.kind===172&&!aa(v)&&!!v.initializer}function _(){const v=n.parent;if(FE(v)){kve(n.parent,v);const x=wve(v),k=f4e(n.body);if(k){if(x&&qe(k,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ye&&(bt(n.parent.members,d)||bt(n.parameters,H=>Qr(H,31))))if(!F_t(k,n.body))qe(k,f.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let H;for(const re of n.body.statements){if(Zc(re)&&yS($l(re.expression))){H=re;break}if(aWe(re))break}H===void 0&&qe(n,f.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else x||qe(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function F_t(n,a){const c=kv(n.parent);return Zc(c)&&c.parent===a}function aWe(n){return n.kind===108||n.kind===110?!0:aie(n)?!1:!!Uo(n,aWe)}function sWe(n){Ve(n.name)&&Sr(n.name)==="constructor"&&di(n.parent)&&qe(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),Ra(n.body),kye(n);function a(){if(!lte(n)&&!fyt(n)&&cte(n.name),cB(n),X8(n),n.kind===177&&!(n.flags&33554432)&&Kf(n.body)&&n.flags&512&&(n.flags&1024||qe(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===167&&Tg(n.name),gN(n)){const d=Ir(n),_=pl(d,177),v=pl(d,178);if(_&&v&&!(ON(_)&1)){Zr(_).flags|=1;const x=ud(_),k=ud(v);(x&64)!==(k&64)&&(qe(_.name,f.Accessors_must_both_be_abstract_or_non_abstract),qe(v.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(x&4&&!(k&6)||x&2&&!(k&2))&&(qe(_.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),qe(v.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=tE(Ir(n));n.kind===177&&Iye(n,c)}}function z_t(n){cB(n)}function B_t(n,a,c){return n.typeArguments&&c<n.typeArguments.length?Ti(n.typeArguments[c]):jee(n,a)[c]}function jee(n,a){return Mb(Wt(n.typeArguments,Ti),a,zh(a),lr(n))}function lWe(n,a){let c,d,_=!0;for(let v=0;v<a.length;v++){const x=Md(a[v]);x&&(c||(c=jee(n,a),d=Mp(a,c)),_=_&&nd(c[v],lo(x,d),n.typeArguments[v],f.Type_0_does_not_satisfy_the_constraint_1))}return _}function G_t(n,a){if(!Jt(n))return a.flags&524288&&Ki(a).typeParameters||(Wr(n)&4?n.target.localTypeParameters:void 0)}function wye(n){const a=Ti(n);if(!Jt(a)){const c=Zr(n).resolvedSymbol;if(c)return G_t(a,c)}}function Oye(n){if(vB(n,n.typeArguments),n.kind===183&&!lr(n)&&!kL(n)&&n.typeArguments&&n.typeName.end!==n.typeArguments.pos){const a=Un(n);Xre(a,n.typeName.end)===25&&Z1(n,Pa(a.text,n.typeName.end),1,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}Xe(n.typeArguments,Ra),cWe(n)}function cWe(n){const a=Ti(n);if(!Jt(a)){n.typeArguments&&r(()=>{const d=wye(n);d&&lWe(n,d)});const c=Zr(n).resolvedSymbol;c&&bt(c.declarations,d=>kR(d)&&!!(d.flags&536870912))&&iy(Q9(n),c.declarations,c.escapedName)}}function V_t(n){const a=ri(n.parent,T4);if(!a)return;const c=wye(a);if(!c)return;const d=Md(c[a.typeArguments.indexOf(n)]);return d&&lo(d,Mp(c,jee(a,c)))}function j_t(n){a8e(n)}function U_t(n){Xe(n.members,Ra),r(a);function a(){const c=J8e(n);Qee(c,c.symbol),Lye(n),iWe(n)}}function H_t(n){Ra(n.elementType)}function q_t(n){let a=!1,c=!1;for(const d of n.elements){let _=Age(d);if(_&8){const v=Ti(d.type);if(!my(v)){qe(d,f.A_rest_element_type_must_be_an_array_type);break}(Uf(v)||Wa(v)&&v.target.combinedFlags&4)&&(_|=4)}if(_&4){if(c){Sn(d,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(_&2){if(c){Sn(d,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(_&1&&a){Sn(d,f.A_required_element_cannot_follow_an_optional_element);break}}Xe(n.elements,Ra),Ti(n)}function J_t(n){Xe(n.types,Ra),Ti(n)}function uWe(n,a){if(!(n.flags&8388608))return n;const c=n.objectType,d=n.indexType,_=Kd(c)&&EZ(c)===2?P8e(c,0):X_(c,0),v=!!Sg(c,Tt);if(cp(d,x=>ba(x,_)||v&&lx(x,Tt)))return a.kind===212&&eg(a)&&Wr(c)&32&&Fh(c)&1&&qe(a,f.Index_signature_in_type_0_only_permits_reading,Hn(c)),n;if(HT(c)){const x=LZ(d,a);if(x){const k=ZT(Ld(c),F=>va(F,x));if(k&&xf(k)&6)return qe(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Vi(x)),_t}}return qe(a,f.Type_0_cannot_be_used_to_index_type_1,Hn(d),Hn(c)),_t}function K_t(n){Ra(n.objectType),Ra(n.indexType),uWe(G8e(n),n)}function X_t(n){Y_t(n),Ra(n.typeParameter),Ra(n.nameType),Ra(n.type),n.type||uE(n,j);const a=Oge(n),c=cy(a);if(c)nd(c,Fs,n.nameType);else{const d=yf(a);nd(d,Fs,Jx(n.typeParameter))}}function Y_t(n){var a;if((a=n.members)!=null&&a.length)return Sn(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function $_t(n){FZ(n)}function Q_t(n){_yt(n),Ra(n.type)}function Z_t(n){Uo(n,Ra)}function eht(n){Vn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||Sn(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Ra(n.typeParameter);const a=Ir(n.typeParameter);if(a.declarations&&a.declarations.length>1){const c=Ki(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;const d=WT(a),_=Dre(a,168);if(!zWe(_,[d],v=>[v])){const v=Si(a);for(const x of _)qe(x.name,f.All_declarations_of_0_must_have_identical_constraints,v)}}}jb(n)}function tht(n){for(const a of n.templateSpans){Ra(a.type);const c=Ti(a.type);nd(c,ko,a.type)}Ti(n)}function nht(n){Ra(n.argument),n.attributes&&uD(n.attributes,Sn),cWe(n)}function rht(n){n.dotDotDotToken&&n.questionToken&&Sn(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&Sn(n.type,f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&Sn(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Ra(n.type),Ti(n)}function lB(n){return(_p(n,2)||sd(n))&&!!(n.flags&33554432)}function Uee(n,a){let c=ute(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){const d=lj(n);d&&d.flags&128&&!(c&128)&&!(L_(n.parent)&&Xl(n.parent.parent)&&A_(n.parent.parent))&&(c|=32),c|=128}return c&a}function Hee(n){r(()=>iht(n))}function iht(n){function a(ln,Bn){return Bn!==void 0&&Bn.parent===ln[0].parent?Bn:ln[0]}function c(ln,Bn,zn,tr,Kn){if((tr^Kn)!==0){const Ro=Uee(a(ln,Bn),zn);Xe(ln,Eo=>{const Bo=Uee(Eo,zn)^Ro;Bo&32?qe(Lo(Eo),f.Overload_signatures_must_all_be_exported_or_non_exported):Bo&128?qe(Lo(Eo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):Bo&6?qe(Lo(Eo)||Eo,f.Overload_signatures_must_all_be_public_private_or_protected):Bo&64&&qe(Lo(Eo),f.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function d(ln,Bn,zn,tr){if(zn!==tr){const Kn=CA(a(ln,Bn));Xe(ln,nr=>{CA(nr)!==Kn&&qe(Lo(nr),f.Overload_signatures_must_all_be_optional_or_required)})}}const _=230;let v=0,x=_,k=!1,F=!0,H=!1,re,be,ge;const Je=n.declarations,gt=(n.flags&16384)!==0;function Dt(ln){if(ln.name&&Fl(ln.name))return;let Bn=!1;const zn=Uo(ln.parent,Kn=>{if(Bn)return Kn;Bn=Kn===ln});if(zn&&zn.pos===ln.end&&zn.kind===ln.kind){const Kn=zn.name||zn,nr=zn.name;if(ln.name&&nr&&(qi(ln.name)&&qi(nr)&&ln.name.escapedText===nr.escapedText||Za(ln.name)&&Za(nr)&&fv(Tg(ln.name),Tg(nr))||x_(ln.name)&&x_(nr)&&CC(ln.name)===CC(nr))){if((ln.kind===174||ln.kind===173)&&aa(ln)!==aa(zn)){const Eo=aa(ln)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;qe(Kn,Eo)}return}if(Kf(zn.body)){qe(Kn,f.Function_implementation_name_must_be_0,xs(ln.name));return}}const tr=ln.name||ln;gt?qe(tr,f.Constructor_implementation_is_missing):Qr(ln,64)?qe(tr,f.All_declarations_of_an_abstract_method_must_be_consecutive):qe(tr,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let an=!1,cn=!1,ar=!1;const Wn=[];if(Je)for(const ln of Je){const Bn=ln,zn=Bn.flags&33554432,tr=Bn.parent&&(Bn.parent.kind===264||Bn.parent.kind===187)||zn;if(tr&&(ge=void 0),(Bn.kind===263||Bn.kind===231)&&!zn&&(ar=!0),Bn.kind===262||Bn.kind===174||Bn.kind===173||Bn.kind===176){Wn.push(Bn);const Kn=Uee(Bn,_);v|=Kn,x&=Kn,k=k||CA(Bn),F=F&&CA(Bn);const nr=Kf(Bn.body);nr&&re?gt?cn=!0:an=!0:(ge==null?void 0:ge.parent)===Bn.parent&&ge.end!==Bn.pos&&Dt(ge),nr?re||(re=Bn):H=!0,ge=Bn,tr||(be=Bn)}lr(ln)&&ea(ln)&&ln.jsDoc&&(H=Ne(Ij(ln))>0)}if(cn&&Xe(Wn,ln=>{qe(ln,f.Multiple_constructor_implementations_are_not_allowed)}),an&&Xe(Wn,ln=>{qe(Lo(ln)||ln,f.Duplicate_function_implementation)}),ar&&!gt&&n.flags&16&&Je){const ln=mn(Je,Bn=>Bn.kind===263).map(Bn=>kr(Bn,f.Consider_adding_a_declare_modifier_to_this_class));Xe(Je,Bn=>{const zn=Bn.kind===263?f.Class_declaration_cannot_implement_overload_list_for_0:Bn.kind===262?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;zn&&Ma(qe(Lo(Bn)||Bn,zn,El(n)),...ln)})}if(be&&!be.body&&!Qr(be,64)&&!be.questionToken&&Dt(be),H&&(Je&&(c(Je,re,_,v,x),d(Je,re,k,F)),re)){const ln=z1(n),Bn=dm(re);for(const zn of ln)if(!Aut(Bn,zn)){const tr=zn.declaration&&E0(zn.declaration)?zn.declaration.parent.tagName:zn.declaration;Ma(qe(tr,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),kr(re,f.The_implementation_signature_is_declared_here));break}}}function Y8(n){r(()=>oht(n))}function oht(n){let a=n.localSymbol;if(!a&&(a=Ir(n),!a.exportSymbol)||pl(a,n.kind)!==n)return;let c=0,d=0,_=0;for(const H of a.declarations){const re=F(H),be=Uee(H,2080);be&32?be&2048?_|=re:c|=re:d|=re}const v=c|d,x=c&d,k=_&v;if(x||k)for(const H of a.declarations){const re=F(H),be=Lo(H);re&k?qe(be,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,xs(be)):re&x&&qe(be,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,xs(be))}function F(H){let re=H;switch(re.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return ku(re)||jg(re)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const be=re,ge=kl(be)?be.expression:be.right;if(!Bl(ge))return 1;re=ge;case 271:case 274:case 273:let Je=0;const gt=Oc(Ir(re));return Xe(gt.declarations,Dt=>{Je|=F(Dt)}),Je;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return N.failBadSyntaxKind(re)}}}function a2(n,a,c,...d){const _=$8(n,a);return _&&oA(_,a,c,...d)}function $8(n,a,c){if(Nt(n))return;const d=n;if(d.promisedTypeOfPromise)return d.promisedTypeOfPromise;if(Nb(n,p9(!1)))return d.promisedTypeOfPromise=Js(n)[0];if(oB(uv(n),402915324))return;const _=Ke(n,"then");if(Nt(_))return;const v=_?Xo(_,0):et;if(v.length===0){a&&qe(a,f.A_promise_must_have_a_then_method);return}let x,k;for(const re of v){const be=oE(re);be&&be!==ir&&!Y_(n,be,Nh)?x=be:k=Rn(k,re)}if(!k){N.assertIsDefined(x),c&&(c.value=x),a&&qe(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Hn(n),Hn(x));return}const F=mm(ei(Wt(k,Eye)),2097152);if(Nt(F))return;const H=Xo(F,0);if(H.length===0){a&&qe(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return d.promisedTypeOfPromise=ei(Wt(H,Eye),2)}function Q8(n,a,c,d,..._){return(a?oA(n,c,d,..._):_y(n,c,d,..._))||_t}function dWe(n){if(oB(uv(n),402915324))return!1;const a=Ke(n,"then");return!!a&&Xo(mm(a,2097152),0).length>0}function qee(n){var a;if(n.flags&16777216){const c=Tge(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function s2(n){return n.flags&1048576?dl(n,s2):qee(n)?n.aliasTypeArguments[0]:n}function pWe(n){if(Nt(n)||qee(n))return!1;if(HT(n)){const a=Gu(n);if(a?a.flags&3||mv(a)||Gm(a,dWe):Cl(n,8650752))return!0}return!1}function aht(n){const a=Tge(!0);if(a)return EN(a,[s2(n)])}function sht(n){if(pWe(n)){const a=aht(n);if(a)return a}return N.assert(qee(n)||$8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function oA(n,a,c,...d){const _=_y(n,a,c,...d);return _&&sht(_)}function _y(n,a,c,...d){if(Nt(n)||qee(n))return n;const _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(F0.lastIndexOf(n.id)>=0){a&&qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const k=a?H=>_y(H,a,c,...d):_y;F0.push(n.id);const F=dl(n,k);return F0.pop(),_.awaitedTypeOfType=F}if(pWe(n))return _.awaitedTypeOfType=n;const v={value:void 0},x=$8(n,void 0,v);if(x){if(n.id===x.id||F0.lastIndexOf(x.id)>=0){a&&qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}F0.push(n.id);const k=_y(x,a,c,...d);return F0.pop(),k?_.awaitedTypeOfType=k:void 0}if(dWe(n)){if(a){N.assertIsDefined(c);let k;v.value&&(k=Vo(k,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Hn(n),Hn(v.value))),k=Vo(k,c,...d),ts.add(Lg(Un(a),a,k))}return}return _.awaitedTypeOfType=n}function lht(n,a,c){const d=Ti(a);if(se>=2){if(Jt(d))return;const v=p9(!0);if(v!==wo&&!Nb(d,v)){_(f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,c,Hn(_y(d)||ir));return}}else{if(uht(a),Jt(d))return;const v=ML(a);if(v===void 0){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Hn(d));return}const x=Hs(v,111551,!0),k=x?dr(x):_t;if(Jt(k)){v.kind===80&&v.escapedText==="Promise"&&ly(d)===p9(!1)?qe(c,f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,fp(v));return}const F=klt(!0);if(F===Ca){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,fp(v));return}const H=f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!nd(k,F,c,H,()=>a===c?void 0:Vo(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const be=v&&Gp(v),ge=Jd(n.locals,be.escapedText,111551);if(ge){qe(ge.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Sr(be),fp(v));return}}Q8(d,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function _(v,x,k,F){if(x===k)qe(k,v,F);else{const H=qe(k,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Ma(H,kr(x,v,F))}}}function cht(n){const a=PN(n);Wee(a,n);const c=ps(a);if(c.flags&1)return;const d=Aye(n);if(!(d!=null&&d.resolvedReturnType))return;let _;const v=d.resolvedReturnType;switch(n.parent.kind){case 263:case 231:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ne){_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:_=f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return N.failBadSyntaxKind(n.parent)}nd(c,v,n.expression,_)}function Z8(n,a,c,d,_,v=c.length,x=0){const k=w.createFunctionTypeNode(void 0,et,w.createKeywordTypeNode(133));return Eg(k,n,a,c,d,_,v,x)}function Wye(n,a,c,d,_,v,x){const k=Z8(n,a,c,d,_,v,x);return VT(k)}function fWe(n){return Wye(void 0,void 0,et,n)}function mWe(n){const a=o_("value",n);return Wye(void 0,void 0,[a],ir)}function uht(n){_We(n&&ML(n),!1)}function _We(n,a){if(!n)return;const c=Gp(n),d=(n.kind===80?788968:1920)|2097152,_=yl(c,c.escapedText,d,void 0,void 0,!0);if(_&&_.flags&2097152){if(It&&Fm(_)&&!r6(Oc(_))&&!Of(_))gb(_);else if(a&&rm(V)&&wu(V)>=5&&!Fm(_)&&!bt(_.declarations,s0)){const v=qe(n,f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),x=In(_.declarations||et,fb);x&&Ma(v,kr(x,f._0_was_imported_here,Sr(c)))}}}function kN(n){const a=Fye(n);a&&Qd(a)&&_We(a,!0)}function Fye(n){if(n)switch(n.kind){case 193:case 192:return hWe(n.types);case 194:return hWe([n.trueType,n.falseType]);case 196:case 202:return Fye(n.type);case 183:return n.typeName}}function hWe(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!X&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;const d=Fye(c);if(!d)return;if(a){if(!Ve(a)||!Ve(d)||a.escapedText!==d.escapedText)return}else a=d}return a}function Jee(n){const a=yu(n);return Xh(n)?pj(a):a}function cB(n){if(!qS(n)||!Tf(n)||!n.modifiers||!J4(ne,n,n.parent,n.parent.parent))return;const a=In(n.modifiers,Eu);if(a){if(ne?(Dc(a,8),n.kind===169&&Dc(a,32)):se<99&&(Dc(a,8),Ac(n)?n.name?BWe(n)&&Dc(a,8388608):Dc(a,8388608):Qc(n)||(qi(n.name)&&(Hl(n)||Cy(n)||Wd(n))&&Dc(a,8388608),Za(n.name)&&Dc(a,16777216))),V.emitDecoratorMetadata)switch(Dc(a,16),n.kind){case 263:const c=ng(n);if(c)for(const x of c.parameters)kN(Jee(x));break;case 177:case 178:const d=n.kind===177?178:177,_=pl(Ir(n),d);kN(zm(n)||_&&zm(_));break;case 174:for(const x of n.parameters)kN(Jee(x));kN(em(n));break;case 172:kN(yu(n));break;case 169:kN(Jee(n));const v=n.parent;for(const x of v.parameters)kN(Jee(x));kN(em(v));break}for(const c of n.modifiers)Eu(c)&&cht(c)}}function dht(n){r(a);function a(){vWe(n),sbe(n),l2(n,n.name)}}function pht(n){n.typeExpression||qe(n.name,f.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&u2(n.name,f.Type_alias_name_cannot_be_0),Ra(n.typeExpression),_B(Dy(n))}function fht(n){Ra(n.constraint);for(const a of n.typeParameters)Ra(a)}function mht(n){Ra(n.typeExpression)}function _ht(n){Ra(n.typeExpression);const a=p0(n);if(a){const c=c4(a,ZW);if(Ne(c)>1)for(let d=1;d<Ne(c);d++){const _=c[d].tagName;qe(_,f._0_tag_already_specified,Sr(_))}}}function hht(n){n.name&&gB(n.name,!0)}function ght(n){Ra(n.typeExpression)}function vht(n){Ra(n.typeExpression)}function yht(n){r(a),X8(n);function a(){!n.type&&!_R(n)&&uE(n,j)}}function bht(n){const a=p0(n);a&&Gs(a)&&qe(n.tagName,f.An_arrow_function_cannot_have_a_this_parameter)}function Eht(n){const a=p0(n);(!a||!Ac(a)&&!Qc(a))&&qe(a,f.JSDoc_0_is_not_attached_to_a_class,Sr(n.tagName))}function Sht(n){const a=p0(n);if(!a||!Ac(a)&&!Qc(a)){qe(a,f.JSDoc_0_is_not_attached_to_a_class,Sr(n.tagName));return}const c=a0(a).filter(uI);N.assert(c.length>0),c.length>1&&qe(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const d=gWe(n.class.expression),_=FE(a);if(_){const v=gWe(_.expression);v&&d.escapedText!==v.escapedText&&qe(d,f.JSDoc_0_1_does_not_match_the_extends_2_clause,Sr(n.tagName),Sr(d),Sr(v))}}function Tht(n){const a=AS(n);a&&sd(a)&&qe(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function gWe(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function vWe(n){var a;cB(n),X8(n);const c=Bc(n);if(n.name&&n.name.kind===167&&Tg(n.name),gN(n)){const v=Ir(n),x=n.localSymbol||v,k=(a=x.declarations)==null?void 0:a.find(F=>F.kind===n.kind&&!(F.flags&524288));n===k&&Hee(x),v.parent&&Hee(v)}const d=n.kind===173?void 0:n.body;if(Ra(d),Iye(n,yN(n)),r(_),lr(n)){const v=i0(n);v&&v.typeExpression&&!jve(Ti(v.typeExpression),n)&&qe(v.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){em(n)||(Fl(d)&&!lB(n)&&uE(n,j),c&1&&Kf(d)&&ps(dm(n)))}}function jb(n){r(a);function a(){const c=Un(n);let d=pf.get(c.path);d||(d=[],pf.set(c.path,d)),d.push(n)}}function yWe(n,a){for(const c of n)switch(c.kind){case 263:case 231:Aht(c,a),zye(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:SWe(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&SWe(c,a),zye(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:zye(c,a);break;case 195:Iht(c,a);break;default:N.assertNever(c,"Node should not have been registered for unused identifiers check")}}function bWe(n,a,c){const d=Lo(n)||n,_=kR(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,kr(d,_,a))}function e6(n){return Ve(n)&&Sr(n).charCodeAt(0)===95}function Aht(n,a){for(const c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;const d=Ir(c);!d.isReferenced&&(_p(c,2)||ad(c)&&qi(c.name))&&!(c.flags&33554432)&&a(c,0,kr(c.name,f._0_is_declared_but_its_value_is_never_read,Si(d)));break;case 176:for(const _ of c.parameters)!_.symbol.isReferenced&&Qr(_,2)&&a(_,0,kr(_.name,f.Property_0_is_declared_but_its_value_is_never_read,El(_.symbol)));break;case 181:case 240:case 175:break;default:N.fail("Unexpected class member")}}function Iht(n,a){const{typeParameter:c}=n;Bye(c)&&a(n,1,kr(n,f._0_is_declared_but_its_value_is_never_read,Sr(c.name)))}function zye(n,a){const c=Ir(n).declarations;if(!c||Xa(c)!==n)return;const d=Dy(n),_=new Set;for(const v of d){if(!Bye(v))continue;const x=Sr(v.name),{parent:k}=v;if(k.kind!==195&&k.typeParameters.every(Bye)){if(Xb(_,k)){const F=Un(k),H=om(k)?gU(k):vU(F,k.typeParameters),be=k.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,x]:[f.All_type_parameters_are_unused];a(v,1,$c(F,H.pos,H.end-H.pos,...be))}}else a(v,1,kr(v,f._0_is_declared_but_its_value_is_never_read,x))}}function Bye(n){return!(rs(n.symbol).isReferenced&262144)&&!e6(n.name)}function uB(n,a,c,d){const _=String(d(a)),v=n.get(_);v?v[1].push(c):n.set(_,[a,[c]])}function EWe(n){return ri(R_(n),Ao)}function xht(n){return $a(n)?im(n.parent)?!!(n.propertyName&&e6(n.name)):e6(n.name):ku(n)||(Oi(n)&&Yx(n.parent.parent)||TWe(n))&&e6(n.name)}function SWe(n,a){const c=new Map,d=new Map,_=new Map;n.locals.forEach(v=>{if(!(v.flags&262144?!(v.flags&3&&!(v.isReferenced&3)):v.isReferenced||v.exportSymbol)&&v.declarations){for(const x of v.declarations)if(!xht(x))if(TWe(x))uB(c,Dht(x),x,as);else if($a(x)&&im(x.parent)){const k=Xa(x.parent.elements);(x===k||!Xa(x.parent.elements).dotDotDotToken)&&uB(d,x.parent,x,as)}else if(Oi(x)){const k=eS(x)&7,F=Lo(x);(k!==4&&k!==6||!F||!e6(F))&&uB(_,x.parent,x,as)}else{const k=v.valueDeclaration&&EWe(v.valueDeclaration),F=v.valueDeclaration&&Lo(v.valueDeclaration);k&&F?!pp(k,k.parent)&&!GE(k)&&!e6(F)&&($a(x)&&YE(x.parent)?uB(d,x.parent,x,as):a(k,1,kr(F,f._0_is_declared_but_its_value_is_never_read,El(v)))):bWe(x,El(v),a)}}}),c.forEach(([v,x])=>{const k=v.parent;if((v.name?1:0)+(v.namedBindings?v.namedBindings.kind===274?1:v.namedBindings.elements.length:0)===x.length)a(k,0,x.length===1?kr(k,f._0_is_declared_but_its_value_is_never_read,Sr(Ua(x).name)):kr(k,f.All_imports_in_import_declaration_are_unused));else for(const H of x)bWe(H,Sr(H.name),a)}),d.forEach(([v,x])=>{const k=EWe(v.parent)?1:0;if(v.elements.length===x.length)x.length===1&&v.parent.kind===260&&v.parent.parent.kind===261?uB(_,v.parent.parent,v.parent,as):a(v,k,x.length===1?kr(v,f._0_is_declared_but_its_value_is_never_read,dB(Ua(x).name)):kr(v,f.All_destructured_elements_are_unused));else for(const F of x)a(F,k,kr(F,f._0_is_declared_but_its_value_is_never_read,dB(F.name)))}),_.forEach(([v,x])=>{if(v.declarations.length===x.length)a(v,0,x.length===1?kr(Ua(x).name,f._0_is_declared_but_its_value_is_never_read,dB(Ua(x).name)):kr(v.parent.kind===243?v.parent:v,f.All_variables_are_unused));else for(const k of x)a(k,0,kr(k,f._0_is_declared_but_its_value_is_never_read,dB(k.name)))})}function Rht(){var n;for(const a of pg)if(!((n=Ir(a))!=null&&n.isReferenced)){const c=Hx(a);N.assert(zE(c),"Only parameter declaration should be checked here");const d=kr(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,xs(a.name),xs(a.propertyName));c.type||Ma(d,$c(Un(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,xs(a.propertyName))),ts.add(d)}}function dB(n){switch(n.kind){case 80:return Sr(n);case 207:case 206:return dB(oa(Ua(n.elements),$a).name);default:return N.assertNever(n)}}function TWe(n){return n.kind===273||n.kind===276||n.kind===274}function Dht(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Kee(n){if(n.kind===241&&vv(n),OV(n)){const a=ze;Xe(n.statements,Ra),ze=a}else Xe(n.statements,Ra);n.locals&&jb(n)}function Nht(n){se>=2||!UV(n)||n.flags&33554432||Fl(n.body)||Xe(n.parameters,a=>{a.name&&!ta(a.name)&&a.name.escapedText===Bt.escapedName&&r_("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function t6(n,a,c){if((a==null?void 0:a.escapedText)!==c||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(bh(n)||eu(n)||tp(n))&&s0(n))return!1;const d=R_(n);return!(Ao(d)&&Fl(d.parent.body))}function Cht(n){Vn(n,a=>ON(a)&4?(n.kind!==80?qe(Lo(n),f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):qe(n,f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Pht(n){Vn(n,a=>ON(a)&8?(n.kind!==80?qe(Lo(n),f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):qe(n,f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Mht(n,a){if(G>=5&&!(G>=100&&Un(n).impliedNodeFormat===1)||!a||!t6(n,a,"require")&&!t6(n,a,"exports")||Xl(n)&&jg(n)!==1)return;const c=$(n);c.kind===312&&Fp(c)&&r_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,xs(a),xs(a))}function Lht(n,a){if(!a||se>=4||!t6(n,a,"Promise")||Xl(n)&&jg(n)!==1)return;const c=$(n);c.kind===312&&Fp(c)&&c.flags&4096&&r_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,xs(a),xs(a))}function kht(n,a){se<=8&&(t6(n,a,"WeakMap")||t6(n,a,"WeakSet"))&&sb.push(n)}function wht(n){const a=mh(n);ON(a)&1048576&&(N.assert(ad(n)&&Ve(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),r_("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function Oht(n,a){a&&se>=2&&se<=8&&t6(n,a,"Reflect")&&lb.push(n)}function Wht(n){let a=!1;if(Qc(n)){for(const c of n.members)if(ON(c)&2097152){a=!0;break}}else if(Os(n))ON(n)&2097152&&(a=!0);else{const c=mh(n);c&&ON(c)&2097152&&(a=!0)}a&&(N.assert(ad(n)&&Ve(n.name),"The target of a Reflect collision check should be an identifier"),r_("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,xs(n.name),"Reflect"))}function l2(n,a){a&&(Mht(n,a),Lht(n,a),kht(n,a),Oht(n,a),di(n)?(u2(a,f.Class_name_cannot_be_0),n.flags&33554432||dgt(a)):y0(n)&&u2(a,f.Enum_name_cannot_be_0))}function Fht(n){if(eS(n)&7||zE(n))return;const a=Ir(n);if(a.flags&1){if(!Ve(n.name))return N.fail();const c=yl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&$ve(c)&7){const d=f0(c.valueDeclaration,261),_=d.parent.kind===243&&d.parent.parent?d.parent.parent:void 0;if(!(_&&(_.kind===241&&ea(_.parent)||_.kind===268||_.kind===267||_.kind===312))){const x=Si(c);qe(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function n6(n){return n===it?j:n===Hc?ec:n}function pB(n){var a;if(cB(n),$a(n)||Ra(n.type),!n.name)return;if(n.name.kind===167&&(Tg(n.name),_S(n)&&n.initializer&&nc(n.initializer)),$a(n)){if(n.propertyName&&Ve(n.name)&&zE(n)&&Fl(Bp(n).body)){pg.push(n);return}im(n.parent)&&n.dotDotDotToken&&se<5&&Dc(n,4),n.propertyName&&n.propertyName.kind===167&&Tg(n.propertyName);const _=n.parent.parent,v=n.dotDotDotToken?32:0,x=zr(_,v),k=n.propertyName||n.name;if(x&&!ta(k)){const F=py(k);if(tm(F)){const H=nm(F),re=va(x,H);re&&(J9(re,void 0,!1),Zve(n,!!_.initializer&&_.initializer.kind===108,!1,x,re))}}}if(ta(n.name)&&(n.name.kind===207&&se<2&&V.downlevelIteration&&Dc(n,512),Xe(n.name.elements,Ra)),n.initializer&&zE(n)&&Fl(Bp(n).body)){qe(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(ta(n.name)){if(Tve(n))return;const _=_S(n)&&n.initializer&&n.parent.parent.kind!==249,v=!bt(n.name.elements,D6(Gc));if(_||v){const x=B(n);if(_){const k=nc(n.initializer);X&&v?U4e(k,n):Fb(k,B(n),n,n.initializer)}v&&(YE(n.name)?hy(65,x,Oe,n):X&&U4e(x,n))}return}const c=Ir(n);if(c.flags&2097152&&(wE(n)||uie(n))){Zee(n);return}const d=n6(dr(c));if(n===c.valueDeclaration){const _=_S(n)&&OL(n);if(_&&!(lr(n)&&La(_)&&(_.properties.length===0||zy(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){const x=nc(_);Fb(x,d,n,_,void 0);const k=eS(n)&7;if(k===6){const F=jlt(!0),H=m8e(!0);if(F!==Ca&&H!==Ca){const re=ei([F,H,fe,Oe]);nd(x,re,_,f.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(k===4){const F=m8e(!0);if(F!==Ca){const H=ei([F,fe,Oe]);nd(x,H,_,f.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}c.declarations&&c.declarations.length>1&&bt(c.declarations,v=>v!==n&&aR(v)&&!IWe(v,n))&&qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,xs(n.name))}else{const _=n6(B(n));!Jt(d)&&!Jt(_)&&!fv(d,_)&&!(c.flags&67108864)&&AWe(c.valueDeclaration,d,n,_),_S(n)&&n.initializer&&Fb(nc(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!IWe(n,c.valueDeclaration)&&qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,xs(n.name))}n.kind!==172&&n.kind!==171&&(Y8(n),(n.kind===260||n.kind===208)&&Fht(n),l2(n,n.name))}function AWe(n,a,c,d){const _=Lo(c),v=c.kind===172||c.kind===171?f.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:f.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,x=xs(_),k=qe(_,v,x,Hn(a),Hn(d));n&&Ma(k,kr(n,f._0_was_also_declared_here,x))}function IWe(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(CA(n)!==CA(a))return!1;const c=1358;return wA(n,c)===wA(a,c)}function zht(n){var a,c;(a=sr)==null||a.push(sr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),byt(n),pB(n),(c=sr)==null||c.pop()}function Bht(n){return gyt(n),pB(n)}function Xee(n){const a=Cv(n)&7;(a===4||a===6)&&Dc(n,33554432),Xe(n.declarations,Ra)}function Ght(n){!Ig(n)&&!ube(n.declarationList)&&Eyt(n),Xee(n.declarationList)}function Vht(n){vv(n),mo(n.expression)}function jht(n){vv(n);const a=c2(n.expression);Gye(n.expression,a,n.thenStatement),Ra(n.thenStatement),n.thenStatement.kind===242&&qe(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ra(n.elseStatement)}function Gye(n,a,c){if(!X)return;d(n,c);function d(v,x){for(v=hs(v),_(v,x);mr(v)&&(v.operatorToken.kind===57||v.operatorToken.kind===61);)v=hs(v.left),_(v,x)}function _(v,x){const k=sk(v)?hs(v.right):v;if(Zh(k))return;if(sk(k)){d(k,x);return}const F=k===v?a:c2(k),H=Fr(k)&&X3e(k.expression);if(!fm(F,4194304)||H)return;const re=Xo(F,0),be=!!a2(F);if(re.length===0&&!be)return;const ge=Ve(k)?k:Fr(k)?k.name:void 0,Je=ge&&Vm(ge);if(!Je&&!be)return;Je&&mr(v.parent)&&Hht(v.parent,Je)||Je&&x&&Uht(v,x,ge,Je)||(be?G0(k,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,Eb(F)):qe(k,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Uht(n,a,c,d){return!!Uo(a,function _(v){if(Ve(v)){const x=Vm(v);if(x&&x===d){if(Ve(n)||Ve(c)&&mr(c.parent))return!0;let k=c.parent,F=v.parent;for(;k&&F;){if(Ve(k)&&Ve(F)||k.kind===110&&F.kind===110)return Vm(k)===Vm(F);if(Fr(k)&&Fr(F)){if(Vm(k.name)!==Vm(F.name))return!1;F=F.expression,k=k.expression}else if(sa(k)&&sa(F))F=F.expression,k=k.expression;else return!1}}}return Uo(v,_)})}function Hht(n,a){for(;mr(n)&&n.operatorToken.kind===56;){if(Uo(n.right,function d(_){if(Ve(_)){const v=Vm(_);if(v&&v===a)return!0}return Uo(_,d)}))return!0;n=n.parent}return!1}function qht(n){vv(n),Ra(n.statement),c2(n.expression)}function Jht(n){vv(n),c2(n.expression),Ra(n.statement)}function Vye(n,a){return n.flags&16384&&qe(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function c2(n,a){return Vye(mo(n,a),n)}function Kht(n){vv(n)||n.initializer&&n.initializer.kind===261&&ube(n.initializer),n.initializer&&(n.initializer.kind===261?Xee(n.initializer):mo(n.initializer)),n.condition&&c2(n.condition),n.incrementor&&mo(n.incrementor),Ra(n.statement),n.locals&&jb(n)}function Xht(n){SFe(n);const a=V4(n);if(n.awaitModifier?a&&Rl(a)?Sn(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(Bc(a)&6)===2&&se<99&&Dc(n,16384):V.downlevelIteration&&se<2&&Dc(n,256),n.initializer.kind===261)Xee(n.initializer);else{const c=n.initializer,d=fB(n);if(c.kind===209||c.kind===210)iA(c,d||_t);else{const _=mo(c);K8(c,f.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),d&&Fb(d,_,c,n.expression)}}Ra(n.statement),n.locals&&jb(n)}function Yht(n){SFe(n);const a=eye(mo(n.expression));if(n.initializer.kind===261){const c=n.initializer.declarations[0];c&&ta(c.name)&&qe(c.name,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Xee(n.initializer)}else{const c=n.initializer,d=mo(c);c.kind===209||c.kind===210?qe(c,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ba(Cct(a),d)?K8(c,f.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):qe(c,f.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Vr||!xu(a,126091264))&&qe(n.expression,f.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Hn(a)),Ra(n.statement),n.locals&&jb(n)}function fB(n){const a=n.awaitModifier?15:13;return hy(a,NN(n.expression),Oe,n.expression)}function hy(n,a,c,d){return Nt(a)?a:jye(n,a,c,d,!0)||j}function jye(n,a,c,d,_){const v=(n&2)!==0;if(a===Vr){Kye(d,a,v);return}const x=se>=2,k=!x&&V.downlevelIteration,F=V.noUncheckedIndexedAccess&&!!(n&128);if(x||k||v){const gt=$ee(a,n,x?d:void 0);if(_&&gt){const Dt=n&8?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?f.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;Dt&&nd(c,gt.nextType,d,Dt)}if(gt||x)return F?G8(gt&&gt.yieldType):gt&&gt.yieldType}let H=a,re=!1,be=!1;if(n&4){if(H.flags&1048576){const gt=a.types,Dt=mn(gt,an=>!(an.flags&402653316));Dt!==gt&&(H=ei(Dt,2))}else H.flags&402653316&&(H=Vr);if(be=H!==a,be&&(se<1&&d&&(qe(d,f.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),re=!0),H.flags&131072))return F?G8(ke):ke}if(!my(H)){if(d&&!re){const gt=!!(n&4)&&!be,[Dt,an]=Je(gt,k);G0(d,an&&!!a2(H),Dt,Hn(H))}return be?F?G8(ke):ke:void 0}const ge=iE(H,Tt);if(be&&ge)return ge.flags&402653316&&!V.noUncheckedIndexedAccess?ke:ei(F?[ge,ke,Oe]:[ge,ke],2);return n&128?G8(ge):ge;function Je(gt,Dt){var an;return Dt?gt?[f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Uye(n,0,a,void 0)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:$ht((an=a.symbol)==null?void 0:an.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:gt?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function $ht(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 Uye(n,a,c,d){if(Nt(c))return;const _=$ee(c,n,d);return _&&_[FIe(a)]}function gy(n=Vr,a=Vr,c=hn){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){const d=pm([n,a,c]);let _=Di.get(d);return _||(_={yieldType:n,returnType:a,nextType:c},Di.set(d,_)),_}return{yieldType:n,returnType:a,nextType:c}}function xWe(n){let a,c,d;for(const _ of n)if(!(_===void 0||_===Mr)){if(_===Yo)return Yo;a=Rn(a,_.yieldType),c=Rn(c,_.returnType),d=Rn(d,_.nextType)}return a||c||d?gy(a&&ei(a),c&&ei(c),d&&ya(d)):Mr}function Yee(n,a){return n[a]}function Ag(n,a,c){return n[a]=c}function $ee(n,a,c){var d,_;if(Nt(n))return Yo;if(!(n.flags&1048576)){const H=c?{errors:void 0}:void 0,re=RWe(n,a,c,H);if(re===Mr){if(c){const be=Kye(c,n,!!(a&2));H!=null&&H.errors&&Ma(be,...H.errors)}return}else if((d=H==null?void 0:H.errors)!=null&&d.length)for(const be of H.errors)ts.add(be);return re}const v=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=Yee(n,v);if(x)return x===Mr?void 0:x;let k;for(const H of n.types){const re=c?{errors:void 0}:void 0,be=RWe(H,a,c,re);if(be===Mr){if(c){const ge=Kye(c,n,!!(a&2));re!=null&&re.errors&&Ma(ge,...re.errors)}Ag(n,v,Mr);return}else if((_=re==null?void 0:re.errors)!=null&&_.length)for(const ge of re.errors)ts.add(ge);k=Rn(k,be)}const F=k?xWe(k):Mr;return Ag(n,v,F),F===Mr?void 0:F}function Hye(n,a){if(n===Mr)return Mr;if(n===Yo)return Yo;const{yieldType:c,returnType:d,nextType:_}=n;return a&&Tge(!0),gy(oA(c,a)||j,oA(d,a)||j,_)}function RWe(n,a,c,d){if(Nt(n))return Yo;let _=!1;if(a&2){const v=qye(n,Us)||NWe(n,Us);if(v)if(v===Mr&&c)_=!0;else return a&8?Hye(v,c):v}if(a&1){let v=qye(n,vc)||NWe(n,vc);if(v)if(v===Mr&&c)_=!0;else if(a&2){if(v!==Mr)return v=Hye(v,c),_?v:Ag(n,"iterationTypesOfAsyncIterable",v)}else return v}if(a&2){const v=Jye(n,Us,c,d,_);if(v!==Mr)return v}if(a&1){let v=Jye(n,vc,c,d,_);if(v!==Mr)return a&2?(v=Hye(v,c),_?v:Ag(n,"iterationTypesOfAsyncIterable",v)):v}return Mr}function qye(n,a){return Yee(n,a.iterableCacheKey)}function DWe(n,a){const c=qye(n,a)||Jye(n,a,void 0,void 0,!1);return c===Mr?jc:c}function NWe(n,a){let c;if(Nb(n,c=a.getGlobalIterableType(!1))||Nb(n,c=a.getGlobalIterableIteratorType(!1))){const[d]=Js(n),{returnType:_,nextType:v}=DWe(c,a);return Ag(n,a.iterableCacheKey,gy(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,v))}if(Nb(n,a.getGlobalGeneratorType(!1))){const[d,_,v]=Js(n);return Ag(n,a.iterableCacheKey,gy(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,v))}}function CWe(n){const a=d8e(!1),c=a&&Ke(dr(a),_l(n));return c&&tm(c)?nm(c):`__@${n}`}function Jye(n,a,c,d,_){const v=va(n,CWe(a.iteratorSymbolName)),x=v&&!(v.flags&16777216)?dr(v):void 0;if(Nt(x))return _?Yo:Ag(n,a.iterableCacheKey,Yo);const k=x?Xo(x,0):void 0;if(!bt(k))return _?Mr:Ag(n,a.iterableCacheKey,Mr);const F=ya(Wt(k,ps)),H=PWe(F,a,c,d,_)??Mr;return _?H:Ag(n,a.iterableCacheKey,H)}function Kye(n,a,c){const d=c?f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,_=!!a2(a)||!c&&Hk(n.parent)&&n.parent.expression===n&&MZ(!1)!==wo&&ba(a,MZ(!1));return G0(n,_,d,Hn(a))}function Qht(n,a,c,d){return PWe(n,a,c,d,!1)}function PWe(n,a,c,d,_){if(Nt(n))return Yo;let v=MWe(n,a)||Zht(n,a);return v===Mr&&c&&(v=void 0,_=!0),v??(v=kWe(n,a,c,d,_)),v===Mr?void 0:v}function MWe(n,a){return Yee(n,a.iteratorCacheKey)}function Zht(n,a){const c=a.getGlobalIterableIteratorType(!1);if(Nb(n,c)){const[d]=Js(n),_=MWe(c,a)||kWe(c,a,void 0,void 0,!1),{returnType:v,nextType:x}=_===Mr?jc:_;return Ag(n,a.iteratorCacheKey,gy(d,v,x))}if(Nb(n,a.getGlobalIteratorType(!1))||Nb(n,a.getGlobalGeneratorType(!1))){const[d,_,v]=Js(n);return Ag(n,a.iteratorCacheKey,gy(d,_,v))}}function LWe(n,a){const c=Ke(n,"done")||en;return ba(a===0?en:Gn,c)}function egt(n){return LWe(n,0)}function tgt(n){return LWe(n,1)}function ngt(n){if(Nt(n))return Yo;const a=Yee(n,"iterationTypesOfIteratorResult");if(a)return a;if(Nb(n,Glt(!1))){const x=Js(n)[0];return Ag(n,"iterationTypesOfIteratorResult",gy(x,void 0,void 0))}if(Nb(n,Vlt(!1))){const x=Js(n)[0];return Ag(n,"iterationTypesOfIteratorResult",gy(void 0,x,void 0))}const c=dc(n,egt),d=c!==Vr?Ke(c,"value"):void 0,_=dc(n,tgt),v=_!==Vr?Ke(_,"value"):void 0;return!d&&!v?Ag(n,"iterationTypesOfIteratorResult",Mr):Ag(n,"iterationTypesOfIteratorResult",gy(d,v||ir,void 0))}function Xye(n,a,c,d,_){var v,x,k,F;const H=va(n,c);if(!H&&c!=="next")return;const re=H&&!(c==="next"&&H.flags&16777216)?c==="next"?dr(H):mm(dr(H),2097152):void 0;if(Nt(re))return c==="next"?Yo:Sl;const be=re?Xo(re,0):et;if(be.length===0){if(d){const ln=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;_?(_.errors??(_.errors=[]),_.errors.push(kr(d,ln,c))):qe(d,ln,c)}return c==="next"?Mr:void 0}if(re!=null&&re.symbol&&be.length===1){const ln=a.getGlobalGeneratorType(!1),Bn=a.getGlobalIteratorType(!1),zn=((x=(v=ln.symbol)==null?void 0:v.members)==null?void 0:x.get(c))===re.symbol,tr=!zn&&((F=(k=Bn.symbol)==null?void 0:k.members)==null?void 0:F.get(c))===re.symbol;if(zn||tr){const Kn=zn?ln:Bn,{mapper:nr}=re;return gy(Ob(Kn.typeParameters[0],nr),Ob(Kn.typeParameters[1],nr),c==="next"?Ob(Kn.typeParameters[2],nr):void 0)}}let ge,Je;for(const ln of be)c!=="throw"&&bt(ln.parameters)&&(ge=Rn(ge,h_(ln,0))),Je=Rn(Je,ps(ln));let gt,Dt;if(c!=="throw"){const ln=ge?ei(ge):hn;if(c==="next")Dt=ln;else if(c==="return"){const Bn=a.resolveIterationType(ln,d)||j;gt=Rn(gt,Bn)}}let an;const cn=Je?ya(Je):Vr,ar=a.resolveIterationType(cn,d)||j,Wn=ngt(ar);return Wn===Mr?(d&&(_?(_.errors??(_.errors=[]),_.errors.push(kr(d,a.mustHaveAValueDiagnostic,c))):qe(d,a.mustHaveAValueDiagnostic,c)),an=j,gt=Rn(gt,j)):(an=Wn.yieldType,gt=Rn(gt,Wn.returnType)),gy(an,ei(gt),Dt)}function kWe(n,a,c,d,_){const v=xWe([Xye(n,a,"next",c,d),Xye(n,a,"return",c,d),Xye(n,a,"throw",c,d)]);return _?v:Ag(n,a.iteratorCacheKey,v)}function $1(n,a,c){if(Nt(a))return;const d=wWe(a,c);return d&&d[FIe(n)]}function wWe(n,a){if(Nt(n))return Yo;const c=a?2:1,d=a?Us:vc;return $ee(n,c,void 0)||Qht(n,d,void 0,void 0)}function rgt(n){vv(n)||hyt(n)}function mB(n,a){const c=!!(a&1),d=!!(a&2);if(c){const _=$1(1,n,d);return _?d?_y(s2(_)):_:_t}return d?_y(n)||_t:n}function OWe(n,a){const c=mB(a,Bc(n));return!!(c&&(Cl(c,16384)||c.flags&32769))}function igt(n){if(vv(n))return;const a=V4(n);if(a&&Rl(a)){_u(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){_u(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}const c=dm(a),d=ps(c),_=Bc(a);if(X||n.expression||d.flags&131072){const v=n.expression?nc(n.expression):Oe;if(a.kind===178)n.expression&&qe(n,f.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!Fb(v,d,n,n.expression)&&qe(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(yN(a)){const x=mB(d,_)??d,k=_&2?Q8(v,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):v;x&&Fb(k,x,n,n.expression)}}else a.kind!==176&&V.noImplicitReturns&&!OWe(a,d)&&qe(n,f.Not_all_code_paths_return_a_value)}function ogt(n){vv(n)||n.flags&65536&&_u(n,f.with_statements_are_not_allowed_in_an_async_function_block),mo(n.expression);const a=Un(n);if(!Q1(a)){const c=_h(a,n.pos).start,d=n.statement.pos;Z1(a,c,d-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function agt(n){vv(n);let a,c=!1;const d=mo(n.expression);Xe(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(Sn(_,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(v(_)),Xe(_.statements,Ra),V.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&O9(_.fallthroughFlowNode)&&qe(_,f.Fallthrough_case_in_switch);function v(x){return()=>{const k=mo(x.expression);Nye(d,k)||l6e(k,d,x.expression,void 0)}}}),n.caseBlock.locals&&jb(n.caseBlock)}function sgt(n){vv(n)||Vn(n.parent,a=>ea(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(Sn(n.label,f.Duplicate_label_0,fc(n.label)),!0):!1),Ra(n.statement)}function lgt(n){vv(n)||Ve(n.expression)&&!n.expression.escapedText&&Pyt(n,f.Line_break_not_permitted_here),n.expression&&mo(n.expression)}function cgt(n){vv(n),Kee(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const c=a.variableDeclaration;pB(c);const d=yu(c);if(d){const _=Ti(d);_&&!(_.flags&3)&&_u(d,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)_u(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{const _=a.block.locals;_&&fh(a.locals,v=>{const x=_.get(v);x!=null&&x.valueDeclaration&&x.flags&2&&Sn(x.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Vi(v))})}}Kee(a.block)}n.finallyBlock&&Kee(n.finallyBlock)}function Qee(n,a,c){const d=gd(n);if(d.length===0)return;for(const v of Pb(n))c&&v.flags&4194304||WWe(n,v,TN(v,8576,!0),Db(v));const _=a.valueDeclaration;if(_&&di(_)){for(const v of _.members)if(!aa(v)&&!gN(v)){const x=Ir(v);WWe(n,x,Ru(v.name.expression),Db(x))}}if(d.length>1)for(const v of d)ugt(n,v)}function WWe(n,a,c,d){const _=a.valueDeclaration,v=Lo(_);if(v&&qi(v))return;const x=oge(n,c),k=Wr(n)&2?pl(n.symbol,264):void 0,F=_&&_.kind===226||v&&v.kind===167?_:void 0,H=Cd(a)===n.symbol?_:void 0;for(const re of x){const be=re.declaration&&Cd(Ir(re.declaration))===n.symbol?re.declaration:void 0,ge=H||be||(k&&!bt(Cp(n),Je=>!!rE(Je,a.escapedName)&&!!iE(Je,re.keyType))?k:void 0);if(ge&&!ba(d,re.type)){const Je=mT(ge,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Si(a),Hn(d),Hn(re.keyType),Hn(re.type));F&&ge!==F&&Ma(Je,kr(F,f._0_is_declared_here,Si(a))),ts.add(Je)}}}function ugt(n,a){const c=a.declaration,d=oge(n,a.keyType),_=Wr(n)&2?pl(n.symbol,264):void 0,v=c&&Cd(Ir(c))===n.symbol?c:void 0;for(const x of d){if(x===a)continue;const k=x.declaration&&Cd(Ir(x.declaration))===n.symbol?x.declaration:void 0,F=v||k||(_&&!bt(Cp(n),H=>!!Sg(H,a.keyType)&&!!iE(H,x.keyType))?_:void 0);F&&!ba(a.type,x.type)&&qe(F,f._0_index_type_1_is_not_assignable_to_2_index_type_3,Hn(a.keyType),Hn(a.type),Hn(x.keyType),Hn(x.type))}}function u2(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":qe(n,a,n.escapedText)}}function dgt(n){se>=1&&n.escapedText==="Object"&&(G<5||Un(n).impliedNodeFormat===1)&&qe(n,f.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,$N[G])}function pgt(n){const a=mn(a0(n),e_);if(!Ne(a))return;const c=lr(n),d=new Set,_=new Set;if(Xe(n.parameters,({name:x},k)=>{Ve(x)&&d.add(x.escapedText),ta(x)&&_.add(k)}),sge(n)){const x=a.length-1,k=a[x];c&&k&&Ve(k.name)&&k.typeExpression&&k.typeExpression.type&&!d.has(k.name.escapedText)&&!_.has(x)&&!Uf(Ti(k.typeExpression.type))&&qe(k.name,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Sr(k.name))}else Xe(a,({name:x,isNameFirst:k},F)=>{_.has(F)||Ve(x)&&d.has(x.escapedText)||(Id(x)?c&&qe(x,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,fp(x),fp(x.left)):k||mu(c,x,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Sr(x)))})}function _B(n){let a=!1;if(n)for(let d=0;d<n.length;d++){const _=n[d];tWe(_),r(c(_,d))}function c(d,_){return()=>{d.default?(a=!0,fgt(d.default,n,_)):a&&qe(d,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let v=0;v<_;v++)n[v].symbol===d.symbol&&qe(d.name,f.Duplicate_identifier_0,xs(d.name))}}}function fgt(n,a,c){d(n);function d(_){if(_.kind===183){const v=gge(_);if(v.flags&262144)for(let x=c;x<a.length;x++)v.symbol===Ir(a[x])&&qe(_,f.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Uo(_,d)}}function FWe(n){if(n.declarations&&n.declarations.length===1)return;const a=Ki(n);if(!a.typeParametersChecked){a.typeParametersChecked=!0;const c=Egt(n);if(!c||c.length<=1)return;const d=Zs(n);if(!zWe(c,d.localTypeParameters,Dy)){const _=Si(n);for(const v of c)qe(v.name,f.All_declarations_of_0_must_have_identical_type_parameters,_)}}}function zWe(n,a,c){const d=Ne(a),_=zh(a);for(const v of n){const x=c(v),k=x.length;if(k<_||k>d)return!1;for(let F=0;F<k;F++){const H=x[F],re=a[F];if(H.name.escapedText!==re.symbol.escapedName)return!1;const be=Jx(H),ge=be&&Ti(be),Je=Md(re);if(ge&&Je&&!fv(ge,Je))return!1;const gt=H.default&&Ti(H.default),Dt=GT(re);if(gt&&Dt&&!fv(gt,Dt))return!1}}return!0}function BWe(n){const a=!ne&&se<99&&Lv(!1,n),c=se<=9,d=!ye;if(a||c)for(const _ of n.members){if(a&&mj(!1,_,n))return Kc(Ry(n))??n;if(c){if(Rl(_))return _;if(aa(_)&&(sd(_)||d&&Dw(_)))return _}}}function mgt(n){if(n.name)return;const a=Pae(n);if(!Lj(a))return;const c=!ne&&se<99;let d;c&&Lv(!1,n)?d=Kc(Ry(n))??n:d=BWe(n),d&&(Dc(d,8388608),(hc(a)||qo(a)||$a(a))&&Za(a.name)&&Dc(d,16777216))}function _gt(n){return GWe(n),hx(n),mgt(n),dr(Ir(n))}function hgt(n){Xe(n.members,Ra),jb(n)}function ggt(n){const a=In(n.modifiers,Eu);ne&&a&&bt(n.members,c=>mc(c)&&sd(c))&&Sn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Qr(n,2048)&&_u(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),GWe(n),Xe(n.members,Ra),jb(n)}function GWe(n){tyt(n),cB(n),l2(n,n.name),_B(Dy(n)),Y8(n);const a=Ir(n),c=Zs(a),d=Jp(c),_=dr(a);FWe(a),Hee(a),M_t(n),!!(n.flags&33554432)||L_t(n);const x=I_(n);if(x){Xe(x.typeArguments,Ra),se<2&&Dc(x.parent,1);const H=FE(n);H&&H!==x&&mo(H.expression);const re=Cp(c);re.length&&r(()=>{const be=re[0],ge=Np(c),Je=Ld(ge);if(ygt(Je,x),Ra(x.expression),bt(x.typeArguments)){Xe(x.typeArguments,Ra);for(const Dt of td(Je,x.typeArguments,x))if(!lWe(x,Dt.typeParameters))break}const gt=Jp(be,c.thisType);if(nd(d,gt,void 0)?nd(_,n6e(Je),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):UWe(n,d,gt,f.Class_0_incorrectly_extends_base_class_1),ge.flags&8650752&&(Li(_)?Xo(ge,1).some(an=>an.flags&4)&&!Qr(n,64)&&qe(n.name||n,f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):qe(n.name||n,f.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Je.symbol&&Je.symbol.flags&32)&&!(ge.flags&8650752)){const Dt=Wh(Je,x.typeArguments,x);Xe(Dt,an=>!Z_(an.declaration)&&!fv(ps(an),be))&&qe(x.expression,f.Base_constructors_must_all_have_the_same_return_type)}Sgt(c,be)})}vgt(n,c,d,_);const k=vR(n);if(k)for(const H of k)(!Bl(H.expression)||qu(H.expression))&&qe(H.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Oye(H),r(F(H));r(()=>{Qee(c,a),Qee(_,a,!0),Lye(n),Igt(n)});function F(H){return()=>{const re=f_(Ti(H));if(!Jt(re))if(t9(re)){const be=re.symbol&&re.symbol.flags&32?f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:f.Class_0_incorrectly_implements_interface_1,ge=Jp(re,c.thisType);nd(d,ge,void 0)||UWe(n,d,ge,be)}else qe(H,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function vgt(n,a,c,d){const v=I_(n)&&Cp(a),x=v!=null&&v.length?Jp(Ua(v),a.thisType):void 0,k=Np(a);for(const F of n.members)Jj(F)||(Ml(F)&&Xe(F.parameters,H=>{pp(H,F)&&VWe(n,d,k,x,a,c,H,!0)}),VWe(n,d,k,x,a,c,F,!1))}function VWe(n,a,c,d,_,v,x,k,F=!0){const H=x.name&&Vm(x.name)||Vm(x);return H?jWe(n,a,c,d,_,v,v3(x),jE(x),aa(x),k,El(H),F?x:void 0):0}function jWe(n,a,c,d,_,v,x,k,F,H,re,be){const ge=lr(n),Je=!!(n.flags&33554432);if(d&&(x||V.noImplicitOverride)){const gt=_l(re),Dt=F?a:v,an=F?c:d,cn=va(Dt,gt),ar=va(an,gt),Wn=Hn(d);if(cn&&!ar&&x){if(be){const ln=Q4e(re,an);ln?qe(be,ge?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Wn,Si(ln)):qe(be,ge?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Wn)}return 2}else if(cn&&(ar!=null&&ar.declarations)&&V.noImplicitOverride&&!Je){const ln=bt(ar.declarations,jE);if(x)return 0;if(ln){if(k&&ln)return be&&qe(be,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Wn),1}else{if(be){const Bn=H?ge?f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ge?f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;qe(be,Bn,Wn)}return 1}}}else if(x){if(be){const gt=Hn(_);qe(be,ge?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,gt)}return 2}return 0}function UWe(n,a,c,d){let _=!1;for(const v of n.members){if(aa(v))continue;const x=v.name&&Vm(v.name)||Vm(v);if(x){const k=va(a,x.escapedName),F=va(c,x.escapedName);if(k&&F){const H=()=>Vo(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Si(x),Hn(a),Hn(c));nd(dr(k),dr(F),v.name||v,void 0,H)||(_=!0)}}}_||nd(a,c,n.name||n,d)}function ygt(n,a){const c=Xo(n,1);if(c.length){const d=c[0].declaration;if(d&&_p(d,2)){const _=Wg(n.symbol);tbe(a,_)||qe(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Hp(n.symbol))}}}function bgt(n,a,c){if(!a.name)return 0;const d=Ir(n),_=Zs(d),v=Jp(_),x=dr(d),F=I_(n)&&Cp(_),H=F!=null&&F.length?Jp(Ua(F),_.thisType):void 0,re=Np(_),be=a.parent?v3(a):Qr(a,16);return jWe(n,x,re,H,_,v,be,jE(a),aa(a),!1,El(c))}function wN(n){return xl(n)&1?n.links.target:n}function Egt(n){return mn(n.declarations,a=>a.kind===263||a.kind===264)}function Sgt(n,a){var c,d,_,v;const x=gs(a);let k;e:for(const F of x){const H=wN(F);if(H.flags&4194304)continue;const re=rE(n,H.escapedName);if(!re)continue;const be=wN(re),ge=xf(H);if(N.assert(!!be,"derived should point to something, even if it is the base class' declaration."),be===H){const Je=Wg(n.symbol);if(ge&64&&(!Je||!Qr(Je,64))){for(const gt of Cp(n)){if(gt===a)continue;const Dt=rE(gt,H.escapedName),an=Dt&&wN(Dt);if(an&&an!==H)continue e}k||(k=qe(Je,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Hn(n),Hn(a))),Je.kind===231?Ma(k,kr(F.valueDeclaration??(F.declarations&&Ua(F.declarations))??Je,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Si(F),Hn(a))):Ma(k,kr(F.valueDeclaration??(F.declarations&&Ua(F.declarations))??Je,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Hn(n),Si(F),Hn(a)))}}else{const Je=xf(be);if(ge&2||Je&2)continue;let gt;const Dt=H.flags&98308,an=be.flags&98308;if(Dt&&an){if((xl(H)&6?(c=H.declarations)!=null&&c.some(Wn=>HWe(Wn,ge)):(d=H.declarations)!=null&&d.every(Wn=>HWe(Wn,ge)))||xl(H)&262144||be.valueDeclaration&&mr(be.valueDeclaration))continue;const cn=Dt!==4&&an===4;if(cn||Dt===4&&an!==4){const Wn=cn?f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;qe(Lo(be.valueDeclaration)||be.valueDeclaration,Wn,Si(H),Hn(a),Hn(n))}else if(he){const Wn=(_=be.declarations)==null?void 0:_.find(ln=>ln.kind===172&&!ln.initializer);if(Wn&&!(be.flags&33554432)&&!(ge&64)&&!(Je&64)&&!((v=be.declarations)!=null&&v.some(ln=>!!(ln.flags&33554432)))){const ln=rv(Wg(n.symbol)),Bn=Wn.name;if(Wn.exclamationToken||!ln||!Ve(Bn)||!X||!JWe(Bn,n,ln)){const zn=f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;qe(Lo(be.valueDeclaration)||be.valueDeclaration,zn,Si(H),Hn(a))}}}continue}else if(Qve(H)){if(Qve(be)||be.flags&4)continue;N.assert(!!(be.flags&98304)),gt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else H.flags&98304?gt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:gt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;qe(Lo(be.valueDeclaration)||be.valueDeclaration,gt,Hn(a),Si(H),Hn(n))}}}function HWe(n,a){return a&64&&(!qo(n)||!n.initializer)||md(n.parent)}function Tgt(n,a,c){if(!Ne(a))return c;const d=new Map;Xe(c,_=>{d.set(_.escapedName,_)});for(const _ of a){const v=gs(Jp(_,n.thisType));for(const x of v){const k=d.get(x.escapedName);k&&x.parent===k.parent&&d.delete(x.escapedName)}}return zo(d.values())}function Agt(n,a){const c=Cp(n);if(c.length<2)return!0;const d=new Map;Xe(Vhe(n).declaredProperties,v=>{d.set(v.escapedName,{prop:v,containingType:n})});let _=!0;for(const v of c){const x=gs(Jp(v,n.thisType));for(const k of x){const F=d.get(k.escapedName);if(!F)d.set(k.escapedName,{prop:k,containingType:v});else if(F.containingType!==n&&!Out(F.prop,k)){_=!1;const re=Hn(F.containingType),be=Hn(v);let ge=Vo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,Si(k),re,be);ge=Vo(ge,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,Hn(n),re,be),ts.add(Lg(Un(a),a,ge))}}}return _}function Igt(n){if(!X||!Ce||n.flags&33554432)return;const a=rv(n);for(const c of n.members)if(!(ud(c)&128)&&!aa(c)&&qWe(c)){const d=c.name;if(Ve(d)||qi(d)||Za(d)){const _=dr(Ir(c));_.flags&3||HM(_)||(!a||!JWe(d,_,a))&&qe(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,xs(d))}}}function qWe(n){return n.kind===172&&!jE(n)&&!n.exclamationToken&&!n.initializer}function xgt(n,a,c,d,_){for(const v of c)if(v.pos>=d&&v.pos<=_){const x=w.createPropertyAccessExpression(w.createThis(),n);Ha(x.expression,x),Ha(x,v),x.flowNode=v.returnFlowNode;const k=Vb(x,a,Bb(a));if(!HM(k))return!0}return!1}function JWe(n,a,c){const d=Za(n)?w.createElementAccessExpression(w.createThis(),n.expression):w.createPropertyAccessExpression(w.createThis(),n);Ha(d.expression,d),Ha(d,c),d.flowNode=c.returnFlowNode;const _=Vb(d,a,Bb(a));return!HM(_)}function Rgt(n){Ig(n)||lyt(n),_B(n.typeParameters),r(()=>{u2(n.name,f.Interface_name_cannot_be_0),Y8(n);const a=Ir(n);FWe(a);const c=pl(a,264);if(n===c){const d=Zs(a),_=Jp(d);if(Agt(d,n.name)){for(const v of Cp(d))nd(_,Jp(v,d.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);Qee(d,a)}}iWe(n)}),Xe(DC(n),a=>{(!Bl(a.expression)||qu(a.expression))&&qe(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Oye(a)}),Xe(n.members,Ra),r(()=>{Lye(n),jb(n)})}function Dgt(n){Ig(n),u2(n.name,f.Type_alias_name_cannot_be_0),Y8(n),_B(n.typeParameters),n.type.kind===141?(!zF.has(n.name.escapedText)||Ne(n.typeParameters)!==1)&&qe(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Ra(n.type),jb(n))}function KWe(n){const a=Zr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(const d of n.members){const _=Ngt(d,c);Zr(d).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function Ngt(n,a){if(AL(n.name))qe(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{const c=nR(n.name);og(c)&&!tP(c)&&qe(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return Cgt(n);if(!(n.parent.flags&33554432&&!ME(n.parent))){if(a!==void 0)return a;qe(n.name,f.Enum_member_must_have_initializer)}}function Cgt(n){const a=ME(n.parent),c=n.initializer,d=d2(c,n);return d!==void 0?a&&typeof d=="number"&&!isFinite(d)&&qe(c,isNaN(d)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?qe(c,f.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?qe(c,f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):nd(mo(c),Tt,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),d}function d2(n,a){switch(n.kind){case 224:const c=d2(n.operand,a);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:const d=d2(n.left,a),_=d2(n.right,a);if(typeof d=="number"&&typeof _=="number")switch(n.operatorToken.kind){case 52:return d|_;case 51:return d&_;case 49:return d>>_;case 50:return d>>>_;case 48:return d<<_;case 53:return d^_;case 42:return d*_;case 44:return d/_;case 40:return d+_;case 41:return d-_;case 45:return d%_;case 43:return d**_}else if((typeof d=="string"||typeof d=="number")&&(typeof _=="string"||typeof _=="number")&&n.operatorToken.kind===40)return""+d+_;break;case 11:case 15:return n.text;case 228:return YWe(n,a);case 9:return dbe(n),+n.text;case 217:return d2(n.expression,a);case 80:{const x=n;if(tP(x.escapedText)&&Hs(x,111551,!0)===jM(x.escapedText,111551,void 0))return+x.escapedText}case 211:if(Bl(n)){const x=Hs(n,111551,!0);if(x){if(x.flags&8)return a?XWe(n,x,a):WN(x.valueDeclaration);if(e2(x)){const k=x.valueDeclaration;if(k&&Oi(k)&&!k.type&&k.initializer&&(!a||k!==a&&Zg(k,a)))return d2(k.initializer,k)}}}break;case 212:const v=n.expression;if(Bl(v)&&ls(n.argumentExpression)){const x=Hs(v,111551,!0);if(x&&x.flags&384){const k=_l(n.argumentExpression.text),F=x.exports.get(k);if(F)return a?XWe(n,F,a):WN(F.valueDeclaration)}}break}}function XWe(n,a,c){const d=a.valueDeclaration;if(!d||d===c){qe(n,f.Property_0_is_used_before_being_assigned,Si(a));return}return Zg(d,c)?WN(d):(qe(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function YWe(n,a){let c=n.head.text;for(const d of n.templateSpans){const _=d2(d.expression,a);if(_===void 0)return;c+=_,c+=d.literal.text}return c}function Pgt(n){r(()=>Mgt(n))}function Mgt(n){Ig(n),l2(n,n.name),Y8(n),n.members.forEach(Lgt),KWe(n);const a=Ir(n),c=pl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){const _=ME(n);Xe(a.declarations,v=>{y0(v)&&ME(v)!==_&&qe(Lo(v),f.Enum_declarations_must_all_be_const_or_non_const)})}let d=!1;Xe(a.declarations,_=>{if(_.kind!==266)return!1;const v=_;if(!v.members.length)return!1;const x=v.members[0];x.initializer||(d?qe(x.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):d=!0)})}}function Lgt(n){qi(n.name)&&qe(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&mo(n.initializer)}function kgt(n){const a=n.declarations;if(a){for(const c of a)if((c.kind===263||c.kind===262&&Kf(c.body))&&!(c.flags&33554432))return c}}function wgt(n,a){const c=mh(n),d=mh(a);return Ch(c)?Ch(d):Ch(d)?!1:c===d}function Ogt(n){n.body&&(Ra(n.body),A_(n)||jb(n)),r(a);function a(){var c,d;const _=A_(n),v=n.flags&33554432;_&&!v&&qe(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const x=ku(n),k=x?f.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:f.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(hB(n,k))return;Ig(n)||!v&&n.name.kind===11&&Sn(n.name,f.Only_ambient_modules_can_use_quoted_names),Ve(n.name)&&l2(n,n.name),Y8(n);const F=Ir(n);if(F.flags&512&&!v&&Aq(n,KE(V))){if(rm(V)&&!Un(n).externalModuleIndicator&&qe(n.name,f.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,$e),((c=F.declarations)==null?void 0:c.length)>1){const H=kgt(F);H&&(Un(n)!==Un(H)?qe(n.name,f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<H.pos&&qe(n.name,f.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const re=pl(F,263);re&&wgt(n,re)&&(Zr(n).flags|=2048)}if(V.verbatimModuleSyntax&&n.parent.kind===312&&(G===1||n.parent.impliedNodeFormat===1)){const H=(d=n.modifiers)==null?void 0:d.find(re=>re.kind===95);H&&qe(H,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(PE(n)){if((_||Ir(n).flags&33554432)&&n.body)for(const re of n.body.statements)Yye(re,_)}else Ch(n.parent)?_?qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Xc(Qf(n.name))&&qe(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):_?qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):qe(n.name,f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Yye(n,a){switch(n.kind){case 243:for(const d of n.declarationList.declarations)Yye(d,a);break;case 277:case 278:_u(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:_u(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const c=n.name;if(ta(c)){for(const d of c.elements)Yye(d,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function Wgt(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(Zh(n.expression)&&!qi(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function $ye(n){const a=fR(n);if(!a||Fl(a))return!1;if(!Na(a))return qe(a,f.String_literal_expected),!1;const c=n.parent.kind===268&&ku(n.parent.parent);if(n.parent.kind!==312&&!c)return qe(a,n.kind===278?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&Xc(a.text)&&!Tb(n))return qe(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!eu(n)&&n.attributes){const d=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions;let _=!1;for(const v of n.attributes.elements)Na(v.value)||(_=!0,qe(v.value,d));return!_}return!0}function Zee(n){var a,c,d,_;let v=Ir(n);const x=Oc(v);if(x!==ft){if(v=rs(v.exportSymbol||v),lr(n)&&!(x.flags&111551)&&!s0(n)){const H=SA(n)?n.propertyName||n.name:ad(n)?n.name:n;if(N.assert(n.kind!==280),n.kind===281){const re=qe(H,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),be=(c=(a=Un(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(be===x){const ge=(d=be.declarations)==null?void 0:d.find($x);ge&&Ma(re,kr(ge,f._0_is_automatically_exported_here,Vi(be.escapedName)))}}else{N.assert(n.kind!==260);const re=Vn(n,Jm(Mc,eu)),be=(re&&((_=pR(re))==null?void 0:_.text))??"...",ge=Vi(Ve(H)?H.escapedText:v.escapedName);qe(H,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,ge,`import("${be}").${ge}`)}return}const k=Au(x),F=(v.flags&1160127?111551:0)|(v.flags&788968?788968:0)|(v.flags&1920?1920:0);if(k&F){const H=n.kind===281?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;qe(n,H,Si(v))}else n.kind!==281&&V.isolatedModules&&!Vn(n,s0)&&v.flags&1160127&&qe(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Si(v),$e);if(rm(V)&&!s0(n)&&!(n.flags&33554432)){const H=Of(v),re=!(k&111551);if(re||H)switch(n.kind){case 273:case 276:case 271:{if(V.preserveValueImports||V.verbatimModuleSyntax){N.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const be=V.verbatimModuleSyntax&&uR(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:re?V.verbatimModuleSyntax?f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:V.verbatimModuleSyntax?f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,ge=Sr(n.kind===276&&n.propertyName||n.name);fg(qe(n,be,ge),re?void 0:H,ge)}re&&n.kind===271&&_p(n,32)&&qe(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,$e);break}case 281:if(V.verbatimModuleSyntax||Un(H)!==Un(n)){const be=Sr(n.propertyName||n.name),ge=re?qe(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,$e):qe(n,f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,be,$e);fg(ge,re?void 0:H,be);break}}V.verbatimModuleSyntax&&n.kind!==271&&!lr(n)&&(G===1||Un(n).impliedNodeFormat===1)&&qe(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(tp(n)){const H=Qye(v,n);ub(H)&&H.declarations&&iy(n,H.declarations,H.escapedName)}}}function Qye(n,a){if(!(n.flags&2097152)||ub(n)||!wm(n))return n;const c=Oc(n);if(c===ft)return c;for(;n.flags&2097152;){const d=qve(n);if(d){if(d===c)break;if(d.declarations&&Ne(d.declarations))if(ub(d)){iy(a,d.declarations,d.escapedName);break}else{if(n===c)break;n=d}}else break}return c}function ete(n){l2(n,n.name),Zee(n),n.kind===276&&Sr(n.propertyName||n.name)==="default"&&gh(V)&&G!==4&&(G<5||Un(n).impliedNodeFormat===1)&&Dc(n,131072)}function $We(n){var a;const c=n.attributes;if(c){const d=bge(!0);d!==Ca&&nd(ce(c),N9(d,32768),c);const _=fJ(n),v=uD(c,_?Sn:void 0),x=n.attributes.token===118;if(_&&v)return;if((G===199&&n.moduleSpecifier&&to(n.moduleSpecifier))!==99&&G!==99&&G!==200){const F=x?G===199?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:G===199?f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return Sn(c,F)}if(Mc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return Sn(c,x?f.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:f.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(v)return Sn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function Fgt(n){return yd(nc(n.value))}function zgt(n){if(!hB(n,lr(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Ig(n)&&g3(n)&&_u(n,f.An_import_declaration_cannot_have_modifiers),$ye(n)){const a=n.importClause;a&&!Lyt(a)&&(a.name&&ete(a),a.namedBindings&&(a.namedBindings.kind===274?(ete(a.namedBindings),G!==4&&(G<5||Un(n).impliedNodeFormat===1)&&gh(V)&&Dc(n,65536)):hd(n,n.moduleSpecifier)&&Xe(a.namedBindings.elements,ete)))}$We(n)}}function Bgt(n){if(!hB(n,lr(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Ig(n),uR(n)||$ye(n)))if(ete(n),Qr(n,32)&&hb(n),n.moduleReference.kind!==283){const a=Oc(Ir(n));if(a!==ft){const c=Au(a);if(c&111551){const d=Gp(n.moduleReference);Hs(d,112575).flags&1920||qe(d,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,xs(d))}c&788968&&u2(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&Sn(n,f.An_import_alias_cannot_use_import_type)}else G>=5&&G!==200&&Un(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&Sn(n,f.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function Ggt(n){if(!hB(n,lr(n)?f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Ig(n)&&Oie(n)&&_u(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&Nf(n.exportClause)&&Ne(n.exportClause.elements)&&se===0&&Dc(n,4194304),Vgt(n),!n.moduleSpecifier||$ye(n))if(n.exportClause&&!Eh(n.exportClause)){Xe(n.exportClause.elements,Kgt);const a=n.parent.kind===268&&ku(n.parent.parent),c=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!c&&qe(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=hd(n,n.moduleSpecifier);a&&sy(a)?qe(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Si(a)):n.exportClause&&Zee(n.exportClause),G!==4&&(G<5||Un(n).impliedNodeFormat===1)&&(n.exportClause?gh(V)&&Dc(n,65536):Dc(n,32768))}$We(n)}}function Vgt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?NFe(n.exportClause):!1}function hB(n,a){const c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||_u(n,a),!c}function jgt(n){return r3(n,a=>!!Ir(a).isReferenced)}function Ugt(n){return r3(n,a=>!!Ki(Ir(a)).constEnumReferenced)}function Hgt(n){return Mc(n)&&n.importClause&&!n.importClause.isTypeOnly&&jgt(n.importClause)&&!ate(n.importClause,!0)&&!Ugt(n.importClause)}function qgt(n){return eu(n)&&Sh(n.moduleReference)&&!n.isTypeOnly&&Ir(n).isReferenced&&!ate(n,!1)&&!Ki(Ir(n)).constEnumReferenced}function Jgt(n){if(It)for(const a of n.statements)(Hgt(a)||qgt(a))&&qe(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Kgt(n){if(Zee(n),Rf(V)&&LM(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)gh(V)&&G!==4&&(G<5||Un(n).impliedNodeFormat===1)&&Sr(n.propertyName||n.name)==="default"&&Dc(n,131072);else{const a=n.propertyName||n.name,c=yl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===je||c===ot||c.declarations&&Ch($(c.declarations[0]))))qe(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Sr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&hb(n);const d=c&&(c.flags&2097152?Oc(c):c);(!d||Au(d)&111551)&&nc(n.propertyName||n.name)}}}function Xgt(n){const a=n.isExportEquals?f.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(hB(n,a))return;const c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!ku(c)){n.isExportEquals?qe(n,f.An_export_assignment_cannot_be_used_in_a_namespace):qe(n,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Ig(n)&&g3(n)&&_u(n,f.An_export_assignment_cannot_have_modifiers);const d=yu(n);d&&nd(nc(n.expression),Ti(d),n.expression);const _=!n.isExportEquals&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&(G===1||Un(n).impliedNodeFormat===1);if(n.expression.kind===80){const v=n.expression,x=hf(Hs(v,-1,!0,!0,n));if(x){const k=Of(x,111551);if(vee(x,v),Au(x)&111551?(nc(v),!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&k&&qe(v,n.isExportEquals?f.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:f.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Sr(v))):!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&qe(v,n.isExportEquals?f.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:f.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Sr(v)),!_&&!(n.flags&33554432)&&rm(V)&&!(x.flags&111551)){const F=Au(x,!1,!0);x.flags&2097152&&F&788968&&!(F&111551)&&(!k||Un(k)!==Un(n))?qe(v,n.isExportEquals?f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Sr(v),$e):k&&Un(k)!==Un(n)&&fg(qe(v,n.isExportEquals?f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Sr(v),$e),k,Sr(v))}}else nc(v);Rf(V)&&LM(v,!0)}else nc(n.expression);_&&qe(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),QWe(c),n.flags&33554432&&!Bl(n.expression)&&Sn(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(G>=5&&G!==200&&(n.flags&33554432&&Un(n).impliedNodeFormat===99||!(n.flags&33554432)&&Un(n).impliedNodeFormat!==1)?Sn(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):G===4&&!(n.flags&33554432)&&Sn(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function Ygt(n){return zc(n.exports,(a,c)=>c!=="export=")}function QWe(n){const a=Ir(n),c=Ki(a);if(!c.exportsChecked){const d=a.exports.get("export=");if(d&&Ygt(a)){const v=wm(d)||d.valueDeclaration;v&&!Tb(v)&&!lr(v)&&qe(v,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const _=Mh(a);_&&_.forEach(({declarations:v,flags:x},k)=>{if(k==="__export"||x&1920)return;const F=ou(v,R6(zIe,D6(md)));if(!(x&524288&&F<=2)&&F>1&&!tte(v))for(const H of v)OIe(H)&&ts.add(kr(H,f.Cannot_redeclare_exported_variable_0,Vi(k)))}),c.exportsChecked=!0}}function tte(n){return n&&n.length>1&&n.every(a=>lr(a)&&ws(a)&&(ES(a.expression)||Zh(a.expression)))}function Ra(n){if(n){const a=C;C=n,A=0,$gt(n),C=a}}function $gt(n){JL(n)&&Xe(n.jsDoc,({comment:c,tags:d})=>{ZWe(c),Xe(d,_=>{ZWe(_.comment),lr(n)&&Ra(_)})});const a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&qL(n)&&n.flowNode&&!O9(n.flowNode)&&mu(V.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return tWe(n);case 169:return nWe(n);case 172:return oWe(n);case 171:return k_t(n);case 185:case 184:case 179:case 180:case 181:return X8(n);case 174:case 173:return w_t(n);case 175:return O_t(n);case 176:return W_t(n);case 177:case 178:return sWe(n);case 183:return Oye(n);case 182:return C_t(n);case 186:return j_t(n);case 187:return U_t(n);case 188:return H_t(n);case 189:return q_t(n);case 192:case 193:return J_t(n);case 196:case 190:case 191:return Ra(n.type);case 197:return $_t(n);case 198:return Q_t(n);case 194:return Z_t(n);case 195:return eht(n);case 203:return tht(n);case 205:return nht(n);case 202:return rht(n);case 335:return Sht(n);case 336:return Eht(n);case 353:case 345:case 347:return pht(n);case 352:return fht(n);case 351:return mht(n);case 331:case 332:case 333:return hht(n);case 348:return ght(n);case 355:return vht(n);case 324:yht(n);case 322:case 321:case 319:case 320:case 329:eFe(n),Uo(n,Ra);return;case 325:Qgt(n);return;case 316:return Ra(n.type);case 340:case 342:case 341:return Tht(n);case 357:return _ht(n);case 350:return bht(n);case 199:return K_t(n);case 200:return X_t(n);case 262:return dht(n);case 241:case 268:return Kee(n);case 243:return Ght(n);case 244:return Vht(n);case 245:return jht(n);case 246:return qht(n);case 247:return Jht(n);case 248:return Kht(n);case 249:return Yht(n);case 250:return Xht(n);case 251:case 252:return rgt(n);case 253:return igt(n);case 254:return ogt(n);case 255:return agt(n);case 256:return sgt(n);case 257:return lgt(n);case 258:return cgt(n);case 260:return zht(n);case 208:return Bht(n);case 263:return ggt(n);case 264:return Rgt(n);case 265:return Dgt(n);case 266:return Pgt(n);case 267:return Ogt(n);case 272:return zgt(n);case 271:return Bgt(n);case 278:return Ggt(n);case 277:return Xgt(n);case 242:case 259:vv(n);return;case 282:return z_t(n)}}function ZWe(n){To(n)&&Xe(n,a=>{xA(a)&&Ra(a)})}function eFe(n){if(!lr(n))if(KW(n)||HR(n)){const a=pa(KW(n)?54:58),c=n.postfix?f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,d=n.type,_=Ti(d);Sn(n,c,a,Hn(HR(n)&&!(_===Vr||_===ir)?ei(Rn([_,Oe],n.postfix?void 0:fe)):_))}else Sn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Qgt(n){eFe(n),Ra(n.type);const{parent:a}=n;if(Ao(a)&&qR(a.parent)){Xa(a.parent.parameters)!==a&&qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}o1(a)||qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=n.parent.parent;if(!e_(c)){qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const d=KL(c);if(!d)return;const _=d0(c);(!_||Xa(_.parameters).symbol!==d)&&qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function Zgt(n){const a=Ti(n.type),{parent:c}=n,d=n.parent.parent;if(o1(n.parent)&&e_(d)){const _=d0(d),v=mH(d.parent.parent);if(_||v){const x=el(v?d.parent.parent.typeExpression.parameters:_.parameters),k=KL(d);if(!x||k&&x.symbol===k&&Xh(x))return Vu(a)}}return Ao(c)&&qR(c.parent)?Vu(a):lp(a)}function hx(n){const a=Un(n),c=Zr(a);c.flags&1?N.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function evt(n){const a=Zr(n);a.deferredNodes&&a.deferredNodes.forEach(tvt),a.deferredNodes=void 0}function tvt(n){var a,c;(a=sr)==null||a.push(sr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const d=C;switch(C=n,A=0,n.kind){case 213:case 214:case 215:case 170:case 286:nA(n);break;case 218:case 219:case 174:case 173:Xmt(n);break;case 177:case 178:sWe(n);break;case 231:hgt(n);break;case 168:N_t(n);break;case 285:ift(n);break;case 284:aft(n);break;case 216:case 234:case 217:Smt(n);break;case 222:mo(n.expression);break;case 226:b3(n)&&nA(n);break}C=d,(c=sr)==null||c.pop()}function nvt(n){var a,c;(a=sr)==null||a.push(sr.Phase.Check,"checkSourceFile",{path:n.path},!0),rl("beforeCheck"),rvt(n),rl("afterCheck"),Qp("Check","beforeCheck","afterCheck"),(c=sr)==null||c.pop()}function tFe(n,a){if(a)return!1;switch(n){case 0:return!!V.noUnusedLocals;case 1:return!!V.noUnusedParameters;default:return N.assertNever(n)}}function nFe(n){return pf.get(n.path)||et}function rvt(n){const a=Zr(n);if(!(a.flags&1)){if(YC(n,V,e))return;Nyt(n),jo(T1),jo(A1),jo(sb),jo(lb),jo(pg),Xe(n.statements,Ra),Ra(n.endOfFileToken),evt(n),Fp(n)&&jb(n),r(()=>{!n.isDeclarationFile&&(V.noUnusedLocals||V.noUnusedParameters)&&yWe(nFe(n),(c,d,_)=>{!eR(c)&&tFe(d,!!(c.flags&33554432))&&ts.add(_)}),n.isDeclarationFile||Rht()}),V.importsNotUsedAsValues===2&&!n.isDeclarationFile&&sc(n)&&Jgt(n),Fp(n)&&QWe(n),T1.length&&(Xe(T1,Cht),jo(T1)),A1.length&&(Xe(A1,Pht),jo(A1)),sb.length&&(Xe(sb,wht),jo(sb)),lb.length&&(Xe(lb,Wht),jo(lb)),a.flags|=1}}function rFe(n,a){try{return i=a,ivt(n)}finally{i=void 0}}function Zye(){for(const n of t)n();t=[]}function ebe(n){Zye();const a=r;r=c=>c(),nvt(n),r=a}function ivt(n){if(n){Zye();const a=ts.getGlobalDiagnostics(),c=a.length;ebe(n);const d=ts.getDiagnostics(n.fileName),_=ts.getGlobalDiagnostics();if(_!==a){const v=Xte(a,_,HC);return So(v,d)}else if(c===0&&_.length>0)return So(_,d);return d}return Xe(e.getSourceFiles(),ebe),ts.getDiagnostics()}function ovt(){return Zye(),ts.getGlobalDiagnostics()}function avt(n,a){if(n.flags&67108864)return[];const c=ca();let d=!1;return _(),c.delete("this"),age(c);function _(){for(;n;){switch(dh(n)&&n.locals&&!Ch(n)&&x(n.locals,a),n.kind){case 312:if(!sc(n))break;case 267:k(Ir(n).exports,a&2623475);break;case 266:x(Ir(n).exports,a&8);break;case 231:n.name&&v(n.symbol,a);case 263:case 264:d||x(Cb(Ir(n)),a&788968);break;case 218:n.name&&v(n.symbol,a);break}tie(n)&&v(Bt,a),d=aa(n),n=n.parent}x(Se,a)}function v(F,H){if(RR(F)&H){const re=F.escapedName;c.has(re)||c.set(re,F)}}function x(F,H){H&&F.forEach(re=>{v(re,H)})}function k(F,H){H&&F.forEach(re=>{!pl(re,281)&&!pl(re,280)&&re.escapedName!=="default"&&v(re,H)})}}function svt(n){return n.kind===80&&kR(n.parent)&&Lo(n.parent)===n}function iFe(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function lvt(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function oFe(n,a){let c,d=au(n);for(;d&&!(c=a(d));)d=au(d);return c}function cvt(n){return!!Vn(n,a=>Ml(a)&&Kf(a.body)||qo(a)?!0:di(a)||Bs(a)?"quit":!1)}function tbe(n,a){return!!oFe(n,c=>c===a)}function uvt(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function nte(n){return uvt(n)!==void 0}function dvt(n){switch(zl(n.parent.parent)){case 1:case 3:return _f(n.parent);case 5:if(Fr(n.parent)&&DR(n.parent)===n)return;case 4:case 2:return Ir(n.parent.parent)}}function pvt(n){let a=n.parent;for(;Id(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function fvt(n){if(n.expression.kind===110){const a=Fd(n,!1,!1);if(ea(a)){const c=h4e(a);if(c){const d=mE(c,void 0),_=v4e(c,d);return _&&!Nt(_)}}}}function aFe(n){if(wg(n))return _f(n.parent);if(lr(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!qi(n)&&!b0(n)&&!fvt(n.parent)){const a=dvt(n);if(a)return a}if(n.parent.kind===277&&Bl(n)){const a=Hs(n,2998271,!0);if(a&&a!==ft)return a}else if(Qd(n)&&nte(n)){const a=f0(n,271);return N.assert(a!==void 0),ZI(n,!0)}if(Qd(n)){const a=pvt(n);if(a){Ti(a);const c=Zr(n).resolvedSymbol;return c===ft?void 0:c}}for(;Vie(n);)n=n.parent;if(lvt(n)){let a=0;n.parent.kind===233?(a=$h(n)?788968:111551,y3(n.parent)&&(a|=111551)):a=1920,a|=2097152;const c=Bl(n)?Hs(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return KL(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){N.assert(!lr(n));const a=mie(n.parent);return a&&a.symbol}if(Qh(n)){if(Fl(n))return;const a=Vn(n,Jm(xA,SP,b0)),c=a?901119:111551;if(n.kind===80){if(cR(n)&&_x(n)){const _=Iee(n.parent);return _===ft?void 0:_}const d=Hs(n,c,!0,!0,d0(n));if(!d&&a){const _=Vn(n,Jm(di,md));if(_)return gB(n,!0,Ir(_))}if(d&&a){const _=AS(n);if(_&&i1(_)&&_===d.valueDeclaration)return Hs(n,c,!0,!0,Un(_))||d}return d}else{if(qi(n))return Dee(n);if(n.kind===211||n.kind===166){const d=Zr(n);return d.resolvedSymbol?d.resolvedSymbol:(n.kind===211?(xee(n,0),d.resolvedSymbol||(d.resolvedSymbol=sFe(nc(n.expression),py(n.name)))):H4e(n,0),!d.resolvedSymbol&&a&&Id(n)?gB(n):d.resolvedSymbol)}else if(b0(n))return gB(n)}}else if(iFe(n)){const a=n.parent.kind===183?788968:1920,c=Hs(n,a,!1,!0);return c&&c!==ft?c:DZ(n)}if(n.parent.kind===182)return Hs(n,1)}function sFe(n,a){const c=oge(n,a);if(c.length&&n.members){const d=IZ(p_(n).members);if(c===gd(n))return d;if(d){const _=Ki(d),v=eo(c,k=>k.declaration),x=Wt(v,as).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(x))return _.filteredIndexSymbolCache.get(x);{const k=Ka(131072,"__index");return k.declarations=eo(c,F=>F.declaration),k.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:Vm(k.declarations[0].parent),_.filteredIndexSymbolCache.set(x,k),k}}}}function gB(n,a,c){if(Qd(n)){let x=Hs(n,901119,a,!0,d0(n));if(!x&&Ve(n)&&c&&(x=rs(Jd(Dp(c),n.escapedText,901119))),x)return x}const d=Ve(n)?c:gB(n.left,a,c),_=Ve(n)?n.escapedText:n.right.escapedText;if(d){const v=d.flags&111551&&va(dr(d),"prototype"),x=v?dr(v):Zs(d);return va(x,_)}}function Vm(n,a){if($i(n))return sc(n)?rs(n.symbol):void 0;const{parent:c}=n,d=c.parent;if(!(n.flags&67108864)){if(WIe(n)){const _=Ir(c);return SA(n.parent)&&n.parent.propertyName===n?qve(_):_}else if($L(n))return Ir(c.parent);if(n.kind===80){if(nte(n))return aFe(n);if(c.kind===208&&d.kind===206&&n===c.propertyName){const _=gx(d),v=va(_,n.escapedText);if(v)return v}else if(_P(c)&&c.name===n)return c.keywordToken===105&&Sr(n)==="target"?yye(c).symbol:c.keywordToken===102&&Sr(n)==="meta"?c8e().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!kA(n))return aFe(n);case 110:const _=Fd(n,!1,!1);if(ea(_)){const k=dm(_);if(k.thisParameter)return k.thisParameter}if(K4(n))return mo(n).symbol;case 197:return FZ(n).symbol;case 108:return mo(n).symbol;case 137:const v=n.parent;return v&&v.kind===176?v.parent.symbol:void 0;case 11:case 15:if(c0(n.parent.parent)&&TC(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||lr(n)&&Td(n.parent,!1)||zp(n.parent)||Jy(n.parent)&&Oy(n.parent.parent)&&n.parent.parent.argument===n.parent)return hd(n,n,a);if(sa(c)&&SS(c)&&c.arguments[1]===n)return Ir(c);case 9:const x=$s(c)?c.argumentExpression===n?Ru(c.expression):void 0:Jy(c)&&WS(d)?Ti(d.objectType):void 0;return x&&va(x,_l(n.text));case 90:case 100:case 39:case 86:return _f(n.parent);case 205:return Oy(n)?Vm(n.argument.literal,a):void 0;case 95:return kl(n.parent)?N.checkDefined(n.parent.symbol):void 0;case 102:case 105:return _P(n.parent)?D3e(n.parent).symbol:void 0;case 104:if(mr(n.parent)){const k=Ru(n.parent.right),F=Dye(k);return(F==null?void 0:F.symbol)??k.symbol}return;case 236:return mo(n).symbol;case 295:if(cR(n)&&_x(n)){const k=Iee(n.parent);return k===ft?void 0:k}default:return}}}function mvt(n){if(Ve(n)&&Fr(n.parent)&&n.parent.name===n){const a=py(n),c=Ru(n.parent.expression),d=c.flags&1048576?c.types:[c];return Do(d,_=>mn(gd(_),v=>lx(a,v.keyType)))}}function _vt(n){if(n&&n.kind===304)return Hs(n.name,2208703)}function hvt(n){return Ku(n)?n.parent.parent.moduleSpecifier?tv(n.parent.parent,n):Hs(n.propertyName||n.name,2998271):Hs(n,2998271)}function gx(n){if($i(n)&&!sc(n)||n.flags&67108864)return _t;const a=$j(n),c=a&&Bf(Ir(a.class));if($h(n)){const d=Ti(n);return c?Jp(d,c.thisType):d}if(Qh(n))return lFe(n);if(c&&!a.isImplements){const d=Kc(Cp(c));return d?Jp(d,c.thisType):_t}if(kR(n)){const d=Ir(n);return Zs(d)}if(svt(n)){const d=Vm(n);return d?Zs(d):_t}if($a(n))return OT(n,!0,0)||_t;if(Ju(n)){const d=Ir(n);return d?dr(d):_t}if(WIe(n)){const d=Vm(n);return d?dr(d):_t}if(ta(n))return OT(n.parent,!0,0)||_t;if(nte(n)){const d=Vm(n);if(d){const _=Zs(d);return Jt(_)?dr(d):_}}return _P(n.parent)&&n.parent.keywordToken===n.kind?D3e(n.parent):aI(n)?bge(!1):_t}function rte(n){if(N.assert(n.kind===210||n.kind===209),n.parent.kind===250){const _=fB(n.parent);return iA(n,_||_t)}if(n.parent.kind===226){const _=Ru(n.parent.right);return iA(n,_||_t)}if(n.parent.kind===303){const _=oa(n.parent.parent,La),v=rte(_)||_t,x=tR(_.properties,n.parent);return H3e(_,v,x)}const a=oa(n.parent,fd),c=rte(a)||_t,d=hy(65,c,Oe,n.parent)||_t;return q3e(a,c,a.elements.indexOf(n),d)}function gvt(n){const a=rte(oa(n.parent.parent,mC));return a&&va(a,n.escapedText)}function lFe(n){return zC(n)&&(n=n.parent),yd(Ru(n))}function cFe(n){const a=_f(n.parent);return aa(n)?dr(a):Zs(a)}function uFe(n){const a=n.name;switch(a.kind){case 80:return Xd(Sr(a));case 9:case 11:return Xd(a.text);case 167:const c=Tg(a);return xu(c,12288)?c:ke;default:return N.fail("Unsupported property name.")}}function nbe(n){n=Ld(n);const a=ca(gs(n)),c=Xo(n,0).length?Xn:Xo(n,1).length?yo:void 0;return c&&Xe(gs(c),d=>{a.has(d.escapedName)||a.set(d.escapedName,d)}),X0(a)}function ite(n){return Xo(n,0).length!==0||Xo(n,1).length!==0}function dFe(n){const a=vvt(n);return a?Do(a,dFe):[n]}function vvt(n){if(xl(n)&6)return eo(Ki(n).containingType.types,a=>va(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:c,syntheticOrigin:d}}=n;return a?[a,c]:d?[d]:hA(yvt(n))}}function yvt(n){let a,c=n;for(;c=Ki(c).target;)a=c;return a}function bvt(n){if(al(n))return!1;const a=No(n,Ve);if(!a)return!1;const c=a.parent;return c?!((Fr(c)||hc(c))&&c.name===a)&&i6(a)===Bt:!1}function Evt(n){let a=hd(n.parent,n);if(!a||vC(a))return!0;const c=sy(a);a=Rp(a);const d=Ki(a);return d.exportsSomeValue===void 0&&(d.exportsSomeValue=c?!!(a.flags&111551):zc(Mh(a),_)),d.exportsSomeValue;function _(v){return v=Vl(v),v&&!!(Au(v)&111551)}}function Svt(n){return _L(n.parent)&&n===n.parent.name}function Tvt(n,a){var c;const d=No(n,Ve);if(d){let _=i6(d,Svt(d));if(_){if(_.flags&1048576){const x=rs(_.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;_=x}const v=Cd(_);if(v){if(v.flags&512&&((c=v.valueDeclaration)==null?void 0:c.kind)===312){const x=v.valueDeclaration,k=Un(d);return x!==k?void 0:x}return Vn(d.parent,x=>_L(x)&&Ir(x)===v)}}}}function Avt(n){const a=Qoe(n);if(a)return a;const c=No(n,Ve);if(c){const d=Wvt(c);if(IT(d,111551)&&!Of(d,111551))return wm(d)}}function Ivt(n){return n.valueDeclaration&&$a(n.valueDeclaration)&&Hx(n.valueDeclaration).parent.kind===299}function pFe(n){if(n.flags&418&&n.valueDeclaration&&!$i(n.valueDeclaration)){const a=Ki(n);if(a.isDeclarationWithCollidingName===void 0){const c=mh(n.valueDeclaration);if(kre(c)||Ivt(n)){const d=Zr(n.valueDeclaration);if(yl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(d.flags&16384){const _=d.flags&32768,v=Py(c,!1),x=c.kind===241&&Py(c.parent,!1);a.isDeclarationWithCollidingName=!Gre(c)&&(!_||!v&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function xvt(n){if(!al(n)){const a=No(n,Ve);if(a){const c=i6(a);if(c&&pFe(c))return c.valueDeclaration}}}function Rvt(n){const a=No(n,Ju);if(a){const c=Ir(a);if(c)return pFe(c)}return!1}function fFe(n){switch(N.assert(It),n.kind){case 271:return ote(Ir(n));case 273:case 274:case 276:case 281:const a=Ir(n);return!!a&&ote(a,!0);case 278:const c=n.exportClause;return!!c&&(Eh(c)||bt(c.elements,fFe));case 277:return n.expression&&n.expression.kind===80?ote(Ir(n),!0):!0}return!1}function Dvt(n){const a=No(n,eu);return a===void 0||a.parent.kind!==312||!uR(a)?!1:ote(Ir(a))&&a.moduleReference&&!Fl(a.moduleReference)}function ote(n,a){if(!n)return!1;const c=hf(Oc(n));return c===ft?!a||!Of(n):!!(Au(n,a,!0)&111551)&&(KE(V)||!r6(c))}function r6(n){return Rye(n)||!!n.constEnumOnlyModule}function ate(n,a){if(N.assert(It),fb(n)){const c=Ir(n),d=c&&Ki(c);if(d!=null&&d.referenced)return!0;const _=Ki(c).aliasTarget;if(_&&ud(n)&32&&Au(_)&111551&&(KE(V)||!r6(_)))return!0}return a?!!Uo(n,c=>ate(c,a)):!1}function mFe(n){if(Kf(n.body)){if(My(n)||Mv(n))return!1;const a=Ir(n),c=z1(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function _Fe(n){return!!X&&!S8(n)&&!e_(n)&&!!n.initializer&&!Qr(n,31)}function Nvt(n){return X&&S8(n)&&!n.initializer&&Qr(n,31)}function Cvt(n){const a=No(n,Tc);if(!a)return!1;const c=Ir(a);return!c||!(c.flags&16)?!1:!!zc(Dp(c),d=>d.flags&111551&&X3(d.valueDeclaration))}function Pvt(n){const a=No(n,Tc);if(!a)return et;const c=Ir(a);return c&&gs(dr(c))||et}function ON(n){var a;const c=n.id||0;return c<0||c>=S1.length?0:((a=S1[c])==null?void 0:a.flags)||0}function WN(n){return KWe(n.parent),Zr(n).enumMemberValue}function hFe(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function rbe(n){if(n.kind===306)return WN(n);const a=Zr(n).resolvedSymbol;if(a&&a.flags&8){const c=a.valueDeclaration;if(ME(c.parent))return WN(c)}}function ibe(n){return!!(n.flags&524288)&&Xo(n,0).length>0}function Mvt(n,a){var c;const d=No(n,Qd);if(!d||a&&(a=No(a),!a))return 0;let _=!1;if(Id(d)){const re=Hs(Gp(d),111551,!0,!0,a);_=!!((c=re==null?void 0:re.declarations)!=null&&c.every(s0))}const v=Hs(d,111551,!0,!0,a),x=v&&v.flags&2097152?Oc(v):v;_||(_=!!(v&&Of(v,111551)));const k=Hs(d,788968,!0,!0,a),F=k&&k.flags&2097152?Oc(k):k;if(v||_||(_=!!(k&&Of(k,788968))),x&&x===F){const re=Ege(!1);if(re&&x===re)return 9;const be=dr(x);if(be&&is(be))return _?10:1}if(!F)return _?11:0;const H=Zs(F);return Jt(H)?_?11:0:H.flags&3?11:xu(H,245760)?2:xu(H,528)?6:xu(H,296)?3:xu(H,2112)?4:xu(H,402653316)?5:Wa(H)?7:xu(H,12288)?8:ibe(H)?10:Uf(H)?7:11}function Lvt(n,a,c,d,_){const v=No(n,Qre);if(!v)return w.createToken(133);const x=Ir(v);let k=x&&!(x.flags&133120)?q1(dr(x)):_t;return k.flags&8192&&k.symbol===x&&(c|=1048576),_&&(k=Bb(k)),At.typeToTypeNode(k,a,c|1024,d)}function kvt(n,a,c,d){const _=No(n,ea);if(!_)return w.createToken(133);const v=dm(_);return At.typeToTypeNode(ps(v),a,c|1024,d)}function wvt(n,a,c,d){const _=No(n,yt);if(!_)return w.createToken(133);const v=Kp(lFe(_));return At.typeToTypeNode(v,a,c|1024,d)}function Ovt(n){return Se.has(_l(n))}function i6(n,a){const c=Zr(n).resolvedSymbol;if(c)return c;let d=n;if(a){const _=n.parent;Ju(_)&&n===_.name&&(d=$(_))}return yl(d,n.escapedText,3257279,void 0,void 0,!0)}function Wvt(n){const a=Zr(n).resolvedSymbol;return a&&a!==ft?a:yl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Fvt(n){if(!al(n)){const a=No(n,Ve);if(a){const c=i6(a);if(c)return hf(c).valueDeclaration}}}function zvt(n){if(!al(n)){const a=No(n,Ve);if(a){const c=i6(a);if(c)return mn(hf(c).declarations,d=>{switch(d.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function Bvt(n){return w4(n)||Oi(n)&&yB(n)?j1(dr(Ir(n))):!1}function Gvt(n,a,c){const d=n.flags&1056?At.symbolToExpression(n.symbol,111551,a,void 0,c):n===Gn?w.createTrue():n===en&&w.createFalse();if(d)return d;const _=n.value;return typeof _=="object"?w.createBigIntLiteral(_):typeof _=="string"?w.createStringLiteral(_):_<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-_)):w.createNumericLiteral(_)}function Vvt(n,a){const c=dr(Ir(n));return Gvt(c,n,a)}function gFe(n){return n?(B0(n),Un(n).localJsxFactory||$g):$g}function obe(n){if(n){const a=Un(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const c=a.pragmas.get("jsxfrag"),d=To(c)?c[0]:c;if(d)return a.localJsxFragmentFactory=pI(d.arguments.factory,se),a.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return pI(V.jsxFragmentFactory,se)}function jvt(){const n=e.getResolvedTypeReferenceDirectives();let a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:F},H,re)=>{if(!(F!=null&&F.resolvedFileName))return;const be=e.getSourceFile(F.resolvedFileName);be&&k(be,H,re)})),{getReferencedExportContainer:Tvt,getReferencedImportDeclaration:Avt,getReferencedDeclarationWithCollidingName:xvt,isDeclarationWithCollidingName:Rvt,isValueAliasDeclaration:F=>{const H=No(F);return H&&It?fFe(H):!0},hasGlobalName:Ovt,isReferencedAliasDeclaration:(F,H)=>{const re=No(F);return re&&It?ate(re,H):!0},getNodeCheckFlags:F=>{const H=No(F);return H?ON(H):0},isTopLevelValueImportEqualsWithEntityName:Dvt,isDeclarationVisible:l_,isImplementationOfOverload:mFe,isRequiredInitializedParameter:_Fe,isOptionalUninitializedParameterProperty:Nvt,isExpandoFunctionDeclaration:Cvt,getPropertiesOfContainerFunction:Pvt,createTypeOfDeclaration:Lvt,createReturnTypeOfSignatureDeclaration:kvt,createTypeOfExpression:wvt,createLiteralConstValue:Vvt,isSymbolAccessible:wi,isEntityNameVisible:bb,getConstantValue:F=>{const H=No(F,hFe);return H?rbe(H):void 0},collectLinkedAliases:LM,getReferencedValueDeclaration:Fvt,getReferencedValueDeclarations:zvt,getTypeReferenceSerializationKind:Mvt,isOptionalParameter:S8,moduleExportsSomeValue:Evt,isArgumentsLocalBinding:bvt,getExternalModuleFileFromDeclaration:F=>{const H=No(F,jre);return H&&abe(H)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:v,isLiteralConstDeclaration:Bvt,isLateBound:F=>{const H=No(F,Ju),re=H&&Ir(H);return!!(re&&xl(re)&4096)},getJsxFactoryEntity:gFe,getJsxFragmentFactoryEntity:obe,getAllAccessorDeclarations(F){F=No(F,u4);const H=F.kind===178?177:178,re=pl(Ir(F),H),be=re&&re.pos<F.pos?re:F,ge=re&&re.pos<F.pos?F:re,Je=F.kind===178?F:re,gt=F.kind===177?F:re;return{firstAccessor:be,secondAccessor:ge,setAccessor:Je,getAccessor:gt}},getSymbolOfExternalModuleSpecifier:F=>nv(F,F,void 0),isBindingCapturedByNode:(F,H)=>{const re=No(F),be=No(H);return!!re&&!!be&&(Oi(be)||$a(be))&&fpt(re,be)},getDeclarationStatementsForSourceFile:(F,H,re,be)=>{const ge=No(F);N.assert(ge&&ge.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Je=Ir(F);return Je?Je.exports?At.symbolTableToDeclarationStatements(Je.exports,F,H,re,be):[]:F.locals?At.symbolTableToDeclarationStatements(F.locals,F,H,re,be):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:F=>{const H=No(F),re=H&&ls(H)?H.text:void 0;return re!==void 0?SZ(re,!0):void 0}};function c(F){const H=Un(F);if(!H.symbol)return!1;const re=abe(F);if(!re||re===H)return!1;const be=Mh(H.symbol);for(const ge of zo(be.values()))if(ge.mergeId){const Je=rs(ge);if(Je.declarations){for(const gt of Je.declarations)if(Un(gt)===re)return!0}}return!1}function d(F){return F.parent&&F.parent.kind===233&&F.parent.parent&&F.parent.parent.kind===298}function _(F){if(!a)return;let H;F.parent.kind===167?H=1160127:(H=790504,(F.kind===80&&DS(F)||F.kind===211&&!d(F))&&(H=1160127));const re=Hs(F,H,!0);return re&&re!==ft?v(re,H):void 0}function v(F,H){if(!a||!x(F))return;let re;for(const be of F.declarations)if(be.symbol&&be.symbol.flags&H){const ge=Un(be),Je=a.get(ge.path);if(Je)(re||(re=[])).push(Je);else return}return re}function x(F){if(!F.declarations)return!1;let H=F;for(;;){const re=Cd(H);if(re)H=re;else break}if(H.valueDeclaration&&H.valueDeclaration.kind===312&&H.flags&512)return!1;for(const re of F.declarations){const be=Un(re);if(a.has(be.path))return!0}return!1}function k(F,H,re){if(!a.has(F.path)){a.set(F.path,[H,re]);for(const{fileName:be}of F.referencedFiles){const ge=s7(be,F.fileName),Je=e.getSourceFile(ge);Je&&k(Je,H,re||F.impliedNodeFormat)}}}}function abe(n){const a=n.kind===267?ri(n.name,Na):fR(n),c=nv(a,a,void 0);if(c)return pl(c,312)}function Uvt(){for(const a of e.getSourceFiles())Pse(a,V);Es=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!Fp(a)){const c=a.locals.get("globalThis");if(c!=null&&c.declarations)for(const d of c.declarations)ts.add(kr(d,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));a_(Se,a.locals)}a.jsGlobalAugmentations&&a_(Se,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(sm=So(sm,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((d,_)=>{Se.has(_)||Se.set(_,d)})}if(n)for(const a of n)for(const c of a)A_(c.parent)&&QD(c);if(I1(Se,fT,f.Declaration_name_conflicts_with_built_in_global_identifier_0),Ki(je).type=Lt,Ki(Bt).type=tc("IArguments",0,!0),Ki(ft).type=_t,Ki(ot).type=Wf(16,ot),$o=tc("Array",1,!0),Pe=tc("Object",0,!0),Ot=tc("Function",0,!0),Xn=pe&&tc("CallableFunction",0,!0)||Ot,yo=pe&&tc("NewableFunction",0,!0)||Ot,Zl=tc("String",0,!0),yc=tc("Number",0,!0),ul=tc("Boolean",0,!0),vl=tc("RegExp",0,!0),ec=Vu(j),Hc=Vu(it),Hc===Ca&&(Hc=Ls(void 0,K,et,et,et)),na=_8e("ReadonlyArray",1)||$o,df=na?I8(na,[j]):ec,Gl=_8e("ThisType",1),n)for(const a of n)for(const c of a)A_(c.parent)||QD(c);Es.forEach(({firstFile:a,secondFile:c,conflictingSymbols:d})=>{if(d.size<8)d.forEach(({isBlockScoped:_,firstFileLocations:v,secondFileLocations:x},k)=>{const F=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(const H of v)Qg(H,F,k,x);for(const H of x)Qg(H,F,k,v)});else{const _=zo(d.keys()).join(", ");ts.add(Ma(kr(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),kr(c,f.Conflicts_are_in_this_file))),ts.add(Ma(kr(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),kr(a,f.Conflicts_are_in_this_file)))}}),Es=void 0}function Dc(n,a){if((s&a)!==a&&V.importHelpers){const c=Un(n);if(RA(c,V)&&!(n.flags&33554432)){const d=qvt(c,n);if(d!==ft){const _=a&~s;for(let v=1;v<=33554432;v<<=1)if(_&v)for(const x of Hvt(v)){if(o.has(x))continue;o.add(x);const k=Vl(Jd(Mh(d),_l(x),111551));k?v&524288?bt(z1(k),F=>Xp(F)>3)||qe(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vy,x,4):v&1048576?bt(z1(k),F=>Xp(F)>4)||qe(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vy,x,5):v&1024&&(bt(z1(k),F=>Xp(F)>2)||qe(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vy,x,3)):qe(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Vy,x)}}s|=a}}}function Hvt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ne?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return N.fail("Unrecognized helper")}}function qvt(n,a){return l||(l=H_(n,Vy,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ft),l}function Ig(n){var a;const c=Xvt(n)||Jvt(n);if(c!==void 0)return c;if(Ao(n)&&GE(n))return _u(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const d=Ll(n)?n.declarationList.flags&7:0;let _,v,x,k,F,H=0,re=!1,be=!1;for(const ge of n.modifiers)if(Eu(ge)){if(J4(ne,n,n.parent,n.parent.parent)){if(ne&&(n.kind===177||n.kind===178)){const Je=NS(n.parent.members,n);if(Tf(Je.firstAccessor)&&n===Je.secondAccessor)return _u(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Kf(n.body)?_u(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):_u(n,f.Decorators_are_not_valid_here);if(H&-34849)return Sn(ge,f.Decorators_are_not_valid_here);if(be&&H&98303){N.assertIsDefined(F);const Je=Un(ge);return Q1(Je)?!1:(Ma(qe(ge,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),kr(F,f.Decorator_used_before_export_here)),!0)}H|=32768,H&98303?H&32&&(re=!0):be=!0,F??(F=ge)}else{if(ge.kind!==148){if(n.kind===171||n.kind===173)return Sn(ge,f._0_modifier_cannot_appear_on_a_type_member,pa(ge.kind));if(n.kind===181&&(ge.kind!==126||!di(n.parent)))return Sn(ge,f._0_modifier_cannot_appear_on_an_index_signature,pa(ge.kind))}if(ge.kind!==103&&ge.kind!==147&&ge.kind!==87&&n.kind===168)return Sn(ge,f._0_modifier_cannot_appear_on_a_type_parameter,pa(ge.kind));switch(ge.kind){case 87:{if(n.kind!==266&&n.kind!==168)return Sn(n,f.A_class_member_cannot_have_the_0_keyword,pa(87));const Dt=om(n.parent)&&p0(n.parent)||n.parent;if(n.kind===168&&!(Bs(Dt)||di(Dt)||yh(Dt)||zR(Dt)||ZA(Dt)||Bk(Dt)||vh(Dt)))return Sn(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,pa(ge.kind));break}case 164:if(H&16)return Sn(ge,f._0_modifier_already_seen,"override");if(H&128)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(H&8)return Sn(ge,f._0_modifier_must_precede_1_modifier,"override","readonly");if(H&512)return Sn(ge,f._0_modifier_must_precede_1_modifier,"override","accessor");if(H&1024)return Sn(ge,f._0_modifier_must_precede_1_modifier,"override","async");H|=16,k=ge;break;case 125:case 124:case 123:const Je=wT(OA(ge.kind));if(H&7)return Sn(ge,f.Accessibility_modifier_already_seen);if(H&16)return Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"override");if(H&256)return Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"static");if(H&512)return Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"accessor");if(H&8)return Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"readonly");if(H&1024)return Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"async");if(n.parent.kind===268||n.parent.kind===312)return Sn(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,Je);if(H&64)return ge.kind===123?Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,Je,"abstract"):Sn(ge,f._0_modifier_must_precede_1_modifier,Je,"abstract");if(sd(n))return Sn(ge,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);H|=OA(ge.kind);break;case 126:if(H&256)return Sn(ge,f._0_modifier_already_seen,"static");if(H&8)return Sn(ge,f._0_modifier_must_precede_1_modifier,"static","readonly");if(H&1024)return Sn(ge,f._0_modifier_must_precede_1_modifier,"static","async");if(H&512)return Sn(ge,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return Sn(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return Sn(ge,f._0_modifier_cannot_appear_on_a_parameter,"static");if(H&64)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&16)return Sn(ge,f._0_modifier_must_precede_1_modifier,"static","override");H|=256,_=ge;break;case 129:if(H&512)return Sn(ge,f._0_modifier_already_seen,"accessor");if(H&8)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(H&128)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return Sn(ge,f.accessor_modifier_can_only_appear_on_a_property_declaration);H|=512;break;case 148:if(H&8)return Sn(ge,f._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return Sn(ge,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(H&512)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");H|=8;break;case 95:if(V.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(G===1||Un(n).impliedNodeFormat===1))return Sn(ge,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(H&32)return Sn(ge,f._0_modifier_already_seen,"export");if(H&128)return Sn(ge,f._0_modifier_must_precede_1_modifier,"export","declare");if(H&64)return Sn(ge,f._0_modifier_must_precede_1_modifier,"export","abstract");if(H&1024)return Sn(ge,f._0_modifier_must_precede_1_modifier,"export","async");if(di(n.parent))return Sn(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return Sn(ge,f._0_modifier_cannot_appear_on_a_parameter,"export");if(d===4)return Sn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(d===6)return Sn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");H|=32;break;case 90:const gt=n.parent.kind===312?n.parent:n.parent.parent;if(gt.kind===267&&!ku(gt))return Sn(ge,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(d===4)return Sn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(d===6)return Sn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(H&32){if(re)return Sn(F,f.Decorators_are_not_valid_here)}else return Sn(ge,f._0_modifier_must_precede_1_modifier,"export","default");H|=2048;break;case 138:if(H&128)return Sn(ge,f._0_modifier_already_seen,"declare");if(H&1024)return Sn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(H&16)return Sn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(di(n.parent)&&!qo(n))return Sn(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return Sn(ge,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(d===4)return Sn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(d===6)return Sn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return Sn(ge,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(sd(n))return Sn(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(H&512)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");H|=128,v=ge;break;case 128:if(H&64)return Sn(ge,f._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return Sn(ge,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&Qr(n.parent,64))){const Dt=n.kind===172?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return Sn(ge,Dt)}if(H&256)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&2)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(H&1024&&x)return Sn(x,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(H&16)return Sn(ge,f._0_modifier_must_precede_1_modifier,"abstract","override");if(H&512)return Sn(ge,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(ad(n)&&n.name.kind===81)return Sn(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");H|=64;break;case 134:if(H&1024)return Sn(ge,f._0_modifier_already_seen,"async");if(H&128||n.parent.flags&33554432)return Sn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return Sn(ge,f._0_modifier_cannot_appear_on_a_parameter,"async");if(H&64)return Sn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");H|=1024,x=ge;break;case 103:case 147:{const Dt=ge.kind===103?8192:16384,an=ge.kind===103?"in":"out",cn=om(n.parent)&&(p0(n.parent)||In((a=hR(n.parent))==null?void 0:a.tags,US))||n.parent;if(n.kind!==168||cn&&!(md(cn)||di(cn)||xm(cn)||US(cn)))return Sn(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,an);if(H&Dt)return Sn(ge,f._0_modifier_already_seen,an);if(Dt&8192&&H&16384)return Sn(ge,f._0_modifier_must_precede_1_modifier,"in","out");H|=Dt;break}}}return n.kind===176?H&256?Sn(_,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):H&16?Sn(k,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):H&1024?Sn(x,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&H&128?Sn(v,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&H&31&&ta(n.name)?Sn(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&H&31&&n.dotDotDotToken?Sn(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):H&1024?$vt(n,x):!1}function Jvt(n){if(!n.modifiers)return!1;const a=Kvt(n);return a&&_u(a,f.Modifiers_cannot_appear_here)}function ste(n,a){const c=In(n.modifiers,Aa);return c&&c.kind!==a?c:void 0}function Kvt(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return In(n.modifiers,Aa);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return ste(n,134);case 263:case 185:return ste(n,128);case 231:case 264:case 265:return In(n.modifiers,Aa);case 243:return n.declarationList.flags&4?ste(n,135):In(n.modifiers,Aa);case 266:return ste(n,87);default:N.assertNever(n)}}}function Xvt(n){const a=Yvt(n);return a&&_u(a,f.Decorators_are_not_valid_here)}function Yvt(n){return NH(n)?In(n.modifiers,Eu):void 0}function $vt(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return Sn(a,f._0_modifier_cannot_be_used_here,"async")}function vx(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?Z1(n[0],n.end-1,1,a):!1}function vFe(n,a){if(n&&n.length===0){const c=n.pos-1,d=Pa(a.text,n.end)+1;return Z1(a,c,d-c,f.Type_parameter_list_cannot_be_empty)}return!1}function Qvt(n){let a=!1;const c=n.length;for(let d=0;d<c;d++){const _=n[d];if(_.dotDotDotToken){if(d!==c-1)return Sn(_.dotDotDotToken,f.A_rest_parameter_must_be_last_in_a_parameter_list);if(_.flags&33554432||vx(n,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),_.questionToken)return Sn(_.questionToken,f.A_rest_parameter_cannot_be_optional);if(_.initializer)return Sn(_.name,f.A_rest_parameter_cannot_have_an_initializer)}else if(S8(_)){if(a=!0,_.questionToken&&_.initializer)return Sn(_.name,f.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!_.initializer)return Sn(_.name,f.A_required_parameter_cannot_follow_an_optional_parameter)}}function Zvt(n){return mn(n,a=>!!a.initializer||ta(a.name)||Xh(a))}function eyt(n){if(se>=3){const a=n.body&&Ko(n.body)&&IH(n.body.statements);if(a){const c=Zvt(n.parameters);if(Ne(c)){Xe(c,_=>{Ma(qe(_,f.This_parameter_is_not_allowed_with_use_strict_directive),kr(a,f.use_strict_directive_used_here))});const d=c.map((_,v)=>v===0?kr(_,f.Non_simple_parameter_declared_here):kr(_,f.and_here));return Ma(qe(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...d),!0}}}return!1}function lte(n){const a=Un(n);return Ig(n)||vFe(n.typeParameters,a)||Qvt(n.parameters)||nyt(n,a)||Bs(n)&&eyt(n)}function tyt(n){const a=Un(n);return syt(n)||vFe(n.typeParameters,a)}function nyt(n,a){if(!Gs(n))return!1;n.typeParameters&&!(Ne(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Sc(a.fileName,[".mts",".cts"])&&Sn(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:c}=n,d=ys(a,c.pos).line,_=ys(a,c.end).line;return d!==_&&Sn(c,f.Line_terminator_not_permitted_before_arrow)}function ryt(n){const a=n.parameters[0];if(n.parameters.length!==1)return Sn(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(vx(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return Sn(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(g3(a))return Sn(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return Sn(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return Sn(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return Sn(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);const c=Ti(a.type);return Gm(c,d=>!!(d.flags&8576))||AN(c)?Sn(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):cp(c,xZ)?n.type?!1:Sn(n,f.An_index_signature_must_have_a_type_annotation):Sn(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function iyt(n){return Ig(n)||ryt(n)}function oyt(n,a){if(a&&a.length===0){const c=Un(n),d=a.pos-1,_=Pa(c.text,a.end)+1;return Z1(c,d,_-d,f.Type_argument_list_cannot_be_empty)}return!1}function vB(n,a){return vx(a)||oyt(n,a)}function ayt(n){return n.questionDotToken||n.flags&64?Sn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function yFe(n){const a=n.types;if(vx(a))return!0;if(a&&a.length===0){const c=pa(n.token);return Z1(n,a.pos,0,f._0_list_cannot_be_empty,c)}return bt(a,bFe)}function bFe(n){return Vv(n)&&mP(n.expression)&&n.typeArguments?Sn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):vB(n,n.typeArguments)}function syt(n){let a=!1,c=!1;if(!Ig(n)&&n.heritageClauses)for(const d of n.heritageClauses){if(d.token===96){if(a)return _u(d,f.extends_clause_already_seen);if(c)return _u(d,f.extends_clause_must_precede_implements_clause);if(d.types.length>1)return _u(d.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(N.assert(d.token===119),c)return _u(d,f.implements_clause_already_seen);c=!0}yFe(d)}}function lyt(n){let a=!1;if(n.heritageClauses)for(const c of n.heritageClauses){if(c.token===96){if(a)return _u(c,f.extends_clause_already_seen);a=!0}else return N.assert(c.token===119),_u(c,f.Interface_declaration_cannot_have_implements_clause);yFe(c)}return!1}function cte(n){if(n.kind!==167)return!1;const a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?Sn(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function sbe(n){if(n.asteriskToken){if(N.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return Sn(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Sn(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function lbe(n,a){return!!n&&Sn(n,a)}function EFe(n,a){return!!n&&Sn(n,a)}function cyt(n,a){const c=new Map;for(const d of n.properties){if(d.kind===305){if(a){const x=hs(d.expression);if(fd(x)||La(x))return Sn(d.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}const _=d.name;if(_.kind===167&&cte(_),d.kind===304&&!a&&d.objectAssignmentInitializer&&Sn(d.equalsToken,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),_.kind===81&&Sn(_,f.Private_identifiers_are_not_allowed_outside_class_bodies),Rm(d)&&d.modifiers)for(const x of d.modifiers)Aa(x)&&(x.kind!==134||d.kind!==174)&&Sn(x,f._0_modifier_cannot_be_used_here,fc(x));else if(wae(d)&&d.modifiers)for(const x of d.modifiers)Aa(x)&&Sn(x,f._0_modifier_cannot_be_used_here,fc(x));let v;switch(d.kind){case 304:case 303:EFe(d.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),lbe(d.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&dbe(_),v=4;break;case 174:v=8;break;case 177:v=1;break;case 178:v=2;break;default:N.assertNever(d,"Unexpected syntax kind:"+d.kind)}if(!a){const x=pbe(_);if(x===void 0)continue;const k=c.get(x);if(!k)c.set(x,v);else if(v&8&&k&8)Sn(_,f.Duplicate_identifier_0,fc(_));else if(v&4&&k&4)Sn(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,fc(_));else if(v&3&&k&3)if(k!==3&&v!==k)c.set(x,v|k);else return Sn(_,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Sn(_,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function uyt(n){dyt(n.tagName),vB(n,n.typeArguments);const a=new Map;for(const c of n.attributes.properties){if(c.kind===293)continue;const{name:d,initializer:_}=c,v=iP(d);if(!a.get(v))a.set(v,!0);else return Sn(d,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(_&&_.kind===294&&!_.expression)return Sn(_,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function dyt(n){if(Fr(n)&&Qm(n.expression))return Sn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Qm(n)&&L3(V)&&!SR(n.namespace.escapedText))return Sn(n,f.React_components_cannot_include_JSX_namespace_names)}function pyt(n){if(n.expression&&AP(n.expression))return Sn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function SFe(n){if(vv(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){const a=Un(n);if(U4(n)){if(!Q1(a))switch(RA(a,V)||ts.add(kr(n.awaitModifier,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),G){case 100:case 199:if(a.impliedNodeFormat===1){ts.add(kr(n.awaitModifier,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(se>=4)break;default:ts.add(kr(n.awaitModifier,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!Q1(a)){const c=kr(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),d=Bp(n);if(d&&d.kind!==176){N.assert((Bc(d)&2)===0,"Enclosing function should never be an async function.");const _=kr(d,f.Did_you_mean_to_mark_this_function_as_async);Ma(c,_)}return ts.add(c),!0}return!1}if(Hk(n)&&!(n.flags&65536)&&Ve(n.initializer)&&n.initializer.escapedText==="async")return Sn(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){const a=n.initializer;if(!ube(a)){const c=a.declarations;if(!c.length)return!1;if(c.length>1){const _=n.kind===249?f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return _u(a.declarations[1],_)}const d=c[0];if(d.initializer){const _=n.kind===249?f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Sn(d.name,_)}if(d.type){const _=n.kind===249?f.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:f.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Sn(d,_)}}}return!1}function fyt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(se<1)return Sn(n.name,f.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(se<2&&qi(n.name))return Sn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Qr(n,64))return Z1(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(Qr(n,64))return Sn(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return Sn(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Sn(n.name,f.An_accessor_cannot_have_type_parameters);if(!myt(n))return Sn(n.name,n.kind===177?f.A_get_accessor_cannot_have_parameters:f.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return Sn(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);const a=N.checkDefined(wC(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return Sn(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return Sn(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return Sn(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function myt(n){return cbe(n)||n.parameters.length===(n.kind===177?0:1)}function cbe(n){if(n.parameters.length===(n.kind===177?1:2))return BE(n)}function _yt(n){if(n.operator===158){if(n.type.kind!==155)return Sn(n.type,f._0_expected,pa(155));let a=XL(n.parent);if(lr(a)&&o1(a)){const c=AS(a);c&&(a=PA(c)||c)}switch(a.kind){case 260:const c=a;if(c.name.kind!==80)return Sn(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!bC(c))return Sn(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return Sn(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!aa(a)||!OC(a))return Sn(a.name,f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Qr(a,8))return Sn(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Sn(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return _u(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,pa(155))}function p2(n,a){if(Lst(n))return Sn(n,a)}function TFe(n){if(lte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Ua(n.modifiers).kind===134))return _u(n,f.Modifiers_cannot_appear_here);if(lbe(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(EFe(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return Z1(n,n.end-1,1,f._0_expected,"{")}if(sbe(n))return!0}if(di(n.parent)){if(se<2&&qi(n.name))return Sn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return p2(n.name,f.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===174&&!n.body)return p2(n.name,f.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===264)return p2(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return p2(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function hyt(n){let a=n;for(;a;){if(Xx(a))return Sn(n,f.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===251&&!Py(a.statement,!0)?Sn(n,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(Py(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const c=n.kind===252?f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Sn(n,c)}else{const c=n.kind===252?f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Sn(n,c)}}function gyt(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==Xa(a))return Sn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(vx(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Sn(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return Z1(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function AFe(n){return ef(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function vyt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function yyt(n){if((Fr(n)||$s(n)&&AFe(n.argumentExpression))&&Bl(n.expression))return!!(nc(n).flags&1056)}function IFe(n){const a=n.initializer;if(a){const c=!(AFe(a)||yyt(a)||a.kind===112||a.kind===97||vyt(a));if((w4(n)||Oi(n)&&yB(n))&&!n.type){if(c)return Sn(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Sn(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function byt(n){const a=eS(n),c=a&7;if(ta(n.name))switch(c){case 6:return Sn(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Sn(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)IFe(n);else if(!n.initializer){if(ta(n.name)&&!ta(n.parent))return Sn(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return Sn(n,f._0_declarations_must_be_initialized,"await using");case 4:return Sn(n,f._0_declarations_must_be_initialized,"using");case 2:return Sn(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){const d=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Sn(n.exclamationToken,d)}return(G<5||Un(n).impliedNodeFormat===1)&&G!==4&&!(n.parent.parent.flags&33554432)&&Qr(n.parent.parent,32)&&xFe(n.name),!!c&&RFe(n.name)}function xFe(n){if(n.kind===80){if(Sr(n)==="__esModule")return Tyt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const c of a)if(!Gc(c))return xFe(c.name)}return!1}function RFe(n){if(n.kind===80){if(n.escapedText==="let")return Sn(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const c of a)Gc(c)||RFe(c.name)}return!1}function ube(n){const a=n.declarations;if(vx(n.declarations))return!0;if(!n.declarations.length)return Z1(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);const c=n.flags&7;return(c===4||c===6)&&JW(n.parent)?Sn(n,c===4?f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:f.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?U3e(n):!1}function DFe(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return DFe(n.parent)}return!0}function Eyt(n){if(!DFe(n.parent)){const a=eS(n.declarationList)&7;if(a){const c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":N.fail("Unknown BlockScope flag");return Sn(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Syt(n){const a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return Sn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),pa(n.keywordToken),"target");break;case 102:if(a!=="meta")return Sn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),pa(n.keywordToken),"meta");break}}function Q1(n){return n.parseDiagnostics.length>0}function _u(n,a,...c){const d=Un(n);if(!Q1(d)){const _=_h(d,n.pos);return ts.add($c(d,_.start,_.length,a,...c)),!0}return!1}function Z1(n,a,c,d,..._){const v=Un(n);return Q1(v)?!1:(ts.add($c(v,a,c,d,..._)),!0)}function Tyt(n,a,c,...d){const _=Un(a);return Q1(_)?!1:(r_(n,a,c,...d),!0)}function Sn(n,a,...c){const d=Un(n);return Q1(d)?!1:(ts.add(kr(n,a,...c)),!0)}function Ayt(n){const a=lr(n)?h3(n):void 0,c=n.typeParameters||a&&Kc(a);if(c){const d=c.pos===c.end?c.pos:Pa(Un(n).text,c.pos);return Z1(n,d,c.end-d,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Iyt(n){const a=n.type||em(n);if(a)return Sn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function xyt(n){if(Za(n.name)&&mr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return Sn(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(di(n.parent)){if(Na(n.name)&&n.name.text==="constructor")return Sn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(p2(n.name,f.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(se<2&&qi(n.name))return Sn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(se<2&&Wd(n))return Sn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Wd(n)&&lbe(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(p2(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(N.assertNode(n,gp),n.initializer)return Sn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(yp(n.parent)){if(p2(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(N.assertNode(n,gp),n.initializer)return Sn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&IFe(n),qo(n)&&n.exclamationToken&&(!di(n.parent)||!n.type||n.initializer||n.flags&33554432||aa(n)||jE(n))){const a=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Sn(n.exclamationToken,a)}}function Ryt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||Qr(n,2208)?!1:_u(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Dyt(n){for(const a of n.statements)if((Ju(a)||a.kind===243)&&Ryt(a))return!0;return!1}function Nyt(n){return!!(n.flags&33554432)&&Dyt(n)}function vv(n){if(n.flags&33554432){if(!Zr(n).hasReportedStatementInAmbientContext&&(ea(n.parent)||Cy(n.parent)))return Zr(n).hasReportedStatementInAmbientContext=_u(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){const c=Zr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=_u(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function dbe(n){const a=fc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||i_(!1,kr(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Cyt(n){return!!(!(Jy(n.parent)||Xy(n.parent)&&Jy(n.parent.parent))&&se<7&&Sn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Pyt(n,a,...c){const d=Un(n);if(!Q1(d)){const _=_h(d,n.pos);return ts.add($c(d,Kl(_),0,a,...c)),!0}return!1}function Myt(){return wc||(wc=[],Se.forEach((n,a)=>{xq.test(a)&&wc.push(n)})),wc}function Lyt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?Sn(n,f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===275?NFe(n.namedBindings):!1}function NFe(n){return!!Xe(n.elements,a=>{if(a.isTypeOnly)return _u(a,a.kind===276?f.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:f.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function kyt(n){if(V.verbatimModuleSyntax&&G===1)return Sn(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(G===5)return Sn(n,f.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return Sn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=n.arguments;if(G!==99&&G!==199&&G!==100&&(vx(a),a.length>1)){const d=a[1];return Sn(d,f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return Sn(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const c=In(a,$m);return c?Sn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function wyt(n,a){const c=Wr(n);if(c&20&&a.flags&1048576)return In(a.types,d=>{if(d.flags&524288){const _=c&Wr(d);if(_&4)return n.target===d.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===d.aliasSymbol}return!1})}function Oyt(n,a){if(Wr(n)&128&&Gm(a,my))return In(a.types,c=>!my(c))}function Wyt(n,a){let c=0;if(Xo(n,c).length>0||(c=1,Xo(n,c).length>0))return In(a.types,_=>Xo(_,c).length>0)}function Fyt(n,a){let c;if(!(n.flags&406978556)){let d=0;for(const _ of a.types)if(!(_.flags&406978556)){const v=ya([X_(n),X_(_)]);if(v.flags&4194304)return _;if(__(v)||v.flags&1048576){const x=v.flags&1048576?ou(v.types,__):1;x>=d&&(c=_,d=x)}}}return c}function zyt(n){if(Cl(n,67108864)){const a=dc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function CFe(n,a,c){if(a.flags&1048576&&n.flags&2621440){const d=V6e(a,n);if(d)return d;const _=gs(n);if(_){const v=G6e(_,a);if(v){const x=Zge(a,Wt(v,k=>[()=>dr(k),k.escapedName]),c);if(x!==a)return x}}}}function pbe(n){const a=IS(n);return a||(Za(n)?Ave(Ru(n.expression)):void 0)}function ute(n){return $n===n||($n=n,gn=n0(n)),gn}function eS(n){return rn===n||(rn=n,Mn=Cv(n)),Mn}function yB(n){const a=eS(n)&7;return a===2||a===4||a===6}}function LVe(e){return!Cy(e)}function OIe(e){return e.kind!==262&&e.kind!==174||!!e.body}function WIe(e){switch(e.parent.kind){case 276:case 281:return Ve(e);default:return wg(e)}}function FIe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Yu(e){return!!(e.flags&1)}function Iq(e){return!!(e.flags&2)}function kVe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ia(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:ia(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 xq,wF,Gse,Vse,jse,Use,OF,Rq,WF,FF,zIe,zF,Hse,of,Dq,wVe=I({"src/compiler/checker.ts"(){ra(),zse(),sS(),xq=/^".+"$/,wF="(anonymous)",Gse=1,Vse=1,jse=1,Use=1,OF=(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))(OF||{}),Rq=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),WF=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(WF||{}),FF=(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))(FF||{}),zIe=R6(OIe,LVe),zF=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Hse=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(of||(of={})),Dq=class MFe{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof MFe;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((o=this.inner)!=null&&o.trackSymbol)}trackSymbol(t,r,i){var o,s;if((o=this.inner)!=null&&o.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((s=this.context).trackedSymbols??(s.trackedSymbols=[])).push([t,r,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var o;(o=this.inner)!=null&&o.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function nt(e,t,r,i){if(e===void 0)return e;const o=t(e);let s;if(o!==void 0)return To(o)?s=(i||BVe)(o):s=o,N.assertNode(s,r),s}function jn(e,t,r,i,o){if(e===void 0)return e;const s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,u=-1,p=-1;i>0||o<s?l=e.hasTrailingComma&&i+o===s:(u=e.pos,p=e.end,l=e.hasTrailingComma);const h=BIe(e,t,r,i,o);if(h!==e){const m=w.createNodeArray(h,l);return hh(m,u,p),m}return e}function Rw(e,t,r,i,o){if(e===void 0)return e;const s=e.length;return(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i),BIe(e,t,r,i,o)}function BIe(e,t,r,i,o){let s;const l=e.length;(i>0||o<l)&&(s=[]);for(let u=0;u<o;u++){const p=e[u+i],h=p!==void 0?t?t(p):p:void 0;if((s!==void 0||h===void 0||h!==p)&&(s===void 0&&(s=e.slice(0,u),N.assertEachNode(s,r)),h))if(To(h))for(const m of h)N.assertNode(m,r),s.push(m);else N.assertNode(h,r),s.push(h)}return s||(N.assertEachNode(e,r),e)}function Nq(e,t,r,i,o,s=jn){return r.startLexicalEnvironment(),e=s(e,t,Hi,i),o&&(e=r.factory.ensureUseStrict(e)),w.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function Dl(e,t,r,i=jn){let o;return r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),o=i(e,t,Ao),r.getLexicalEnvironmentFlags()&2&&os(r.getCompilerOptions())>=2&&(o=OVe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function OVe(e,t){let r;for(let i=0;i<e.length;i++){const o=e[i],s=WVe(o,t);(r||s!==o)&&(r||(r=e.slice(0,i)),r[i]=s)}return r?dt(t.factory.createNodeArray(r,e.hasTrailingComma),e):e}function WVe(e,t){return e.dotDotDotToken?e:ta(e.name)?FVe(e,t):e.initializer?zVe(e,e.name,e.initializer,t):e}function FVe(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 zVe(e,t,r,i){const o=i.factory;return i.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t),"undefined"),pr(dt(o.createBlock([o.createExpressionStatement(pr(dt(o.createAssignment(pr(o.cloneNode(t),96),pr(r,96|Ga(r)|3072)),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function af(e,t,r,i=nt){r.resumeLexicalEnvironment();const o=i(e,t,v4),s=r.endLexicalEnvironment();if(bt(s)){if(!o)return r.factory.createBlock(s);const l=r.factory.converters.convertToFunctionBlock(o),u=w.mergeLexicalEnvironment(l.statements,s);return r.factory.updateBlock(l,u)}return o}function xd(e,t,r,i=nt){r.startBlockScope();const o=i(e,t,Hi,r.factory.liftToBlock);N.assert(o);const s=r.endBlockScope();return bt(s)?Ko(o)?(s.push(...o.statements),r.factory.updateBlock(o,s)):(s.push(o),r.factory.createBlock(s)):o}function BF(e,t,r=t){if(r===t||e.length<=1)return jn(e,t,yt);let i=0;const o=e.length;return jn(e,s=>{const l=i<o-1;return i++,l?r(s):t(s)},yt)}function xn(e,t,r=UP,i=jn,o,s=nt){if(e===void 0)return;const l=GIe[e.kind];return l===void 0?e:l(e,t,r,i,s,o)}function BVe(e){return N.assert(e.length<=1,"Too many nodes written to output."),oh(e)}var GIe,GVe=I({"src/compiler/visitorPublic.ts"(){ra(),GIe={166:function(t,r,i,o,s,l){return i.factory.updateQualifiedName(t,N.checkDefined(s(t.left,r,Qd)),N.checkDefined(s(t.right,r,Ve)))},167:function(t,r,i,o,s,l){return i.factory.updateComputedPropertyName(t,N.checkDefined(s(t.expression,r,yt)))},168:function(t,r,i,o,s,l){return i.factory.updateTypeParameterDeclaration(t,o(t.modifiers,r,Aa),N.checkDefined(s(t.name,r,Ve)),s(t.constraint,r,ji),s(t.default,r,ji))},169:function(t,r,i,o,s,l){return i.factory.updateParameterDeclaration(t,o(t.modifiers,r,sl),l?s(t.dotDotDotToken,l,zW):t.dotDotDotToken,N.checkDefined(s(t.name,r,pS)),l?s(t.questionToken,l,Hy):t.questionToken,s(t.type,r,ji),s(t.initializer,r,yt))},170:function(t,r,i,o,s,l){return i.factory.updateDecorator(t,N.checkDefined(s(t.expression,r,yt)))},171:function(t,r,i,o,s,l){return i.factory.updatePropertySignature(t,o(t.modifiers,r,Aa),N.checkDefined(s(t.name,r,oc)),l?s(t.questionToken,l,Hy):t.questionToken,s(t.type,r,ji))},172:function(t,r,i,o,s,l){return i.factory.updatePropertyDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,oc)),l?s(t.questionToken??t.exclamationToken,l,Oae):t.questionToken??t.exclamationToken,s(t.type,r,ji),s(t.initializer,r,yt))},173:function(t,r,i,o,s,l){return i.factory.updateMethodSignature(t,o(t.modifiers,r,Aa),N.checkDefined(s(t.name,r,oc)),l?s(t.questionToken,l,Hy):t.questionToken,o(t.typeParameters,r,hl),o(t.parameters,r,Ao),s(t.type,r,ji))},174:function(t,r,i,o,s,l){return i.factory.updateMethodDeclaration(t,o(t.modifiers,r,sl),l?s(t.asteriskToken,l,Fk):t.asteriskToken,N.checkDefined(s(t.name,r,oc)),l?s(t.questionToken,l,Hy):t.questionToken,o(t.typeParameters,r,hl),Dl(t.parameters,r,i,o),s(t.type,r,ji),af(t.body,r,i,s))},176:function(t,r,i,o,s,l){return i.factory.updateConstructorDeclaration(t,o(t.modifiers,r,sl),Dl(t.parameters,r,i,o),af(t.body,r,i,s))},177:function(t,r,i,o,s,l){return i.factory.updateGetAccessorDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,oc)),Dl(t.parameters,r,i,o),s(t.type,r,ji),af(t.body,r,i,s))},178:function(t,r,i,o,s,l){return i.factory.updateSetAccessorDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,oc)),Dl(t.parameters,r,i,o),af(t.body,r,i,s))},175:function(t,r,i,o,s,l){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,af(t.body,r,i,s))},179:function(t,r,i,o,s,l){return i.factory.updateCallSignature(t,o(t.typeParameters,r,hl),o(t.parameters,r,Ao),s(t.type,r,ji))},180:function(t,r,i,o,s,l){return i.factory.updateConstructSignature(t,o(t.typeParameters,r,hl),o(t.parameters,r,Ao),s(t.type,r,ji))},181:function(t,r,i,o,s,l){return i.factory.updateIndexSignature(t,o(t.modifiers,r,sl),o(t.parameters,r,Ao),N.checkDefined(s(t.type,r,ji)))},182:function(t,r,i,o,s,l){return i.factory.updateTypePredicateNode(t,s(t.assertsModifier,r,iae),N.checkDefined(s(t.parameterName,r,Wae)),s(t.type,r,ji))},183:function(t,r,i,o,s,l){return i.factory.updateTypeReferenceNode(t,N.checkDefined(s(t.typeName,r,Qd)),o(t.typeArguments,r,ji))},184:function(t,r,i,o,s,l){return i.factory.updateFunctionTypeNode(t,o(t.typeParameters,r,hl),o(t.parameters,r,Ao),N.checkDefined(s(t.type,r,ji)))},185:function(t,r,i,o,s,l){return i.factory.updateConstructorTypeNode(t,o(t.modifiers,r,Aa),o(t.typeParameters,r,hl),o(t.parameters,r,Ao),N.checkDefined(s(t.type,r,ji)))},186:function(t,r,i,o,s,l){return i.factory.updateTypeQueryNode(t,N.checkDefined(s(t.exprName,r,Qd)),o(t.typeArguments,r,ji))},187:function(t,r,i,o,s,l){return i.factory.updateTypeLiteralNode(t,o(t.members,r,fS))},188:function(t,r,i,o,s,l){return i.factory.updateArrayTypeNode(t,N.checkDefined(s(t.elementType,r,ji)))},189:function(t,r,i,o,s,l){return i.factory.updateTupleTypeNode(t,o(t.elements,r,ji))},190:function(t,r,i,o,s,l){return i.factory.updateOptionalTypeNode(t,N.checkDefined(s(t.type,r,ji)))},191:function(t,r,i,o,s,l){return i.factory.updateRestTypeNode(t,N.checkDefined(s(t.type,r,ji)))},192:function(t,r,i,o,s,l){return i.factory.updateUnionTypeNode(t,o(t.types,r,ji))},193:function(t,r,i,o,s,l){return i.factory.updateIntersectionTypeNode(t,o(t.types,r,ji))},194:function(t,r,i,o,s,l){return i.factory.updateConditionalTypeNode(t,N.checkDefined(s(t.checkType,r,ji)),N.checkDefined(s(t.extendsType,r,ji)),N.checkDefined(s(t.trueType,r,ji)),N.checkDefined(s(t.falseType,r,ji)))},195:function(t,r,i,o,s,l){return i.factory.updateInferTypeNode(t,N.checkDefined(s(t.typeParameter,r,hl)))},205:function(t,r,i,o,s,l){return i.factory.updateImportTypeNode(t,N.checkDefined(s(t.argument,r,ji)),s(t.attributes,r,aI),s(t.qualifier,r,Qd),o(t.typeArguments,r,ji),t.isTypeOf)},302:function(t,r,i,o,s,l){return i.factory.updateImportTypeAssertionContainer(t,N.checkDefined(s(t.assertClause,r,_ae)),t.multiLine)},202:function(t,r,i,o,s,l){return i.factory.updateNamedTupleMember(t,l?s(t.dotDotDotToken,l,zW):t.dotDotDotToken,N.checkDefined(s(t.name,r,Ve)),l?s(t.questionToken,l,Hy):t.questionToken,N.checkDefined(s(t.type,r,ji)))},196:function(t,r,i,o,s,l){return i.factory.updateParenthesizedType(t,N.checkDefined(s(t.type,r,ji)))},198:function(t,r,i,o,s,l){return i.factory.updateTypeOperatorNode(t,N.checkDefined(s(t.type,r,ji)))},199:function(t,r,i,o,s,l){return i.factory.updateIndexedAccessTypeNode(t,N.checkDefined(s(t.objectType,r,ji)),N.checkDefined(s(t.indexType,r,ji)))},200:function(t,r,i,o,s,l){return i.factory.updateMappedTypeNode(t,l?s(t.readonlyToken,l,Fae):t.readonlyToken,N.checkDefined(s(t.typeParameter,r,hl)),s(t.nameType,r,ji),l?s(t.questionToken,l,zae):t.questionToken,s(t.type,r,ji),o(t.members,r,fS))},201:function(t,r,i,o,s,l){return i.factory.updateLiteralTypeNode(t,N.checkDefined(s(t.literal,r,hre)))},203:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralType(t,N.checkDefined(s(t.head,r,YA)),o(t.templateSpans,r,aH))},204:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralTypeSpan(t,N.checkDefined(s(t.type,r,ji)),N.checkDefined(s(t.literal,r,m4)))},206:function(t,r,i,o,s,l){return i.factory.updateObjectBindingPattern(t,o(t.elements,r,$a))},207:function(t,r,i,o,s,l){return i.factory.updateArrayBindingPattern(t,o(t.elements,r,h4))},208:function(t,r,i,o,s,l){return i.factory.updateBindingElement(t,l?s(t.dotDotDotToken,l,zW):t.dotDotDotToken,s(t.propertyName,r,oc),N.checkDefined(s(t.name,r,pS)),s(t.initializer,r,yt))},209:function(t,r,i,o,s,l){return i.factory.updateArrayLiteralExpression(t,o(t.elements,r,yt))},210:function(t,r,i,o,s,l){return i.factory.updateObjectLiteralExpression(t,o(t.properties,r,Mg))},211:function(t,r,i,o,s,l){return d4(t)?i.factory.updatePropertyAccessChain(t,N.checkDefined(s(t.expression,r,yt)),l?s(t.questionDotToken,l,BW):t.questionDotToken,N.checkDefined(s(t.name,r,Kh))):i.factory.updatePropertyAccessExpression(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.name,r,Kh)))},212:function(t,r,i,o,s,l){return DV(t)?i.factory.updateElementAccessChain(t,N.checkDefined(s(t.expression,r,yt)),l?s(t.questionDotToken,l,BW):t.questionDotToken,N.checkDefined(s(t.argumentExpression,r,yt))):i.factory.updateElementAccessExpression(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.argumentExpression,r,yt)))},213:function(t,r,i,o,s,l){return uS(t)?i.factory.updateCallChain(t,N.checkDefined(s(t.expression,r,yt)),l?s(t.questionDotToken,l,BW):t.questionDotToken,o(t.typeArguments,r,ji),o(t.arguments,r,yt)):i.factory.updateCallExpression(t,N.checkDefined(s(t.expression,r,yt)),o(t.typeArguments,r,ji),o(t.arguments,r,yt))},214:function(t,r,i,o,s,l){return i.factory.updateNewExpression(t,N.checkDefined(s(t.expression,r,yt)),o(t.typeArguments,r,ji),o(t.arguments,r,yt))},215:function(t,r,i,o,s,l){return i.factory.updateTaggedTemplateExpression(t,N.checkDefined(s(t.tag,r,yt)),o(t.typeArguments,r,ji),N.checkDefined(s(t.template,r,IA)))},216:function(t,r,i,o,s,l){return i.factory.updateTypeAssertion(t,N.checkDefined(s(t.type,r,ji)),N.checkDefined(s(t.expression,r,yt)))},217:function(t,r,i,o,s,l){return i.factory.updateParenthesizedExpression(t,N.checkDefined(s(t.expression,r,yt)))},218:function(t,r,i,o,s,l){return i.factory.updateFunctionExpression(t,o(t.modifiers,r,Aa),l?s(t.asteriskToken,l,Fk):t.asteriskToken,s(t.name,r,Ve),o(t.typeParameters,r,hl),Dl(t.parameters,r,i,o),s(t.type,r,ji),af(t.body,r,i,s))},219:function(t,r,i,o,s,l){return i.factory.updateArrowFunction(t,o(t.modifiers,r,Aa),o(t.typeParameters,r,hl),Dl(t.parameters,r,i,o),s(t.type,r,ji),l?N.checkDefined(s(t.equalsGreaterThanToken,l,rae)):t.equalsGreaterThanToken,af(t.body,r,i,s))},220:function(t,r,i,o,s,l){return i.factory.updateDeleteExpression(t,N.checkDefined(s(t.expression,r,yt)))},221:function(t,r,i,o,s,l){return i.factory.updateTypeOfExpression(t,N.checkDefined(s(t.expression,r,yt)))},222:function(t,r,i,o,s,l){return i.factory.updateVoidExpression(t,N.checkDefined(s(t.expression,r,yt)))},223:function(t,r,i,o,s,l){return i.factory.updateAwaitExpression(t,N.checkDefined(s(t.expression,r,yt)))},224:function(t,r,i,o,s,l){return i.factory.updatePrefixUnaryExpression(t,N.checkDefined(s(t.operand,r,yt)))},225:function(t,r,i,o,s,l){return i.factory.updatePostfixUnaryExpression(t,N.checkDefined(s(t.operand,r,yt)))},226:function(t,r,i,o,s,l){return i.factory.updateBinaryExpression(t,N.checkDefined(s(t.left,r,yt)),l?N.checkDefined(s(t.operatorToken,l,Gae)):t.operatorToken,N.checkDefined(s(t.right,r,yt)))},227:function(t,r,i,o,s,l){return i.factory.updateConditionalExpression(t,N.checkDefined(s(t.condition,r,yt)),l?N.checkDefined(s(t.questionToken,l,Hy)):t.questionToken,N.checkDefined(s(t.whenTrue,r,yt)),l?N.checkDefined(s(t.colonToken,l,nae)):t.colonToken,N.checkDefined(s(t.whenFalse,r,yt)))},228:function(t,r,i,o,s,l){return i.factory.updateTemplateExpression(t,N.checkDefined(s(t.head,r,YA)),o(t.templateSpans,r,gP))},229:function(t,r,i,o,s,l){return i.factory.updateYieldExpression(t,l?s(t.asteriskToken,l,Fk):t.asteriskToken,s(t.expression,r,yt))},230:function(t,r,i,o,s,l){return i.factory.updateSpreadElement(t,N.checkDefined(s(t.expression,r,yt)))},231:function(t,r,i,o,s,l){return i.factory.updateClassExpression(t,o(t.modifiers,r,sl),s(t.name,r,Ve),o(t.typeParameters,r,hl),o(t.heritageClauses,r,nf),o(t.members,r,Yc))},233:function(t,r,i,o,s,l){return i.factory.updateExpressionWithTypeArguments(t,N.checkDefined(s(t.expression,r,yt)),o(t.typeArguments,r,ji))},234:function(t,r,i,o,s,l){return i.factory.updateAsExpression(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.type,r,ji)))},238:function(t,r,i,o,s,l){return i.factory.updateSatisfiesExpression(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.type,r,ji)))},235:function(t,r,i,o,s,l){return qu(t)?i.factory.updateNonNullChain(t,N.checkDefined(s(t.expression,r,yt))):i.factory.updateNonNullExpression(t,N.checkDefined(s(t.expression,r,yt)))},236:function(t,r,i,o,s,l){return i.factory.updateMetaProperty(t,N.checkDefined(s(t.name,r,Ve)))},239:function(t,r,i,o,s,l){return i.factory.updateTemplateSpan(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.literal,r,m4)))},241:function(t,r,i,o,s,l){return i.factory.updateBlock(t,o(t.statements,r,Hi))},243:function(t,r,i,o,s,l){return i.factory.updateVariableStatement(t,o(t.modifiers,r,sl),N.checkDefined(s(t.declarationList,r,Vc)))},244:function(t,r,i,o,s,l){return i.factory.updateExpressionStatement(t,N.checkDefined(s(t.expression,r,yt)))},245:function(t,r,i,o,s,l){return i.factory.updateIfStatement(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.thenStatement,r,Hi,i.factory.liftToBlock)),s(t.elseStatement,r,Hi,i.factory.liftToBlock))},246:function(t,r,i,o,s,l){return i.factory.updateDoStatement(t,xd(t.statement,r,i,s),N.checkDefined(s(t.expression,r,yt)))},247:function(t,r,i,o,s,l){return i.factory.updateWhileStatement(t,N.checkDefined(s(t.expression,r,yt)),xd(t.statement,r,i,s))},248:function(t,r,i,o,s,l){return i.factory.updateForStatement(t,s(t.initializer,r,Sf),s(t.condition,r,yt),s(t.incrementor,r,yt),xd(t.statement,r,i,s))},249:function(t,r,i,o,s,l){return i.factory.updateForInStatement(t,N.checkDefined(s(t.initializer,r,Sf)),N.checkDefined(s(t.expression,r,yt)),xd(t.statement,r,i,s))},250:function(t,r,i,o,s,l){return i.factory.updateForOfStatement(t,l?s(t.awaitModifier,l,oH):t.awaitModifier,N.checkDefined(s(t.initializer,r,Sf)),N.checkDefined(s(t.expression,r,yt)),xd(t.statement,r,i,s))},251:function(t,r,i,o,s,l){return i.factory.updateContinueStatement(t,s(t.label,r,Ve))},252:function(t,r,i,o,s,l){return i.factory.updateBreakStatement(t,s(t.label,r,Ve))},253:function(t,r,i,o,s,l){return i.factory.updateReturnStatement(t,s(t.expression,r,yt))},254:function(t,r,i,o,s,l){return i.factory.updateWithStatement(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.statement,r,Hi,i.factory.liftToBlock)))},255:function(t,r,i,o,s,l){return i.factory.updateSwitchStatement(t,N.checkDefined(s(t.expression,r,yt)),N.checkDefined(s(t.caseBlock,r,yP)))},256:function(t,r,i,o,s,l){return i.factory.updateLabeledStatement(t,N.checkDefined(s(t.label,r,Ve)),N.checkDefined(s(t.statement,r,Hi,i.factory.liftToBlock)))},257:function(t,r,i,o,s,l){return i.factory.updateThrowStatement(t,N.checkDefined(s(t.expression,r,yt)))},258:function(t,r,i,o,s,l){return i.factory.updateTryStatement(t,N.checkDefined(s(t.tryBlock,r,Ko)),s(t.catchClause,r,r1),s(t.finallyBlock,r,Ko))},260:function(t,r,i,o,s,l){return i.factory.updateVariableDeclaration(t,N.checkDefined(s(t.name,r,pS)),l?s(t.exclamationToken,l,zk):t.exclamationToken,s(t.type,r,ji),s(t.initializer,r,yt))},261:function(t,r,i,o,s,l){return i.factory.updateVariableDeclarationList(t,o(t.declarations,r,Oi))},262:function(t,r,i,o,s,l){return i.factory.updateFunctionDeclaration(t,o(t.modifiers,r,Aa),l?s(t.asteriskToken,l,Fk):t.asteriskToken,s(t.name,r,Ve),o(t.typeParameters,r,hl),Dl(t.parameters,r,i,o),s(t.type,r,ji),af(t.body,r,i,s))},263:function(t,r,i,o,s,l){return i.factory.updateClassDeclaration(t,o(t.modifiers,r,sl),s(t.name,r,Ve),o(t.typeParameters,r,hl),o(t.heritageClauses,r,nf),o(t.members,r,Yc))},264:function(t,r,i,o,s,l){return i.factory.updateInterfaceDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,Ve)),o(t.typeParameters,r,hl),o(t.heritageClauses,r,nf),o(t.members,r,fS))},265:function(t,r,i,o,s,l){return i.factory.updateTypeAliasDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,Ve)),o(t.typeParameters,r,hl),N.checkDefined(s(t.type,r,ji)))},266:function(t,r,i,o,s,l){return i.factory.updateEnumDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,Ve)),o(t.members,r,i1))},267:function(t,r,i,o,s,l){return i.factory.updateModuleDeclaration(t,o(t.modifiers,r,sl),N.checkDefined(s(t.name,r,Bae)),s(t.body,r,yre))},268:function(t,r,i,o,s,l){return i.factory.updateModuleBlock(t,o(t.statements,r,Hi))},269:function(t,r,i,o,s,l){return i.factory.updateCaseBlock(t,o(t.clauses,r,b4))},270:function(t,r,i,o,s,l){return i.factory.updateNamespaceExportDeclaration(t,N.checkDefined(s(t.name,r,Ve)))},271:function(t,r,i,o,s,l){return i.factory.updateImportEqualsDeclaration(t,o(t.modifiers,r,sl),t.isTypeOnly,N.checkDefined(s(t.name,r,Ve)),N.checkDefined(s(t.moduleReference,r,Are)))},272:function(t,r,i,o,s,l){return i.factory.updateImportDeclaration(t,o(t.modifiers,r,sl),s(t.importClause,r,bh),N.checkDefined(s(t.moduleSpecifier,r,yt)),s(t.attributes,r,aI))},300:function(t,r,i,o,s,l){return i.factory.updateImportAttributes(t,o(t.elements,r,hae),t.multiLine)},301:function(t,r,i,o,s,l){return i.factory.updateImportAttribute(t,N.checkDefined(s(t.name,r,cre)),N.checkDefined(s(t.value,r,yt)))},273:function(t,r,i,o,s,l){return i.factory.updateImportClause(t,t.isTypeOnly,s(t.name,r,Ve),s(t.namedBindings,r,VV))},274:function(t,r,i,o,s,l){return i.factory.updateNamespaceImport(t,N.checkDefined(s(t.name,r,Ve)))},280:function(t,r,i,o,s,l){return i.factory.updateNamespaceExport(t,N.checkDefined(s(t.name,r,Ve)))},275:function(t,r,i,o,s,l){return i.factory.updateNamedImports(t,o(t.elements,r,tp))},276:function(t,r,i,o,s,l){return i.factory.updateImportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,Ve),N.checkDefined(s(t.name,r,Ve)))},277:function(t,r,i,o,s,l){return i.factory.updateExportAssignment(t,o(t.modifiers,r,sl),N.checkDefined(s(t.expression,r,yt)))},278:function(t,r,i,o,s,l){return i.factory.updateExportDeclaration(t,o(t.modifiers,r,sl),t.isTypeOnly,s(t.exportClause,r,CV),s(t.moduleSpecifier,r,yt),s(t.attributes,r,aI))},279:function(t,r,i,o,s,l){return i.factory.updateNamedExports(t,o(t.elements,r,Ku))},281:function(t,r,i,o,s,l){return i.factory.updateExportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,Ve),N.checkDefined(s(t.name,r,Ve)))},283:function(t,r,i,o,s,l){return i.factory.updateExternalModuleReference(t,N.checkDefined(s(t.expression,r,yt)))},284:function(t,r,i,o,s,l){return i.factory.updateJsxElement(t,N.checkDefined(s(t.openingElement,r,k_)),o(t.children,r,gL),N.checkDefined(s(t.closingElement,r,e1)))},285:function(t,r,i,o,s,l){return i.factory.updateJsxSelfClosingElement(t,N.checkDefined(s(t.tagName,r,_C)),o(t.typeArguments,r,ji),N.checkDefined(s(t.attributes,r,n1)))},286:function(t,r,i,o,s,l){return i.factory.updateJsxOpeningElement(t,N.checkDefined(s(t.tagName,r,_C)),o(t.typeArguments,r,ji),N.checkDefined(s(t.attributes,r,n1)))},287:function(t,r,i,o,s,l){return i.factory.updateJsxClosingElement(t,N.checkDefined(s(t.tagName,r,_C)))},295:function(t,r,i,o,s,l){return i.factory.updateJsxNamespacedName(t,N.checkDefined(s(t.namespace,r,Ve)),N.checkDefined(s(t.name,r,Ve)))},288:function(t,r,i,o,s,l){return i.factory.updateJsxFragment(t,N.checkDefined(s(t.openingFragment,r,lI)),o(t.children,r,gL),N.checkDefined(s(t.closingFragment,r,gae)))},291:function(t,r,i,o,s,l){return i.factory.updateJsxAttribute(t,N.checkDefined(s(t.name,r,Poe)),s(t.initializer,r,Ire))},292:function(t,r,i,o,s,l){return i.factory.updateJsxAttributes(t,o(t.properties,r,y4))},293:function(t,r,i,o,s,l){return i.factory.updateJsxSpreadAttribute(t,N.checkDefined(s(t.expression,r,yt)))},294:function(t,r,i,o,s,l){return i.factory.updateJsxExpression(t,s(t.expression,r,yt))},296:function(t,r,i,o,s,l){return i.factory.updateCaseClause(t,N.checkDefined(s(t.expression,r,yt)),o(t.statements,r,Hi))},297:function(t,r,i,o,s,l){return i.factory.updateDefaultClause(t,o(t.statements,r,Hi))},298:function(t,r,i,o,s,l){return i.factory.updateHeritageClause(t,o(t.types,r,Vv))},299:function(t,r,i,o,s,l){return i.factory.updateCatchClause(t,s(t.variableDeclaration,r,Oi),N.checkDefined(s(t.block,r,Ko)))},303:function(t,r,i,o,s,l){return i.factory.updatePropertyAssignment(t,N.checkDefined(s(t.name,r,oc)),N.checkDefined(s(t.initializer,r,yt)))},304:function(t,r,i,o,s,l){return i.factory.updateShorthandPropertyAssignment(t,N.checkDefined(s(t.name,r,Ve)),s(t.objectAssignmentInitializer,r,yt))},305:function(t,r,i,o,s,l){return i.factory.updateSpreadAssignment(t,N.checkDefined(s(t.expression,r,yt)))},306:function(t,r,i,o,s,l){return i.factory.updateEnumMember(t,N.checkDefined(s(t.name,r,oc)),s(t.initializer,r,yt))},312:function(t,r,i,o,s,l){return i.factory.updateSourceFile(t,Nq(t.statements,r,i))},360:function(t,r,i,o,s,l){return i.factory.updatePartiallyEmittedExpression(t,N.checkDefined(s(t.expression,r,yt)))},361:function(t,r,i,o,s,l){return i.factory.updateCommaListExpression(t,o(t.elements,r,yt))}}}});function qse(e,t,r,i,o){var{enter:s,exit:l}=o.extendedDiagnostics?sG("Source Map","beforeSourcemap","afterSourcemap"):lG,u=[],p=[],h=new Map,m,y=[],T,A=[],R="",M=0,C=0,O=0,U=0,K=0,Q=0,V=!1,se=0,G=0,ne=0,he=0,ye=0,Y=0,X=!1,oe=!1,pe=!1;return{getSources:()=>u,addSource:Ce,setSourceContent:de,addName:ie,addMapping:Ue,appendSourceMap:Ee,toJSON:Se,toString:()=>JSON.stringify(Se())};function Ce(ot){s();const Bt=yA(i,ot,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let vt=h.get(Bt);return vt===void 0&&(vt=p.length,p.push(Bt),u.push(ot),h.set(Bt,vt)),l(),vt}function de(ot,Bt){if(s(),Bt!==null){for(m||(m=[]);m.length<ot;)m.push(null);m[ot]=Bt}l()}function ie(ot){s(),T||(T=new Map);let Bt=T.get(ot);return Bt===void 0&&(Bt=y.length,y.push(ot),T.set(ot,Bt)),l(),Bt}function ve(ot,Bt){return!X||se!==ot||G!==Bt}function Le(ot,Bt,vt){return ot!==void 0&&Bt!==void 0&&vt!==void 0&&ne===ot&&(he>Bt||he===Bt&&ye>vt)}function Ue(ot,Bt,vt,$e,It,tn){N.assert(ot>=se,"generatedLine cannot backtrack"),N.assert(Bt>=0,"generatedCharacter cannot be negative"),N.assert(vt===void 0||vt>=0,"sourceIndex cannot be negative"),N.assert($e===void 0||$e>=0,"sourceLine cannot be negative"),N.assert(It===void 0||It>=0,"sourceCharacter cannot be negative"),s(),(ve(ot,Bt)||Le(vt,$e,It))&&(We(),se=ot,G=Bt,oe=!1,pe=!1,X=!0),vt!==void 0&&$e!==void 0&&It!==void 0&&(ne=vt,he=$e,ye=It,oe=!0,tn!==void 0&&(Y=tn,pe=!0)),l()}function Ee(ot,Bt,vt,$e,It,tn){N.assert(ot>=se,"generatedLine cannot backtrack"),N.assert(Bt>=0,"generatedCharacter cannot be negative"),s();const rn=[];let Mn;const $n=Mq(vt.mappings);for(const gn of $n){if(tn&&(gn.generatedLine>tn.line||gn.generatedLine===tn.line&&gn.generatedCharacter>tn.character))break;if(It&&(gn.generatedLine<It.line||It.line===gn.generatedLine&&gn.generatedCharacter<It.character))continue;let Qt,Yt,vi,so;if(gn.sourceIndex!==void 0){if(Qt=rn[gn.sourceIndex],Qt===void 0){const Ar=vt.sources[gn.sourceIndex],sn=vt.sourceRoot?$r(vt.sourceRoot,Ar):Ar,tt=$r(ai($e),sn);rn[gn.sourceIndex]=Qt=Ce(tt),vt.sourcesContent&&typeof vt.sourcesContent[gn.sourceIndex]=="string"&&de(Qt,vt.sourcesContent[gn.sourceIndex])}Yt=gn.sourceLine,vi=gn.sourceCharacter,vt.names&&gn.nameIndex!==void 0&&(Mn||(Mn=[]),so=Mn[gn.nameIndex],so===void 0&&(Mn[gn.nameIndex]=so=ie(vt.names[gn.nameIndex])))}const Wi=gn.generatedLine-(It?It.line:0),Co=Wi+ot,Ln=It&&It.line===gn.generatedLine?gn.generatedCharacter-It.character:gn.generatedCharacter,Ci=Wi===0?Ln+Bt:Ln;Ue(Co,Ci,Qt,Yt,vi,so)}l()}function De(){return!V||M!==se||C!==G||O!==ne||U!==he||K!==ye||Q!==Y}function Me(ot){A.push(ot),A.length>=1024&&At()}function We(){if(!(!X||!De())){if(s(),M<se){do Me(59),M++;while(M<se);C=0}else N.assertEqual(M,se,"generatedLine cannot backtrack"),V&&Me(44);je(G-C),C=G,oe&&(je(ne-O),O=ne,je(he-U),U=he,je(ye-K),K=ye,pe&&(je(Y-Q),Q=Y)),V=!0,l()}}function At(){A.length>0&&(R+=String.fromCharCode.apply(void 0,A),A.length=0)}function Se(){return We(),At(),{version:3,file:t,sourceRoot:r,sources:p,names:y,mappings:R,sourcesContent:m}}function je(ot){ot<0?ot=(-ot<<1)+1:ot=ot<<1;do{let Bt=ot&31;ot=ot>>5,ot>0&&(Bt=Bt|32),Me(jVe(Bt))}while(ot>0)}}function Cq(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Jse(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=GF.exec(r);if(i)return i[1].trimEnd();if(!r.match(VF))break}}function VVe(e){return typeof e=="string"||e===null}function Kse(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&To(e.sources)&&Jn(e.sources,Mo)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||To(e.sourcesContent)&&Jn(e.sourcesContent,VVe))&&(e.names===void 0||e.names===null||To(e.names)&&Jn(e.names,Mo))}function Pq(e){try{const t=JSON.parse(e);if(Kse(t))return t}catch{}}function Mq(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=0,p=0,h;return{get pos(){return r},get error(){return h},get state(){return m(!0,!0)},next(){for(;!t&&r<e.length;){const O=e.charCodeAt(r);if(O===59){i++,o=0,r++;continue}if(O===44){r++;continue}let U=!1,K=!1;if(o+=C(),R())return y();if(o<0)return A("Invalid generatedCharacter found");if(!M()){if(U=!0,s+=C(),R())return y();if(s<0)return A("Invalid sourceIndex found");if(M())return A("Unsupported Format: No entries after sourceIndex");if(l+=C(),R())return y();if(l<0)return A("Invalid sourceLine found");if(M())return A("Unsupported Format: No entries after sourceLine");if(u+=C(),R())return y();if(u<0)return A("Invalid sourceCharacter found");if(!M()){if(K=!0,p+=C(),R())return y();if(p<0)return A("Invalid nameIndex found");if(!M())return A("Unsupported Error Format: Entries after nameIndex")}}return{value:m(U,K),done:t}}return y()},[Symbol.iterator](){return this}};function m(O,U){return{generatedLine:i,generatedCharacter:o,sourceIndex:O?s:void 0,sourceLine:O?l:void 0,sourceCharacter:O?u:void 0,nameIndex:U?p:void 0}}function y(){return t=!0,{value:void 0,done:!0}}function T(O){h===void 0&&(h=O)}function A(O){return T(O),y()}function R(){return h!==void 0}function M(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function C(){let O=!0,U=0,K=0;for(;O;r++){if(r>=e.length)return T("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const Q=UVe(e.charCodeAt(r));if(Q===-1)return T("Invalid character in VLQ"),-1;O=(Q&32)!==0,K=K|(Q&31)<<U,U+=5}return K&1?(K=K>>1,K=-K):K=K>>1,K}}function VIe(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 Xse(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function jVe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:N.fail(`${e}: not a base64 value`)}function UVe(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 jIe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function UIe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function HVe(e,t){return N.assert(e.sourceIndex===t.sourceIndex),nl(e.sourcePosition,t.sourcePosition)}function qVe(e,t){return nl(e.generatedPosition,t.generatedPosition)}function JVe(e){return e.sourcePosition}function KVe(e){return e.generatedPosition}function Yse(e,t,r){const i=ai(r),o=t.sourceRoot?go(t.sourceRoot,i):i,s=go(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(U=>go(U,o)),p=new Map(u.map((U,K)=>[e.getCanonicalFileName(U),K]));let h,m,y;return{getSourcePosition:O,getGeneratedPosition:C};function T(U){const K=l!==void 0?K2(l,U.generatedLine,U.generatedCharacter,!0):-1;let Q,V;if(Xse(U)){const se=e.getSourceFileLike(u[U.sourceIndex]);Q=t.sources[U.sourceIndex],V=se!==void 0?K2(se,U.sourceLine,U.sourceCharacter,!0):-1}return{generatedPosition:K,source:Q,sourceIndex:U.sourceIndex,sourcePosition:V,nameIndex:U.nameIndex}}function A(){if(h===void 0){const U=Mq(t.mappings),K=zo(U,T);U.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${U.error}`),h=et):h=K}return h}function R(U){if(y===void 0){const K=[];for(const Q of A()){if(!jIe(Q))continue;let V=K[Q.sourceIndex];V||(K[Q.sourceIndex]=V=[]),V.push(Q)}y=K.map(Q=>HN(Q,HVe,UIe))}return y[U]}function M(){if(m===void 0){const U=[];for(const K of A())U.push(K);m=HN(U,qVe,UIe)}return m}function C(U){const K=p.get(e.getCanonicalFileName(U.fileName));if(K===void 0)return U;const Q=R(K);if(!bt(Q))return U;let V=pA(Q,U.pos,JVe,nl);V<0&&(V=~V);const se=Q[V];return se===void 0||se.sourceIndex!==K?U:{fileName:s,pos:se.generatedPosition}}function O(U){const K=M();if(!bt(K))return U;let Q=pA(K,U.pos,KVe,nl);Q<0&&(Q=~Q);const V=K[Q];return V===void 0||!jIe(V)?U:{fileName:u[V.sourceIndex],pos:V.sourcePosition}}}var Lq,GF,VF,jF,XVe=I({"src/compiler/sourcemap.ts"(){ra(),sS(),Lq=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,GF=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,VF=/^\s*(\/\/[@#] .*)?$/,jF={getSourcePosition:tl,getGeneratedPosition:tl}}});function Wu(e){return e=Pl(e),e?as(e):0}function YVe(e){return!e||!Bg(e)?!1:bt(e.elements,HIe)}function HIe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Dm(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(Wt(o.sourceFiles,t),o.prepends)}}function $se(e){return!!mR(e)}function UF(e){if(mR(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!Bg(t))return!1;let r=0;for(const i of t.elements)HIe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&NA(e)}function kq(e){return!UF(e)&&(NA(e)||!!e.importClause&&Bg(e.importClause.namedBindings)&&YVe(e.importClause.namedBindings))}function wq(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new zq,l=[],u=new Map;let p,h=!1,m,y=!1,T=!1,A=!1;for(const C of t.statements)switch(C.kind){case 272:o.push(C),!T&&UF(C)&&(T=!0),!A&&kq(C)&&(A=!0);break;case 271:C.moduleReference.kind===283&&o.push(C);break;case 278:if(C.moduleSpecifier)if(!C.exportClause)o.push(C),y=!0;else if(o.push(C),Nf(C.exportClause))M(C);else{const O=C.exportClause.name;u.get(Sr(O))||(OP(l,Wu(C),O),u.set(Sr(O),!0),p=Rn(p,O)),T=!0}else M(C);break;case 277:C.isExportEquals&&!m&&(m=C);break;case 243:if(Qr(C,32))for(const O of C.declarationList.declarations)p=qIe(O,u,p,l);break;case 262:if(Qr(C,32))if(Qr(C,2048))h||(OP(l,Wu(C),e.factory.getDeclarationName(C)),h=!0);else{const O=C.name;u.get(Sr(O))||(OP(l,Wu(C),O),u.set(Sr(O),!0),p=Rn(p,O))}break;case 263:if(Qr(C,32))if(Qr(C,2048))h||(OP(l,Wu(C),e.factory.getDeclarationName(C)),h=!0);else{const O=C.name;O&&!u.get(Sr(O))&&(OP(l,Wu(C),O),u.set(Sr(O),!0),p=Rn(p,O))}break}const R=xH(e.factory,e.getEmitHelperFactory(),t,i,y,T,A);return R&&o.unshift(R),{externalImports:o,exportSpecifiers:s,exportEquals:m,hasExportStarsToExportValues:y,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:R};function M(C){for(const O of oa(C.exportClause,Nf).elements)if(!u.get(Sr(O.name))){const U=O.propertyName||O.name;C.moduleSpecifier||s.add(U,O);const K=r.getReferencedImportDeclaration(U)||r.getReferencedValueDeclaration(U);K&&OP(l,Wu(K),O.name),u.set(Sr(O.name),!0),p=Rn(p,O.name)}}}function qIe(e,t,r,i){if(ta(e.name))for(const o of e.name.elements)Gc(o)||(r=qIe(o,t,r,i));else if(!al(e.name)){const o=Sr(e.name);t.get(o)||(t.set(o,!0),r=Rn(r,e.name),Gg(e.name)&&OP(i,Wu(e),e.name))}return r}function OP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function c1(e){return ls(e)||e.kind===9||Bd(e.kind)||Ve(e)}function Ih(e){return!Ve(e)&&c1(e)}function WP(e){return e>=65&&e<=79}function FP(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function HF(e){if(!Zc(e))return;const t=hs(e.expression);return yS(t)?t:void 0}function JIe(e,t,r){for(let i=t;i<e.length;i+=1){const o=e[i];if(HF(o))return r.unshift(i),!0;if(BS(o)&&JIe(o.tryBlock.statements,0,r))return r.unshift(i),!0}return!1}function qF(e,t){const r=[];return JIe(e,t,r),r}function Oq(e,t,r){return mn(e.members,i=>QVe(i,t,r))}function $Ve(e){return ZVe(e)||Rl(e)}function JF(e){return mn(e.members,$Ve)}function QVe(e,t,r){return qo(e)&&(!!e.initializer||!t)&&mc(e)===r}function ZVe(e){return qo(e)&&mc(e)}function Dw(e){return e.kind===172&&e.initializer!==void 0}function Qse(e){return!aa(e)&&(AA(e)||Wd(e))&&qi(e.name)}function Zse(e){let t;if(e){const r=e.parameters,i=r.length>0&&GE(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;l<s;l++){const u=r[l+o];(t||Tf(u))&&(t||(t=new Array(s)),t[l]=Ry(u))}}return t}function Wq(e){const t=Ry(e),r=Zse(ng(e));if(!(!bt(t)&&!bt(r)))return{decorators:t,parameters:r}}function KF(e,t,r){switch(e.kind){case 177:case 178:return r?eje(e,t):KIe(e);case 174:return KIe(e);case 172:return tje(e);default:return}}function eje(e,t){if(!e.body)return;const{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}=NS(t.members,e),l=Tf(r)?r:i&&Tf(i)?i:void 0;if(!l||e!==l)return;const u=Ry(l),p=Zse(s);if(!(!bt(u)&&!bt(p)))return{decorators:u,parameters:p,getDecorators:o&&Ry(o),setDecorators:s&&Ry(s)}}function KIe(e){if(!e.body)return;const t=Ry(e),r=Zse(e);if(!(!bt(t)&&!bt(r)))return{decorators:t,parameters:r}}function tje(e){const t=Ry(e);if(bt(t))return{decorators:t}}function ele(e,t){for(;e;){const r=t(e);if(r!==void 0)return r;e=e.previous}}function tle(e){return{data:e}}function Fq(e,t){var r,i;return dS(t)?(r=e==null?void 0:e.generatedIdentifiers)==null?void 0:r.get(tw(t)):(i=e==null?void 0:e.identifiers)==null?void 0:i.get(t.escapedText)}function KS(e,t,r){dS(t)?(e.generatedIdentifiers??(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(tw(t),r)):(e.identifiers??(e.identifiers=new Map),e.identifiers.set(t.escapedText,r))}function nle(e,t){return ele(e,r=>Fq(r.privateEnv,t))}function rle(e){return!e.initializer&&Ve(e.name)}function Nw(e){return Jn(e,rle)}var gI,zq,nje=I({"src/compiler/transformers/utilities.ts"(){ra(),gI=class FN{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(FN.toKey(t))}get(t){return this._map.get(FN.toKey(t))}set(t,r){return this._map.set(FN.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(FN.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(dS(t)||al(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=tw(t),o=Kh(i)&&i!==t?FN.toKey(i):`(generated@${as(i)})`;return S0(!1,r.prefix,o,r.suffix,FN.toKey)}else{const i=`(auto@${r.id})`;return S0(!1,r.prefix,i,r.suffix,FN.toKey)}}return qi(t)?Sr(t).slice(1):Sr(t)}},zq=class extends gI{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){const r=this.get(e);r&&(_A(r,t),r.length||this.delete(e))}}}});function XS(e,t,r,i,o,s){let l=e,u;if(Wv(e))for(u=e.right;Uie(e.left)||Zj(e.left);)if(Wv(u))l=e=u,u=e.right;else return N.checkDefined(nt(u,t,yt));let p;const h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:T=>uje(r.factory,T),createObjectBindingOrAssignmentPattern:T=>pje(r.factory,T),createArrayBindingOrAssignmentElement:mje,visitor:t};if(u&&(u=nt(u,t,yt),N.assert(u),Ve(u)&&ile(e,u.escapedText)||ole(e)?u=vI(h,u,!1,l):o?u=vI(h,u,!0,l):Ys(e)&&(l=u)),zP(h,e,u,l,Wv(e)),u&&o){if(!bt(p))return u;p.push(u)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function m(T){p=Rn(p,T)}function y(T,A,R,M){N.assertNode(T,s?Ve:yt);const C=s?s(T,A,R):dt(r.factory.createAssignment(N.checkDefined(nt(T,t,yt)),A),R);C.original=M,m(C)}}function ile(e,t){const r=$y(e);return dL(r)?rje(r,t):Ve(r)?r.escapedText===t:!1}function rje(e,t){const r=$R(e);for(const i of r)if(ile(i,t))return!0;return!1}function ole(e){const t=oF(e);if(t&&Za(t)&&!DE(t.expression))return!0;const r=$y(e);return!!r&&dL(r)&&ije(r)}function ije(e){return!!Xe($R(e),ole)}function u1(e,t,r,i,o,s=!1,l){let u;const p=[],h=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:y,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:A=>cje(r.factory,A),createObjectBindingOrAssignmentPattern:A=>dje(r.factory,A),createArrayBindingOrAssignmentElement:A=>fje(r.factory,A),visitor:t};if(Oi(e)){let A=Zk(e);A&&(Ve(A)&&ile(e,A.escapedText)||ole(e))&&(A=vI(m,N.checkDefined(nt(A,m.visitor,yt)),!1,A),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,A))}if(zP(m,e,o,e,l),u){const A=r.factory.createTempVariable(void 0);if(s){const R=r.factory.inlineExpressions(u);u=void 0,T(A,R,void 0,void 0)}else{r.hoistVariableDeclaration(A);const R=Xa(p);R.pendingExpressions=Rn(R.pendingExpressions,r.factory.createAssignment(A,R.value)),qr(R.pendingExpressions,u),R.value=A}}for(const{pendingExpressions:A,name:R,value:M,location:C,original:O}of p){const U=r.factory.createVariableDeclaration(R,void 0,void 0,A?r.factory.inlineExpressions(Rn(A,M)):M);U.original=O,dt(U,C),h.push(U)}return h;function y(A){u=Rn(u,A)}function T(A,R,M,C){N.assertNode(A,pS),u&&(R=r.factory.inlineExpressions(Rn(u,R)),u=void 0),p.push({pendingExpressions:u,name:A,value:R,location:M,original:C})}}function zP(e,t,r,i,o){const s=$y(t);if(!o){const l=nt(Zk(t),e.visitor,yt);l?r?(r=sje(e,r,l,i),!Ih(l)&&dL(s)&&(r=vI(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}WV(s)?oje(e,t,s,r,i):FV(s)?aje(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function oje(e,t,r,i,o){const s=$R(r),l=s.length;if(l!==1){const h=!uL(t)||l!==0;i=vI(e,i,h,o)}let u,p;for(let h=0;h<l;h++){const m=s[h];if(iF(m)){if(h===l-1){u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const y=e.context.getEmitHelperFactory().createRestHelper(i,s,p,r);zP(e,m,y,m)}}else{const y=RH(m);if(e.level>=1&&!(m.transformFlags&98304)&&!($y(m).transformFlags&98304)&&!Za(y))u=Rn(u,nt(m,e.visitor,pre));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const T=lje(e,i,y);Za(y)&&(p=Rn(p,T.argumentExpression)),zP(e,m,T,m)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function aje(e,t,r,i,o){const s=$R(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=vI(e,dt(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&iF(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Jn(s,Gc)){const h=!uL(t)||l!==0;i=vI(e,i,h,o)}let u,p;for(let h=0;h<l;h++){const m=s[h];if(e.level>=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!XIe(m)){e.hasTransformedPriorElement=!0;const y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),p=Rn(p,[y,m]),u=Rn(u,e.createArrayBindingOrAssignmentElement(y))}else u=Rn(u,m);else{if(Gc(m))continue;if(iF(m)){if(h===l-1){const y=e.context.factory.createArraySliceCall(i,h);zP(e,m,y,m)}}else{const y=e.context.factory.createElementAccessExpression(i,h);zP(e,m,y,m)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),p)for(const[h,m]of p)zP(e,m,h,m)}function XIe(e){const t=$y(e);if(!t||Gc(t))return!0;const r=oF(e);if(r&&!x_(r))return!1;const i=Zk(e);return i&&!Ih(i)?!1:dL(t)?Jn($R(t),XIe):Ve(t)}function sje(e,t,r,i){return t=vI(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function lje(e,t,r){const{factory:i}=e.context;if(Za(r)){const o=vI(e,N.checkDefined(nt(r.expression,e.visitor,yt)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(ef(r)){const o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{const o=e.context.factory.createIdentifier(Sr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function vI(e,t,r,i){if(Ve(t)&&r)return t;{const o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(dt(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function cje(e,t){return N.assertEachNode(t,h4),e.createArrayBindingPattern(t)}function uje(e,t){return N.assertEachNode(t,fL),e.createArrayLiteralExpression(Wt(t,e.converters.convertToArrayAssignmentElement))}function dje(e,t){return N.assertEachNode(t,$a),e.createObjectBindingPattern(t)}function pje(e,t){return N.assertEachNode(t,pL),e.createObjectLiteralExpression(Wt(t,e.converters.convertToObjectAssignmentElement))}function fje(e,t){return e.createBindingElement(void 0,void 0,t)}function mje(e){return e}var Bq,_je=I({"src/compiler/transformers/destructuring.ts"(){ra(),Bq=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(Bq||{})}});function ale(e,t,r=e.createThis()){const i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return Ou(l).classThis=t,l}function BP(e){var t;if(!Rl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return Zc(r)&&Pc(r.expression,!0)&&Ve(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function Gq(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&bt(e.members,BP)}function sle(e,t,r,i){if(Gq(t))return t;const o=ale(e,r,i);t.name&&Da(o.body.statements[0],t.name);const s=e.createNodeArray([o,...t.members]);dt(s,t.members);const l=Ac(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s);return Ou(l).classThis=r,l}var hje=I({"src/compiler/transformers/classThis.ts"(){ra()}});function GP(e,t,r){const i=Pl($l(r));return(Ac(i)||Tc(i))&&!i.name&&Qr(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function YIe(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(x_(t)||qi(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(x_(t.expression)&&!Ve(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);const s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),u=i.updateComputedPropertyName(t,l);return{assignedName:o,name:u}}function lle(e,t,r=e.factory.createThis()){const{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),u=i.createClassStaticBlockDeclaration(l);return Ou(u).assignedName=t,u}function yI(e){var t;if(!Rl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return Zc(r)&&dP(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function XF(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&bt(e.members,yI)}function Vq(e){return!!e.name||XF(e)}function YF(e,t,r,i){if(XF(t))return t;const{factory:o}=e,s=lle(e,r,i);t.name&&Da(s.body.statements[0],t.name);const l=mi(t.members,BP)+1,u=t.members.slice(0,l),p=t.members.slice(l),h=o.createNodeArray([...u,s,...p]);return dt(h,t.members),t=Ac(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h),Ou(t).assignedName=r,t}function lD(e,t,r,i){if(i&&Na(r)&&_j(r))return t;const{factory:o}=e,s=$l(t),l=Qc(s)?oa(YF(e,s,r),Qc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function gje(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=YIe(e,t.name,i),u=lD(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function vje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):GP(o,t.name,t.objectAssignmentInitializer),l=lD(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function yje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):GP(o,t.name,t.initializer),l=lD(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function bje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):GP(o,t.name,t.initializer),l=lD(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function Eje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):GP(o,t.name,t.initializer),l=lD(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function Sje(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=YIe(e,t.name,i),u=lD(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,u)}function Tje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):GP(o,t.left,t.right),l=lD(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function Aje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=lD(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function bp(e,t,r,i){switch(t.kind){case 303:return gje(e,t,r,i);case 304:return vje(e,t,r,i);case 260:return yje(e,t,r,i);case 169:return bje(e,t,r,i);case 208:return Eje(e,t,r,i);case 172:return Sje(e,t,r,i);case 226:return Tje(e,t,r,i);case 277:return Aje(e,t,r,i)}}var Ije=I({"src/compiler/transformers/namedEvaluation.ts"(){ra()}});function jq(e,t,r,i,o,s){const l=nt(t.tag,r,yt);N.assert(l);const u=[void 0],p=[],h=[],m=t.template;if(s===0&&!Bj(m))return xn(t,r,e);const{factory:y}=e;if(XA(m))p.push(cle(y,m)),h.push(ule(y,m,i));else{p.push(cle(y,m.head)),h.push(ule(y,m.head,i));for(const A of m.templateSpans)p.push(cle(y,A.literal)),h.push(ule(y,A.literal,i)),u.push(N.checkDefined(nt(A.expression,r,yt)))}const T=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(p),y.createArrayLiteralExpression(h));if(sc(i)){const A=y.createUniqueName("templateObject");o(A),u[0]=y.createLogicalOr(A,y.createAssignment(A,T))}else u[0]=T;return y.createCallExpression(l,void 0,u)}function cle(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function ule(e,t,r){let i=t.rawText;if(i===void 0){N.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=CE(r,t);const o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,`
`),dt(e.createStringLiteral(i),t)}var Uq,xje=I({"src/compiler/transformers/taggedTemplate.ts"(){ra(),Uq=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(Uq||{})}});function dle(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),p=e.getCompilerOptions(),h=os(p),m=wu(p),y=!!p.experimentalDecorators,T=p.emitDecoratorMetadata?fle(e):void 0,A=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=lc,e.onSubstituteNode=Nl,e.enableSubstitution(211),e.enableSubstitution(212);let M,C,O,U,K,Q,V,se;return G;function G(Z){return Z.kind===313?ne(Z):he(Z)}function ne(Z){return t.createBundle(Z.sourceFiles.map(he),eo(Z.prepends,we=>we.kind===315?UU(we,"js"):we))}function he(Z){if(Z.isDeclarationFile)return Z;M=Z;const we=ye(Z,ot);return zg(we,e.readEmitHelpers()),M=void 0,we}function ye(Z,we){const Et=U,un=K,Er=Q;Y(Z);const vr=we(Z);return U!==Et&&(K=un),U=Et,Q=Er,vr}function Y(Z){switch(Z.kind){case 312:case 269:case 268:case 241:U=Z,K=void 0;break;case 263:case 262:if(Qr(Z,128))break;Z.name?J(Z):N.assert(Z.kind===263||Qr(Z,2048));break}}function X(Z){return ye(Z,oe)}function oe(Z){return Z.transformFlags&1?je(Z):Z}function pe(Z){return ye(Z,Ce)}function Ce(Z){switch(Z.kind){case 272:case 271:case 277:case 278:return ie(Z);default:return oe(Z)}}function de(Z){const we=No(Z);if(we===Z||kl(Z))return!1;if(!we||we.kind!==Z.kind)return!0;switch(Z.kind){case 272:if(N.assertNode(we,Mc),Z.importClause!==we.importClause||Z.attributes!==we.attributes)return!0;break;case 271:if(N.assertNode(we,eu),Z.name!==we.name||Z.isTypeOnly!==we.isTypeOnly||Z.moduleReference!==we.moduleReference&&(Qd(Z.moduleReference)||Qd(we.moduleReference)))return!0;break;case 278:if(N.assertNode(we,Yl),Z.exportClause!==we.exportClause||Z.attributes!==we.attributes)return!0;break}return!1}function ie(Z){if(de(Z))return Z.transformFlags&1?xn(Z,X,e):Z;switch(Z.kind){case 272:return En(Z);case 271:return xo(Z);case 277:return xi(Z);case 278:return ir(Z);default:N.fail("Unhandled ellided statement")}}function ve(Z){return ye(Z,Le)}function Le(Z){if(!(Z.kind===278||Z.kind===272||Z.kind===273||Z.kind===271&&Z.moduleReference.kind===283))return Z.transformFlags&1||Qr(Z,32)?je(Z):Z}function Ue(Z){return we=>ye(we,Et=>Ee(Et,Z))}function Ee(Z,we){switch(Z.kind){case 176:return Dn(Z);case 172:return zt(Z,we);case 177:return ka(Z,we);case 178:return Tn(Z,we);case 174:return Io(Z,we);case 175:return xn(Z,X,e);case 240:return Z;case 181:return;default:return N.failBadSyntaxKind(Z)}}function De(Z){return we=>ye(we,Et=>Me(Et,Z))}function Me(Z,we){switch(Z.kind){case 303:case 304:case 305:return X(Z);case 177:return ka(Z,we);case 178:return Tn(Z,we);case 174:return Io(Z,we);default:return N.failBadSyntaxKind(Z)}}function We(Z){return Eu(Z)?void 0:X(Z)}function At(Z){return Aa(Z)?void 0:X(Z)}function Se(Z){if(!Eu(Z)&&!(OA(Z.kind)&28895)&&!(C&&Z.kind===95))return Z}function je(Z){if(Hi(Z)&&Qr(Z,128))return t.createNotEmittedStatement(Z);switch(Z.kind){case 95:case 90:return C?void 0:Z;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(Z);case 270:return;case 264:return t.createNotEmittedStatement(Z);case 263:return tn(Z);case 231:return rn(Z);case 298:return Ar(Z);case 233:return sn(Z);case 210:return Bt(Z);case 176:case 172:case 174:case 177:case 178:case 175:return N.fail("Class and object literal elements must be visited with their respective visitors");case 262:return wn(Z);case 218:return He(Z);case 219:return mt(Z);case 169:return ft(Z);case 217:return pt(Z);case 216:case 234:return j(Z);case 238:return Rt(Z);case 213:return Ye(Z);case 214:return _t(Z);case 215:return Gt(Z);case 235:return it(Z);case 266:return q(Z);case 243:return Ct(Z);case 260:return Fe(Z);case 267:return Tt(Z);case 271:return xo(Z);case 285:return yn(Z);case 286:return fn(Z);default:return xn(Z,X,e)}}function ot(Z){const we=dd(p,"alwaysStrict")&&!(sc(Z)&&m>=5)&&!Yf(Z);return t.updateSourceFile(Z,Nq(Z.statements,pe,e,0,we))}function Bt(Z){return t.updateObjectLiteralExpression(Z,jn(Z.properties,De(Z),Mg))}function vt(Z){let we=0;bt(Oq(Z,!0,!0))&&(we|=1);const Et=I_(Z);return Et&&$l(Et.expression).kind!==106&&(we|=64),Lv(y,Z)&&(we|=2),SC(y,Z)&&(we|=4),Nn(Z)?we|=8:ko(Z)?we|=32:Ql(Z)&&(we|=16),we}function $e(Z){return!!(Z.transformFlags&8192)}function It(Z){return Tf(Z)||bt(Z.typeParameters)||bt(Z.heritageClauses,$e)||bt(Z.members,$e)}function tn(Z){const we=vt(Z),Et=h<=1&&!!(we&7);if(!It(Z)&&!Lv(y,Z)&&!Nn(Z))return t.updateClassDeclaration(Z,jn(Z.modifiers,Se,Aa),Z.name,void 0,jn(Z.heritageClauses,X,nf),jn(Z.members,Ue(Z),Yc));Et&&e.startLexicalEnvironment();const un=Et||we&8;let Er=un?jn(Z.modifiers,At,sl):jn(Z.modifiers,X,sl);we&2&&(Er=$n(Er,Z));const jr=un&&!Z.name||we&4||we&1?Z.name??t.getGeneratedNameForNode(Z):Z.name,Di=t.updateClassDeclaration(Z,Er,jr,void 0,jn(Z.heritageClauses,X,nf),Mn(Z));let Mr=Ga(Z);we&1&&(Mr|=64),pr(Di,Mr);let Yo;if(Et){const Sl=[Di],jc=tU(Pa(M.text,Z.members.end),20),Us=t.getInternalName(Z),vc=t.createPartiallyEmittedExpression(Us);MR(vc,jc.end),pr(vc,3072);const Es=t.createReturnStatement(vc);QC(Es,jc.pos),pr(Es,3840),Sl.push(Es),Yh(Sl,e.endLexicalEnvironment());const Uc=t.createImmediatelyInvokedArrowFunction(Sl);Mk(Uc,1);const ip=t.createVariableDeclaration(t.getLocalName(Z,!1,!1),void 0,void 0,Uc);Nr(ip,Z);const wc=t.createVariableStatement(void 0,t.createVariableDeclarationList([ip],1));Nr(wc,Z),ac(wc,Z),Da(wc,Og(Z)),Xu(wc),Yo=wc}else Yo=Di;if(un){if(we&8)return[Yo,cs(Z)];if(we&32)return[Yo,t.createExportDefault(t.getLocalName(Z,!1,!0))];if(we&16)return[Yo,t.createExternalModuleExport(t.getDeclarationName(Z,!1,!0))]}return Yo}function rn(Z){let we=jn(Z.modifiers,At,sl);return Lv(y,Z)&&(we=$n(we,Z)),t.updateClassExpression(Z,we,Z.name,void 0,jn(Z.heritageClauses,X,nf),Mn(Z))}function Mn(Z){const we=jn(Z.members,Ue(Z),Yc);let Et;const un=ng(Z),Er=un&&mn(un.parameters,vr=>pp(vr,un));if(Er)for(const vr of Er){const jr=t.createPropertyDeclaration(void 0,vr.name,void 0,void 0,void 0);Nr(jr,vr),Et=Rn(Et,jr)}return Et?(Et=qr(Et,we),dt(t.createNodeArray(Et),Z.members)):we}function $n(Z,we){const Et=Qt(we,we);if(bt(Et)){const un=[];qr(un,C6(Z,ew)),qr(un,mn(Z,Eu)),qr(un,Et),qr(un,mn(une(Z,ew),Aa)),Z=dt(t.createNodeArray(un),Z)}return Z}function gn(Z,we,Et){if(di(Et)&&mj(y,we,Et)){const un=Qt(we,Et);if(bt(un)){const Er=[];qr(Er,mn(Z,Eu)),qr(Er,un),qr(Er,mn(Z,Aa)),Z=dt(t.createNodeArray(Er),Z)}}return Z}function Qt(Z,we){if(y)return $Ie?vi(Z,we):Yt(Z,we)}function Yt(Z,we){if(T){let Et;if(so(Z)){const un=r().createMetadataHelper("design:type",T.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z));Et=Rn(Et,t.createDecorator(un))}if(Co(Z)){const un=r().createMetadataHelper("design:paramtypes",T.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},Z,we));Et=Rn(Et,t.createDecorator(un))}if(Wi(Z)){const un=r().createMetadataHelper("design:returntype",T.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z));Et=Rn(Et,t.createDecorator(un))}return Et}}function vi(Z,we){if(T){let Et;if(so(Z)){const un=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z)));Et=Rn(Et,un)}if(Co(Z)){const un=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},Z,we)));Et=Rn(Et,un)}if(Wi(Z)){const un=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z)));Et=Rn(Et,un)}if(Et){const un=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(Et,!0));return[t.createDecorator(un)]}}}function so(Z){const we=Z.kind;return we===174||we===177||we===178||we===172}function Wi(Z){return Z.kind===174}function Co(Z){switch(Z.kind){case 263:case 231:return ng(Z)!==void 0;case 174:case 177:case 178:return!0}return!1}function Ln(Z,we){const Et=Z.name;return qi(Et)?t.createIdentifier(""):Za(Et)?Et.expression:Ve(Et)?t.createStringLiteral(Sr(Et)):t.cloneNode(Et)}function Ci(Z){const we=Z.name;if(Za(we)&&(!mc(Z)&&Q||Tf(Z)&&y)){const Et=nt(we.expression,X,yt);N.assert(Et);const un=bm(Et);if(!Ih(un)){const Er=t.getGeneratedNameForNode(we);return l(Er),t.updateComputedPropertyName(we,t.createAssignment(Er,Et))}}return N.checkDefined(nt(we,X,oc))}function Ar(Z){if(Z.token!==119)return xn(Z,X,e)}function sn(Z){return t.updateExpressionWithTypeArguments(Z,N.checkDefined(nt(Z.expression,X,Zd)),void 0)}function tt(Z){return!Fl(Z.body)}function zt(Z,we){const Et=Z.flags&33554432||Qr(Z,64);if(Et&&!(y&&Tf(Z)))return;let un=di(we)?Et?jn(Z.modifiers,At,sl):jn(Z.modifiers,X,sl):jn(Z.modifiers,We,sl);return un=gn(un,Z,we),Et?t.updatePropertyDeclaration(Z,So(un,t.createModifiersFromModifierFlags(128)),N.checkDefined(nt(Z.name,X,oc)),void 0,void 0,void 0):t.updatePropertyDeclaration(Z,un,Ci(Z),void 0,void 0,nt(Z.initializer,X,yt))}function Dn(Z){if(tt(Z))return t.updateConstructorDeclaration(Z,void 0,Dl(Z.parameters,X,e),yi(Z.body,Z))}function ci(Z,we,Et,un,Er,vr){const jr=un[Er],Di=we[jr];if(qr(Z,jn(we,X,Hi,Et,jr-Et)),BS(Di)){const Mr=[];ci(Mr,Di.tryBlock.statements,0,un,Er+1,vr);const Yo=t.createNodeArray(Mr);dt(Yo,Di.tryBlock.statements),Z.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Mr),nt(Di.catchClause,X,r1),nt(Di.finallyBlock,X,Ko)))}else qr(Z,jn(we,X,Hi,jr,1)),qr(Z,vr);qr(Z,jn(we,X,Hi,jr+1))}function yi(Z,we){const Et=we&&mn(we.parameters,Mr=>pp(Mr,we));if(!bt(Et))return af(Z,X,e);let un=[];o();const Er=t.copyPrologue(Z.statements,un,!1,X),vr=qF(Z.statements,Er),jr=eo(Et,Qi);vr.length?ci(un,Z.statements,Er,vr,0,jr):(qr(un,jr),qr(un,jn(Z.statements,X,Hi,Er))),un=t.mergeLexicalEnvironment(un,s());const Di=t.createBlock(dt(t.createNodeArray(un),Z.statements),!0);return dt(Di,Z),Nr(Di,Z),Di}function Qi(Z){const we=Z.name;if(!Ve(we))return;const Et=Ha(dt(t.cloneNode(we),we),we.parent);pr(Et,3168);const un=Ha(dt(t.cloneNode(we),we),we.parent);return pr(un,3072),Xu(Pk(dt(Nr(t.createExpressionStatement(t.createAssignment(dt(t.createPropertyAccessExpression(t.createThis(),Et),Z.name),un)),Z),m0(Z,-1))))}function Io(Z,we){if(!(Z.transformFlags&1))return Z;if(!tt(Z))return;let Et=di(we)?jn(Z.modifiers,X,sl):jn(Z.modifiers,We,sl);return Et=gn(Et,Z,we),t.updateMethodDeclaration(Z,Et,Z.asteriskToken,Ci(Z),void 0,void 0,Dl(Z.parameters,X,e),void 0,af(Z.body,X,e))}function fa(Z){return!(Fl(Z.body)&&Qr(Z,64))}function ka(Z,we){if(!(Z.transformFlags&1))return Z;if(!fa(Z))return;let Et=di(we)?jn(Z.modifiers,X,sl):jn(Z.modifiers,We,sl);return Et=gn(Et,Z,we),t.updateGetAccessorDeclaration(Z,Et,Ci(Z),Dl(Z.parameters,X,e),void 0,af(Z.body,X,e)||t.createBlock([]))}function Tn(Z,we){if(!(Z.transformFlags&1))return Z;if(!fa(Z))return;let Et=di(we)?jn(Z.modifiers,X,sl):jn(Z.modifiers,We,sl);return Et=gn(Et,Z,we),t.updateSetAccessorDeclaration(Z,Et,Ci(Z),Dl(Z.parameters,X,e),af(Z.body,X,e)||t.createBlock([]))}function wn(Z){if(!tt(Z))return t.createNotEmittedStatement(Z);const we=t.updateFunctionDeclaration(Z,jn(Z.modifiers,Se,Aa),Z.asteriskToken,Z.name,void 0,Dl(Z.parameters,X,e),void 0,af(Z.body,X,e)||t.createBlock([]));if(Nn(Z)){const Et=[we];return Vs(Et,Z),Et}return we}function He(Z){return tt(Z)?t.updateFunctionExpression(Z,jn(Z.modifiers,Se,Aa),Z.asteriskToken,Z.name,void 0,Dl(Z.parameters,X,e),void 0,af(Z.body,X,e)||t.createBlock([])):t.createOmittedExpression()}function mt(Z){return t.updateArrowFunction(Z,jn(Z.modifiers,Se,Aa),void 0,Dl(Z.parameters,X,e),void 0,Z.equalsGreaterThanToken,af(Z.body,X,e))}function ft(Z){if(GE(Z))return;const we=t.updateParameterDeclaration(Z,jn(Z.modifiers,Et=>Eu(Et)?X(Et):void 0,sl),Z.dotDotDotToken,N.checkDefined(nt(Z.name,X,pS)),void 0,void 0,nt(Z.initializer,X,yt));return we!==Z&&(ac(we,Z),dt(we,C_(Z)),Da(we,C_(Z)),pr(we.name,64)),we}function Ct(Z){if(Nn(Z)){const we=VC(Z.declarationList);return we.length===0?void 0:dt(t.createExpressionStatement(t.inlineExpressions(Wt(we,le))),Z)}else return xn(Z,X,e)}function le(Z){const we=Z.name;return ta(we)?XS(Z,X,e,0,!1,cu):dt(t.createAssignment(ho(we),N.checkDefined(nt(Z.initializer,X,yt))),Z)}function Fe(Z){const we=t.updateVariableDeclaration(Z,N.checkDefined(nt(Z.name,X,pS)),void 0,void 0,nt(Z.initializer,X,yt));return Z.type&&Xoe(we.name,Z.type),we}function pt(Z){const we=$l(Z.expression,-7);if(mS(we)){const Et=nt(Z.expression,X,yt);return N.assert(Et),t.createPartiallyEmittedExpression(Et,Z)}return xn(Z,X,e)}function j(Z){const we=nt(Z.expression,X,yt);return N.assert(we),t.createPartiallyEmittedExpression(we,Z)}function it(Z){const we=nt(Z.expression,X,Zd);return N.assert(we),t.createPartiallyEmittedExpression(we,Z)}function Rt(Z){const we=nt(Z.expression,X,yt);return N.assert(we),t.createPartiallyEmittedExpression(we,Z)}function Ye(Z){return t.updateCallExpression(Z,N.checkDefined(nt(Z.expression,X,yt)),void 0,jn(Z.arguments,X,yt))}function _t(Z){return t.updateNewExpression(Z,N.checkDefined(nt(Z.expression,X,yt)),void 0,jn(Z.arguments,X,yt))}function Gt(Z){return t.updateTaggedTemplateExpression(Z,N.checkDefined(nt(Z.tag,X,yt)),void 0,N.checkDefined(nt(Z.template,X,IA)))}function yn(Z){return t.updateJsxSelfClosingElement(Z,N.checkDefined(nt(Z.tagName,X,_C)),void 0,N.checkDefined(nt(Z.attributes,X,n1)))}function fn(Z){return t.updateJsxOpeningElement(Z,N.checkDefined(nt(Z.tagName,X,_C)),void 0,N.checkDefined(nt(Z.attributes,X,n1)))}function hn(Z){return!ME(Z)||KE(p)}function q(Z){if(!hn(Z))return t.createNotEmittedStatement(Z);const we=[];let Et=4;const un=ke(we,Z);un&&(m!==4||U!==M)&&(Et|=1024);const Er=da(Z),vr=uu(Z),jr=Nn(Z)?t.getExternalModuleOrNamespaceExportName(O,Z,!1,!0):t.getDeclarationName(Z,!1,!0);let Di=t.createLogicalOr(jr,t.createAssignment(jr,t.createObjectLiteralExpression()));if(Nn(Z)){const Yo=t.getLocalName(Z,!1,!0);Di=t.createAssignment(Yo,Di)}const Mr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Er)],void 0,Oe(Z,vr)),void 0,[Di]));return Nr(Mr,Z),un&&(v0(Mr,void 0),HA(Mr,void 0)),dt(Mr,Z),P_(Mr,Et),we.push(Mr),we}function Oe(Z,we){const Et=O;O=we;const un=[];i();const Er=Wt(Z.members,Lt);return Yh(un,s()),qr(un,Er),O=Et,t.createBlock(dt(t.createNodeArray(un),Z.members),!0)}function Lt(Z){const we=Ln(Z),Et=L(Z),un=t.createAssignment(t.createElementAccessExpression(O,we),Et),Er=Et.kind===11?un:t.createAssignment(t.createElementAccessExpression(O,un),we);return dt(t.createExpressionStatement(dt(Er,Z)),Z)}function L(Z){const we=u.getConstantValue(Z);return we!==void 0?typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we):(Ts(),Z.initializer?N.checkDefined(nt(Z.initializer,X,yt)):t.createVoidZero())}function me(Z){const we=No(Z,Xl);return we?Aq(we,KE(p)):!0}function J(Z){K||(K=new Map);const we=Be(Z);K.has(we)||K.set(we,Z)}function fe(Z){if(K){const we=Be(Z);return K.get(we)===Z}return!0}function Be(Z){return N.assertNode(Z.name,Ve),Z.name.escapedText}function ke(Z,we){const Et=t.createVariableDeclaration(t.getLocalName(we,!1,!0)),un=U.kind===312?0:1,Er=t.createVariableStatement(jn(we.modifiers,Se,Aa),t.createVariableDeclarationList([Et],un));return Nr(Et,we),v0(Et,void 0),HA(Et,void 0),Nr(Er,we),J(we),fe(we)?(we.kind===266?Da(Er.declarationList,we):Da(Er,we),ac(Er,we),P_(Er,2048),Z.push(Er),!0):!1}function Tt(Z){if(!me(Z))return t.createNotEmittedStatement(Z);N.assertNode(Z.name,Ve,"A TypeScript namespace should have an Identifier name."),Ca();const we=[];let Et=4;const un=ke(we,Z);un&&(m!==4||U!==M)&&(Et|=1024);const Er=da(Z),vr=uu(Z),jr=Nn(Z)?t.getExternalModuleOrNamespaceExportName(O,Z,!1,!0):t.getDeclarationName(Z,!1,!0);let Di=t.createLogicalOr(jr,t.createAssignment(jr,t.createObjectLiteralExpression()));if(Nn(Z)){const Yo=t.getLocalName(Z,!1,!0);Di=t.createAssignment(Yo,Di)}const Mr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Er)],void 0,kt(Z,vr)),void 0,[Di]));return Nr(Mr,Z),un&&(v0(Mr,void 0),HA(Mr,void 0)),dt(Mr,Z),P_(Mr,Et),we.push(Mr),we}function kt(Z,we){const Et=O,un=C,Er=K;O=we,C=Z,K=void 0;const vr=[];i();let jr,Di;if(Z.body)if(Z.body.kind===268)ye(Z.body,Yo=>qr(vr,jn(Yo.statements,ve,Hi))),jr=Z.body.statements,Di=Z.body;else{const Yo=Tt(Z.body);Yo&&(To(Yo)?qr(vr,Yo):vr.push(Yo));const Sl=en(Z).body;jr=m0(Sl.statements,-1)}Yh(vr,s()),O=Et,C=un,K=Er;const Mr=t.createBlock(dt(t.createNodeArray(vr),jr),!0);return dt(Mr,Di),(!Z.body||Z.body.kind!==268)&&pr(Mr,Ga(Mr)|3072),Mr}function en(Z){if(Z.body.kind===267)return en(Z.body)||Z.body}function En(Z){if(!Z.importClause)return Z;if(Z.importClause.isTypeOnly)return;const we=nt(Z.importClause,Gn,bh);return we||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration(Z,void 0,we,Z.moduleSpecifier,Z.attributes):void 0}function Gn(Z){N.assert(!Z.isTypeOnly);const we=ue(Z)?Z.name:void 0,Et=nt(Z.namedBindings,qn,VV);return we||Et?t.updateImportClause(Z,!1,we,Et):void 0}function qn(Z){if(Z.kind===274)return ue(Z)?Z:void 0;{const we=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Et=jn(Z.elements,Pi,tp);return we||bt(Et)?t.updateNamedImports(Z,Et):void 0}}function Pi(Z){return!Z.isTypeOnly&&ue(Z)?Z:void 0}function xi(Z){return p.verbatimModuleSyntax||u.isValueAliasDeclaration(Z)?xn(Z,X,e):void 0}function ir(Z){if(Z.isTypeOnly)return;if(!Z.exportClause||Eh(Z.exportClause))return Z;const we=p.verbatimModuleSyntax||!!Z.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Et=nt(Z.exportClause,un=>Mi(un,we),CV);return Et?t.updateExportDeclaration(Z,void 0,Z.isTypeOnly,Et,Z.moduleSpecifier,Z.attributes):void 0}function Vr(Z,we){const Et=jn(Z.elements,Ri,Ku);return we||bt(Et)?t.updateNamedExports(Z,Et):void 0}function vo(Z){return t.updateNamespaceExport(Z,N.checkDefined(nt(Z.name,X,Ve)))}function Mi(Z,we){return Eh(Z)?vo(Z):Vr(Z,we)}function Ri(Z){return!Z.isTypeOnly&&(p.verbatimModuleSyntax||u.isValueAliasDeclaration(Z))?Z:void 0}function Jr(Z){return ue(Z)||!sc(M)&&u.isTopLevelValueImportEqualsWithEntityName(Z)}function xo(Z){if(Z.isTypeOnly)return;if(c0(Z)){const Et=ue(Z);return!Et&&p.importsNotUsedAsValues===1?Nr(dt(t.createImportDeclaration(void 0,void 0,Z.moduleReference.expression,void 0),Z),Z):Et?xn(Z,X,e):void 0}if(!Jr(Z))return;const we=Xk(t,Z.moduleReference);return pr(we,7168),Ql(Z)||!Nn(Z)?Nr(dt(t.createVariableStatement(jn(Z.modifiers,Se,Aa),t.createVariableDeclarationList([Nr(t.createVariableDeclaration(Z.name,void 0,void 0,we),Z)])),Z),Z):Nr(gl(Z.name,we,Z),Z)}function Nn(Z){return C!==void 0&&Qr(Z,32)}function Fs(Z){return C===void 0&&Qr(Z,32)}function Ql(Z){return Fs(Z)&&!Qr(Z,2048)}function ko(Z){return Fs(Z)&&Qr(Z,2048)}function cs(Z){const we=t.createAssignment(t.getExternalModuleOrNamespaceExportName(O,Z,!1,!0),t.getLocalName(Z));Da(we,Af(Z.name?Z.name.pos:Z.pos,Z.end));const Et=t.createExpressionStatement(we);return Da(Et,Af(-1,Z.end)),Et}function Vs(Z,we){Z.push(cs(we))}function gl(Z,we,Et){return dt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(O,Z,!1,!0),we)),Et)}function cu(Z,we,Et){return dt(t.createAssignment(ho(Z),we),Et)}function ho(Z){return t.getNamespaceMemberName(O,Z,!1,!0)}function da(Z){const we=t.getGeneratedNameForNode(Z);return Da(we,Z.name),we}function uu(Z){return t.getGeneratedNameForNode(Z)}function Ts(){V&8||(V|=8,e.enableSubstitution(80))}function Ca(){V&2||(V|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function ml(Z){return Pl(Z).kind===267}function Lf(Z){return Pl(Z).kind===266}function lc(Z,we,Et){const un=se,Er=M;$i(we)&&(M=we),V&2&&ml(we)&&(se|=2),V&8&&Lf(we)&&(se|=8),A(Z,we,Et),se=un,M=Er}function Nl(Z,we){return we=R(Z,we),Z===1?wo(we):np(we)?cl(we):we}function cl(Z){if(V&2){const we=Z.name,Et=js(we);if(Et){if(Z.objectAssignmentInitializer){const un=t.createAssignment(Et,Z.objectAssignmentInitializer);return dt(t.createPropertyAssignment(we,un),Z)}return dt(t.createPropertyAssignment(we,Et),Z)}}return Z}function wo(Z){switch(Z.kind){case 80:return nn(Z);case 211:return tu(Z);case 212:return du(Z)}return Z}function nn(Z){return js(Z)||Z}function js(Z){if(V&se&&!al(Z)&&!Gg(Z)){const we=u.getReferencedExportContainer(Z,!1);if(we&&we.kind!==312&&(se&2&&we.kind===267||se&8&&we.kind===266))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(we),Z),Z)}}function tu(Z){return Ms(Z)}function du(Z){return Ms(Z)}function Tp(Z){return Z.replace(/\*\//g,"*_/")}function Ms(Z){const we=xc(Z);if(we!==void 0){Joe(Z,we);const Et=typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we);if(!p.removeComments){const un=Pl(Z,ws);lW(Et,3,` ${Tp(fc(un))} `)}return Et}return Z}function xc(Z){if(!rm(p))return Fr(Z)||$s(Z)?u.getConstantValue(Z):void 0}function ue(Z){return p.verbatimModuleSyntax||lr(Z)||(p.preserveValueImports?u.isValueAliasDeclaration(Z):u.isReferencedAliasDeclaration(Z))}}var $Ie,Rje=I({"src/compiler/transformers/ts.ts"(){ra(),$Ie=!1}});function ple(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,p=e.getEmitResolver(),h=e.getCompilerOptions(),m=os(h),y=lP(h),T=!!h.experimentalDecorators,A=!y,R=y&&m<9,M=A||R,C=m<9,O=m<99?-1:y?0:3,U=m<9,K=U&&m>=2,Q=M||C||O===-1,V=e.onSubstituteNode;e.onSubstituteNode=tu;const se=e.onEmitNode;e.onEmitNode=js;let G=!1,ne,he,ye,Y,X;const oe=new Map,pe=new Set;let Ce,de,ie=!1,ve=!1;return Dm(e,Le);function Le(ue){if(ue.isDeclarationFile||(X=void 0,G=!!(Em(ue)&32),!Q&&!G))return ue;const Z=xn(ue,Ee,e);return zg(Z,e.readEmitHelpers()),Z}function Ue(ue){switch(ue.kind){case 129:return zt()?void 0:ue;default:return ri(ue,Aa)}}function Ee(ue){if(!(ue.transformFlags&16777216)&&!(ue.transformFlags&134234112))return ue;switch(ue.kind){case 129:return N.fail("Use `modifierVisitor` instead.");case 263:return fn(ue);case 231:return q(ue);case 175:case 172:return N.fail("Use `classElementVisitor` instead.");case 303:return $e(ue);case 243:return It(ue);case 260:return tn(ue);case 169:return rn(ue);case 208:return Mn(ue);case 277:return $n(ue);case 81:return Bt(ue);case 211:return fa(ue);case 212:return ka(ue);case 224:case 225:return Tn(ue,!1);case 226:return pt(ue,!1);case 217:return it(ue,!1);case 213:return ft(ue);case 244:return He(ue);case 215:return Ct(ue);case 248:return wn(ue);case 110:return L(ue);case 262:case 218:return Wi(void 0,De,ue);case 176:case 174:case 177:case 178:return Wi(ue,De,ue);default:return De(ue)}}function De(ue){return xn(ue,Ee,e)}function Me(ue){switch(ue.kind){case 224:case 225:return Tn(ue,!0);case 226:return pt(ue,!0);case 361:return j(ue);case 217:return it(ue,!0);default:return Ee(ue)}}function We(ue){switch(ue.kind){case 298:return xn(ue,We,e);case 233:return Gt(ue);default:return Ee(ue)}}function At(ue){switch(ue.kind){case 210:case 209:return nn(ue);default:return Ee(ue)}}function Se(ue){switch(ue.kind){case 176:return Wi(ue,Yt,ue);case 177:case 178:case 174:return Wi(ue,so,ue);case 172:return Wi(ue,Dn,ue);case 175:return Wi(ue,Lt,ue);case 167:return Qt(ue);case 240:return ue;default:return sl(ue)?Ue(ue):Ee(ue)}}function je(ue){switch(ue.kind){case 167:return Qt(ue);default:return Ee(ue)}}function ot(ue){switch(ue.kind){case 172:return tt(ue);case 177:case 178:return Se(ue);default:N.assertMissingNode(ue,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Bt(ue){return!C||Hi(ue.parent)?ue:Nr(t.createIdentifier(""),ue)}function vt(ue){const Z=da(ue.left);if(Z){const we=nt(ue.right,Ee,yt);return Nr(r().createClassPrivateFieldInHelper(Z.brandCheckIdentifier,we),ue)}return xn(ue,Ee,e)}function $e(ue){return mp(ue,Fe)&&(ue=bp(e,ue)),xn(ue,Ee,e)}function It(ue){const Z=Y;Y=[];const we=xn(ue,Ee,e),Et=bt(Y)?[we,...Y]:we;return Y=Z,Et}function tn(ue){return mp(ue,Fe)&&(ue=bp(e,ue)),xn(ue,Ee,e)}function rn(ue){return mp(ue,Fe)&&(ue=bp(e,ue)),xn(ue,Ee,e)}function Mn(ue){return mp(ue,Fe)&&(ue=bp(e,ue)),xn(ue,Ee,e)}function $n(ue){return mp(ue,Fe)&&(ue=bp(e,ue,!0,ue.isExportEquals?"":"default")),xn(ue,Ee,e)}function gn(ue){return bt(ye)&&(Gd(ue)?(ye.push(ue.expression),ue=t.updateParenthesizedExpression(ue,t.inlineExpressions(ye))):(ye.push(ue),ue=t.inlineExpressions(ye)),ye=void 0),ue}function Qt(ue){const Z=nt(ue.expression,Ee,yt);return t.updateComputedPropertyName(ue,gn(Z))}function Yt(ue){return Ce?fe(ue,Ce):De(ue)}function vi(ue){return!!(C||mc(ue)&&Em(ue)&32)}function so(ue){if(N.assert(!Tf(ue)),!sd(ue)||!vi(ue))return xn(ue,Se,e);const Z=da(ue.name);if(N.assert(Z,"Undeclared private name for property declaration."),!Z.isValid)return ue;const we=Co(ue);we&&xo().push(t.createAssignment(we,t.createFunctionExpression(mn(ue.modifiers,Et=>Aa(Et)&&!QA(Et)&&!lae(Et)),ue.asteriskToken,we,void 0,Dl(ue.parameters,Ee,e),void 0,af(ue.body,Ee,e))))}function Wi(ue,Z,we){if(ue!==de){const Et=de;de=ue;const un=Z(we);return de=Et,un}return Z(we)}function Co(ue){N.assert(qi(ue.name));const Z=da(ue.name);if(N.assert(Z,"Undeclared private name for property declaration."),Z.kind==="m")return Z.methodName;if(Z.kind==="a"){if(My(ue))return Z.getterName;if(Mv(ue))return Z.setterName}}function Ln(){const ue=Ri(),Z=ue.classThis??ue.classConstructor??(Ce==null?void 0:Ce.name);return N.checkDefined(Z)}function Ci(ue){const Z=M_(ue),we=Bv(ue),Et=ue.name;let un=Et,Er=Et;if(Za(Et)&&!Ih(Et.expression)){const jc=sF(Et);if(jc)un=t.updateComputedPropertyName(Et,nt(Et.expression,Ee,yt)),Er=t.updateComputedPropertyName(Et,jc.left);else{const Us=t.createTempVariable(i);Da(Us,Et.expression);const vc=nt(Et.expression,Ee,yt),Es=t.createAssignment(Us,vc);Da(Es,Et.expression),un=t.updateComputedPropertyName(Et,Es),Er=t.updateComputedPropertyName(Et,Us)}}const vr=jn(ue.modifiers,Ue,Aa),jr=PH(t,ue,vr,ue.initializer);Nr(jr,ue),pr(jr,3072),Da(jr,we);const Di=aa(ue)?Ln():t.createThis(),Mr=jae(t,ue,vr,un,Di);Nr(Mr,ue),ac(Mr,Z),Da(Mr,we);const Yo=t.createModifiersFromModifierFlags(N_(vr)),Sl=Uae(t,ue,Yo,Er,Di);return Nr(Sl,ue),pr(Sl,3072),Da(Sl,we),Rw([jr,Mr,Sl],ot,Yc)}function Ar(ue){if(vi(ue)){const Z=da(ue.name);if(N.assert(Z,"Undeclared private name for property declaration."),!Z.isValid)return ue;if(Z.isStatic&&!C){const we=kt(ue,t.createThis());if(we)return t.createClassStaticBlockDeclaration(t.createBlock([we],!0))}return}return A&&!aa(ue)&&(X!=null&&X.data)&&X.data.facts&16?t.updatePropertyDeclaration(ue,jn(ue.modifiers,Ee,sl),ue.name,void 0,void 0,void 0):(mp(ue,Fe)&&(ue=bp(e,ue)),t.updatePropertyDeclaration(ue,jn(ue.modifiers,Ue,Aa),nt(ue.name,je,oc),void 0,void 0,nt(ue.initializer,Ee,yt)))}function sn(ue){if(M&&!Wd(ue)){const Z=Vr(ue.name,!!ue.initializer||y);if(Z&&xo().push(...Hae(Z)),aa(ue)&&!C){const we=kt(ue,t.createThis());if(we){const Et=t.createClassStaticBlockDeclaration(t.createBlock([we]));return Nr(Et,ue),ac(Et,ue),ac(we,{pos:-1,end:-1}),v0(we,void 0),HA(we,void 0),Et}}return}return t.updatePropertyDeclaration(ue,jn(ue.modifiers,Ue,Aa),nt(ue.name,je,oc),void 0,void 0,nt(ue.initializer,Ee,yt))}function tt(ue){return N.assert(!Tf(ue),"Decorators should already have been transformed and elided."),sd(ue)?Ar(ue):sn(ue)}function zt(){return O===-1||O===3&&!!(X!=null&&X.data)&&!!(X.data.facts&16)}function Dn(ue){return Wd(ue)&&(zt()||mc(ue)&&Em(ue)&32)?Ci(ue):tt(ue)}function ci(){return!!de&&mc(de)&&Cy(de)&&Wd(Pl(de))}function yi(ue){if(ci()){const Z=$l(ue);Z.kind===110&&pe.add(Z)}}function Qi(ue,Z){return Z=nt(Z,Ee,yt),yi(Z),Io(ue,Z)}function Io(ue,Z){switch(ac(Z,m0(Z,-1)),ue.kind){case"a":return r().createClassPrivateFieldGetHelper(Z,ue.brandCheckIdentifier,ue.kind,ue.getterName);case"m":return r().createClassPrivateFieldGetHelper(Z,ue.brandCheckIdentifier,ue.kind,ue.methodName);case"f":return r().createClassPrivateFieldGetHelper(Z,ue.brandCheckIdentifier,ue.kind,ue.isStatic?ue.variableName:void 0);case"untransformed":return N.fail("Access helpers should not be created for untransformed private elements");default:N.assertNever(ue,"Unknown private element type")}}function fa(ue){if(qi(ue.name)){const Z=da(ue.name);if(Z)return dt(Nr(Qi(Z,ue.expression),ue),ue)}if(K&&de&&zd(ue)&&Ve(ue.name)&&VP(de)&&(X!=null&&X.data)){const{classConstructor:Z,superClassReference:we,facts:Et}=X.data;if(Et&1)return ir(ue);if(Z&&we){const un=t.createReflectGetCall(we,t.createStringLiteralFromNode(ue.name),Z);return Nr(un,ue.expression),dt(un,ue.expression),un}}return xn(ue,Ee,e)}function ka(ue){if(K&&de&&zd(ue)&&VP(de)&&(X!=null&&X.data)){const{classConstructor:Z,superClassReference:we,facts:Et}=X.data;if(Et&1)return ir(ue);if(Z&&we){const un=t.createReflectGetCall(we,nt(ue.argumentExpression,Ee,yt),Z);return Nr(un,ue.expression),dt(un,ue.expression),un}}return xn(ue,Ee,e)}function Tn(ue,Z){if(ue.operator===46||ue.operator===47){const we=hs(ue.operand);if(Kx(we)){let Et;if(Et=da(we.name)){const un=nt(we.expression,Ee,yt);yi(un);const{readExpression:Er,initializeExpression:vr}=mt(un);let jr=Qi(Et,Er);const Di=Xy(ue)||Z?void 0:t.createTempVariable(i);return jr=eF(t,ue,jr,i,Di),jr=Rt(Et,vr||Er,jr,64),Nr(jr,ue),dt(jr,ue),Di&&(jr=t.createComma(jr,Di),dt(jr,ue)),jr}}else if(K&&de&&zd(we)&&VP(de)&&(X!=null&&X.data)){const{classConstructor:Et,superClassReference:un,facts:Er}=X.data;if(Er&1){const vr=ir(we);return Xy(ue)?t.updatePrefixUnaryExpression(ue,vr):t.updatePostfixUnaryExpression(ue,vr)}if(Et&&un){let vr,jr;if(Fr(we)?Ve(we.name)&&(jr=vr=t.createStringLiteralFromNode(we.name)):Ih(we.argumentExpression)?jr=vr=we.argumentExpression:(jr=t.createTempVariable(i),vr=t.createAssignment(jr,nt(we.argumentExpression,Ee,yt))),vr&&jr){let Di=t.createReflectGetCall(un,jr,Et);dt(Di,we);const Mr=Z?void 0:t.createTempVariable(i);return Di=eF(t,ue,Di,i,Mr),Di=t.createReflectSetCall(un,vr,Di,Et),Nr(Di,ue),dt(Di,ue),Mr&&(Di=t.createComma(Di,Mr),dt(Di,ue)),Di}}}}return xn(ue,Ee,e)}function wn(ue){return t.updateForStatement(ue,nt(ue.initializer,Me,Sf),nt(ue.condition,Ee,yt),nt(ue.incrementor,Me,yt),xd(ue.statement,Ee,e))}function He(ue){return t.updateExpressionStatement(ue,nt(ue.expression,Me,yt))}function mt(ue){const Z=Ys(ue)?ue:t.cloneNode(ue);if(ue.kind===110&&pe.has(ue)&&pe.add(Z),Ih(ue))return{readExpression:Z,initializeExpression:void 0};const we=t.createTempVariable(i),Et=t.createAssignment(we,Z);return{readExpression:we,initializeExpression:Et}}function ft(ue){var Z;if(Kx(ue.expression)&&da(ue.expression.name)){const{thisArg:we,target:Et}=t.createCallBinding(ue.expression,i,m);return uS(ue)?t.updateCallChain(ue,t.createPropertyAccessChain(nt(Et,Ee,yt),ue.questionDotToken,"call"),void 0,void 0,[nt(we,Ee,yt),...jn(ue.arguments,Ee,yt)]):t.updateCallExpression(ue,t.createPropertyAccessExpression(nt(Et,Ee,yt),"call"),void 0,[nt(we,Ee,yt),...jn(ue.arguments,Ee,yt)])}if(K&&de&&zd(ue.expression)&&VP(de)&&((Z=X==null?void 0:X.data)!=null&&Z.classConstructor)){const we=t.createFunctionCallCall(nt(ue.expression,Ee,yt),X.data.classConstructor,jn(ue.arguments,Ee,yt));return Nr(we,ue),dt(we,ue),we}return xn(ue,Ee,e)}function Ct(ue){var Z;if(Kx(ue.tag)&&da(ue.tag.name)){const{thisArg:we,target:Et}=t.createCallBinding(ue.tag,i,m);return t.updateTaggedTemplateExpression(ue,t.createCallExpression(t.createPropertyAccessExpression(nt(Et,Ee,yt),"bind"),void 0,[nt(we,Ee,yt)]),void 0,nt(ue.template,Ee,IA))}if(K&&de&&zd(ue.tag)&&VP(de)&&((Z=X==null?void 0:X.data)!=null&&Z.classConstructor)){const we=t.createFunctionBindCall(nt(ue.tag,Ee,yt),X.data.classConstructor,[]);return Nr(we,ue),dt(we,ue),t.updateTaggedTemplateExpression(ue,we,void 0,nt(ue.template,Ee,IA))}return xn(ue,Ee,e)}function le(ue){if(X&&oe.set(Pl(ue),X),C){if(BP(ue)){const Et=nt(ue.body.statements[0].expression,Ee,yt);return Pc(Et,!0)&&Et.left===Et.right?void 0:Et}if(yI(ue))return nt(ue.body.statements[0].expression,Ee,yt);s();let Z=Wi(ue,Et=>jn(Et,Ee,Hi),ue.body.statements);Z=t.mergeLexicalEnvironment(Z,o());const we=t.createImmediatelyInvokedArrowFunction(Z);return Nr(hs(we.expression),ue),P_(hs(we.expression),4),Nr(we,ue),dt(we,ue),we}}function Fe(ue){if(Qc(ue)&&!ue.name){const Z=JF(ue);return bt(Z,yI)?!1:(C||!!Em(ue))&&bt(Z,Et=>Rl(Et)||sd(Et)||M&&Dw(Et))}return!1}function pt(ue,Z){if(Wv(ue)){const we=ye;ye=void 0,ue=t.updateBinaryExpression(ue,nt(ue.left,At,yt),ue.operatorToken,nt(ue.right,Ee,yt));const Et=bt(ye)?t.inlineExpressions(C2([...ye,ue])):ue;return ye=we,Et}if(Pc(ue)){mp(ue,Fe)&&(ue=bp(e,ue),N.assertNode(ue,Pc));const we=$l(ue.left,9);if(Kx(we)){const Et=da(we.name);if(Et)return dt(Nr(Rt(Et,we.expression,ue.right,ue.operatorToken.kind),ue),ue)}else if(K&&de&&zd(ue.left)&&VP(de)&&(X!=null&&X.data)){const{classConstructor:Et,superClassReference:un,facts:Er}=X.data;if(Er&1)return t.updateBinaryExpression(ue,ir(ue.left),ue.operatorToken,nt(ue.right,Ee,yt));if(Et&&un){let vr=$s(ue.left)?nt(ue.left.argumentExpression,Ee,yt):Ve(ue.left.name)?t.createStringLiteralFromNode(ue.left.name):void 0;if(vr){let jr=nt(ue.right,Ee,yt);if(WP(ue.operatorToken.kind)){let Mr=vr;Ih(vr)||(Mr=t.createTempVariable(i),vr=t.createAssignment(Mr,vr));const Yo=t.createReflectGetCall(un,Mr,Et);Nr(Yo,ue.left),dt(Yo,ue.left),jr=t.createBinaryExpression(Yo,FP(ue.operatorToken.kind),jr),dt(jr,ue)}const Di=Z?void 0:t.createTempVariable(i);return Di&&(jr=t.createAssignment(Di,jr),dt(Di,ue)),jr=t.createReflectSetCall(un,vr,jr,Et),Nr(jr,ue),dt(jr,ue),Di&&(jr=t.createComma(jr,Di),dt(jr,ue)),jr}}}}return Mje(ue)?vt(ue):xn(ue,Ee,e)}function j(ue,Z){const we=BF(ue.elements,Me);return t.updateCommaListExpression(ue,we)}function it(ue,Z){const we=Z?Me:Ee,Et=nt(ue.expression,we,yt);return t.updateParenthesizedExpression(ue,Et)}function Rt(ue,Z,we,Et){if(Z=nt(Z,Ee,yt),we=nt(we,Ee,yt),yi(Z),WP(Et)){const{readExpression:un,initializeExpression:Er}=mt(Z);Z=Er||un,we=t.createBinaryExpression(Io(ue,un),FP(Et),we)}switch(ac(Z,m0(Z,-1)),ue.kind){case"a":return r().createClassPrivateFieldSetHelper(Z,ue.brandCheckIdentifier,we,ue.kind,ue.setterName);case"m":return r().createClassPrivateFieldSetHelper(Z,ue.brandCheckIdentifier,we,ue.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(Z,ue.brandCheckIdentifier,we,ue.kind,ue.isStatic?ue.variableName:void 0);case"untransformed":return N.fail("Access helpers should not be created for untransformed private elements");default:N.assertNever(ue,"Unknown private element type")}}function Ye(ue){return mn(ue.members,Qse)}function _t(ue){var Z;let we=0;const Et=Pl(ue);Ac(Et)&&Lv(T,Et)&&(we|=1),C&&(Gq(ue)||XF(ue))&&(we|=2);let un=!1,Er=!1,vr=!1,jr=!1;for(const Mr of ue.members)aa(Mr)?((Mr.name&&(qi(Mr.name)||Wd(Mr))&&C||Wd(Mr)&&O===-1&&!ue.name&&!((Z=ue.emitNode)!=null&&Z.classThis))&&(we|=2),(qo(Mr)||Rl(Mr))&&(U&&Mr.transformFlags&16384&&(we|=8,we&1||(we|=2)),K&&Mr.transformFlags&134217728&&(we&1||(we|=6)))):jE(Pl(Mr))||(Wd(Mr)?(jr=!0,vr||(vr=sd(Mr))):sd(Mr)?(vr=!0,p.getNodeCheckFlags(Mr)&262144&&(we|=2)):qo(Mr)&&(un=!0,Er||(Er=!!Mr.initializer)));return(R&&un||A&&Er||C&&vr||C&&jr&&O===-1)&&(we|=16),we}function Gt(ue){var Z;if((((Z=X==null?void 0:X.data)==null?void 0:Z.facts)||0)&4){const Et=t.createTempVariable(i,!0);return Ri().superClassReference=Et,t.updateExpressionWithTypeArguments(ue,t.createAssignment(Et,nt(ue.expression,Ee,yt)),void 0)}return xn(ue,Ee,e)}function yn(ue,Z){var we;const Et=Ce,un=ye,Er=X;Ce=ue,ye=void 0,vo();const vr=Em(ue)&32;if(C||vr){const Mr=Lo(ue);if(Mr&&Ve(Mr))Jr().data.className=Mr;else if((we=ue.emitNode)!=null&&we.assignedName&&Na(ue.emitNode.assignedName)){if(ue.emitNode.assignedName.textSourceNode&&Ve(ue.emitNode.assignedName.textSourceNode))Jr().data.className=ue.emitNode.assignedName.textSourceNode;else if(Zp(ue.emitNode.assignedName.text,m)){const Yo=t.createIdentifier(ue.emitNode.assignedName.text);Jr().data.className=Yo}}}if(C){const Mr=Ye(ue);bt(Mr)&&(Jr().data.weakSetName=cu("instances",Mr[0].name))}const jr=_t(ue);jr&&(Ri().facts=jr),jr&8&&Pi();const Di=Z(ue,jr);return Mi(),N.assert(X===Er),Ce=Et,ye=un,Di}function fn(ue){return yn(ue,hn)}function hn(ue,Z){var we,Et;let un;if(Z&2)if(C&&((we=ue.emitNode)!=null&&we.classThis))Ri().classConstructor=ue.emitNode.classThis,un=t.createAssignment(ue.emitNode.classThis,t.getInternalName(ue));else{const Es=t.createTempVariable(i,!0);Ri().classConstructor=t.cloneNode(Es),un=t.createAssignment(Es,t.getInternalName(ue))}(Et=ue.emitNode)!=null&&Et.classThis&&(Ri().classThis=ue.emitNode.classThis);const Er=p.getNodeCheckFlags(ue)&262144,vr=Qr(ue,32),jr=Qr(ue,2048);let Di=jn(ue.modifiers,Ue,Aa);const Mr=jn(ue.heritageClauses,We,nf),{members:Yo,prologue:Sl}=me(ue),jc=[];if(un&&xo().unshift(un),bt(ye)&&jc.push(t.createExpressionStatement(t.inlineExpressions(ye))),A||C||Em(ue)&32){const Es=JF(ue);bt(Es)&&Tt(jc,Es,t.getInternalName(ue))}jc.length>0&&vr&&jr&&(Di=jn(Di,Es=>ew(Es)?void 0:Es,Aa),jc.push(t.createExportAssignment(void 0,!1,t.getLocalName(ue,!1,!0))));const Us=Ri().classConstructor;Er&&Us&&(qn(),he[Wu(ue)]=Us);const vc=t.updateClassDeclaration(ue,Di,ue.name,void 0,Mr,Yo);return jc.unshift(vc),Sl&&jc.unshift(t.createExpressionStatement(Sl)),jc}function q(ue){return yn(ue,Oe)}function Oe(ue,Z){var we,Et,un;const Er=!!(Z&1),vr=JF(ue),jr=p.getNodeCheckFlags(ue),Di=jr&262144;let Mr;function Yo(){var wc;if(C&&((wc=ue.emitNode)!=null&&wc.classThis))return Ri().classConstructor=ue.emitNode.classThis;const sm=jr&32768,_d=t.createTempVariable(sm?u:i,!0);return Ri().classConstructor=t.cloneNode(_d),_d}(we=ue.emitNode)!=null&&we.classThis&&(Ri().classThis=ue.emitNode.classThis),Z&2&&(Mr??(Mr=Yo()));const Sl=jn(ue.modifiers,Ue,Aa),jc=jn(ue.heritageClauses,We,nf),{members:Us,prologue:vc}=me(ue),Es=t.updateClassExpression(ue,Sl,ue.name,void 0,jc,Us),Uc=[];if(vc&&Uc.push(vc),(C||Em(ue)&32)&&bt(vr,wc=>Rl(wc)||sd(wc)||M&&Dw(wc))||bt(ye))if(Er)N.assertIsDefined(Y,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),bt(ye)&&qr(Y,Wt(ye,t.createExpressionStatement)),bt(vr)&&Tt(Y,vr,((Et=ue.emitNode)==null?void 0:Et.classThis)??t.getInternalName(ue)),Mr?Uc.push(t.createAssignment(Mr,Es)):C&&((un=ue.emitNode)!=null&&un.classThis)?Uc.push(t.createAssignment(ue.emitNode.classThis,Es)):Uc.push(Es);else{if(Mr??(Mr=Yo()),Di){qn();const wc=t.cloneNode(Mr);wc.emitNode.autoGenerate.flags&=-9,he[Wu(ue)]=wc}Uc.push(t.createAssignment(Mr,Es)),qr(Uc,ye),qr(Uc,en(vr,Mr)),Uc.push(t.cloneNode(Mr))}else Uc.push(Es);return Uc.length>1&&(P_(Es,131072),Uc.forEach(Xu)),t.inlineExpressions(Uc)}function Lt(ue){if(!C)return xn(ue,Ee,e)}function L(ue){if(U&&de&&Rl(de)&&(X!=null&&X.data)){const{classThis:Z,classConstructor:we}=X.data;return Z??we??ue}return ue}function me(ue){const Z=!!(Em(ue)&32);if(C||G){for(const vr of ue.members)if(sd(vr))if(vi(vr))gl(vr,vr.name,Nn);else{const jr=Jr();KS(jr,vr.name,{kind:"untransformed"})}if(C&&bt(Ye(ue))&&J(),zt()){for(const vr of ue.members)if(Wd(vr)){const jr=t.getGeneratedPrivateNameForNode(vr.name,void 0,"_accessor_storage");if(C||Z&&mc(vr))gl(vr,jr,Fs);else{const Di=Jr();KS(Di,jr,{kind:"untransformed"})}}}}let we=jn(ue.members,Se,Yc),Et;bt(we,Ml)||(Et=fe(void 0,ue));let un,Er;if(!C&&bt(ye)){let vr=t.createExpressionStatement(t.inlineExpressions(ye));if(vr.transformFlags&134234112){const Di=t.createTempVariable(i),Mr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([vr]));un=t.createAssignment(Di,Mr),vr=t.createExpressionStatement(t.createCallExpression(Di,void 0,[]))}const jr=t.createBlock([vr]);Er=t.createClassStaticBlockDeclaration(jr),ye=void 0}if(Et||Er){let vr;const jr=In(we,BP),Di=In(we,yI);vr=Rn(vr,jr),vr=Rn(vr,Di),vr=Rn(vr,Et),vr=Rn(vr,Er);const Mr=jr||Di?mn(we,Yo=>Yo!==jr&&Yo!==Di):we;vr=qr(vr,Mr),we=dt(t.createNodeArray(vr),ue.members)}return{members:we,prologue:un}}function J(){const{weakSetName:ue}=Jr().data;N.assert(ue,"weakSetName should be set in private identifier environment"),xo().push(t.createAssignment(ue,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function fe(ue,Z){if(ue=nt(ue,Ee,Ml),!(X!=null&&X.data)||!(X.data.facts&16))return ue;const we=I_(Z),Et=!!(we&&$l(we.expression).kind!==106),un=Dl(ue?ue.parameters:void 0,Ee,e),Er=ke(Z,ue,Et);return Er?ue?(N.assert(un),t.updateConstructorDeclaration(ue,void 0,un,Er)):Xu(Nr(dt(t.createConstructorDeclaration(void 0,un??[],Er),ue||Z),ue)):ue}function Be(ue,Z,we,Et,un,Er,vr){const jr=Et[un],Di=Z[jr];if(qr(ue,jn(Z,Ee,Hi,we,jr-we)),we=jr+1,BS(Di)){const Mr=[];Be(Mr,Di.tryBlock.statements,0,Et,un+1,Er,vr);const Yo=t.createNodeArray(Mr);dt(Yo,Di.tryBlock.statements),ue.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Mr),nt(Di.catchClause,Ee,r1),nt(Di.finallyBlock,Ee,Ko)))}else{for(qr(ue,jn(Z,Ee,Hi,jr,1));we<Z.length;){const Mr=Z[we];if(pp(Pl(Mr),vr))we++;else break}qr(ue,Er)}qr(ue,jn(Z,Ee,Hi,we))}function ke(ue,Z,we){const Et=Oq(ue,!1,!1);let un=Et;y||(un=mn(un,Us=>!!Us.initializer||qi(Us.name)||D_(Us)));const Er=Ye(ue),vr=bt(un)||bt(Er);if(!Z&&!vr)return af(void 0,Ee,e);l();const jr=!Z&&we;let Di=0,Mr=[];const Yo=[],Sl=t.createThis();if(xi(Yo,Er,Sl),Z){const Us=mn(Et,Es=>pp(Pl(Es),Z)),vc=mn(un,Es=>!pp(Pl(Es),Z));Tt(Yo,Us,Sl),Tt(Yo,vc,Sl)}else Tt(Yo,un,Sl);if(Z!=null&&Z.body){Di=t.copyPrologue(Z.body.statements,Mr,!1,Ee);const Us=qF(Z.body.statements,Di);if(Us.length)Be(Mr,Z.body.statements,Di,Us,0,Yo,Z);else{for(;Di<Z.body.statements.length;){const vc=Z.body.statements[Di];if(pp(Pl(vc),Z))Di++;else break}qr(Mr,Yo),qr(Mr,jn(Z.body.statements,Ee,Hi,Di))}}else jr&&Mr.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),qr(Mr,Yo);if(Mr=t.mergeLexicalEnvironment(Mr,o()),Mr.length===0&&!Z)return;const jc=Z!=null&&Z.body&&Z.body.statements.length>=Mr.length?Z.body.multiLine??Mr.length>0:Mr.length>0;return dt(t.createBlock(dt(t.createNodeArray(Mr),Z?Z.body.statements:ue.members),jc),Z?Z.body:void 0)}function Tt(ue,Z,we){for(const Et of Z){if(aa(Et)&&!C)continue;const un=kt(Et,we);un&&ue.push(un)}}function kt(ue,Z){const we=Rl(ue)?Wi(ue,le,ue):En(ue,Z);if(!we)return;const Et=t.createExpressionStatement(we);Nr(Et,ue),P_(Et,Ga(ue)&3072),ac(Et,ue);const un=Pl(ue);return Ao(un)?(Da(Et,un),Pk(Et)):Da(Et,C_(ue)),v0(we,void 0),HA(we,void 0),D_(un)&&P_(Et,3072),Et}function en(ue,Z){const we=[];for(const Et of ue){const un=Rl(Et)?Wi(Et,le,Et):Wi(Et,()=>En(Et,Z),void 0);un&&(Xu(un),Nr(un,Et),P_(un,Ga(Et)&3072),Da(un,C_(Et)),ac(un,Et),we.push(un))}return we}function En(ue,Z){var we;const Et=de,un=Gn(ue,Z);return un&&mc(ue)&&((we=X==null?void 0:X.data)!=null&&we.facts)&&(Nr(un,ue),P_(un,4),Da(un,Bv(ue.name)),oe.set(Pl(ue),X)),de=Et,un}function Gn(ue,Z){const we=!y;mp(ue,Fe)&&(ue=bp(e,ue));const Et=D_(ue)?t.getGeneratedPrivateNameForNode(ue.name):Za(ue.name)&&!Ih(ue.name.expression)?t.updateComputedPropertyName(ue.name,t.getGeneratedNameForNode(ue.name)):ue.name;if(mc(ue)&&(de=ue),qi(Et)&&vi(ue)){const vr=da(Et);if(vr)return vr.kind==="f"?vr.isStatic?Dje(t,vr.variableName,nt(ue.initializer,Ee,yt)):Nje(t,Z,nt(ue.initializer,Ee,yt),vr.brandCheckIdentifier):void 0;N.fail("Undeclared private name for property declaration.")}if((qi(Et)||mc(ue))&&!ue.initializer)return;const un=Pl(ue);if(Qr(un,64))return;let Er=nt(ue.initializer,Ee,yt);if(pp(un,un.parent)&&Ve(Et)){const vr=t.cloneNode(Et);Er?(Gd(Er)&&Yk(Er.expression)&&dP(Er.expression.left,"___runInitializers")&&iI(Er.expression.right)&&hp(Er.expression.right.expression)&&(Er=Er.expression.left),Er=t.inlineExpressions([Er,vr])):Er=vr,pr(Et,3168),Da(vr,un.name),pr(vr,3072)}else Er??(Er=t.createVoidZero());if(we||qi(Et)){const vr=HS(t,Z,Et,Et);return P_(vr,1024),t.createAssignment(vr,Er)}else{const vr=Za(Et)?Et.expression:Ve(Et)?t.createStringLiteral(Vi(Et.escapedText)):Et,jr=t.createPropertyDescriptor({value:Er,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(Z,vr,jr)}}function qn(){ne&1||(ne|=1,e.enableSubstitution(80),he=[])}function Pi(){ne&2||(ne|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function xi(ue,Z,we){if(!C||!bt(Z))return;const{weakSetName:Et}=Jr().data;N.assert(Et,"weakSetName should be set in private identifier environment"),ue.push(t.createExpressionStatement(Cje(t,we,Et)))}function ir(ue){return Fr(ue)?t.updatePropertyAccessExpression(ue,t.createVoidZero(),ue.name):t.updateElementAccessExpression(ue,t.createVoidZero(),nt(ue.argumentExpression,Ee,yt))}function Vr(ue,Z){if(Za(ue)){const we=sF(ue),Et=nt(ue.expression,Ee,yt),un=bm(Et),Er=Ih(un);if(!(!!we||Pc(un)&&al(un.left))&&!Er&&Z){const jr=t.getGeneratedNameForNode(ue);return p.getNodeCheckFlags(ue)&32768?u(jr):i(jr),t.createAssignment(jr,Et)}return Er||Ve(un)?void 0:Et}}function vo(){X={previous:X,data:void 0}}function Mi(){X=X==null?void 0:X.previous}function Ri(){return N.assert(X),X.data??(X.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Jr(){return N.assert(X),X.privateEnv??(X.privateEnv=tle({className:void 0,weakSetName:void 0}))}function xo(){return ye??(ye=[])}function Nn(ue,Z,we,Et,un,Er,vr){Wd(ue)?Vs(ue,Z,we,Et,un,Er):qo(ue)?Fs(ue,Z,we,Et,un,Er):Hl(ue)?Ql(ue,Z,we,Et,un,Er):tf(ue)?ko(ue,Z,we,Et,un,Er,vr):vp(ue)&&cs(ue,Z,we,Et,un,Er,vr)}function Fs(ue,Z,we,Et,un,Er,vr){if(un){const jr=N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"),Di=ho(Z);KS(Et,Z,{kind:"f",isStatic:!0,brandCheckIdentifier:jr,variableName:Di,isValid:Er})}else{const jr=ho(Z);KS(Et,Z,{kind:"f",isStatic:!1,brandCheckIdentifier:jr,isValid:Er}),xo().push(t.createAssignment(jr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Ql(ue,Z,we,Et,un,Er,vr){const jr=ho(Z),Di=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");KS(Et,Z,{kind:"m",methodName:jr,brandCheckIdentifier:Di,isStatic:un,isValid:Er})}function ko(ue,Z,we,Et,un,Er,vr){const jr=ho(Z,"_get"),Di=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");(vr==null?void 0:vr.kind)==="a"&&vr.isStatic===un&&!vr.getterName?vr.getterName=jr:KS(Et,Z,{kind:"a",getterName:jr,setterName:void 0,brandCheckIdentifier:Di,isStatic:un,isValid:Er})}function cs(ue,Z,we,Et,un,Er,vr){const jr=ho(Z,"_set"),Di=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");(vr==null?void 0:vr.kind)==="a"&&vr.isStatic===un&&!vr.setterName?vr.setterName=jr:KS(Et,Z,{kind:"a",getterName:void 0,setterName:jr,brandCheckIdentifier:Di,isStatic:un,isValid:Er})}function Vs(ue,Z,we,Et,un,Er,vr){const jr=ho(Z,"_get"),Di=ho(Z,"_set"),Mr=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");KS(Et,Z,{kind:"a",getterName:jr,setterName:Di,brandCheckIdentifier:Mr,isStatic:un,isValid:Er})}function gl(ue,Z,we){const Et=Ri(),un=Jr(),Er=Fq(un,Z),vr=mc(ue),jr=!Pje(Z)&&Er===void 0;we(ue,Z,Et,un,vr,jr,Er)}function cu(ue,Z,we){const{className:Et}=Jr().data,un=Et?{prefix:"_",node:Et,suffix:"_"}:"_",Er=typeof ue=="object"?t.getGeneratedNameForNode(ue,24,un,we):typeof ue=="string"?t.createUniqueName(ue,16,un,we):t.createTempVariable(void 0,!0,un,we);return p.getNodeCheckFlags(Z)&32768?u(Er):i(Er),Er}function ho(ue,Z){const we=yC(ue);return cu((we==null?void 0:we.substring(1))??ue,ue,Z)}function da(ue){const Z=nle(X,ue);return(Z==null?void 0:Z.kind)==="untransformed"?void 0:Z}function uu(ue){const Z=t.getGeneratedNameForNode(ue),we=da(ue.name);if(!we)return xn(ue,Ee,e);let Et=ue.expression;return(PL(ue)||zd(ue)||!c1(ue.expression))&&(Et=t.createTempVariable(i,!0),xo().push(t.createBinaryExpression(Et,64,nt(ue.expression,Ee,yt)))),t.createAssignmentTargetWrapper(Z,Rt(we,Et,Z,64))}function Ts(ue){if(La(ue)||fd(ue))return nn(ue);if(Kx(ue))return uu(ue);if(K&&de&&zd(ue)&&VP(de)&&(X!=null&&X.data)){const{classConstructor:Z,superClassReference:we,facts:Et}=X.data;if(Et&1)return ir(ue);if(Z&&we){const un=$s(ue)?nt(ue.argumentExpression,Ee,yt):Ve(ue.name)?t.createStringLiteralFromNode(ue.name):void 0;if(un){const Er=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Er,t.createReflectSetCall(we,un,Er,Z))}}}return xn(ue,Ee,e)}function Ca(ue){if(mp(ue,Fe)&&(ue=bp(e,ue)),Pc(ue,!0)){const Z=Ts(ue.left),we=nt(ue.right,Ee,yt);return t.updateBinaryExpression(ue,Z,ue.operatorToken,we)}return Ts(ue)}function ml(ue){if(Zd(ue.expression)){const Z=Ts(ue.expression);return t.updateSpreadElement(ue,Z)}return xn(ue,Ee,e)}function Lf(ue){if(fL(ue)){if($m(ue))return ml(ue);if(!Gc(ue))return Ca(ue)}return xn(ue,Ee,e)}function lc(ue){const Z=nt(ue.name,Ee,oc);if(Pc(ue.initializer,!0)){const we=Ca(ue.initializer);return t.updatePropertyAssignment(ue,Z,we)}if(Zd(ue.initializer)){const we=Ts(ue.initializer);return t.updatePropertyAssignment(ue,Z,we)}return xn(ue,Ee,e)}function Nl(ue){return mp(ue,Fe)&&(ue=bp(e,ue)),xn(ue,Ee,e)}function cl(ue){if(Zd(ue.expression)){const Z=Ts(ue.expression);return t.updateSpreadAssignment(ue,Z)}return xn(ue,Ee,e)}function wo(ue){return N.assertNode(ue,pL),jv(ue)?cl(ue):np(ue)?Nl(ue):hc(ue)?lc(ue):xn(ue,Ee,e)}function nn(ue){return fd(ue)?t.updateArrayLiteralExpression(ue,jn(ue.elements,Lf,yt)):t.updateObjectLiteralExpression(ue,jn(ue.properties,wo,Mg))}function js(ue,Z,we){const Et=Pl(Z),un=oe.get(Et);if(un){const Er=X,vr=ve;X=un,ve=ie,ie=!Rl(Et)||!(Em(Et)&32),se(ue,Z,we),ie=ve,ve=vr,X=Er;return}switch(Z.kind){case 218:if(Gs(Et)||Ga(Z)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Er=X,vr=ve;X=void 0,ve=ie,ie=!1,se(ue,Z,we),ie=ve,ve=vr,X=Er;return}case 167:{const Er=X,vr=ie;X=X==null?void 0:X.previous,ie=ve,se(ue,Z,we),ie=vr,X=Er;return}}se(ue,Z,we)}function tu(ue,Z){return Z=V(ue,Z),ue===1?du(Z):Z}function du(ue){switch(ue.kind){case 80:return Ms(ue);case 110:return Tp(ue)}return ue}function Tp(ue){if(ne&2&&(X!=null&&X.data)&&!pe.has(ue)){const{facts:Z,classConstructor:we,classThis:Et}=X.data,un=ie?Et??we:we;if(un)return dt(Nr(t.cloneNode(un),ue),ue);if(Z&1&&T)return t.createParenthesizedExpression(t.createVoidZero())}return ue}function Ms(ue){return xc(ue)||ue}function xc(ue){if(ne&1&&p.getNodeCheckFlags(ue)&536870912){const Z=p.getReferencedValueDeclaration(ue);if(Z){const we=he[Z.id];if(we){const Et=t.cloneNode(we);return Da(Et,ue),ac(Et,ue),Et}}}}}function Dje(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function Nje(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function Cje(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function Pje(e){return!dS(e)&&e.escapedText==="#constructor"}function Mje(e){return qi(e.left)&&e.operatorToken.kind===103}function Lje(e){return qo(e)&&mc(e)}function VP(e){return Rl(e)||Lje(e)}var kje=I({"src/compiler/transformers/classFields.ts"(){ra()}});function fle(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=os(o),l=dd(o,"strictNullChecks");let u,p;return{serializeTypeNode:(ye,Y)=>h(ye,M,Y),serializeTypeOfNode:(ye,Y)=>h(ye,y,Y),serializeParameterTypesOfNode:(ye,Y,X)=>h(ye,T,Y,X),serializeReturnTypeOfNode:(ye,Y)=>h(ye,R,Y)};function h(ye,Y,X,oe){const pe=u,Ce=p;u=ye.currentLexicalScope,p=ye.currentNameScope;const de=oe===void 0?Y(X):Y(X,oe);return u=pe,p=Ce,de}function m(ye){const Y=i.getAllAccessorDeclarations(ye);return Y.setAccessor&&Die(Y.setAccessor)||Y.getAccessor&&em(Y.getAccessor)}function y(ye){switch(ye.kind){case 172:case 169:return M(ye.type);case 178:case 177:return M(m(ye));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function T(ye,Y){const X=di(ye)?ng(ye):ea(ye)&&Kf(ye.body)?ye:void 0,oe=[];if(X){const pe=A(X,Y),Ce=pe.length;for(let de=0;de<Ce;de++){const ie=pe[de];de===0&&Ve(ie.name)&&ie.name.escapedText==="this"||(ie.dotDotDotToken?oe.push(M(pj(ie.type))):oe.push(y(ie)))}}return t.createArrayLiteralExpression(oe)}function A(ye,Y){if(Y&&ye.kind===177){const{setAccessor:X}=NS(Y.members,ye);if(X)return X.parameters}return ye.parameters}function R(ye){return ea(ye)&&ye.type?M(ye.type):NC(ye)?t.createIdentifier("Promise"):t.createVoidZero()}function M(ye){if(ye===void 0)return t.createIdentifier("Object");switch(ye=YL(ye),ye.kind){case 116:case 157:case 146:return t.createVoidZero();case 184:case 185:return t.createIdentifier("Function");case 188:case 189:return t.createIdentifier("Array");case 182:return ye.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 203:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 201:return C(ye.literal);case 150:return t.createIdentifier("Number");case 163:return he("BigInt",7);case 155:return he("Symbol",2);case 183:return K(ye);case 193:return O(ye.types,!0);case 192:return O(ye.types,!1);case 194:return O([ye.trueType,ye.falseType],!1);case 198:if(ye.operator===148)return M(ye.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:break;case 319:case 320:case 324:case 325:case 326:break;case 321:case 322:case 323:return M(ye.type);default:return N.failBadSyntaxKind(ye)}return t.createIdentifier("Object")}function C(ye){switch(ye.kind){case 11:case 15:return t.createIdentifier("String");case 224:{const Y=ye.operand;switch(Y.kind){case 9:case 10:return C(Y);default:return N.failBadSyntaxKind(Y)}}case 9:return t.createIdentifier("Number");case 10:return he("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return N.failBadSyntaxKind(ye)}}function O(ye,Y){let X;for(let oe of ye){if(oe=YL(oe),oe.kind===146){if(Y)return t.createVoidZero();continue}if(oe.kind===159){if(!Y)return t.createIdentifier("Object");continue}if(oe.kind===133)return t.createIdentifier("Object");if(!l&&(Jy(oe)&&oe.literal.kind===106||oe.kind===157))continue;const pe=M(oe);if(Ve(pe)&&pe.escapedText==="Object")return pe;if(X){if(!U(X,pe))return t.createIdentifier("Object")}else X=pe}return X??t.createVoidZero()}function U(ye,Y){return al(ye)?al(Y):Ve(ye)?Ve(Y)&&ye.escapedText===Y.escapedText:Fr(ye)?Fr(Y)&&U(ye.expression,Y.expression)&&U(ye.name,Y.name):iI(ye)?iI(Y)&&hp(ye.expression)&&ye.expression.text==="0"&&hp(Y.expression)&&Y.expression.text==="0":Na(ye)?Na(Y)&&ye.text===Y.text:VR(ye)?VR(Y)&&U(ye.expression,Y.expression):Gd(ye)?Gd(Y)&&U(ye.expression,Y.expression):jR(ye)?jR(Y)&&U(ye.condition,Y.condition)&&U(ye.whenTrue,Y.whenTrue)&&U(ye.whenFalse,Y.whenFalse):mr(ye)?mr(Y)&&ye.operatorToken.kind===Y.operatorToken.kind&&U(ye.left,Y.left)&&U(ye.right,Y.right):!1}function K(ye){const Y=i.getTypeReferenceSerializationKind(ye.typeName,p??u);switch(Y){case 0:if(Vn(ye,pe=>pe.parent&&rI(pe.parent)&&(pe.parent.trueType===pe||pe.parent.falseType===pe)))return t.createIdentifier("Object");const X=V(ye.typeName),oe=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(oe,X),"function"),void 0,oe,void 0,t.createIdentifier("Object"));case 1:return se(ye.typeName);case 2:return t.createVoidZero();case 4:return he("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return he("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return N.assertNever(Y)}}function Q(ye,Y){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ye),t.createStringLiteral("undefined")),Y)}function V(ye){if(ye.kind===80){const oe=se(ye);return Q(oe,oe)}if(ye.left.kind===80)return Q(se(ye.left),se(ye));const Y=V(ye.left),X=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(Y.left,t.createStrictInequality(t.createAssignment(X,Y.right),t.createVoidZero())),t.createPropertyAccessExpression(X,ye.right))}function se(ye){switch(ye.kind){case 80:const Y=Ha(dt(Th.cloneNode(ye),ye),ye.parent);return Y.original=void 0,Ha(Y,No(u)),Y;case 166:return G(ye)}}function G(ye){return t.createPropertyAccessExpression(se(ye.left),ye.right)}function ne(ye){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ye),"function"),void 0,t.createIdentifier(ye),void 0,t.createIdentifier("Object"))}function he(ye,Y){return s<Y?ne(ye):t.createIdentifier(ye)}}var wje=I({"src/compiler/transformers/typeSerializer.ts"(){ra()}});function mle(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),l=os(s),u=e.onSubstituteNode;e.onSubstituteNode=je;let p;return Dm(e,h);function h($e){const It=xn($e,y,e);return zg(It,e.readEmitHelpers()),It}function m($e){return Eu($e)?void 0:$e}function y($e){if(!($e.transformFlags&33554432))return $e;switch($e.kind){case 170:return;case 263:return T($e);case 231:return K($e);case 176:return Q($e);case 174:return se($e);case 178:return ne($e);case 177:return G($e);case 172:return he($e);case 169:return ye($e);default:return xn($e,y,e)}}function T($e){if(!(Lv(!0,$e)||SC(!0,$e)))return xn($e,y,e);const It=Lv(!0,$e)?U($e,$e.name):O($e,$e.name);return ah(It)}function A($e){return!!($e.transformFlags&536870912)}function R($e){return bt($e,A)}function M($e){for(const It of $e.members){if(!qS(It))continue;const tn=KF(It,$e,!0);if(bt(tn==null?void 0:tn.decorators,A)||bt(tn==null?void 0:tn.parameters,R))return!0}return!1}function C($e,It){let tn=[];return oe(tn,$e,!1),oe(tn,$e,!0),M($e)&&(It=dt(t.createNodeArray([...It,t.createClassStaticBlockDeclaration(t.createBlock(tn,!0))]),It),tn=void 0),{decorationStatements:tn,members:It}}function O($e,It){const tn=jn($e.modifiers,m,Aa),rn=jn($e.heritageClauses,y,nf);let Mn=jn($e.members,y,Yc),$n=[];({members:Mn,decorationStatements:$n}=C($e,Mn));const gn=t.updateClassDeclaration($e,tn,It,void 0,rn,Mn);return qr([gn],$n)}function U($e,It){const tn=Qr($e,32),rn=Qr($e,2048),Mn=jn($e.modifiers,zt=>ew(zt)||Eu(zt)?void 0:zt,sl),$n=C_($e),gn=We($e),Qt=l<2?t.getInternalName($e,!1,!0):t.getLocalName($e,!1,!0),Yt=jn($e.heritageClauses,y,nf);let vi=jn($e.members,y,Yc),so=[];({members:vi,decorationStatements:so}=C($e,vi));const Wi=l>=9&&!!gn&&bt(vi,zt=>qo(zt)&&Qr(zt,256)||Rl(zt));Wi&&(vi=dt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(gn,t.createThis()))])),...vi]),vi));const Co=t.createClassExpression(Mn,It&&al(It)?void 0:It,void 0,Yt,vi);Nr(Co,$e),dt(Co,$n);const Ln=gn&&!Wi?t.createAssignment(gn,Co):Co,Ci=t.createVariableDeclaration(Qt,void 0,void 0,Ln);Nr(Ci,$e);const Ar=t.createVariableDeclarationList([Ci],1),sn=t.createVariableStatement(void 0,Ar);Nr(sn,$e),dt(sn,$n),ac(sn,$e);const tt=[sn];if(qr(tt,so),ve(tt,$e),tn)if(rn){const zt=t.createExportDefault(Qt);tt.push(zt)}else{const zt=t.createExternalModuleExport(t.getDeclarationName($e));tt.push(zt)}return tt}function K($e){return t.updateClassExpression($e,jn($e.modifiers,m,Aa),$e.name,void 0,jn($e.heritageClauses,y,nf),jn($e.members,y,Yc))}function Q($e){return t.updateConstructorDeclaration($e,jn($e.modifiers,m,Aa),jn($e.parameters,y,Ao),nt($e.body,y,Ko))}function V($e,It){return $e!==It&&(ac($e,It),Da($e,C_(It))),$e}function se($e){return V(t.updateMethodDeclaration($e,jn($e.modifiers,m,Aa),$e.asteriskToken,N.checkDefined(nt($e.name,y,oc)),void 0,void 0,jn($e.parameters,y,Ao),void 0,nt($e.body,y,Ko)),$e)}function G($e){return V(t.updateGetAccessorDeclaration($e,jn($e.modifiers,m,Aa),N.checkDefined(nt($e.name,y,oc)),jn($e.parameters,y,Ao),void 0,nt($e.body,y,Ko)),$e)}function ne($e){return V(t.updateSetAccessorDeclaration($e,jn($e.modifiers,m,Aa),N.checkDefined(nt($e.name,y,oc)),jn($e.parameters,y,Ao),nt($e.body,y,Ko)),$e)}function he($e){if(!($e.flags&33554432||Qr($e,128)))return V(t.updatePropertyDeclaration($e,jn($e.modifiers,m,Aa),N.checkDefined(nt($e.name,y,oc)),void 0,void 0,nt($e.initializer,y,yt)),$e)}function ye($e){const It=t.updateParameterDeclaration($e,Vae(t,$e.modifiers),$e.dotDotDotToken,N.checkDefined(nt($e.name,y,pS)),void 0,void 0,nt($e.initializer,y,yt));return It!==$e&&(ac(It,$e),dt(It,C_($e)),Da(It,C_($e)),pr(It.name,64)),It}function Y($e){return dP($e.expression,"___metadata")}function X($e){if(!$e)return;const{false:It,true:tn}=S6($e.decorators,Y),rn=[];return qr(rn,Wt(It,Ue)),qr(rn,Do($e.parameters,Ee)),qr(rn,Wt(tn,Ue)),rn}function oe($e,It,tn){qr($e,Wt(de(It,tn),rn=>t.createExpressionStatement(rn)))}function pe($e,It,tn){return LL(!0,$e,tn)&&It===aa($e)}function Ce($e,It){return mn($e.members,tn=>pe(tn,It,$e))}function de($e,It){const tn=Ce($e,It);let rn;for(const Mn of tn)rn=Rn(rn,ie($e,Mn));return rn}function ie($e,It){const tn=KF(It,$e,!0),rn=X(tn);if(!rn)return;const Mn=Se($e,It),$n=De(It,!Qr(It,128)),gn=l>0?qo(It)&&!D_(It)?t.createVoidZero():t.createNull():void 0,Qt=r().createDecorateHelper(rn,Mn,$n,gn);return pr(Qt,3072),Da(Qt,C_(It)),Qt}function ve($e,It){const tn=Le(It);tn&&$e.push(Nr(t.createExpressionStatement(tn),It))}function Le($e){const It=Wq($e),tn=X(It);if(!tn)return;const rn=p&&p[Wu($e)],Mn=l<2?t.getInternalName($e,!1,!0):t.getDeclarationName($e,!1,!0),$n=r().createDecorateHelper(tn,Mn),gn=t.createAssignment(Mn,rn?t.createAssignment(rn,$n):$n);return pr(gn,3072),Da(gn,C_($e)),gn}function Ue($e){return N.checkDefined(nt($e.expression,y,yt))}function Ee($e,It){let tn;if($e){tn=[];for(const rn of $e){const Mn=r().createParamHelper(Ue(rn),It);dt(Mn,rn.expression),pr(Mn,3072),tn.push(Mn)}}return tn}function De($e,It){const tn=$e.name;return qi(tn)?t.createIdentifier(""):Za(tn)?It&&!Ih(tn.expression)?t.getGeneratedNameForNode(tn):tn.expression:Ve(tn)?t.createStringLiteral(Sr(tn)):t.cloneNode(tn)}function Me(){p||(e.enableSubstitution(80),p=[])}function We($e){if(o.getNodeCheckFlags($e)&262144){Me();const It=t.createUniqueName($e.name&&!al($e.name)?Sr($e.name):"default");return p[Wu($e)]=It,i(It),It}}function At($e){return t.createPropertyAccessExpression(t.getDeclarationName($e),"prototype")}function Se($e,It){return aa(It)?t.getDeclarationName($e):At($e)}function je($e,It){return It=u($e,It),$e===1?ot(It):It}function ot($e){switch($e.kind){case 80:return Bt($e)}return $e}function Bt($e){return vt($e)??$e}function vt($e){if(p&&o.getNodeCheckFlags($e)&536870912){const It=o.getReferencedValueDeclaration($e);if(It){const tn=p[It.id];if(tn){const rn=t.cloneNode(tn);return Da(rn,$e),ac(rn,$e),rn}}}}}var Oje=I({"src/compiler/transformers/legacyDecorators.ts"(){ra()}});function _le(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=os(e.getCompilerOptions());let u,p,h,m,y,T;return Dm(e,A);function A(L){u=void 0,T=!1;const me=xn(L,ne,e);return zg(me,e.readEmitHelpers()),T&&(UA(me,32),T=!1),me}function R(){switch(p=void 0,h=void 0,m=void 0,u==null?void 0:u.kind){case"class":p=u.classInfo;break;case"class-element":p=u.next.classInfo,h=u.classThis,m=u.classSuper;break;case"name":const L=u.next.next.next;(L==null?void 0:L.kind)==="class-element"&&(p=L.next.classInfo,h=L.classThis,m=L.classSuper);break}}function M(L){u={kind:"class",next:u,classInfo:L,savedPendingExpressions:y},y=void 0,R()}function C(){N.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),y=u.savedPendingExpressions,u=u.next,R()}function O(L){var me,J;N.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"class-element",next:u},(Rl(L)||qo(L)&&mc(L))&&(u.classThis=(me=u.next.classInfo)==null?void 0:me.classThis,u.classSuper=(J=u.next.classInfo)==null?void 0:J.classSuper),R()}function U(){var L;N.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),N.assert(((L=u.next)==null?void 0:L.kind)==="class","Incorrect value for top.next.kind.",()=>{var me;return`Expected top.next.kind to be 'class' but got '${(me=u.next)==null?void 0:me.kind}' instead.`}),u=u.next,R()}function K(){N.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"name",next:u},R()}function Q(){N.assert((u==null?void 0:u.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u==null?void 0:u.kind}' instead.`),u=u.next,R()}function V(){(u==null?void 0:u.kind)==="other"?(N.assert(!y),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:y},y=void 0,R())}function se(){N.assert((u==null?void 0:u.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u==null?void 0:u.kind}' instead.`),u.depth>0?(N.assert(!y),u.depth--):(y=u.savedPendingExpressions,u=u.next,R())}function G(L){return!!(L.transformFlags&33554432)||!!h&&!!(L.transformFlags&16384)||!!h&&!!m&&!!(L.transformFlags&134217728)}function ne(L){if(!G(L))return L;switch(L.kind){case 170:return N.fail("Use `modifierVisitor` instead.");case 263:return Le(L);case 231:return Ue(L);case 176:case 172:case 175:return N.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return $n(L);case 226:return so(L,!1);case 303:return sn(L);case 260:return tt(L);case 208:return zt(L);case 277:return He(L);case 110:return $e(L);case 248:return Yt(L);case 244:return vi(L);case 361:return Co(L,!1);case 217:return mt(L,!1);case 360:return ft(L);case 213:return It(L);case 215:return tn(L);case 224:case 225:return Wi(L,!1);case 211:return rn(L);case 212:return Mn(L);case 167:return Ar(L);case 174:case 178:case 177:case 218:case 262:{V();const me=xn(L,he,e);return se(),me}default:return xn(L,he,e)}}function he(L){switch(L.kind){case 170:return;default:return ne(L)}}function ye(L){switch(L.kind){case 170:return;default:return L}}function Y(L){switch(L.kind){case 176:return Me(L);case 174:return Se(L);case 177:return je(L);case 178:return ot(L);case 172:return vt(L);case 175:return Bt(L);default:return ne(L)}}function X(L){switch(L.kind){case 224:case 225:return Wi(L,!0);case 226:return so(L,!0);case 361:return Co(L,!0);case 217:return mt(L,!0);default:return ne(L)}}function oe(L){let me=L.name&&Ve(L.name)&&!al(L.name)?Sr(L.name):L.name&&qi(L.name)&&!al(L.name)?Sr(L.name).slice(1):L.name&&Na(L.name)&&Zp(L.name.text,99)?L.name.text:di(L)?"class":"member";return My(L)&&(me=`get_${me}`),Mv(L)&&(me=`set_${me}`),L.name&&qi(L.name)&&(me=`private_${me}`),aa(L)&&(me=`static_${me}`),"_"+me}function pe(L,me){return t.createUniqueName(`${oe(L)}_${me}`,24)}function Ce(L,me){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(L,void 0,void 0,me)],1))}function de(L){const me=t.createUniqueName("_metadata",48);let J,fe,Be=!1,ke=!1,Tt=!1,kt,en,En;if(lR(!1,L)){const Gn=bt(L.members,qn=>(sd(qn)||Wd(qn))&&mc(qn));kt=t.createUniqueName("_classThis",Gn?24:48)}for(const Gn of L.members){if(AA(Gn)&&LL(!1,Gn,L))if(mc(Gn)){if(!fe){fe=t.createUniqueName("_staticExtraInitializers",48);const qn=r().createRunInitializersHelper(kt??t.createThis(),fe);Da(qn,L.name??Og(L)),en??(en=[]),en.push(qn)}}else{if(!J){J=t.createUniqueName("_instanceExtraInitializers",48);const qn=r().createRunInitializersHelper(t.createThis(),J);Da(qn,L.name??Og(L)),En??(En=[]),En.push(qn)}J??(J=t.createUniqueName("_instanceExtraInitializers",48))}if(Rl(Gn)?yI(Gn)||(Be=!0):qo(Gn)&&(mc(Gn)?Be||(Be=!!Gn.initializer||Tf(Gn)):ke||(ke=!ij(Gn))),(sd(Gn)||Wd(Gn))&&mc(Gn)&&(Tt=!0),fe&&J&&Be&&ke&&Tt)break}return{class:L,classThis:kt,metadataReference:me,instanceMethodExtraInitializersName:J,staticMethodExtraInitializersName:fe,hasStaticInitializers:Be,hasNonAmbientInstanceFields:ke,hasStaticPrivateClassElements:Tt,pendingStaticInitializers:en,pendingInstanceInitializers:En}}function ie(L){i(),!Vq(L)&&Lv(!1,L)&&(L=YF(e,L,t.createStringLiteral("")));const me=t.getLocalName(L,!1,!1,!0),J=de(L),fe=[];let Be,ke,Tt,kt,en=!1;const En=pt(Wq(L));En&&(J.classDecoratorsName=t.createUniqueName("_classDecorators",48),J.classDescriptorName=t.createUniqueName("_classDescriptor",48),J.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),N.assertIsDefined(J.classThis),fe.push(Ce(J.classDecoratorsName,t.createArrayLiteralExpression(En)),Ce(J.classDescriptorName),Ce(J.classExtraInitializersName,t.createArrayLiteralExpression()),Ce(J.classThis)),J.hasStaticPrivateClassElements&&(en=!0,T=!0));const Gn=ZL(L.heritageClauses,96),qn=Gn&&Kc(Gn.types),Pi=qn&&nt(qn.expression,ne,yt);if(Pi){J.classSuper=t.createUniqueName("_classSuper",48);const Jr=$l(Pi),xo=Qc(Jr)&&!Jr.name||Os(Jr)&&!Jr.name||Gs(Jr)?t.createComma(t.createNumericLiteral(0),Pi):Pi;fe.push(Ce(J.classSuper,xo));const Nn=t.updateExpressionWithTypeArguments(qn,J.classSuper,void 0),Fs=t.updateHeritageClause(Gn,[Nn]);kt=t.createNodeArray([Fs])}const xi=J.classThis??t.createThis();M(J),Be=Rn(Be,q(J.metadataReference,J.classSuper));let ir=L.members;if(ir=jn(ir,Jr=>Ml(Jr)?Jr:Y(Jr),Yc),ir=jn(ir,Jr=>Ml(Jr)?Y(Jr):Jr,Yc),y){let Jr;for(let xo of y){xo=nt(xo,function Fs(Ql){if(!(Ql.transformFlags&16384))return Ql;switch(Ql.kind){case 110:return Jr||(Jr=t.createUniqueName("_outerThis",16),fe.unshift(Ce(Jr,t.createThis()))),Jr;default:return xn(Ql,Fs,e)}},yt);const Nn=t.createExpressionStatement(xo);Be=Rn(Be,Nn)}y=void 0}if(C(),bt(J.pendingInstanceInitializers)&&!ng(L)){const Jr=Ee(L,J);if(Jr){const xo=I_(L),Nn=!!(xo&&$l(xo.expression).kind!==106),Fs=[];if(Nn){const ko=t.createSpreadElement(t.createIdentifier("arguments")),cs=t.createCallExpression(t.createSuper(),void 0,[ko]);Fs.push(t.createExpressionStatement(cs))}qr(Fs,Jr);const Ql=t.createBlock(Fs,!0);Tt=t.createConstructorDeclaration(void 0,[],Ql)}}if(J.staticMethodExtraInitializersName&&fe.push(Ce(J.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),J.instanceMethodExtraInitializersName&&fe.push(Ce(J.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),J.memberInfos&&zc(J.memberInfos,(Jr,xo)=>{aa(xo)&&(fe.push(Ce(Jr.memberDecoratorsName)),Jr.memberInitializersName&&fe.push(Ce(Jr.memberInitializersName,t.createArrayLiteralExpression())),Jr.memberExtraInitializersName&&fe.push(Ce(Jr.memberExtraInitializersName,t.createArrayLiteralExpression())),Jr.memberDescriptorName&&fe.push(Ce(Jr.memberDescriptorName)))}),J.memberInfos&&zc(J.memberInfos,(Jr,xo)=>{aa(xo)||(fe.push(Ce(Jr.memberDecoratorsName)),Jr.memberInitializersName&&fe.push(Ce(Jr.memberInitializersName,t.createArrayLiteralExpression())),Jr.memberExtraInitializersName&&fe.push(Ce(Jr.memberExtraInitializersName,t.createArrayLiteralExpression())),Jr.memberDescriptorName&&fe.push(Ce(Jr.memberDescriptorName)))}),Be=qr(Be,J.staticNonFieldDecorationStatements),Be=qr(Be,J.nonStaticNonFieldDecorationStatements),Be=qr(Be,J.staticFieldDecorationStatements),Be=qr(Be,J.nonStaticFieldDecorationStatements),J.classDescriptorName&&J.classDecoratorsName&&J.classExtraInitializersName&&J.classThis){Be??(Be=[]);const Jr=t.createPropertyAssignment("value",xi),xo=t.createObjectLiteralExpression([Jr]),Nn=t.createAssignment(J.classDescriptorName,xo),Fs=t.createPropertyAccessExpression(xi,"name"),Ql=r().createESDecorateHelper(t.createNull(),Nn,J.classDecoratorsName,{kind:"class",name:Fs,metadata:J.metadataReference},t.createNull(),J.classExtraInitializersName),ko=t.createExpressionStatement(Ql);Da(ko,Og(L)),Be.push(ko);const cs=t.createPropertyAccessExpression(J.classDescriptorName,"value"),Vs=t.createAssignment(J.classThis,cs),gl=t.createAssignment(me,Vs);Be.push(t.createExpressionStatement(gl))}if(Be.push(Oe(xi,J.metadataReference)),bt(J.pendingStaticInitializers)){for(const Jr of J.pendingStaticInitializers){const xo=t.createExpressionStatement(Jr);Da(xo,Bv(Jr)),ke=Rn(ke,xo)}J.pendingStaticInitializers=void 0}if(J.classExtraInitializersName){const Jr=r().createRunInitializersHelper(xi,J.classExtraInitializersName),xo=t.createExpressionStatement(Jr);Da(xo,L.name??Og(L)),ke=Rn(ke,xo)}Be&&ke&&!J.hasStaticInitializers&&(qr(Be,ke),ke=void 0);const Vr=Be&&t.createClassStaticBlockDeclaration(t.createBlock(Be,!0));Vr&&en&&Mk(Vr,32);const vo=ke&&t.createClassStaticBlockDeclaration(t.createBlock(ke,!0));if(Vr||Tt||vo){const Jr=[],xo=ir.findIndex(yI);Vr?(qr(Jr,ir,0,xo+1),Jr.push(Vr),qr(Jr,ir,xo+1)):qr(Jr,ir),Tt&&Jr.push(Tt),vo&&Jr.push(vo),ir=dt(t.createNodeArray(Jr),ir)}const Mi=o();let Ri;if(En){Ri=t.createClassExpression(void 0,void 0,void 0,kt,ir),J.classThis&&(Ri=sle(t,Ri,J.classThis));const Jr=t.createVariableDeclaration(me,void 0,void 0,Ri),xo=t.createVariableDeclarationList([Jr]),Nn=J.classThis?t.createAssignment(me,J.classThis):me;fe.push(t.createVariableStatement(void 0,xo),t.createReturnStatement(Nn))}else Ri=t.createClassExpression(void 0,L.name,void 0,kt,ir),fe.push(t.createReturnStatement(Ri));if(en){UA(Ri,32);for(const Jr of Ri.members)(sd(Jr)||Wd(Jr))&&mc(Jr)&&UA(Jr,32)}return Nr(Ri,L),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(fe,Mi))}function ve(L){return Lv(!1,L)||SC(!1,L)}function Le(L){if(ve(L)){const me=[],J=Pl(L,di)??L,fe=J.name?t.createStringLiteralFromNode(J.name):t.createStringLiteral("default"),Be=Qr(L,32),ke=Qr(L,2048);if(L.name||(L=YF(e,L,fe)),Be&&ke){const Tt=ie(L);if(L.name){const kt=t.createVariableDeclaration(t.getLocalName(L),void 0,void 0,Tt);Nr(kt,L);const en=t.createVariableDeclarationList([kt],1),En=t.createVariableStatement(void 0,en);me.push(En);const Gn=t.createExportDefault(t.getDeclarationName(L));Nr(Gn,L),ac(Gn,M_(L)),Da(Gn,Og(L)),me.push(Gn)}else{const kt=t.createExportDefault(Tt);Nr(kt,L),ac(kt,M_(L)),Da(kt,Og(L)),me.push(kt)}}else{N.assertIsDefined(L.name,"A class declaration that is not a default export must have a name.");const Tt=ie(L),kt=Be?xi=>$A(xi)?void 0:ye(xi):ye,en=jn(L.modifiers,kt,Aa),En=t.getLocalName(L,!1,!0),Gn=t.createVariableDeclaration(En,void 0,void 0,Tt);Nr(Gn,L);const qn=t.createVariableDeclarationList([Gn],1),Pi=t.createVariableStatement(en,qn);if(Nr(Pi,L),ac(Pi,M_(L)),me.push(Pi),Be){const xi=t.createExternalModuleExport(En);Nr(xi,L),me.push(xi)}}return ah(me)}else{const me=jn(L.modifiers,ye,Aa),J=jn(L.heritageClauses,ne,nf);M(void 0);const fe=jn(L.members,Y,Yc);return C(),t.updateClassDeclaration(L,me,L.name,void 0,J,fe)}}function Ue(L){if(ve(L)){const me=ie(L);return Nr(me,L),me}else{const me=jn(L.modifiers,ye,Aa),J=jn(L.heritageClauses,ne,nf);M(void 0);const fe=jn(L.members,Y,Yc);return C(),t.updateClassExpression(L,me,L.name,void 0,J,fe)}}function Ee(L,me){if(bt(me.pendingInstanceInitializers)){const J=[];return J.push(t.createExpressionStatement(t.inlineExpressions(me.pendingInstanceInitializers))),me.pendingInstanceInitializers=void 0,J}}function De(L,me,J,fe,Be,ke){const Tt=fe[Be],kt=me[Tt];if(qr(L,jn(me,ne,Hi,J,Tt-J)),BS(kt)){const en=[];De(en,kt.tryBlock.statements,0,fe,Be+1,ke);const En=t.createNodeArray(en);dt(En,kt.tryBlock.statements),L.push(t.updateTryStatement(kt,t.updateBlock(kt.tryBlock,en),nt(kt.catchClause,ne,r1),nt(kt.finallyBlock,ne,Ko)))}else qr(L,jn(me,ne,Hi,Tt,1)),qr(L,ke);qr(L,jn(me,ne,Hi,Tt+1))}function Me(L){O(L);const me=jn(L.modifiers,ye,Aa),J=jn(L.parameters,ne,Ao);let fe;if(L.body&&p){const Be=Ee(p.class,p);if(Be){const ke=[],Tt=t.copyPrologue(L.body.statements,ke,!1,ne),kt=qF(L.body.statements,Tt);kt.length>0?De(ke,L.body.statements,Tt,kt,0,Be):(qr(ke,Be),qr(ke,jn(L.body.statements,ne,Hi))),fe=t.createBlock(ke,!0),Nr(fe,L.body),dt(fe,L.body)}}return fe??(fe=nt(L.body,ne,Ko)),U(),t.updateConstructorDeclaration(L,me,J,fe)}function We(L,me){return L!==me&&(ac(L,me),Da(L,Og(me))),L}function At(L,me,J){let fe,Be,ke,Tt,kt,en;if(!me){const qn=jn(L.modifiers,ye,Aa);return K(),Be=Ci(L.name),Q(),{modifiers:qn,referencedName:fe,name:Be,initializersName:ke,descriptorName:en,thisArg:kt}}const En=pt(KF(L,me.class,!1)),Gn=jn(L.modifiers,ye,Aa);if(En){const qn=pe(L,"decorators"),Pi=t.createArrayLiteralExpression(En),xi=t.createAssignment(qn,Pi),ir={memberDecoratorsName:qn};me.memberInfos??(me.memberInfos=new Map),me.memberInfos.set(L,ir),y??(y=[]),y.push(xi);const Vr=AA(L)||Wd(L)?aa(L)?me.staticNonFieldDecorationStatements??(me.staticNonFieldDecorationStatements=[]):me.nonStaticNonFieldDecorationStatements??(me.nonStaticNonFieldDecorationStatements=[]):qo(L)&&!Wd(L)?aa(L)?me.staticFieldDecorationStatements??(me.staticFieldDecorationStatements=[]):me.nonStaticFieldDecorationStatements??(me.nonStaticFieldDecorationStatements=[]):N.fail(),vo=tf(L)?"getter":vp(L)?"setter":Hl(L)?"method":Wd(L)?"accessor":qo(L)?"field":N.fail();let Mi;if(Ve(L.name)||qi(L.name))Mi={computed:!1,name:L.name};else if(x_(L.name))Mi={computed:!0,name:t.createStringLiteralFromNode(L.name)};else{const Jr=L.name.expression;x_(Jr)&&!Ve(Jr)?Mi={computed:!0,name:t.createStringLiteralFromNode(Jr)}:(K(),{referencedName:fe,name:Be}=Ln(L.name),Mi={computed:!0,name:fe},Q())}const Ri={kind:vo,name:Mi,static:aa(L),private:qi(L.name),access:{get:qo(L)||tf(L)||Hl(L),set:qo(L)||vp(L)},metadata:me.metadataReference};if(AA(L)){const Jr=aa(L)?me.staticMethodExtraInitializersName:me.instanceMethodExtraInitializersName;N.assertIsDefined(Jr);let xo;sd(L)&&J&&(xo=J(L,jn(Gn,Ql=>ri(Ql,pP),Aa)),ir.memberDescriptorName=en=pe(L,"descriptor"),xo=t.createAssignment(en,xo));const Nn=r().createESDecorateHelper(t.createThis(),xo??t.createNull(),qn,Ri,t.createNull(),Jr),Fs=t.createExpressionStatement(Nn);Da(Fs,Og(L)),Vr.push(Fs)}else if(qo(L)){ke=ir.memberInitializersName??(ir.memberInitializersName=pe(L,"initializers")),Tt=ir.memberExtraInitializersName??(ir.memberExtraInitializersName=pe(L,"extraInitializers")),aa(L)&&(kt=me.classThis);let Jr;sd(L)&&D_(L)&&J&&(Jr=J(L,void 0),ir.memberDescriptorName=en=pe(L,"descriptor"),Jr=t.createAssignment(en,Jr));const xo=r().createESDecorateHelper(Wd(L)?t.createThis():t.createNull(),Jr??t.createNull(),qn,Ri,ke,Tt),Nn=t.createExpressionStatement(xo);Da(Nn,Og(L)),Vr.push(Nn)}}return Be===void 0&&(K(),Be=Ci(L.name),Q()),!bt(Gn)&&(Hl(L)||qo(L))&&pr(Be,1024),{modifiers:Gn,referencedName:fe,name:Be,initializersName:ke,extraInitializersName:Tt,descriptorName:en,thisArg:kt}}function Se(L){O(L);const{modifiers:me,name:J,descriptorName:fe}=At(L,p,Rt);if(fe)return U(),We(yn(me,J,fe),L);{const Be=jn(L.parameters,ne,Ao),ke=nt(L.body,ne,Ko);return U(),We(t.updateMethodDeclaration(L,me,L.asteriskToken,J,void 0,void 0,Be,void 0,ke),L)}}function je(L){O(L);const{modifiers:me,name:J,descriptorName:fe}=At(L,p,Ye);if(fe)return U(),We(fn(me,J,fe),L);{const Be=jn(L.parameters,ne,Ao),ke=nt(L.body,ne,Ko);return U(),We(t.updateGetAccessorDeclaration(L,me,J,Be,void 0,ke),L)}}function ot(L){O(L);const{modifiers:me,name:J,descriptorName:fe}=At(L,p,_t);if(fe)return U(),We(hn(me,J,fe),L);{const Be=jn(L.parameters,ne,Ao),ke=nt(L.body,ne,Ko);return U(),We(t.updateSetAccessorDeclaration(L,me,J,Be,ke),L)}}function Bt(L){O(L);let me;if(yI(L))me=xn(L,ne,e);else if(BP(L)){const J=h;h=void 0,me=xn(L,ne,e),h=J}else if(L=xn(L,ne,e),me=L,p&&(p.hasStaticInitializers=!0,bt(p.pendingStaticInitializers))){const J=[];for(const ke of p.pendingStaticInitializers){const Tt=t.createExpressionStatement(ke);Da(Tt,Bv(ke)),J.push(Tt)}const fe=t.createBlock(J,!0);me=[t.createClassStaticBlockDeclaration(fe),me],p.pendingStaticInitializers=void 0}return U(),me}function vt(L){mp(L,gn)&&(L=bp(e,L,Qt(L.initializer))),O(L),N.assert(!ij(L),"Not yet implemented.");const{modifiers:me,name:J,initializersName:fe,extraInitializersName:Be,descriptorName:ke,thisArg:Tt}=At(L,p,D_(L)?Gt:void 0);i();let kt=nt(L.initializer,ne,yt);fe&&(kt=r().createRunInitializersHelper(Tt??t.createThis(),fe,kt??t.createVoidZero())),aa(L)&&p&&kt&&(p.hasStaticInitializers=!0);const en=o();if(bt(en)&&(kt=t.createImmediatelyInvokedArrowFunction([...en,t.createReturnStatement(kt)])),p&&(aa(L)?(kt=Fe(p,!0,kt),Be&&(p.pendingStaticInitializers??(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper(p.classThis??t.createThis(),Be)))):(kt=Fe(p,!1,kt),Be&&(p.pendingInstanceInitializers??(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Be))))),U(),D_(L)&&ke){const En=M_(L),Gn=Bv(L),qn=L.name;let Pi=qn,xi=qn;if(Za(qn)&&!Ih(qn.expression)){const Ri=sF(qn);if(Ri)Pi=t.updateComputedPropertyName(qn,nt(qn.expression,ne,yt)),xi=t.updateComputedPropertyName(qn,Ri.left);else{const Jr=t.createTempVariable(s);Da(Jr,qn.expression);const xo=nt(qn.expression,ne,yt),Nn=t.createAssignment(Jr,xo);Da(Nn,qn.expression),Pi=t.updateComputedPropertyName(qn,Nn),xi=t.updateComputedPropertyName(qn,Jr)}}const ir=jn(me,Ri=>Ri.kind!==129?Ri:void 0,Aa),Vr=PH(t,L,ir,kt);Nr(Vr,L),pr(Vr,3072),Da(Vr,Gn),Da(Vr.name,L.name);const vo=fn(ir,Pi,ke);Nr(vo,L),ac(vo,En),Da(vo,Gn);const Mi=hn(ir,xi,ke);return Nr(Mi,L),pr(Mi,3072),Da(Mi,Gn),[Vr,vo,Mi]}return We(t.updatePropertyDeclaration(L,me,J,void 0,void 0,kt),L)}function $e(L){return h??L}function It(L){if(zd(L.expression)&&h){const me=nt(L.expression,ne,yt),J=jn(L.arguments,ne,yt),fe=t.createFunctionCallCall(me,h,J);return Nr(fe,L),dt(fe,L),fe}return xn(L,ne,e)}function tn(L){if(zd(L.tag)&&h){const me=nt(L.tag,ne,yt),J=t.createFunctionBindCall(me,h,[]);Nr(J,L),dt(J,L);const fe=nt(L.template,ne,IA);return t.updateTaggedTemplateExpression(L,J,void 0,fe)}return xn(L,ne,e)}function rn(L){if(zd(L)&&Ve(L.name)&&h&&m){const me=t.createStringLiteralFromNode(L.name),J=t.createReflectGetCall(m,me,h);return Nr(J,L.expression),dt(J,L.expression),J}return xn(L,ne,e)}function Mn(L){if(zd(L)&&h&&m){const me=nt(L.argumentExpression,ne,yt),J=t.createReflectGetCall(m,me,h);return Nr(J,L.expression),dt(J,L.expression),J}return xn(L,ne,e)}function $n(L){mp(L,gn)&&(L=bp(e,L,Qt(L.initializer)));const me=t.updateParameterDeclaration(L,void 0,L.dotDotDotToken,nt(L.name,ne,pS),void 0,void 0,nt(L.initializer,ne,yt));return me!==L&&(ac(me,L),dt(me,C_(L)),Da(me,C_(L)),pr(me.name,64)),me}function gn(L){return Qc(L)&&!L.name&&ve(L)}function Qt(L){const me=$l(L);return Qc(me)&&!me.name&&!Lv(!1,me)}function Yt(L){return t.updateForStatement(L,nt(L.initializer,X,Sf),nt(L.condition,ne,yt),nt(L.incrementor,X,yt),xd(L.statement,ne,e))}function vi(L){return xn(L,X,e)}function so(L,me){if(Wv(L)){const J=wn(L.left),fe=nt(L.right,ne,yt);return t.updateBinaryExpression(L,J,L.operatorToken,fe)}if(Pc(L)){if(mp(L,gn))return L=bp(e,L,Qt(L.right)),xn(L,ne,e);if(zd(L.left)&&h&&m){let J=$s(L.left)?nt(L.left.argumentExpression,ne,yt):Ve(L.left.name)?t.createStringLiteralFromNode(L.left.name):void 0;if(J){let fe=nt(L.right,ne,yt);if(WP(L.operatorToken.kind)){let ke=J;Ih(J)||(ke=t.createTempVariable(s),J=t.createAssignment(ke,J));const Tt=t.createReflectGetCall(m,ke,h);Nr(Tt,L.left),dt(Tt,L.left),fe=t.createBinaryExpression(Tt,FP(L.operatorToken.kind),fe),dt(fe,L)}const Be=me?void 0:t.createTempVariable(s);return Be&&(fe=t.createAssignment(Be,fe),dt(Be,L)),fe=t.createReflectSetCall(m,J,fe,h),Nr(fe,L),dt(fe,L),Be&&(fe=t.createComma(fe,Be),dt(fe,L)),fe}}}if(L.operatorToken.kind===28){const J=nt(L.left,X,yt),fe=nt(L.right,me?X:ne,yt);return t.updateBinaryExpression(L,J,L.operatorToken,fe)}return xn(L,ne,e)}function Wi(L,me){if(L.operator===46||L.operator===47){const J=hs(L.operand);if(zd(J)&&h&&m){let fe=$s(J)?nt(J.argumentExpression,ne,yt):Ve(J.name)?t.createStringLiteralFromNode(J.name):void 0;if(fe){let Be=fe;Ih(fe)||(Be=t.createTempVariable(s),fe=t.createAssignment(Be,fe));let ke=t.createReflectGetCall(m,Be,h);Nr(ke,L),dt(ke,L);const Tt=me?void 0:t.createTempVariable(s);return ke=eF(t,L,ke,s,Tt),ke=t.createReflectSetCall(m,fe,ke,h),Nr(ke,L),dt(ke,L),Tt&&(ke=t.createComma(ke,Tt),dt(ke,L)),ke}}}return xn(L,ne,e)}function Co(L,me){const J=me?BF(L.elements,X):BF(L.elements,ne,X);return t.updateCommaListExpression(L,J)}function Ln(L){if(x_(L)||qi(L)){const ke=t.createStringLiteralFromNode(L),Tt=nt(L,ne,oc);return{referencedName:ke,name:Tt}}if(x_(L.expression)&&!Ve(L.expression)){const ke=t.createStringLiteralFromNode(L.expression),Tt=nt(L,ne,oc);return{referencedName:ke,name:Tt}}const me=t.getGeneratedNameForNode(L);s(me);const J=r().createPropKeyHelper(nt(L.expression,ne,yt)),fe=t.createAssignment(me,J),Be=t.updateComputedPropertyName(L,le(fe));return{referencedName:me,name:Be}}function Ci(L){return Za(L)?Ar(L):nt(L,ne,oc)}function Ar(L){let me=nt(L.expression,ne,yt);return Ih(me)||(me=le(me)),t.updateComputedPropertyName(L,me)}function sn(L){return mp(L,gn)&&(L=bp(e,L,Qt(L.initializer))),xn(L,ne,e)}function tt(L){return mp(L,gn)&&(L=bp(e,L,Qt(L.initializer))),xn(L,ne,e)}function zt(L){return mp(L,gn)&&(L=bp(e,L,Qt(L.initializer))),xn(L,ne,e)}function Dn(L){if(La(L)||fd(L))return wn(L);if(zd(L)&&h&&m){const me=$s(L)?nt(L.argumentExpression,ne,yt):Ve(L.name)?t.createStringLiteralFromNode(L.name):void 0;if(me){const J=t.createTempVariable(void 0),fe=t.createAssignmentTargetWrapper(J,t.createReflectSetCall(m,me,J,h));return Nr(fe,L),dt(fe,L),fe}}return xn(L,ne,e)}function ci(L){if(Pc(L,!0)){mp(L,gn)&&(L=bp(e,L,Qt(L.right)));const me=Dn(L.left),J=nt(L.right,ne,yt);return t.updateBinaryExpression(L,me,L.operatorToken,J)}else return Dn(L)}function yi(L){if(Zd(L.expression)){const me=Dn(L.expression);return t.updateSpreadElement(L,me)}return xn(L,ne,e)}function Qi(L){return N.assertNode(L,fL),$m(L)?yi(L):Gc(L)?xn(L,ne,e):ci(L)}function Io(L){const me=nt(L.name,ne,oc);if(Pc(L.initializer,!0)){const J=ci(L.initializer);return t.updatePropertyAssignment(L,me,J)}if(Zd(L.initializer)){const J=Dn(L.initializer);return t.updatePropertyAssignment(L,me,J)}return xn(L,ne,e)}function fa(L){return mp(L,gn)&&(L=bp(e,L,Qt(L.objectAssignmentInitializer))),xn(L,ne,e)}function ka(L){if(Zd(L.expression)){const me=Dn(L.expression);return t.updateSpreadAssignment(L,me)}return xn(L,ne,e)}function Tn(L){return N.assertNode(L,pL),jv(L)?ka(L):np(L)?fa(L):hc(L)?Io(L):xn(L,ne,e)}function wn(L){if(fd(L)){const me=jn(L.elements,Qi,yt);return t.updateArrayLiteralExpression(L,me)}else{const me=jn(L.properties,Tn,Mg);return t.updateObjectLiteralExpression(L,me)}}function He(L){return mp(L,gn)&&(L=bp(e,L,Qt(L.expression))),xn(L,ne,e)}function mt(L,me){const J=me?X:ne,fe=nt(L.expression,J,yt);return t.updateParenthesizedExpression(L,fe)}function ft(L,me){const J=ne,fe=nt(L.expression,J,yt);return t.updatePartiallyEmittedExpression(L,fe)}function Ct(L,me){return bt(L)&&(me?Gd(me)?(L.push(me.expression),me=t.updateParenthesizedExpression(me,t.inlineExpressions(L))):(L.push(me),me=t.inlineExpressions(L)):me=t.inlineExpressions(L)),me}function le(L){const me=Ct(y,L);return N.assertIsDefined(me),me!==L&&(y=void 0),me}function Fe(L,me,J){const fe=Ct(me?L.pendingStaticInitializers:L.pendingInstanceInitializers,J);return fe!==J&&(me?L.pendingStaticInitializers=void 0:L.pendingInstanceInitializers=void 0),fe}function pt(L){if(!L)return;const me=[];return qr(me,Wt(L.decorators,j)),me}function j(L){const me=nt(L.expression,ne,yt);pr(me,3072);const J=$l(me);if(ws(J)){const{target:fe,thisArg:Be}=t.createCallBinding(me,s,l,!0);return t.restoreOuterExpressions(me,t.createFunctionBindCall(fe,Be,[]))}return me}function it(L,me,J,fe,Be,ke,Tt){const kt=t.createFunctionExpression(J,fe,void 0,void 0,ke,void 0,Tt??t.createBlock([]));Nr(kt,L),Da(kt,Og(L)),pr(kt,3072);const en=Be==="get"||Be==="set"?Be:void 0,En=t.createStringLiteralFromNode(me,void 0),Gn=r().createSetFunctionNameHelper(kt,En,en),qn=t.createPropertyAssignment(t.createIdentifier(Be),Gn);return Nr(qn,L),Da(qn,Og(L)),pr(qn,3072),qn}function Rt(L,me){return t.createObjectLiteralExpression([it(L,L.name,me,L.asteriskToken,"value",jn(L.parameters,ne,Ao),nt(L.body,ne,Ko))])}function Ye(L,me){return t.createObjectLiteralExpression([it(L,L.name,me,void 0,"get",[],nt(L.body,ne,Ko))])}function _t(L,me){return t.createObjectLiteralExpression([it(L,L.name,me,void 0,"set",jn(L.parameters,ne,Ao),nt(L.body,ne,Ko))])}function Gt(L,me){return t.createObjectLiteralExpression([it(L,L.name,me,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)))])),it(L,L.name,me,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)),t.createIdentifier("value")))]))])}function yn(L,me,J){return L=jn(L,fe=>QA(fe)?fe:void 0,Aa),t.createGetAccessorDeclaration(L,me,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(J,t.createIdentifier("value")))]))}function fn(L,me,J){return L=jn(L,fe=>QA(fe)?fe:void 0,Aa),t.createGetAccessorDeclaration(L,me,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("get")),t.createThis(),[]))]))}function hn(L,me,J){return L=jn(L,fe=>QA(fe)?fe:void 0,Aa),t.createSetAccessorDeclaration(L,me,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function q(L,me){const J=t.createVariableDeclaration(L,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[me?Lt(me):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([J],2))}function Oe(L,me){const J=t.createObjectDefinePropertyCall(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:me},!0));return pr(t.createIfStatement(me,t.createExpressionStatement(J)),1)}function Lt(L){return t.createBinaryExpression(t.createElementAccessExpression(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var Wje=I({"src/compiler/transformers/esDecorators.ts"(){ra()}});function hle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=os(u);let h,m=0,y,T,A,R;const M=[];let C=0;const O=e.onEmitNode,U=e.onSubstituteNode;return e.onEmitNode=vi,e.onSubstituteNode=so,Dm(e,K);function K(tt){if(tt.isDeclarationFile)return tt;Q(1,!1),Q(2,!rj(tt,u));const zt=xn(tt,Y,e);return zg(zt,e.readEmitHelpers()),zt}function Q(tt,zt){C=zt?C|tt:C&~tt}function V(tt){return(C&tt)!==0}function se(){return!V(1)}function G(){return V(2)}function ne(tt,zt,Dn){const ci=tt&~C;if(ci){Q(ci,!0);const yi=zt(Dn);return Q(ci,!1),yi}return zt(Dn)}function he(tt){return xn(tt,Y,e)}function ye(tt){switch(tt.kind){case 218:case 262:case 174:case 177:case 178:case 176:return tt;case 169:case 208:case 260:break;case 80:if(R&&l.isArgumentsLocalBinding(tt))return R;break}return xn(tt,ye,e)}function Y(tt){if(!(tt.transformFlags&256))return R?ye(tt):tt;switch(tt.kind){case 134:return;case 223:return ve(tt);case 174:return ne(3,Ue,tt);case 262:return ne(3,Me,tt);case 218:return ne(3,We,tt);case 219:return ne(1,At,tt);case 211:return T&&Fr(tt)&&tt.expression.kind===108&&T.add(tt.name.escapedText),xn(tt,Y,e);case 212:return T&&tt.expression.kind===108&&(A=!0),xn(tt,Y,e);case 177:return ne(3,Ee,tt);case 178:return ne(3,De,tt);case 176:return ne(3,Le,tt);case 263:case 231:return ne(3,he,tt);default:return xn(tt,Y,e)}}function X(tt){if(hie(tt))switch(tt.kind){case 243:return pe(tt);case 248:return ie(tt);case 249:return Ce(tt);case 250:return de(tt);case 299:return oe(tt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return xn(tt,X,e);default:return N.assertNever(tt,"Unhandled node.")}return Y(tt)}function oe(tt){const zt=new Set;Se(tt.variableDeclaration,zt);let Dn;if(zt.forEach((ci,yi)=>{y.has(yi)&&(Dn||(Dn=new Set(y)),Dn.delete(yi))}),Dn){const ci=y;y=Dn;const yi=xn(tt,X,e);return y=ci,yi}else return xn(tt,X,e)}function pe(tt){if(je(tt.declarationList)){const zt=ot(tt.declarationList,!1);return zt?t.createExpressionStatement(zt):void 0}return xn(tt,Y,e)}function Ce(tt){return t.updateForInStatement(tt,je(tt.initializer)?ot(tt.initializer,!0):N.checkDefined(nt(tt.initializer,Y,Sf)),N.checkDefined(nt(tt.expression,Y,yt)),xd(tt.statement,X,e))}function de(tt){return t.updateForOfStatement(tt,nt(tt.awaitModifier,Y,oH),je(tt.initializer)?ot(tt.initializer,!0):N.checkDefined(nt(tt.initializer,Y,Sf)),N.checkDefined(nt(tt.expression,Y,yt)),xd(tt.statement,X,e))}function ie(tt){const zt=tt.initializer;return t.updateForStatement(tt,je(zt)?ot(zt,!1):nt(tt.initializer,Y,Sf),nt(tt.condition,Y,yt),nt(tt.incrementor,Y,yt),xd(tt.statement,X,e))}function ve(tt){return se()?xn(tt,Y,e):Nr(dt(t.createYieldExpression(void 0,nt(tt.expression,Y,yt)),tt),tt)}function Le(tt){const zt=R;R=void 0;const Dn=t.updateConstructorDeclaration(tt,jn(tt.modifiers,Y,Aa),Dl(tt.parameters,Y,e),tn(tt));return R=zt,Dn}function Ue(tt){let zt;const Dn=Bc(tt),ci=R;R=void 0;const yi=t.updateMethodDeclaration(tt,jn(tt.modifiers,Y,sl),tt.asteriskToken,tt.name,void 0,void 0,zt=Dn&2?Mn(tt):Dl(tt.parameters,Y,e),void 0,Dn&2?$n(tt,zt):tn(tt));return R=ci,yi}function Ee(tt){const zt=R;R=void 0;const Dn=t.updateGetAccessorDeclaration(tt,jn(tt.modifiers,Y,sl),tt.name,Dl(tt.parameters,Y,e),void 0,tn(tt));return R=zt,Dn}function De(tt){const zt=R;R=void 0;const Dn=t.updateSetAccessorDeclaration(tt,jn(tt.modifiers,Y,sl),tt.name,Dl(tt.parameters,Y,e),tn(tt));return R=zt,Dn}function Me(tt){let zt;const Dn=R;R=void 0;const ci=Bc(tt),yi=t.updateFunctionDeclaration(tt,jn(tt.modifiers,Y,sl),tt.asteriskToken,tt.name,void 0,zt=ci&2?Mn(tt):Dl(tt.parameters,Y,e),void 0,ci&2?$n(tt,zt):af(tt.body,Y,e));return R=Dn,yi}function We(tt){let zt;const Dn=R;R=void 0;const ci=Bc(tt),yi=t.updateFunctionExpression(tt,jn(tt.modifiers,Y,Aa),tt.asteriskToken,tt.name,void 0,zt=ci&2?Mn(tt):Dl(tt.parameters,Y,e),void 0,ci&2?$n(tt,zt):af(tt.body,Y,e));return R=Dn,yi}function At(tt){let zt;const Dn=Bc(tt);return t.updateArrowFunction(tt,jn(tt.modifiers,Y,Aa),void 0,zt=Dn&2?Mn(tt):Dl(tt.parameters,Y,e),void 0,tt.equalsGreaterThanToken,Dn&2?$n(tt,zt):af(tt.body,Y,e))}function Se({name:tt},zt){if(Ve(tt))zt.add(tt.escapedText);else for(const Dn of tt.elements)Gc(Dn)||Se(Dn,zt)}function je(tt){return!!tt&&Vc(tt)&&!(tt.flags&7)&&tt.declarations.some(It)}function ot(tt,zt){Bt(tt);const Dn=VC(tt);return Dn.length===0?zt?nt(t.converters.convertToAssignmentElementTarget(tt.declarations[0].name),Y,yt):void 0:t.inlineExpressions(Wt(Dn,$e))}function Bt(tt){Xe(tt.declarations,vt)}function vt({name:tt}){if(Ve(tt))s(tt);else for(const zt of tt.elements)Gc(zt)||vt(zt)}function $e(tt){const zt=Da(t.createAssignment(t.converters.convertToAssignmentElementTarget(tt.name),tt.initializer),tt);return N.checkDefined(nt(zt,Y,yt))}function It({name:tt}){if(Ve(tt))return y.has(tt.escapedText);for(const zt of tt.elements)if(!Gc(zt)&&It(zt))return!0;return!1}function tn(tt){N.assertIsDefined(tt.body);const zt=T,Dn=A;T=new Set,A=!1;let ci=af(tt.body,Y,e);const yi=Pl(tt,Bs);if(p>=2&&l.getNodeCheckFlags(tt)&384&&(Bc(yi)&3)!==3){if(Yt(),T.size){const Io=$F(t,l,tt,T);M[as(Io)]=!0;const fa=ci.statements.slice();Yh(fa,[Io]),ci=t.updateBlock(ci,fa)}A&&(l.getNodeCheckFlags(tt)&256?qA(ci,Wk):l.getNodeCheckFlags(tt)&128&&qA(ci,Ok))}return T=zt,A=Dn,ci}function rn(){N.assert(R);const tt=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),zt=t.createVariableStatement(void 0,[tt]);return Xu(zt),P_(zt,2097152),zt}function Mn(tt){if(Nw(tt.parameters))return Dl(tt.parameters,Y,e);const zt=[];for(const ci of tt.parameters){if(ci.initializer||ci.dotDotDotToken){if(tt.kind===219){const Qi=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));zt.push(Qi)}break}const yi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(ci.name,8));zt.push(yi)}const Dn=t.createNodeArray(zt);return dt(Dn,tt.parameters),Dn}function $n(tt,zt){const Dn=Nw(tt.parameters)?void 0:Dl(tt.parameters,Y,e);i();const yi=Pl(tt,ea).type,Qi=p<2?Qt(yi):void 0,Io=tt.kind===219,fa=R,Tn=(l.getNodeCheckFlags(tt)&512)!==0&&!R;Tn&&(R=t.createUniqueName("arguments"));let wn;if(Dn)if(Io){const pt=[];N.assert(zt.length<=tt.parameters.length);for(let j=0;j<tt.parameters.length;j++){N.assert(j<zt.length);const it=tt.parameters[j],Rt=zt[j];if(N.assertNode(Rt.name,Ve),it.initializer||it.dotDotDotToken){N.assert(j===zt.length-1),pt.push(t.createSpreadElement(Rt.name));break}pt.push(Rt.name)}wn=t.createArrayLiteralExpression(pt)}else wn=t.createIdentifier("arguments");const He=y;y=new Set;for(const pt of tt.parameters)Se(pt,y);const mt=T,ft=A;Io||(T=new Set,A=!1);const Ct=G();let le=gn(tt.body);le=t.updateBlock(le,t.mergeLexicalEnvironment(le.statements,o()));let Fe;if(Io){if(Fe=r().createAwaiterHelper(Ct,wn,Qi,Dn,le),Tn){const pt=t.converters.convertToFunctionBlock(Fe);Fe=t.updateBlock(pt,t.mergeLexicalEnvironment(pt.statements,[rn()]))}}else{const pt=[];pt.push(t.createReturnStatement(r().createAwaiterHelper(Ct,wn,Qi,Dn,le)));const j=p>=2&&l.getNodeCheckFlags(tt)&384;if(j&&(Yt(),T.size)){const Rt=$F(t,l,tt,T);M[as(Rt)]=!0,Yh(pt,[Rt])}Tn&&Yh(pt,[rn()]);const it=t.createBlock(pt,!0);dt(it,tt.body),j&&A&&(l.getNodeCheckFlags(tt)&256?qA(it,Wk):l.getNodeCheckFlags(tt)&128&&qA(it,Ok)),Fe=it}return y=He,Io||(T=mt,A=ft,R=fa),Fe}function gn(tt,zt){return Ko(tt)?t.updateBlock(tt,jn(tt.statements,X,Hi,zt)):t.converters.convertToFunctionBlock(N.checkDefined(nt(tt,X,v4)))}function Qt(tt){const zt=tt&&ML(tt);if(zt&&Qd(zt)){const Dn=l.getTypeReferenceSerializationKind(zt);if(Dn===1||Dn===0)return zt}}function Yt(){h&1||(h|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function vi(tt,zt,Dn){if(h&1&&Ar(zt)){const ci=l.getNodeCheckFlags(zt)&384;if(ci!==m){const yi=m;m=ci,O(tt,zt,Dn),m=yi;return}}else if(h&&M[as(zt)]){const ci=m;m=0,O(tt,zt,Dn),m=ci;return}O(tt,zt,Dn)}function so(tt,zt){return zt=U(tt,zt),tt===1&&m?Wi(zt):zt}function Wi(tt){switch(tt.kind){case 211:return Co(tt);case 212:return Ln(tt);case 213:return Ci(tt)}return tt}function Co(tt){return tt.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),tt.name),tt):tt}function Ln(tt){return tt.expression.kind===108?sn(tt.argumentExpression,tt):tt}function Ci(tt){const zt=tt.expression;if(zd(zt)){const Dn=Fr(zt)?Co(zt):Ln(zt);return t.createCallExpression(t.createPropertyAccessExpression(Dn,"call"),void 0,[t.createThis(),...tt.arguments])}return tt}function Ar(tt){const zt=tt.kind;return zt===263||zt===176||zt===174||zt===177||zt===178}function sn(tt,zt){return m&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[tt]),"value"),zt):dt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[tt]),zt)}}function $F(e,t,r,i){const o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,u)=>{const p=Vi(u),h=[];h.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,pr(e.createPropertyAccessExpression(pr(e.createSuper(),8),p),8)))),o&&h.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(pr(e.createPropertyAccessExpression(pr(e.createSuper(),8),p),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(p,e.createObjectLiteralExpression(h)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(s,!0)]))],2))}var Fje=I({"src/compiler/transformers/es2017.ts"(){ra()}});function gle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=os(u),h=e.onEmitNode;e.onEmitNode=fa;const m=e.onSubstituteNode;e.onSubstituteNode=ka;let y=!1,T,A,R,M=0,C=0,O,U,K,Q;const V=[];return Dm(e,ye);function se(le,Fe){return C!==(C&~le|Fe)}function G(le,Fe){const pt=C;return C=(C&~le|Fe)&3,pt}function ne(le){C=le}function he(le){U=Rn(U,t.createVariableDeclaration(le))}function ye(le){if(le.isDeclarationFile)return le;O=le;const Fe=At(le);return zg(Fe,e.readEmitHelpers()),O=void 0,U=void 0,Fe}function Y(le){return de(le,!1)}function X(le){return de(le,!0)}function oe(le){if(le.kind!==134)return le}function pe(le,Fe,pt,j){if(se(pt,j)){const it=G(pt,j),Rt=le(Fe);return ne(it),Rt}return le(Fe)}function Ce(le){return xn(le,Y,e)}function de(le,Fe){if(!(le.transformFlags&128))return le;switch(le.kind){case 223:return ie(le);case 229:return ve(le);case 253:return Le(le);case 256:return Ue(le);case 210:return De(le);case 226:return je(le,Fe);case 361:return ot(le,Fe);case 299:return Bt(le);case 243:return vt(le);case 260:return $e(le);case 246:case 247:case 249:return pe(Ce,le,0,2);case 250:return Mn(le,void 0);case 248:return pe(tn,le,0,2);case 222:return rn(le);case 176:return pe(Co,le,2,1);case 174:return pe(Ar,le,2,1);case 177:return pe(Ln,le,2,1);case 178:return pe(Ci,le,2,1);case 262:return pe(sn,le,2,1);case 218:return pe(zt,le,2,1);case 219:return pe(tt,le,2,0);case 169:return so(le);case 244:return Me(le);case 217:return We(le,Fe);case 215:return Se(le);case 211:return K&&Fr(le)&&le.expression.kind===108&&K.add(le.name.escapedText),xn(le,Y,e);case 212:return K&&le.expression.kind===108&&(Q=!0),xn(le,Y,e);case 263:case 231:return pe(Ce,le,2,1);default:return xn(le,Y,e)}}function ie(le){return A&2&&A&1?Nr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(nt(le.expression,Y,yt))),le),le):xn(le,Y,e)}function ve(le){if(A&2&&A&1){if(le.asteriskToken){const Fe=nt(N.checkDefined(le.expression),Y,yt);return Nr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(le,le.asteriskToken,dt(r().createAsyncDelegatorHelper(dt(r().createAsyncValuesHelper(Fe),Fe)),Fe)))),le),le)}return Nr(dt(t.createYieldExpression(void 0,Qt(le.expression?nt(le.expression,Y,yt):t.createVoidZero())),le),le)}return xn(le,Y,e)}function Le(le){return A&2&&A&1?t.updateReturnStatement(le,Qt(le.expression?nt(le.expression,Y,yt):t.createVoidZero())):xn(le,Y,e)}function Ue(le){if(A&2){const Fe=fj(le);return Fe.kind===250&&Fe.awaitModifier?Mn(Fe,le):t.restoreEnclosingLabel(nt(Fe,Y,Hi,t.liftToBlock),le)}return xn(le,Y,e)}function Ee(le){let Fe;const pt=[];for(const j of le)if(j.kind===305){Fe&&(pt.push(t.createObjectLiteralExpression(Fe)),Fe=void 0);const it=j.expression;pt.push(nt(it,Y,yt))}else Fe=Rn(Fe,j.kind===303?t.createPropertyAssignment(j.name,nt(j.initializer,Y,yt)):nt(j,Y,Mg));return Fe&&pt.push(t.createObjectLiteralExpression(Fe)),pt}function De(le){if(le.transformFlags&65536){const Fe=Ee(le.properties);Fe.length&&Fe[0].kind!==210&&Fe.unshift(t.createObjectLiteralExpression());let pt=Fe[0];if(Fe.length>1){for(let j=1;j<Fe.length;j++)pt=r().createAssignHelper([pt,Fe[j]]);return pt}else return r().createAssignHelper(Fe)}return xn(le,Y,e)}function Me(le){return xn(le,X,e)}function We(le,Fe){return xn(le,Fe?X:Y,e)}function At(le){const Fe=G(2,rj(le,u)?0:1);y=!1;const pt=xn(le,Y,e),j=So(pt.statements,U&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(U))]),it=t.updateSourceFile(pt,dt(t.createNodeArray(j),le.statements));return ne(Fe),it}function Se(le){return jq(e,le,Y,O,he,0)}function je(le,Fe){return Wv(le)&&nw(le.left)?XS(le,Y,e,1,!Fe):le.operatorToken.kind===28?t.updateBinaryExpression(le,nt(le.left,X,yt),le.operatorToken,nt(le.right,Fe?X:Y,yt)):xn(le,Y,e)}function ot(le,Fe){if(Fe)return xn(le,X,e);let pt;for(let it=0;it<le.elements.length;it++){const Rt=le.elements[it],Ye=nt(Rt,it<le.elements.length-1?X:Y,yt);(pt||Ye!==Rt)&&(pt||(pt=le.elements.slice(0,it)),pt.push(Ye))}const j=pt?dt(t.createNodeArray(pt),le.elements):le.elements;return t.updateCommaListExpression(le,j)}function Bt(le){if(le.variableDeclaration&&ta(le.variableDeclaration.name)&&le.variableDeclaration.name.transformFlags&65536){const Fe=t.getGeneratedNameForNode(le.variableDeclaration.name),pt=t.updateVariableDeclaration(le.variableDeclaration,le.variableDeclaration.name,void 0,void 0,Fe),j=u1(pt,Y,e,1);let it=nt(le.block,Y,Ko);return bt(j)&&(it=t.updateBlock(it,[t.createVariableStatement(void 0,j),...it.statements])),t.updateCatchClause(le,t.updateVariableDeclaration(le.variableDeclaration,Fe,void 0,void 0,void 0),it)}return xn(le,Y,e)}function vt(le){if(Qr(le,32)){const Fe=y;y=!0;const pt=xn(le,Y,e);return y=Fe,pt}return xn(le,Y,e)}function $e(le){if(y){const Fe=y;y=!1;const pt=It(le,!0);return y=Fe,pt}return It(le,!1)}function It(le,Fe){return ta(le.name)&&le.name.transformFlags&65536?u1(le,Y,e,1,void 0,Fe):xn(le,Y,e)}function tn(le){return t.updateForStatement(le,nt(le.initializer,X,Sf),nt(le.condition,Y,yt),nt(le.incrementor,X,yt),xd(le.statement,Y,e))}function rn(le){return xn(le,X,e)}function Mn(le,Fe){const pt=G(0,2);(le.initializer.transformFlags&65536||mC(le.initializer)&&nw(le.initializer))&&(le=$n(le));const j=le.awaitModifier?Yt(le,Fe,pt):t.restoreEnclosingLabel(xn(le,Y,e),Fe);return ne(pt),j}function $n(le){const Fe=hs(le.initializer);if(Vc(Fe)||mC(Fe)){let pt,j;const it=t.createTempVariable(void 0),Rt=[SH(t,Fe,it)];return Ko(le.statement)?(qr(Rt,le.statement.statements),pt=le.statement,j=le.statement.statements):le.statement&&(Rn(Rt,le.statement),pt=le.statement,j=le.statement),t.updateForOfStatement(le,le.awaitModifier,dt(t.createVariableDeclarationList([dt(t.createVariableDeclaration(it),le.initializer)],1),le.initializer),le.expression,dt(t.createBlock(dt(t.createNodeArray(Rt),j),!0),pt))}return le}function gn(le,Fe,pt){const j=t.createTempVariable(s),it=t.createAssignment(j,Fe),Rt=t.createExpressionStatement(it);Da(Rt,le.expression);const Ye=t.createAssignment(pt,t.createFalse()),_t=t.createExpressionStatement(Ye);Da(_t,le.expression);const Gt=[Rt,_t],yn=SH(t,le.initializer,j);Gt.push(nt(yn,Y,Hi));let fn,hn;const q=xd(le.statement,Y,e);return Ko(q)?(qr(Gt,q.statements),fn=q,hn=q.statements):Gt.push(q),dt(t.createBlock(dt(t.createNodeArray(Gt),hn),!0),fn)}function Qt(le){return A&1?t.createYieldExpression(void 0,r().createAwaitHelper(le)):t.createAwaitExpression(le)}function Yt(le,Fe,pt){const j=nt(le.expression,Y,yt),it=Ve(j)?t.getGeneratedNameForNode(j):t.createTempVariable(void 0),Rt=Ve(j)?t.getGeneratedNameForNode(it):t.createTempVariable(void 0),Ye=t.createTempVariable(void 0),_t=t.createTempVariable(s),Gt=t.createUniqueName("e"),yn=t.getGeneratedNameForNode(Gt),fn=t.createTempVariable(void 0),hn=dt(r().createAsyncValuesHelper(j),le.expression),q=t.createCallExpression(t.createPropertyAccessExpression(it,"next"),void 0,[]),Oe=t.createPropertyAccessExpression(Rt,"done"),Lt=t.createPropertyAccessExpression(Rt,"value"),L=t.createFunctionCallCall(fn,it,[]);s(Gt),s(fn);const me=pt&2?t.inlineExpressions([t.createAssignment(Gt,t.createVoidZero()),hn]):hn,J=pr(dt(t.createForStatement(pr(dt(t.createVariableDeclarationList([t.createVariableDeclaration(Ye,void 0,void 0,t.createTrue()),dt(t.createVariableDeclaration(it,void 0,void 0,me),le.expression),t.createVariableDeclaration(Rt)]),le.expression),4194304),t.inlineExpressions([t.createAssignment(Rt,Qt(q)),t.createAssignment(_t,Oe),t.createLogicalNot(_t)]),t.createAssignment(Ye,t.createTrue()),gn(le,Lt,Ye)),le),512);return Nr(J,le),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(J,Fe)]),t.createCatchClause(t.createVariableDeclaration(yn),pr(t.createBlock([t.createExpressionStatement(t.createAssignment(Gt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",yn)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([pr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Ye),t.createLogicalNot(_t)),t.createAssignment(fn,t.createPropertyAccessExpression(it,"return"))),t.createExpressionStatement(Qt(L))),1)]),void 0,pr(t.createBlock([pr(t.createIfStatement(Gt,t.createThrowStatement(t.createPropertyAccessExpression(Gt,"error"))),1)]),1))]))}function vi(le){return N.assertNode(le,Ao),so(le)}function so(le){return R!=null&&R.has(le)?t.updateParameterDeclaration(le,void 0,le.dotDotDotToken,ta(le.name)?t.getGeneratedNameForNode(le):le.name,void 0,void 0,void 0):le.transformFlags&65536?t.updateParameterDeclaration(le,void 0,le.dotDotDotToken,t.getGeneratedNameForNode(le),void 0,void 0,nt(le.initializer,Y,yt)):xn(le,Y,e)}function Wi(le){let Fe;for(const pt of le.parameters)Fe?Fe.add(pt):pt.transformFlags&65536&&(Fe=new Set);return Fe}function Co(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateConstructorDeclaration(le,le.modifiers,Dl(le.parameters,vi,e),yi(le));return A=Fe,R=pt,j}function Ln(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateGetAccessorDeclaration(le,le.modifiers,nt(le.name,Y,oc),Dl(le.parameters,vi,e),void 0,yi(le));return A=Fe,R=pt,j}function Ci(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateSetAccessorDeclaration(le,le.modifiers,nt(le.name,Y,oc),Dl(le.parameters,vi,e),yi(le));return A=Fe,R=pt,j}function Ar(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateMethodDeclaration(le,A&1?jn(le.modifiers,oe,sl):le.modifiers,A&2?void 0:le.asteriskToken,nt(le.name,Y,oc),nt(void 0,Y,Hy),void 0,A&2&&A&1?Dn(le):Dl(le.parameters,vi,e),void 0,A&2&&A&1?ci(le):yi(le));return A=Fe,R=pt,j}function sn(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateFunctionDeclaration(le,A&1?jn(le.modifiers,oe,Aa):le.modifiers,A&2?void 0:le.asteriskToken,le.name,void 0,A&2&&A&1?Dn(le):Dl(le.parameters,vi,e),void 0,A&2&&A&1?ci(le):yi(le));return A=Fe,R=pt,j}function tt(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateArrowFunction(le,le.modifiers,void 0,Dl(le.parameters,vi,e),void 0,le.equalsGreaterThanToken,yi(le));return A=Fe,R=pt,j}function zt(le){const Fe=A,pt=R;A=Bc(le),R=Wi(le);const j=t.updateFunctionExpression(le,A&1?jn(le.modifiers,oe,Aa):le.modifiers,A&2?void 0:le.asteriskToken,le.name,void 0,A&2&&A&1?Dn(le):Dl(le.parameters,vi,e),void 0,A&2&&A&1?ci(le):yi(le));return A=Fe,R=pt,j}function Dn(le){if(Nw(le.parameters))return Dl(le.parameters,Y,e);const Fe=[];for(const j of le.parameters){if(j.initializer||j.dotDotDotToken)break;const it=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(j.name,8));Fe.push(it)}const pt=t.createNodeArray(Fe);return dt(pt,le.parameters),pt}function ci(le){const Fe=Nw(le.parameters)?void 0:Dl(le.parameters,Y,e);i();const pt=K,j=Q;K=new Set,Q=!1;const it=[];let Rt=t.updateBlock(le.body,jn(le.body.statements,Y,Hi));Rt=t.updateBlock(Rt,t.mergeLexicalEnvironment(Rt.statements,Qi(o(),le)));const Ye=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),le.name&&t.getGeneratedNameForNode(le.name),void 0,Fe??[],void 0,Rt),!!(C&1))),_t=p>=2&&l.getNodeCheckFlags(le)&384;if(_t){Io();const yn=$F(t,l,le,K);V[as(yn)]=!0,Yh(it,[yn])}it.push(Ye);const Gt=t.updateBlock(le.body,it);return _t&&Q&&(l.getNodeCheckFlags(le)&256?qA(Gt,Wk):l.getNodeCheckFlags(le)&128&&qA(Gt,Ok)),K=pt,Q=j,Gt}function yi(le){i();let Fe=0;const pt=[],j=nt(le.body,Y,v4)??t.createBlock([]);Ko(j)&&(Fe=t.copyPrologue(j.statements,pt,!1,Y)),qr(pt,Qi(void 0,le));const it=o();if(Fe>0||bt(pt)||bt(it)){const Rt=t.converters.convertToFunctionBlock(j,!0);return Yh(pt,it),qr(pt,Rt.statements.slice(Fe)),t.updateBlock(Rt,dt(t.createNodeArray(pt),Rt.statements))}return j}function Qi(le,Fe){let pt=!1;for(const j of Fe.parameters)if(pt){if(ta(j.name)){if(j.name.elements.length>0){const it=u1(j,Y,e,0,t.getGeneratedNameForNode(j));if(bt(it)){const Rt=t.createVariableDeclarationList(it),Ye=t.createVariableStatement(void 0,Rt);pr(Ye,2097152),le=Rn(le,Ye)}}else if(j.initializer){const it=t.getGeneratedNameForNode(j),Rt=nt(j.initializer,Y,yt),Ye=t.createAssignment(it,Rt),_t=t.createExpressionStatement(Ye);pr(_t,2097152),le=Rn(le,_t)}}else if(j.initializer){const it=t.cloneNode(j.name);dt(it,j.name),pr(it,96);const Rt=nt(j.initializer,Y,yt);P_(Rt,3168);const Ye=t.createAssignment(it,Rt);dt(Ye,j),pr(Ye,3072);const _t=t.createBlock([t.createExpressionStatement(Ye)]);dt(_t,j),pr(_t,3905);const Gt=t.createTypeCheck(t.cloneNode(j.name),"undefined"),yn=t.createIfStatement(Gt,_t);Xu(yn),dt(yn,j),pr(yn,2101056),le=Rn(le,yn)}}else if(j.transformFlags&65536){pt=!0;const it=u1(j,Y,e,1,t.getGeneratedNameForNode(j),!1,!0);if(bt(it)){const Rt=t.createVariableDeclarationList(it),Ye=t.createVariableStatement(void 0,Rt);pr(Ye,2097152),le=Rn(le,Ye)}}return le}function Io(){T&1||(T|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function fa(le,Fe,pt){if(T&1&&ft(Fe)){const j=l.getNodeCheckFlags(Fe)&384;if(j!==M){const it=M;M=j,h(le,Fe,pt),M=it;return}}else if(T&&V[as(Fe)]){const j=M;M=0,h(le,Fe,pt),M=j;return}h(le,Fe,pt)}function ka(le,Fe){return Fe=m(le,Fe),le===1&&M?Tn(Fe):Fe}function Tn(le){switch(le.kind){case 211:return wn(le);case 212:return He(le);case 213:return mt(le)}return le}function wn(le){return le.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),le.name),le):le}function He(le){return le.expression.kind===108?Ct(le.argumentExpression,le):le}function mt(le){const Fe=le.expression;if(zd(Fe)){const pt=Fr(Fe)?wn(Fe):He(Fe);return t.createCallExpression(t.createPropertyAccessExpression(pt,"call"),void 0,[t.createThis(),...le.arguments])}return le}function ft(le){const Fe=le.kind;return Fe===263||Fe===176||Fe===174||Fe===177||Fe===178}function Ct(le,Fe){return M&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),"value"),Fe):dt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),Fe)}}var zje=I({"src/compiler/transformers/es2018.ts"(){ra()}});function vle(e){const t=e.factory;return Dm(e,r);function r(s){return s.isDeclarationFile?s:xn(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 299:return o(s);default:return xn(s,i,e)}}function o(s){return s.variableDeclaration?xn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),nt(s.block,i,Ko))}}var Bje=I({"src/compiler/transformers/es2019.ts"(){ra()}});function yle(e){const{factory:t,hoistVariableDeclaration:r}=e;return Dm(e,i);function i(R){return R.isDeclarationFile?R:xn(R,o,e)}function o(R){if(!(R.transformFlags&32))return R;switch(R.kind){case 213:{const M=p(R,!1);return N.assertNotNode(M,sI),M}case 211:case 212:if(qu(R)){const M=m(R,!1,!1);return N.assertNotNode(M,sI),M}return xn(R,o,e);case 226:return R.operatorToken.kind===61?T(R):xn(R,o,e);case 220:return A(R);default:return xn(R,o,e)}}function s(R){N.assertNotNode(R,f4);const M=[R];for(;!R.questionDotToken&&!QE(R);)R=oa(bm(R.expression),qu),N.assertNotNode(R,f4),M.unshift(R);return{expression:R.expression,chain:M}}function l(R,M,C){const O=h(R.expression,M,C);return sI(O)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,O.expression),O.thisArg):t.updateParenthesizedExpression(R,O)}function u(R,M,C){if(qu(R))return m(R,M,C);let O=nt(R.expression,o,yt);N.assertNotNode(O,sI);let U;return M&&(c1(O)?U=O:(U=t.createTempVariable(r),O=t.createAssignment(U,O))),O=R.kind===211?t.updatePropertyAccessExpression(R,O,nt(R.name,o,Ve)):t.updateElementAccessExpression(R,O,nt(R.argumentExpression,o,yt)),U?t.createSyntheticReferenceExpression(O,U):O}function p(R,M){if(qu(R))return m(R,M,!1);if(Gd(R.expression)&&qu(hs(R.expression))){const C=l(R.expression,!0,!1),O=jn(R.arguments,o,yt);return sI(C)?dt(t.createFunctionCallCall(C.expression,C.thisArg,O),R):t.updateCallExpression(R,C,void 0,O)}return xn(R,o,e)}function h(R,M,C){switch(R.kind){case 217:return l(R,M,C);case 211:case 212:return u(R,M,C);case 213:return p(R,M);default:return nt(R,o,yt)}}function m(R,M,C){const{expression:O,chain:U}=s(R),K=h(bm(O),uS(U[0]),!1);let Q=sI(K)?K.thisArg:void 0,V=sI(K)?K.expression:K,se=t.restoreOuterExpressions(O,V,8);c1(V)||(V=t.createTempVariable(r),se=t.createAssignment(V,se));let G=V,ne;for(let ye=0;ye<U.length;ye++){const Y=U[ye];switch(Y.kind){case 211:case 212:ye===U.length-1&&M&&(c1(G)?ne=G:(ne=t.createTempVariable(r),G=t.createAssignment(ne,G))),G=Y.kind===211?t.createPropertyAccessExpression(G,nt(Y.name,o,Ve)):t.createElementAccessExpression(G,nt(Y.argumentExpression,o,yt));break;case 213:ye===0&&Q?(al(Q)||(Q=t.cloneNode(Q),P_(Q,3072)),G=t.createFunctionCallCall(G,Q.kind===108?t.createThis():Q,jn(Y.arguments,o,yt))):G=t.createCallExpression(G,void 0,jn(Y.arguments,o,yt));break}Nr(G,Y)}const he=C?t.createConditionalExpression(y(se,V,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(G)):t.createConditionalExpression(y(se,V,!0),void 0,t.createVoidZero(),void 0,G);return dt(he,R),ne?t.createSyntheticReferenceExpression(he,ne):he}function y(R,M,C){return t.createBinaryExpression(t.createBinaryExpression(R,t.createToken(C?37:38),t.createNull()),t.createToken(C?57:56),t.createBinaryExpression(M,t.createToken(C?37:38),t.createVoidZero()))}function T(R){let M=nt(R.left,o,yt),C=M;return c1(M)||(C=t.createTempVariable(r),M=t.createAssignment(C,M)),dt(t.createConditionalExpression(y(M,C),void 0,C,void 0,nt(R.right,o,yt)),R)}function A(R){return qu(hs(R.expression))?Nr(h(R.expression,!1,!0),R):t.updateDeleteExpression(R,nt(R.expression,o,yt))}}var Gje=I({"src/compiler/transformers/es2020.ts"(){ra()}});function ble(e){const{hoistVariableDeclaration:t,factory:r}=e;return Dm(e,i);function i(l){return l.isDeclarationFile?l:xn(l,o,e)}function o(l){return l.transformFlags&16?Xj(l)?s(l):xn(l,o,e):l}function s(l){const u=l.operatorToken,p=FP(u.kind);let h=hs(nt(l.left,o,Zd)),m=h;const y=hs(nt(l.right,o,yt));if(ws(h)){const T=c1(h.expression),A=T?h.expression:r.createTempVariable(t),R=T?h.expression:r.createAssignment(A,h.expression);if(Fr(h))m=r.createPropertyAccessExpression(A,h.name),h=r.createPropertyAccessExpression(R,h.name);else{const M=c1(h.argumentExpression),C=M?h.argumentExpression:r.createTempVariable(t);m=r.createElementAccessExpression(A,C),h=r.createElementAccessExpression(R,M?h.argumentExpression:r.createAssignment(C,h.argumentExpression))}}return r.createBinaryExpression(h,p,r.createParenthesizedExpression(r.createAssignment(m,y)))}}var Vje=I({"src/compiler/transformers/es2021.ts"(){ra()}});function Ele(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,startLexicalEnvironment:o,endLexicalEnvironment:s}=e;let l,u,p,h;return Dm(e,m);function m(pe){if(pe.isDeclarationFile)return pe;const Ce=nt(pe,y,$i);return zg(Ce,e.readEmitHelpers()),u=void 0,l=void 0,p=void 0,Ce}function y(pe){if(!(pe.transformFlags&4))return pe;switch(pe.kind){case 312:return T(pe);case 241:return A(pe);case 248:return R(pe);case 250:return M(pe);case 255:return O(pe);default:return xn(pe,y,e)}}function T(pe){const Ce=Hq(pe.statements);if(Ce){o(),l=new gI,u=[];const de=QIe(pe.statements),ie=[];qr(ie,Rw(pe.statements,y,Hi,0,de));let ve=de;for(;ve<pe.statements.length;){const Ee=pe.statements[ve];if(Ale(Ee)!==0){ve>de&&qr(ie,jn(pe.statements,y,Hi,de,ve-de));break}ve++}N.assert(ve<pe.statements.length,"Should have encountered at least one 'using' statement.");const Le=X(),Ue=U(pe.statements,ve,pe.statements.length,Le,ie);return l.size&&Rn(ie,t.createExportDeclaration(void 0,!1,t.createNamedExports(zo(l.values())))),qr(ie,s()),u.length&&ie.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(u,1))),qr(ie,oe(Ue,Le,Ce===2)),h&&ie.push(t.createExportAssignment(void 0,!0,h)),t.updateSourceFile(pe,ie)}return xn(pe,y,e)}function A(pe){const Ce=Hq(pe.statements);if(Ce){const de=QIe(pe.statements),ie=X();return t.updateBlock(pe,[...Rw(pe.statements,y,Hi,0,de),...oe(U(pe.statements,de,pe.statements.length,ie,void 0),ie,Ce===2)])}return xn(pe,y,e)}function R(pe){return pe.initializer&&Sle(pe.initializer)?nt(t.createBlock([t.createVariableStatement(void 0,pe.initializer),t.updateForStatement(pe,void 0,pe.condition,pe.incrementor,pe.statement)]),y,Hi):xn(pe,y,e)}function M(pe){if(Sle(pe.initializer)){const Ce=pe.initializer;N.assertNode(Ce,Sle),N.assert(Ce.declarations.length===1,"ForInitializer may only have one declaration");const de=Ce.declarations[0];N.assert(!de.initializer,"ForInitializer may not have an initializer");const ie=Tle(Ce)===2,ve=t.getGeneratedNameForNode(de.name),Le=t.updateVariableDeclaration(de,de.name,void 0,void 0,ve),Ue=t.createVariableDeclarationList([Le],ie?6:4),Ee=t.createVariableStatement(void 0,Ue);return nt(t.updateForOfStatement(pe,pe.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(ve)],2),pe.expression,Ko(pe.statement)?t.updateBlock(pe.statement,[Ee,...pe.statement.statements]):t.createBlock([Ee,pe.statement],!0)),y,Hi)}return xn(pe,y,e)}function C(pe,Ce){return Hq(pe.statements)!==0?UR(pe)?t.updateCaseClause(pe,nt(pe.expression,y,yt),U(pe.statements,0,pe.statements.length,Ce,void 0)):t.updateDefaultClause(pe,U(pe.statements,0,pe.statements.length,Ce,void 0)):xn(pe,y,e)}function O(pe){const Ce=Uje(pe.caseBlock.clauses);if(Ce){const de=X();return oe([t.updateSwitchStatement(pe,nt(pe.expression,y,yt),t.updateCaseBlock(pe.caseBlock,pe.caseBlock.clauses.map(ie=>C(ie,de))))],de,Ce===2)}return xn(pe,y,e)}function U(pe,Ce,de,ie,ve){const Le=[];for(let De=Ce;De<de;De++){const Me=pe[De],We=Ale(Me);if(We){N.assertNode(Me,Ll);const Se=[];for(let je of Me.declarationList.declarations){if(!Ve(je.name)){Se.length=0;break}mp(je)&&(je=bp(e,je));const ot=nt(je.initializer,y,yt)??t.createVoidZero();Se.push(t.updateVariableDeclaration(je,je.name,void 0,void 0,r().createAddDisposableResourceHelper(ie,ot,We===2)))}if(Se.length){const je=t.createVariableDeclarationList(Se,2);Nr(je,Me.declarationList),dt(je,Me.declarationList),Ue(t.updateVariableStatement(Me,void 0,je));continue}}const At=y(Me);To(At)?At.forEach(Ue):At&&Ue(At)}return Le;function Ue(De){N.assertNode(De,Hi),Rn(Le,Ee(De))}function Ee(De){if(!ve)return De;switch(De.kind){case 272:case 271:case 278:case 262:return K(De,ve);case 277:return Q(De);case 263:return G(De);case 243:return ne(De)}return De}}function K(pe,Ce){Ce.push(pe)}function Q(pe){return pe.isExportEquals?se(pe):V(pe)}function V(pe){if(p)return pe;p=t.createUniqueName("_default",56),Y(p,!0,"default",pe);let Ce=pe.expression,de=$l(Ce);mp(de)&&(de=bp(e,de,!1,"default"),Ce=t.restoreOuterExpressions(Ce,de));const ie=t.createAssignment(p,Ce);return t.createExpressionStatement(ie)}function se(pe){if(h)return pe;h=t.createUniqueName("_default",56),i(h);const Ce=t.createAssignment(h,pe.expression);return t.createExpressionStatement(Ce)}function G(pe){if(!pe.name&&p)return pe;const Ce=Qr(pe,32),de=Qr(pe,2048);let ie=t.converters.convertToClassExpression(pe);return pe.name&&(Y(t.getLocalName(pe),Ce&&!de,void 0,pe),ie=t.createAssignment(t.getDeclarationName(pe),ie),mp(ie)&&(ie=bp(e,ie,!1)),Nr(ie,pe),Da(ie,pe),ac(ie,pe)),de&&!p&&(p=t.createUniqueName("_default",56),Y(p,!0,"default",pe),ie=t.createAssignment(p,ie),mp(ie)&&(ie=bp(e,ie,!1,"default")),Nr(ie,pe)),t.createExpressionStatement(ie)}function ne(pe){let Ce;const de=Qr(pe,32);for(const ie of pe.declarationList.declarations)ye(ie,de,ie),ie.initializer&&(Ce=Rn(Ce,he(ie)));if(Ce){const ie=t.createExpressionStatement(t.inlineExpressions(Ce));return Nr(ie,pe),ac(ie,pe),Da(ie,pe),ie}}function he(pe){N.assertIsDefined(pe.initializer);let Ce;Ve(pe.name)?(Ce=t.cloneNode(pe.name),pr(Ce,Ga(Ce)&-114689)):Ce=t.converters.convertToAssignmentPattern(pe.name);const de=t.createAssignment(Ce,pe.initializer);return Nr(de,pe),ac(de,pe),Da(de,pe),de}function ye(pe,Ce,de){if(ta(pe.name))for(const ie of pe.name.elements)Gc(ie)||ye(ie,Ce,de);else Y(pe.name,Ce,void 0,de)}function Y(pe,Ce,de,ie){const ve=al(pe)?pe:t.cloneNode(pe);if(Ce){if(de===void 0&&!Gg(ve)){const De=t.createVariableDeclaration(ve);ie&&Nr(De,ie),u.push(De);return}const Le=de!==void 0?ve:void 0,Ue=de!==void 0?de:ve,Ee=t.createExportSpecifier(!1,Le,Ue);ie&&Nr(Ee,ie),l.set(ve,Ee)}i(ve)}function X(){return t.createUniqueName("env")}function oe(pe,Ce,de){const ie=[],ve=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),Le=t.createVariableDeclaration(Ce,void 0,void 0,ve),Ue=t.createVariableDeclarationList([Le],2),Ee=t.createVariableStatement(void 0,Ue);ie.push(Ee);const De=t.createBlock(pe,!0),Me=t.createUniqueName("e"),We=t.createCatchClause(Me,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ce,"error"),Me)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ce,"hasError"),t.createTrue()))],!0));let At;if(de){const je=t.createUniqueName("result");At=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(je,void 0,void 0,r().createDisposeResourcesHelper(Ce))],2)),t.createIfStatement(je,t.createExpressionStatement(t.createAwaitExpression(je)))],!0)}else At=t.createBlock([t.createExpressionStatement(r().createDisposeResourcesHelper(Ce))],!0);const Se=t.createTryStatement(De,We,At);return ie.push(Se),ie}}function QIe(e){for(let t=0;t<e.length;t++)if(!Sm(e[t])&&!DL(e[t]))return t;return 0}function Sle(e){return Vc(e)&&Tle(e)!==0}function Tle(e){return(e.flags&7)===6?2:(e.flags&7)===4?1:0}function jje(e){return Tle(e.declarationList)}function Ale(e){return Ll(e)?jje(e):0}function Hq(e){let t=0;for(const r of e){const i=Ale(r);if(i===2)return 2;i>t&&(t=i)}return t}function Uje(e){let t=0;for(const r of e){const i=Hq(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var Hje=I({"src/compiler/transformers/esnext.ts"(){ra()}});function Ile(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return Dm(e,y);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;const Se=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=Se,s.filenameDeclaration.name}function u(Se){return i.jsx===5?"jsxDEV":Se?"jsxs":"jsx"}function p(Se){const je=u(Se);return m(je)}function h(){return m("Fragment")}function m(Se){var je,ot;const Bt=Se==="createElement"?s.importSpecifier:w3(s.importSpecifier,i),vt=(ot=(je=s.utilizedImplicitRuntimeImports)==null?void 0:je.get(Bt))==null?void 0:ot.get(Se);if(vt)return vt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let $e=s.utilizedImplicitRuntimeImports.get(Bt);$e||($e=new Map,s.utilizedImplicitRuntimeImports.set(Bt,$e));const It=t.createUniqueName(`_${Se}`,112),tn=t.createImportSpecifier(!1,t.createIdentifier(Se),It);return $oe(It,tn),$e.set(Se,tn),It}function y(Se){if(Se.isDeclarationFile)return Se;o=Se,s={},s.importSpecifier=k3(i,Se);let je=xn(Se,T,e);zg(je,e.readEmitHelpers());let ot=je.statements;if(s.filenameDeclaration&&(ot=hS(ot.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[Bt,vt]of zo(s.utilizedImplicitRuntimeImports.entries()))if(sc(Se)){const $e=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(zo(vt.values()))),t.createStringLiteral(Bt),void 0);Gy($e,!1),ot=hS(ot.slice(),$e)}else if(Fp(Se)){const $e=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(zo(vt.values(),It=>t.createBindingElement(void 0,It.propertyName,It.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Bt)]))],2));Gy($e,!1),ot=hS(ot.slice(),$e)}}return ot!==je.statements&&(je=t.updateSourceFile(je,ot)),s=void 0,je}function T(Se){return Se.transformFlags&2?A(Se):Se}function A(Se){switch(Se.kind){case 284:return U(Se,!1);case 285:return K(Se,!1);case 288:return Q(Se,!1);case 294:return At(Se);default:return xn(Se,T,e)}}function R(Se){switch(Se.kind){case 12:return ve(Se);case 294:return At(Se);case 284:return U(Se,!0);case 285:return K(Se,!0);case 288:return Q(Se,!0);default:return N.failBadSyntaxKind(Se)}}function M(Se){return Se.properties.some(je=>hc(je)&&(Ve(je.name)&&Sr(je.name)==="__proto__"||Na(je.name)&&je.name.text==="__proto__"))}function C(Se){let je=!1;for(const ot of Se.attributes.properties)if(cI(ot)&&(!La(ot.expression)||ot.expression.properties.some(jv)))je=!0;else if(je&&w_(ot)&&Ve(ot.name)&&ot.name.escapedText==="key")return!0;return!1}function O(Se){return s.importSpecifier===void 0||C(Se)}function U(Se,je){return(O(Se.openingElement)?he:G)(Se.openingElement,Se.children,je,Se)}function K(Se,je){return(O(Se)?he:G)(Se,void 0,je,Se)}function Q(Se,je){return(s.importSpecifier===void 0?Y:ye)(Se.openingFragment,Se.children,je,Se)}function V(Se){const je=se(Se);return je&&t.createObjectLiteralExpression([je])}function se(Se){const je=bR(Se);if(Ne(je)===1&&!je[0].dotDotDotToken){const Bt=R(je[0]);return Bt&&t.createPropertyAssignment("children",Bt)}const ot=eo(Se,R);return Ne(ot)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(ot)):void 0}function G(Se,je,ot,Bt){const vt=Me(Se),$e=je&&je.length?se(je):void 0,It=In(Se.attributes.properties,Mn=>!!Mn.name&&Ve(Mn.name)&&Mn.name.escapedText==="key"),tn=It?mn(Se.attributes.properties,Mn=>Mn!==It):Se.attributes.properties,rn=Ne(tn)?oe(tn,$e):t.createObjectLiteralExpression($e?[$e]:et);return ne(vt,rn,It,je||et,ot,Bt)}function ne(Se,je,ot,Bt,vt,$e){var It;const tn=bR(Bt),rn=Ne(tn)>1||!!((It=tn[0])!=null&&It.dotDotDotToken),Mn=[Se,je];if(ot&&Mn.push(ie(ot.initializer)),i.jsx===5){const gn=Pl(o);if(gn&&$i(gn)){ot===void 0&&Mn.push(t.createVoidZero()),Mn.push(rn?t.createTrue():t.createFalse());const Qt=ys(gn,$e.pos);Mn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Qt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Qt.character+1))])),Mn.push(t.createThis())}}const $n=dt(t.createCallExpression(p(rn),void 0,Mn),$e);return vt&&Xu($n),$n}function he(Se,je,ot,Bt){const vt=Me(Se),$e=Se.attributes.properties,It=Ne($e)?oe($e):t.createNull(),tn=s.importSpecifier===void 0?EH(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,Se):m("createElement"),rn=Rae(t,tn,vt,It,eo(je,R),Bt);return ot&&Xu(rn),rn}function ye(Se,je,ot,Bt){let vt;if(je&&je.length){const $e=V(je);$e&&(vt=$e)}return ne(h(),vt||t.createObjectLiteralExpression([]),void 0,je,ot,Bt)}function Y(Se,je,ot,Bt){const vt=Dae(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,eo(je,R),Se,Bt);return ot&&Xu(vt),vt}function X(Se){return La(Se.expression)&&!M(Se.expression)?Zo(Se.expression.properties,je=>N.checkDefined(nt(je,T,Mg))):t.createSpreadAssignment(N.checkDefined(nt(Se.expression,T,yt)))}function oe(Se,je){const ot=os(i);return ot&&ot>=5?t.createObjectLiteralExpression(pe(Se,je)):Ce(Se,je)}function pe(Se,je){const ot=Cs(FB(Se,cI,(Bt,vt)=>Cs(Wt(Bt,$e=>vt?X($e):de($e)))));return je&&ot.push(je),ot}function Ce(Se,je){const ot=[];let Bt=[];for(const $e of Se){if(cI($e)){if(La($e.expression)&&!M($e.expression)){for(const It of $e.expression.properties){if(jv(It)){vt(),ot.push(N.checkDefined(nt(It.expression,T,yt)));continue}Bt.push(N.checkDefined(nt(It,T)))}continue}vt(),ot.push(N.checkDefined(nt($e.expression,T,yt)));continue}Bt.push(de($e))}return je&&Bt.push(je),vt(),ot.length&&!La(ot[0])&&ot.unshift(t.createObjectLiteralExpression()),oh(ot)||r().createAssignHelper(ot);function vt(){Bt.length&&(ot.push(t.createObjectLiteralExpression(Bt)),Bt=[])}}function de(Se){const je=We(Se),ot=ie(Se.initializer);return t.createPropertyAssignment(je,ot)}function ie(Se){if(Se===void 0)return t.createTrue();if(Se.kind===11){const je=Se.singleQuote!==void 0?Se.singleQuote:!Z4(Se,o),ot=t.createStringLiteral(De(Se.text)||Se.text,je);return dt(ot,Se)}return Se.kind===294?Se.expression===void 0?t.createTrue():N.checkDefined(nt(Se.expression,T,yt)):sg(Se)?U(Se,!1):GS(Se)?K(Se,!1):t1(Se)?Q(Se,!1):N.failBadSyntaxKind(Se)}function ve(Se){const je=Le(Se.text);return je===void 0?void 0:t.createStringLiteral(je)}function Le(Se){let je,ot=0,Bt=-1;for(let vt=0;vt<Se.length;vt++){const $e=Se.charCodeAt(vt);Hu($e)?(ot!==-1&&Bt!==-1&&(je=Ue(je,Se.substr(ot,Bt-ot+1))),ot=-1):E_($e)||(Bt=vt,ot===-1&&(ot=vt))}return ot!==-1?Ue(je,Se.substr(ot)):je}function Ue(Se,je){const ot=Ee(je);return Se===void 0?ot:Se+" "+ot}function Ee(Se){return Se.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(je,ot,Bt,vt,$e,It,tn)=>{if($e)return jx(parseInt($e,10));if(It)return jx(parseInt(It,16));{const rn=ZIe.get(tn);return rn?jx(rn):je}})}function De(Se){const je=Ee(Se);return je===Se?void 0:je}function Me(Se){if(Se.kind===284)return Me(Se.openingElement);{const je=Se.tagName;return Ve(je)&&SR(je.escapedText)?t.createStringLiteral(Sr(je)):Qm(je)?t.createStringLiteral(Sr(je.namespace)+":"+Sr(je.name)):Xk(t,je)}}function We(Se){const je=Se.name;if(Ve(je)){const ot=Sr(je);return/^[A-Za-z_]\w*$/.test(ot)?je:t.createStringLiteral(ot)}return t.createStringLiteral(Sr(je.namespace)+":"+Sr(je.name))}function At(Se){const je=nt(Se.expression,T,yt);return Se.dotDotDotToken?t.createSpreadElement(je):je}}var ZIe,qje=I({"src/compiler/transformers/jsx.ts"(){ra(),ZIe=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 xle(e){const{factory:t,hoistVariableDeclaration:r}=e;return Dm(e,i);function i(p){return p.isDeclarationFile?p:xn(p,o,e)}function o(p){if(!(p.transformFlags&512))return p;switch(p.kind){case 226:return s(p);default:return xn(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return u(p);default:return xn(p,o,e)}}function l(p){let h,m;const y=nt(p.left,o,yt),T=nt(p.right,o,yt);if($s(y)){const A=t.createTempVariable(r),R=t.createTempVariable(r);h=dt(t.createElementAccessExpression(dt(t.createAssignment(A,y.expression),y.expression),dt(t.createAssignment(R,y.argumentExpression),y.argumentExpression)),y),m=dt(t.createElementAccessExpression(A,R),y)}else if(Fr(y)){const A=t.createTempVariable(r);h=dt(t.createPropertyAccessExpression(dt(t.createAssignment(A,y.expression),y.expression),y.name),y),m=dt(t.createPropertyAccessExpression(A,y.name),y)}else h=y,m=y;return dt(t.createAssignment(h,dt(t.createGlobalMethodCall("Math","pow",[m,T]),p)),p)}function u(p){const h=nt(p.left,o,yt),m=nt(p.right,o,yt);return dt(t.createGlobalMethodCall("Math","pow",[h,m]),p)}}var Jje=I({"src/compiler/transformers/es2016.ts"(){ra()}});function exe(e,t){return{kind:e,expression:t}}function Rle(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=df,e.onSubstituteNode=kf;let y,T,A,R;function M(te){R=Rn(R,t.createVariableDeclaration(te))}let C,O;return Dm(e,U);function U(te){if(te.isDeclarationFile)return te;y=te,T=te.text;const ct=oe(te);return zg(ct,e.readEmitHelpers()),y=void 0,T=void 0,R=void 0,A=0,ct}function K(te,ct){const Ft=A;return A=(A&~te|ct)&32767,Ft}function Q(te,ct,Ft){A=(A&~ct|Ft)&-32768|te}function V(te){return(A&8192)!==0&&te.kind===253&&!te.expression}function se(te){return te.transformFlags&4194304&&(Im(te)||FS(te)||mae(te)||vP(te)||yP(te)||UR(te)||EP(te)||BS(te)||r1(te)||ZE(te)||Py(te,!1)||Ko(te))}function G(te){return(te.transformFlags&1024)!==0||C!==void 0||A&8192&&se(te)||Py(te,!1)&&ho(te)||(Em(te)&1)!==0}function ne(te){return G(te)?X(te,!1):te}function he(te){return G(te)?X(te,!0):te}function ye(te){if(G(te)){const ct=Pl(te);if(qo(ct)&&mc(ct)){const Ft=K(32670,16449),Vt=X(te,!1);return Q(Ft,229376,0),Vt}return X(te,!1)}return te}function Y(te){return te.kind===108?ec(te,!0):ne(te)}function X(te,ct){switch(te.kind){case 126:return;case 263:return Me(te);case 231:return We(te);case 169:return ka(te);case 262:return fn(te);case 219:return Gt(te);case 218:return yn(te);case 260:return En(te);case 80:return Ee(te);case 261:return ke(te);case 255:return pe(te);case 269:return Ce(te);case 241:return Oe(te);case 252:case 251:return De(te);case 256:return Pi(te);case 246:case 247:return Vr(te,void 0);case 248:return vo(te,void 0);case 249:return Ri(te,void 0);case 250:return Jr(te,void 0);case 244:return Lt(te);case 210:return ko(te);case 299:return Di(te);case 304:return jc(te);case 167:return Us(te);case 209:return Es(te);case 213:return Uc(te);case 214:return sm(te);case 217:return L(te,ct);case 226:return me(te,ct);case 361:return J(te,ct);case 15:case 16:case 17:case 18:return na(te);case 11:return Zl(te);case 9:return yc(te);case 215:return ul(te);case 228:return vl(te);case 229:return vc(te);case 230:return $o(te);case 108:return ec(te,!1);case 110:return Le(te);case 236:return Hc(te);case 174:return Yo(te);case 177:case 178:return Sl(te);case 243:return Be(te);case 253:return ve(te);case 222:return Ue(te);default:return xn(te,ne,e)}}function oe(te){const ct=K(8064,64),Ft=[],Vt=[];i();const W=t.copyPrologue(te.statements,Ft,!1,ne);return qr(Vt,jn(te.statements,ne,Hi,W)),R&&Vt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(Ft,s()),le(Ft,te),Q(ct,0,0),t.updateSourceFile(te,dt(t.createNodeArray(So(Ft,Vt)),te.statements))}function pe(te){if(C!==void 0){const ct=C.allowedNonLabeledJumps;C.allowedNonLabeledJumps|=2;const Ft=xn(te,ne,e);return C.allowedNonLabeledJumps=ct,Ft}return xn(te,ne,e)}function Ce(te){const ct=K(7104,0),Ft=xn(te,ne,e);return Q(ct,0,0),Ft}function de(te){return Nr(t.createReturnStatement(ie()),te)}function ie(){return t.createUniqueName("_this",48)}function ve(te){return C?(C.nonLocalJumps|=8,V(te)&&(te=de(te)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),te.expression?N.checkDefined(nt(te.expression,ne,yt)):t.createVoidZero())]))):V(te)?de(te):xn(te,ne,e)}function Le(te){return A|=65536,A&2&&!(A&16384)&&(A|=131072),C?A&2?(C.containsLexicalThis=!0,te):C.thisName||(C.thisName=t.createUniqueName("this")):te}function Ue(te){return xn(te,he,e)}function Ee(te){return C&&p.isArgumentsLocalBinding(te)?C.argumentsName||(C.argumentsName=t.createUniqueName("arguments")):te.flags&256?Nr(dt(t.createIdentifier(Vi(te.escapedText)),te),te):te}function De(te){if(C){const ct=te.kind===252?2:4;if(!(te.label&&C.labels&&C.labels.get(Sr(te.label))||!te.label&&C.allowedNonLabeledJumps&ct)){let Vt;const W=te.label;W?te.kind===252?(Vt=`break-${W.escapedText}`,Z(C,!0,Sr(W),Vt)):(Vt=`continue-${W.escapedText}`,Z(C,!1,Sr(W),Vt)):te.kind===252?(C.nonLocalJumps|=2,Vt="break"):(C.nonLocalJumps|=4,Vt="continue");let Te=t.createStringLiteral(Vt);if(C.loopOutParameters.length){const st=C.loopOutParameters;let qt;for(let rr=0;rr<st.length;rr++){const ii=Tp(st[rr],1);rr===0?qt=ii:qt=t.createBinaryExpression(qt,28,ii)}Te=t.createBinaryExpression(qt,28,Te)}return t.createReturnStatement(Te)}}return xn(te,ne,e)}function Me(te){const ct=t.createVariableDeclaration(t.getLocalName(te,!0),void 0,void 0,At(te));Nr(ct,te);const Ft=[],Vt=t.createVariableStatement(void 0,t.createVariableDeclarationList([ct]));if(Nr(Vt,te),dt(Vt,te),Xu(Vt),Ft.push(Vt),Qr(te,32)){const W=Qr(te,2048)?t.createExportDefault(t.getLocalName(te)):t.createExternalModuleExport(t.getLocalName(te));Nr(W,Vt),Ft.push(W)}return ah(Ft)}function We(te){return At(te)}function At(te){te.name&&jd();const ct=FE(te),Ft=t.createFunctionExpression(void 0,void 0,void 0,void 0,ct?[t.createParameterDeclaration(void 0,void 0,Gl())]:[],void 0,Se(te,ct));pr(Ft,Ga(te)&131072|1048576);const Vt=t.createPartiallyEmittedExpression(Ft);MR(Vt,te.end),pr(Vt,3072);const W=t.createPartiallyEmittedExpression(Vt);MR(W,Pa(T,te.pos)),pr(W,3072);const Te=t.createParenthesizedExpression(t.createCallExpression(W,void 0,ct?[N.checkDefined(nt(ct.expression,ne,yt))]:[]));return uP(Te,3,"* @class "),Te}function Se(te,ct){const Ft=[],Vt=t.getInternalName(te),W=Mj(Vt)?t.getGeneratedNameForNode(Vt):Vt;i(),je(Ft,te,ct),ot(Ft,te,W,ct),j(Ft,te);const Te=tU(Pa(T,te.members.end),20),st=t.createPartiallyEmittedExpression(W);MR(st,Te.end),pr(st,3072);const qt=t.createReturnStatement(st);QC(qt,Te.pos),pr(qt,3840),Ft.push(qt),Yh(Ft,s());const rr=t.createBlock(dt(t.createNodeArray(Ft),te.members),!0);return pr(rr,3072),rr}function je(te,ct,Ft){Ft&&te.push(dt(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(ct))),Ft))}function ot(te,ct,Ft,Vt){const W=C;C=void 0;const Te=K(32662,73),st=ng(ct),qt=Ud(st,Vt!==void 0),rr=t.createFunctionDeclaration(void 0,void 0,Ft,void 0,Bt(st,qt),void 0,tn(st,ct,Vt,qt));dt(rr,st||ct),Vt&&pr(rr,16),te.push(rr),Q(Te,229376,0),C=W}function Bt(te,ct){return Dl(te&&!ct?te.parameters:void 0,ne,e)||[]}function vt(te,ct){const Ft=[];o(),t.mergeLexicalEnvironment(Ft,s()),ct&&Ft.push(t.createReturnStatement(fa()));const Vt=t.createNodeArray(Ft);dt(Vt,te.members);const W=t.createBlock(Vt,!0);return dt(W,te),pr(W,3072),W}function $e(te){return Ll(te)&&Jn(te.declarationList.declarations,ct=>Ve(ct.name)&&!ct.initializer)}function It(te){if(yS(te))return!0;if(!(te.transformFlags&134217728))return!1;switch(te.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const ct=te;return Za(ct.name)?!!Uo(ct.name,It):!1}}return!!Uo(te,It)}function tn(te,ct,Ft,Vt){const W=!!Ft&&$l(Ft.expression).kind!==106;if(!te)return vt(ct,W);const Te=[],st=[];o();const qt=t.copyStandardPrologue(te.body.statements,Te,0);(Vt||It(te.body))&&(A|=8192),qr(st,jn(te.body.statements,ne,Hi,qt));const rr=W||A&8192;wn(Te,te),Ct(Te,te,Vt),pt(Te,te),rr?Fe(Te,te,Io()):le(Te,te),t.mergeLexicalEnvironment(Te,s()),rr&&!Qi(te.body)&&st.push(t.createReturnStatement(ie()));const ii=t.createBlock(dt(t.createNodeArray([...Te,...st]),te.body.statements),!0);return dt(ii,te.body),yi(ii,te.body,Vt)}function rn(te){return al(te)&&Sr(te)==="_this"}function Mn(te){return al(te)&&Sr(te)==="_super"}function $n(te){return Ll(te)&&te.declarationList.declarations.length===1&&gn(te.declarationList.declarations[0])}function gn(te){return Oi(te)&&rn(te.name)&&!!te.initializer}function Qt(te){return Pc(te,!0)&&rn(te.left)}function Yt(te){return sa(te)&&Fr(te.expression)&&Mn(te.expression.expression)&&Ve(te.expression.name)&&(Sr(te.expression.name)==="call"||Sr(te.expression.name)==="apply")&&te.arguments.length>=1&&te.arguments[0].kind===110}function vi(te){return mr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&Yt(te.left)}function so(te){return mr(te)&&te.operatorToken.kind===56&&mr(te.left)&&te.left.operatorToken.kind===38&&Mn(te.left.left)&&te.left.right.kind===106&&Yt(te.right)&&Sr(te.right.expression.name)==="apply"}function Wi(te){return mr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&so(te.left)}function Co(te){return Qt(te)&&vi(te.right)}function Ln(te){return Qt(te)&&Wi(te.right)}function Ci(te){return Yt(te)||vi(te)||Co(te)||so(te)||Wi(te)||Ln(te)}function Ar(te){for(let ct=0;ct<te.statements.length-1;ct++){const Ft=te.statements[ct];if(!$n(Ft))continue;const Vt=Ft.declarationList.declarations[0];if(Vt.initializer.kind!==110)continue;const W=ct;let Te=ct+1;for(;Te<te.statements.length;){const wa=te.statements[Te];if(Zc(wa)&&Ci($l(wa.expression)))break;if($e(wa)){Te++;continue}return te}const st=te.statements[Te];let qt=st.expression;Qt(qt)&&(qt=qt.right);const rr=t.updateVariableDeclaration(Vt,Vt.name,void 0,void 0,qt),ii=t.updateVariableDeclarationList(Ft.declarationList,[rr]),Yr=t.createVariableStatement(Ft.modifiers,ii);Nr(Yr,st),dt(Yr,st);const oo=t.createNodeArray([...te.statements.slice(0,W),...te.statements.slice(W+1,Te),Yr,...te.statements.slice(Te+1)]);return dt(oo,te.statements),t.updateBlock(te,oo)}return te}function sn(te,ct){for(const Vt of ct.statements)if(Vt.transformFlags&134217728&&!HF(Vt))return te;const Ft=!(ct.transformFlags&16384)&&!(A&65536)&&!(A&131072);for(let Vt=te.statements.length-1;Vt>0;Vt--){const W=te.statements[Vt];if(Im(W)&&W.expression&&rn(W.expression)){const Te=te.statements[Vt-1];let st;if(Zc(Te)&&Co($l(Te.expression)))st=Te.expression;else if(Ft&&$n(Te)){const ii=Te.declarationList.declarations[0];Ci($l(ii.initializer))&&(st=t.createAssignment(ie(),ii.initializer))}if(!st)break;const qt=t.createReturnStatement(st);Nr(qt,Te),dt(qt,Te);const rr=t.createNodeArray([...te.statements.slice(0,Vt-1),qt,...te.statements.slice(Vt+1)]);return dt(rr,te.statements),t.updateBlock(te,rr)}}return te}function tt(te){if($n(te)){if(te.declarationList.declarations[0].initializer.kind===110)return}else if(Qt(te))return t.createPartiallyEmittedExpression(te.right,te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const ct=te;return Za(ct.name)?t.replacePropertyName(ct,xn(ct.name,tt,void 0)):te}}return xn(te,tt,void 0)}function zt(te,ct){if(ct.transformFlags&16384||A&65536||A&131072)return te;for(const Ft of ct.statements)if(Ft.transformFlags&134217728&&!HF(Ft))return te;return t.updateBlock(te,jn(te.statements,tt,Hi))}function Dn(te){if(Yt(te)&&te.arguments.length===2&&Ve(te.arguments[1])&&Sr(te.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Gl(),t.createNull()),te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const ct=te;return Za(ct.name)?t.replacePropertyName(ct,xn(ct.name,Dn,void 0)):te}}return xn(te,Dn,void 0)}function ci(te){return t.updateBlock(te,jn(te.statements,Dn,Hi))}function yi(te,ct,Ft){const Vt=te;return te=Ar(te),te=sn(te,ct),te!==Vt&&(te=zt(te,ct)),Ft&&(te=ci(te)),te}function Qi(te){if(te.kind===253)return!0;if(te.kind===245){const ct=te;if(ct.elseStatement)return Qi(ct.thenStatement)&&Qi(ct.elseStatement)}else if(te.kind===241){const ct=el(te.statements);if(ct&&Qi(ct))return!0}return!1}function Io(){return pr(t.createThis(),8)}function fa(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Gl(),t.createNull()),t.createFunctionApplyCall(Gl(),Io(),t.createIdentifier("arguments"))),Io())}function ka(te){if(!te.dotDotDotToken)return ta(te.name)?Nr(dt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(te),void 0,void 0,void 0),te),te):te.initializer?Nr(dt(t.createParameterDeclaration(void 0,void 0,te.name,void 0,void 0,void 0),te),te):te}function Tn(te){return te.initializer!==void 0||ta(te.name)}function wn(te,ct){if(!bt(ct.parameters,Tn))return!1;let Ft=!1;for(const Vt of ct.parameters){const{name:W,initializer:Te,dotDotDotToken:st}=Vt;st||(ta(W)?Ft=He(te,Vt,W,Te)||Ft:Te&&(mt(te,Vt,W,Te),Ft=!0))}return Ft}function He(te,ct,Ft,Vt){return Ft.elements.length>0?(hS(te,pr(t.createVariableStatement(void 0,t.createVariableDeclarationList(u1(ct,ne,e,0,t.getGeneratedNameForNode(ct)))),2097152)),!0):Vt?(hS(te,pr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(ct),N.checkDefined(nt(Vt,ne,yt)))),2097152)),!0):!1}function mt(te,ct,Ft,Vt){Vt=N.checkDefined(nt(Vt,ne,yt));const W=t.createIfStatement(t.createTypeCheck(t.cloneNode(Ft),"undefined"),pr(dt(t.createBlock([t.createExpressionStatement(pr(dt(t.createAssignment(pr(Ha(dt(t.cloneNode(Ft),Ft),Ft.parent),96),pr(Vt,96|Ga(Vt)|3072)),ct),3072))]),ct),3905));Xu(W),dt(W,ct),pr(W,2101056),hS(te,W)}function ft(te,ct){return!!(te&&te.dotDotDotToken&&!ct)}function Ct(te,ct,Ft){const Vt=[],W=el(ct.parameters);if(!ft(W,Ft))return!1;const Te=W.name.kind===80?Ha(dt(t.cloneNode(W.name),W.name),W.name.parent):t.createTempVariable(void 0);pr(Te,96);const st=W.name.kind===80?t.cloneNode(W.name):Te,qt=ct.parameters.length-1,rr=t.createLoopVariable();Vt.push(pr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Te,void 0,void 0,t.createArrayLiteralExpression([]))])),W),2097152));const ii=t.createForStatement(dt(t.createVariableDeclarationList([t.createVariableDeclaration(rr,void 0,void 0,t.createNumericLiteral(qt))]),W),dt(t.createLessThan(rr,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),W),dt(t.createPostfixIncrement(rr),W),t.createBlock([Xu(dt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(st,qt===0?rr:t.createSubtract(rr,t.createNumericLiteral(qt))),t.createElementAccessExpression(t.createIdentifier("arguments"),rr))),W))]));return pr(ii,2097152),Xu(ii),Vt.push(ii),W.name.kind!==80&&Vt.push(pr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList(u1(W,ne,e,0,st))),W),2097152)),XV(te,Vt),!0}function le(te,ct){return A&131072&&ct.kind!==219?(Fe(te,ct,t.createThis()),!0):!1}function Fe(te,ct,Ft){Nd();const Vt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie(),void 0,void 0,Ft)]));pr(Vt,2100224),Da(Vt,ct),hS(te,Vt)}function pt(te,ct){if(A&32768){let Ft;switch(ct.kind){case 219:return te;case 174:case 177:case 178:Ft=t.createVoidZero();break;case 176:Ft=t.createPropertyAccessExpression(pr(t.createThis(),8),"constructor");break;case 262:case 218:Ft=t.createConditionalExpression(t.createLogicalAnd(pr(t.createThis(),8),t.createBinaryExpression(pr(t.createThis(),8),104,t.getLocalName(ct))),void 0,t.createPropertyAccessExpression(pr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return N.failBadSyntaxKind(ct)}const Vt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Ft)]));pr(Vt,2100224),hS(te,Vt)}return te}function j(te,ct){for(const Ft of ct.members)switch(Ft.kind){case 240:te.push(it(Ft));break;case 174:te.push(Rt(dg(ct,Ft),Ft,ct));break;case 177:case 178:const Vt=NS(ct.members,Ft);Ft===Vt.firstAccessor&&te.push(Ye(dg(ct,Ft),Vt,ct));break;case 176:case 175:break;default:N.failBadSyntaxKind(Ft,y&&y.fileName);break}}function it(te){return dt(t.createEmptyStatement(),te)}function Rt(te,ct,Ft){const Vt=M_(ct),W=Bv(ct),Te=hn(ct,ct,void 0,Ft),st=nt(ct.name,ne,oc);N.assert(st);let qt;if(!qi(st)&&lP(e.getCompilerOptions())){const ii=Za(st)?st.expression:Ve(st)?t.createStringLiteral(Vi(st.escapedText)):st;qt=t.createObjectDefinePropertyCall(te,ii,t.createPropertyDescriptor({value:Te,enumerable:!1,writable:!0,configurable:!0}))}else{const ii=HS(t,te,st,ct.name);qt=t.createAssignment(ii,Te)}pr(Te,3072),Da(Te,W);const rr=dt(t.createExpressionStatement(qt),ct);return Nr(rr,ct),ac(rr,Vt),pr(rr,96),rr}function Ye(te,ct,Ft){const Vt=t.createExpressionStatement(_t(te,ct,Ft,!1));return pr(Vt,3072),Da(Vt,Bv(ct.firstAccessor)),Vt}function _t(te,{firstAccessor:ct,getAccessor:Ft,setAccessor:Vt},W,Te){const st=Ha(dt(t.cloneNode(te),te),te.parent);pr(st,3136),Da(st,ct.name);const qt=nt(ct.name,ne,oc);if(N.assert(qt),qi(qt))return N.failBadSyntaxKind(qt,"Encountered unhandled private identifier while transforming ES2015.");const rr=TH(t,qt);pr(rr,3104),Da(rr,ct.name);const ii=[];if(Ft){const oo=hn(Ft,void 0,void 0,W);Da(oo,Bv(Ft)),pr(oo,1024);const wa=t.createPropertyAssignment("get",oo);ac(wa,M_(Ft)),ii.push(wa)}if(Vt){const oo=hn(Vt,void 0,void 0,W);Da(oo,Bv(Vt)),pr(oo,1024);const wa=t.createPropertyAssignment("set",oo);ac(wa,M_(Vt)),ii.push(wa)}ii.push(t.createPropertyAssignment("enumerable",Ft||Vt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Yr=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[st,rr,t.createObjectLiteralExpression(ii,!0)]);return Te&&Xu(Yr),Yr}function Gt(te){te.transformFlags&16384&&!(A&16384)&&(A|=131072);const ct=C;C=void 0;const Ft=K(15232,66),Vt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Dl(te.parameters,ne,e),void 0,q(te));return dt(Vt,te),Nr(Vt,te),pr(Vt,16),Q(Ft,0,0),C=ct,Vt}function yn(te){const ct=Ga(te)&524288?K(32662,69):K(32670,65),Ft=C;C=void 0;const Vt=Dl(te.parameters,ne,e),W=q(te),Te=A&32768?t.getLocalName(te):te.name;return Q(ct,229376,0),C=Ft,t.updateFunctionExpression(te,void 0,te.asteriskToken,Te,void 0,Vt,void 0,W)}function fn(te){const ct=C;C=void 0;const Ft=K(32670,65),Vt=Dl(te.parameters,ne,e),W=q(te),Te=A&32768?t.getLocalName(te):te.name;return Q(Ft,229376,0),C=ct,t.updateFunctionDeclaration(te,jn(te.modifiers,ne,Aa),te.asteriskToken,Te,void 0,Vt,void 0,W)}function hn(te,ct,Ft,Vt){const W=C;C=void 0;const Te=Vt&&di(Vt)&&!aa(te)?K(32670,73):K(32670,65),st=Dl(te.parameters,ne,e),qt=q(te);return A&32768&&!Ft&&(te.kind===262||te.kind===218)&&(Ft=t.getGeneratedNameForNode(te)),Q(Te,229376,0),C=W,Nr(dt(t.createFunctionExpression(void 0,te.asteriskToken,Ft,void 0,st,void 0,qt),ct),te)}function q(te){let ct=!1,Ft=!1,Vt,W;const Te=[],st=[],qt=te.body;let rr;if(o(),Ko(qt)&&(rr=t.copyStandardPrologue(qt.statements,Te,0,!1),rr=t.copyCustomPrologue(qt.statements,st,rr,ne,W4),rr=t.copyCustomPrologue(qt.statements,st,rr,ne,F4)),ct=wn(st,te)||ct,ct=Ct(st,te,!1)||ct,Ko(qt))rr=t.copyCustomPrologue(qt.statements,st,rr,ne),Vt=qt.statements,qr(st,jn(qt.statements,ne,Hi,rr)),!ct&&qt.multiLine&&(ct=!0);else{N.assert(te.kind===219),Vt=T3(qt,-1);const Yr=te.equalsGreaterThanToken;!Ys(Yr)&&!Ys(qt)&&(uk(Yr,qt,y)?Ft=!0:ct=!0);const oo=nt(qt,ne,yt),wa=t.createReturnStatement(oo);dt(wa,qt),Hoe(wa,qt),pr(wa,2880),st.push(wa),W=qt}if(t.mergeLexicalEnvironment(Te,s()),pt(Te,te),le(Te,te),bt(Te)&&(ct=!0),st.unshift(...Te),Ko(qt)&&Hm(st,qt.statements))return qt;const ii=t.createBlock(dt(t.createNodeArray(st),Vt),ct);return dt(ii,te.body),!ct&&Ft&&pr(ii,1),W&&Uoe(ii,20,W),Nr(ii,te.body),ii}function Oe(te,ct){const Ft=A&256?K(7104,512):K(6976,128),Vt=xn(te,ne,e);return Q(Ft,0,0),Vt}function Lt(te){return xn(te,he,e)}function L(te,ct){return xn(te,ct?he:ne,e)}function me(te,ct){return Wv(te)?XS(te,ne,e,0,!ct):te.operatorToken.kind===28?t.updateBinaryExpression(te,N.checkDefined(nt(te.left,he,yt)),te.operatorToken,N.checkDefined(nt(te.right,ct?he:ne,yt))):xn(te,ne,e)}function J(te,ct){if(ct)return xn(te,he,e);let Ft;for(let W=0;W<te.elements.length;W++){const Te=te.elements[W],st=nt(Te,W<te.elements.length-1?he:ne,yt);(Ft||st!==Te)&&(Ft||(Ft=te.elements.slice(0,W)),N.assert(st),Ft.push(st))}const Vt=Ft?dt(t.createNodeArray(Ft),te.elements):te.elements;return t.updateCommaListExpression(te,Vt)}function fe(te){return te.declarationList.declarations.length===1&&!!te.declarationList.declarations[0].initializer&&!!(Em(te.declarationList.declarations[0].initializer)&1)}function Be(te){const ct=K(0,Qr(te,32)?32:0);let Ft;if(C&&!(te.declarationList.flags&7)&&!fe(te)){let Vt;for(const W of te.declarationList.declarations)if(uu(C,W),W.initializer){let Te;ta(W.name)?Te=XS(W,ne,e,0):(Te=t.createBinaryExpression(W.name,64,N.checkDefined(nt(W.initializer,ne,yt))),dt(Te,W)),Vt=Rn(Vt,Te)}Vt?Ft=dt(t.createExpressionStatement(t.inlineExpressions(Vt)),te):Ft=void 0}else Ft=xn(te,ne,e);return Q(ct,0,0),Ft}function ke(te){if(te.flags&7||te.transformFlags&524288){te.flags&7&&jd();const ct=jn(te.declarations,te.flags&1?en:En,Oi),Ft=t.createVariableDeclarationList(ct);return Nr(Ft,te),dt(Ft,te),ac(Ft,te),te.transformFlags&524288&&(ta(te.declarations[0].name)||ta(Xa(te.declarations).name))&&Da(Ft,Tt(ct)),Ft}return xn(te,ne,e)}function Tt(te){let ct=-1,Ft=-1;for(const Vt of te)ct=ct===-1?Vt.pos:Vt.pos===-1?ct:Math.min(ct,Vt.pos),Ft=Math.max(Ft,Vt.end);return Af(ct,Ft)}function kt(te){const ct=p.getNodeCheckFlags(te),Ft=ct&16384,Vt=ct&32768;return!((A&64)!==0||Ft&&Vt&&(A&512)!==0)&&(A&4096)===0&&(!p.isDeclarationWithCollidingName(te)||Vt&&!Ft&&(A&6144)===0)}function en(te){const ct=te.name;return ta(ct)?En(te):!te.initializer&&kt(te)?t.updateVariableDeclaration(te,te.name,void 0,void 0,t.createVoidZero()):xn(te,ne,e)}function En(te){const ct=K(32,0);let Ft;return ta(te.name)?Ft=u1(te,ne,e,0,void 0,(ct&32)!==0):Ft=xn(te,ne,e),Q(ct,0,0),Ft}function Gn(te){C.labels.set(Sr(te.label),!0)}function qn(te){C.labels.set(Sr(te.label),!1)}function Pi(te){C&&!C.labels&&(C.labels=new Map);const ct=fj(te,C&&Gn);return Py(ct,!1)?xi(ct,te):t.restoreEnclosingLabel(N.checkDefined(nt(ct,ne,Hi,t.liftToBlock)),te,C&&qn)}function xi(te,ct){switch(te.kind){case 246:case 247:return Vr(te,ct);case 248:return vo(te,ct);case 249:return Ri(te,ct);case 250:return Jr(te,ct)}}function ir(te,ct,Ft,Vt,W){const Te=K(te,ct),st=Ts(Ft,Vt,Te,W);return Q(Te,0,0),st}function Vr(te,ct){return ir(0,1280,te,ct)}function vo(te,ct){return ir(5056,3328,te,ct)}function Mi(te){return t.updateForStatement(te,nt(te.initializer,he,Sf),nt(te.condition,ne,yt),nt(te.incrementor,he,yt),N.checkDefined(nt(te.statement,ne,Hi,t.liftToBlock)))}function Ri(te,ct){return ir(3008,5376,te,ct)}function Jr(te,ct){return ir(3008,5376,te,ct,u.downlevelIteration?Ql:Fs)}function xo(te,ct,Ft){const Vt=[],W=te.initializer;if(Vc(W)){te.initializer.flags&7&&jd();const Te=Kc(W.declarations);if(Te&&ta(Te.name)){const st=u1(Te,ne,e,0,ct),qt=dt(t.createVariableDeclarationList(st),te.initializer);Nr(qt,te.initializer),Da(qt,Af(st[0].pos,Xa(st).end)),Vt.push(t.createVariableStatement(void 0,qt))}else Vt.push(dt(t.createVariableStatement(void 0,Nr(dt(t.createVariableDeclarationList([t.createVariableDeclaration(Te?Te.name:t.createTempVariable(void 0),void 0,void 0,ct)]),m0(W,-1)),W)),T3(W,-1)))}else{const Te=t.createAssignment(W,ct);Wv(Te)?Vt.push(t.createExpressionStatement(me(Te,!0))):(MR(Te,W.end),Vt.push(dt(t.createExpressionStatement(N.checkDefined(nt(Te,ne,yt))),T3(W,-1))))}if(Ft)return Nn(qr(Vt,Ft));{const Te=nt(te.statement,ne,Hi,t.liftToBlock);return N.assert(Te),Ko(Te)?t.updateBlock(Te,dt(t.createNodeArray(So(Vt,Te.statements)),Te.statements)):(Vt.push(Te),Nn(Vt))}}function Nn(te){return pr(t.createBlock(t.createNodeArray(te),!0),864)}function Fs(te,ct,Ft){const Vt=nt(te.expression,ne,yt);N.assert(Vt);const W=t.createLoopVariable(),Te=Ve(Vt)?t.getGeneratedNameForNode(Vt):t.createTempVariable(void 0);pr(Vt,96|Ga(Vt));const st=dt(t.createForStatement(pr(dt(t.createVariableDeclarationList([dt(t.createVariableDeclaration(W,void 0,void 0,t.createNumericLiteral(0)),m0(te.expression,-1)),dt(t.createVariableDeclaration(Te,void 0,void 0,Vt),te.expression)]),te.expression),4194304),dt(t.createLessThan(W,t.createPropertyAccessExpression(Te,"length")),te.expression),dt(t.createPostfixIncrement(W),te.expression),xo(te,t.createElementAccessExpression(Te,W),Ft)),te);return pr(st,512),dt(st,te),t.restoreEnclosingLabel(st,ct,C&&qn)}function Ql(te,ct,Ft,Vt){const W=nt(te.expression,ne,yt);N.assert(W);const Te=Ve(W)?t.getGeneratedNameForNode(W):t.createTempVariable(void 0),st=Ve(W)?t.getGeneratedNameForNode(Te):t.createTempVariable(void 0),qt=t.createUniqueName("e"),rr=t.getGeneratedNameForNode(qt),ii=t.createTempVariable(void 0),Yr=dt(r().createValuesHelper(W),te.expression),oo=t.createCallExpression(t.createPropertyAccessExpression(Te,"next"),void 0,[]);l(qt),l(ii);const wa=Vt&1024?t.inlineExpressions([t.createAssignment(qt,t.createVoidZero()),Yr]):Yr,Oa=pr(dt(t.createForStatement(pr(dt(t.createVariableDeclarationList([dt(t.createVariableDeclaration(Te,void 0,void 0,wa),te.expression),t.createVariableDeclaration(st,void 0,void 0,oo)]),te.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(st,"done")),t.createAssignment(st,oo),xo(te,t.createPropertyAccessExpression(st,"value"),Ft)),te),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(Oa,ct,C&&qn)]),t.createCatchClause(t.createVariableDeclaration(rr),pr(t.createBlock([t.createExpressionStatement(t.createAssignment(qt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",rr)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([pr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(st,t.createLogicalNot(t.createPropertyAccessExpression(st,"done"))),t.createAssignment(ii,t.createPropertyAccessExpression(Te,"return"))),t.createExpressionStatement(t.createFunctionCallCall(ii,Te,[]))),1)]),void 0,pr(t.createBlock([pr(t.createIfStatement(qt,t.createThrowStatement(t.createPropertyAccessExpression(qt,"error"))),1)]),1))]))}function ko(te){const ct=te.properties;let Ft=-1,Vt=!1;for(let qt=0;qt<ct.length;qt++){const rr=ct[qt];if(rr.transformFlags&1048576&&A&4||(Vt=N.checkDefined(rr.name).kind===167)){Ft=qt;break}}if(Ft<0)return xn(te,ne,e);const W=t.createTempVariable(l),Te=[],st=t.createAssignment(W,pr(t.createObjectLiteralExpression(jn(ct,ne,Mg,0,Ft),te.multiLine),Vt?131072:0));return te.multiLine&&Xu(st),Te.push(st),un(Te,te,W,Ft),Te.push(te.multiLine?Xu(Ha(dt(t.cloneNode(W),W),W.parent)):W),t.inlineExpressions(Te)}function cs(te){return(p.getNodeCheckFlags(te)&8192)!==0}function Vs(te){return zS(te)&&!!te.initializer&&cs(te.initializer)}function gl(te){return zS(te)&&!!te.condition&&cs(te.condition)}function cu(te){return zS(te)&&!!te.incrementor&&cs(te.incrementor)}function ho(te){return da(te)||Vs(te)}function da(te){return(p.getNodeCheckFlags(te)&4096)!==0}function uu(te,ct){te.hoistedLocalVariables||(te.hoistedLocalVariables=[]),Ft(ct.name);function Ft(Vt){if(Vt.kind===80)te.hoistedLocalVariables.push(Vt);else for(const W of Vt.elements)Gc(W)||Ft(W.name)}}function Ts(te,ct,Ft,Vt){if(!ho(te)){let Yr;C&&(Yr=C.allowedNonLabeledJumps,C.allowedNonLabeledJumps=6);const oo=Vt?Vt(te,ct,void 0,Ft):t.restoreEnclosingLabel(zS(te)?Mi(te):xn(te,ne,e),ct,C&&qn);return C&&(C.allowedNonLabeledJumps=Yr),oo}const W=wo(te),Te=[],st=C;C=W;const qt=Vs(te)?tu(te,W):void 0,rr=da(te)?du(te,W,st):void 0;C=st,qt&&Te.push(qt.functionDeclaration),rr&&Te.push(rr.functionDeclaration),nn(Te,W,st),qt&&Te.push(xc(qt.functionName,qt.containsYield));let ii;if(rr)if(Vt)ii=Vt(te,ct,rr.part,Ft);else{const Yr=Ca(te,qt,t.createBlock(rr.part,!0));ii=t.restoreEnclosingLabel(Yr,ct,C&&qn)}else{const Yr=Ca(te,qt,N.checkDefined(nt(te.statement,ne,Hi,t.liftToBlock)));ii=t.restoreEnclosingLabel(Yr,ct,C&&qn)}return Te.push(ii),Te}function Ca(te,ct,Ft){switch(te.kind){case 248:return ml(te,ct,Ft);case 249:return lc(te,Ft);case 250:return Lf(te,Ft);case 246:return Nl(te,Ft);case 247:return cl(te,Ft);default:return N.failBadSyntaxKind(te,"IterationStatement expected")}}function ml(te,ct,Ft){const Vt=te.condition&&cs(te.condition),W=Vt||te.incrementor&&cs(te.incrementor);return t.updateForStatement(te,nt(ct?ct.part:te.initializer,he,Sf),nt(Vt?void 0:te.condition,ne,yt),nt(W?void 0:te.incrementor,he,yt),Ft)}function Lf(te,ct){return t.updateForOfStatement(te,void 0,N.checkDefined(nt(te.initializer,ne,Sf)),N.checkDefined(nt(te.expression,ne,yt)),ct)}function lc(te,ct){return t.updateForInStatement(te,N.checkDefined(nt(te.initializer,ne,Sf)),N.checkDefined(nt(te.expression,ne,yt)),ct)}function Nl(te,ct){return t.updateDoStatement(te,ct,N.checkDefined(nt(te.expression,ne,yt)))}function cl(te,ct){return t.updateWhileStatement(te,N.checkDefined(nt(te.expression,ne,yt)),ct)}function wo(te){let ct;switch(te.kind){case 248:case 249:case 250:const Te=te.initializer;Te&&Te.kind===261&&(ct=Te);break}const Ft=[],Vt=[];if(ct&&Cv(ct)&7){const Te=Vs(te)||gl(te)||cu(te);for(const st of ct.declarations)Et(te,st,Ft,Vt,Te)}const W={loopParameters:Ft,loopOutParameters:Vt};return C&&(C.argumentsName&&(W.argumentsName=C.argumentsName),C.thisName&&(W.thisName=C.thisName),C.hoistedLocalVariables&&(W.hoistedLocalVariables=C.hoistedLocalVariables)),W}function nn(te,ct,Ft){let Vt;if(ct.argumentsName&&(Ft?Ft.argumentsName=ct.argumentsName:(Vt||(Vt=[])).push(t.createVariableDeclaration(ct.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),ct.thisName&&(Ft?Ft.thisName=ct.thisName:(Vt||(Vt=[])).push(t.createVariableDeclaration(ct.thisName,void 0,void 0,t.createIdentifier("this")))),ct.hoistedLocalVariables)if(Ft)Ft.hoistedLocalVariables=ct.hoistedLocalVariables;else{Vt||(Vt=[]);for(const W of ct.hoistedLocalVariables)Vt.push(t.createVariableDeclaration(W))}if(ct.loopOutParameters.length){Vt||(Vt=[]);for(const W of ct.loopOutParameters)Vt.push(t.createVariableDeclaration(W.outParamName))}ct.conditionVariable&&(Vt||(Vt=[]),Vt.push(t.createVariableDeclaration(ct.conditionVariable,void 0,void 0,t.createFalse()))),Vt&&te.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(Vt)))}function js(te){return t.createVariableDeclaration(te.originalName,void 0,void 0,te.outParamName)}function tu(te,ct){const Ft=t.createUniqueName("_loop_init"),Vt=(te.initializer.transformFlags&1048576)!==0;let W=0;ct.containsLexicalThis&&(W|=16),Vt&&A&4&&(W|=524288);const Te=[];Te.push(t.createVariableStatement(void 0,te.initializer)),Ms(ct.loopOutParameters,2,1,Te);const st=t.createVariableStatement(void 0,pr(t.createVariableDeclarationList([t.createVariableDeclaration(Ft,void 0,void 0,pr(t.createFunctionExpression(void 0,Vt?t.createToken(42):void 0,void 0,void 0,void 0,void 0,N.checkDefined(nt(t.createBlock(Te,!0),ne,Ko))),W))]),4194304)),qt=t.createVariableDeclarationList(Wt(ct.loopOutParameters,js));return{functionName:Ft,containsYield:Vt,functionDeclaration:st,part:qt}}function du(te,ct,Ft){const Vt=t.createUniqueName("_loop");i();const W=nt(te.statement,ne,Hi,t.liftToBlock),Te=s(),st=[];(gl(te)||cu(te))&&(ct.conditionVariable=t.createUniqueName("inc"),te.incrementor?st.push(t.createIfStatement(ct.conditionVariable,t.createExpressionStatement(N.checkDefined(nt(te.incrementor,ne,yt))),t.createExpressionStatement(t.createAssignment(ct.conditionVariable,t.createTrue())))):st.push(t.createIfStatement(t.createLogicalNot(ct.conditionVariable),t.createExpressionStatement(t.createAssignment(ct.conditionVariable,t.createTrue())))),gl(te)&&st.push(t.createIfStatement(t.createPrefixUnaryExpression(54,N.checkDefined(nt(te.condition,ne,yt))),N.checkDefined(nt(t.createBreakStatement(),ne,Hi))))),N.assert(W),Ko(W)?qr(st,W.statements):st.push(W),Ms(ct.loopOutParameters,1,1,st),Yh(st,Te);const qt=t.createBlock(st,!0);Ko(W)&&Nr(qt,W);const rr=(te.statement.transformFlags&1048576)!==0;let ii=1048576;ct.containsLexicalThis&&(ii|=16),rr&&A&4&&(ii|=524288);const Yr=t.createVariableStatement(void 0,pr(t.createVariableDeclarationList([t.createVariableDeclaration(Vt,void 0,void 0,pr(t.createFunctionExpression(void 0,rr?t.createToken(42):void 0,void 0,void 0,ct.loopParameters,void 0,qt),ii))]),4194304)),oo=ue(Vt,ct,Ft,rr);return{functionName:Vt,containsYield:rr,functionDeclaration:Yr,part:oo}}function Tp(te,ct){const Ft=ct===0?te.outParamName:te.originalName,Vt=ct===0?te.originalName:te.outParamName;return t.createBinaryExpression(Vt,64,Ft)}function Ms(te,ct,Ft,Vt){for(const W of te)W.flags&ct&&Vt.push(t.createExpressionStatement(Tp(W,Ft)))}function xc(te,ct){const Ft=t.createCallExpression(te,void 0,[]),Vt=ct?t.createYieldExpression(t.createToken(42),pr(Ft,8388608)):Ft;return t.createExpressionStatement(Vt)}function ue(te,ct,Ft,Vt){const W=[],Te=!(ct.nonLocalJumps&-5)&&!ct.labeledNonLocalBreaks&&!ct.labeledNonLocalContinues,st=t.createCallExpression(te,void 0,Wt(ct.loopParameters,rr=>rr.name)),qt=Vt?t.createYieldExpression(t.createToken(42),pr(st,8388608)):st;if(Te)W.push(t.createExpressionStatement(qt)),Ms(ct.loopOutParameters,1,0,W);else{const rr=t.createUniqueName("state"),ii=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(rr,void 0,void 0,qt)]));if(W.push(ii),Ms(ct.loopOutParameters,1,0,W),ct.nonLocalJumps&8){let Yr;Ft?(Ft.nonLocalJumps|=8,Yr=t.createReturnStatement(rr)):Yr=t.createReturnStatement(t.createPropertyAccessExpression(rr,"value")),W.push(t.createIfStatement(t.createTypeCheck(rr,"object"),Yr))}if(ct.nonLocalJumps&2&&W.push(t.createIfStatement(t.createStrictEquality(rr,t.createStringLiteral("break")),t.createBreakStatement())),ct.labeledNonLocalBreaks||ct.labeledNonLocalContinues){const Yr=[];we(ct.labeledNonLocalBreaks,!0,rr,Ft,Yr),we(ct.labeledNonLocalContinues,!1,rr,Ft,Yr),W.push(t.createSwitchStatement(rr,t.createCaseBlock(Yr)))}}return W}function Z(te,ct,Ft,Vt){ct?(te.labeledNonLocalBreaks||(te.labeledNonLocalBreaks=new Map),te.labeledNonLocalBreaks.set(Ft,Vt)):(te.labeledNonLocalContinues||(te.labeledNonLocalContinues=new Map),te.labeledNonLocalContinues.set(Ft,Vt))}function we(te,ct,Ft,Vt,W){te&&te.forEach((Te,st)=>{const qt=[];if(!Vt||Vt.labels&&Vt.labels.get(st)){const rr=t.createIdentifier(st);qt.push(ct?t.createBreakStatement(rr):t.createContinueStatement(rr))}else Z(Vt,ct,st,Te),qt.push(t.createReturnStatement(Ft));W.push(t.createCaseClause(t.createStringLiteral(Te),qt))})}function Et(te,ct,Ft,Vt,W){const Te=ct.name;if(ta(Te))for(const st of Te.elements)Gc(st)||Et(te,st,Ft,Vt,W);else{Ft.push(t.createParameterDeclaration(void 0,void 0,Te));const st=p.getNodeCheckFlags(ct);if(st&65536||W){const qt=t.createUniqueName("out_"+Sr(Te));let rr=0;st&65536&&(rr|=1),zS(te)&&(te.initializer&&p.isBindingCapturedByNode(te.initializer,ct)&&(rr|=2),(te.condition&&p.isBindingCapturedByNode(te.condition,ct)||te.incrementor&&p.isBindingCapturedByNode(te.incrementor,ct))&&(rr|=1)),Vt.push({flags:rr,originalName:Te,outParamName:qt})}}}function un(te,ct,Ft,Vt){const W=ct.properties,Te=W.length;for(let st=Vt;st<Te;st++){const qt=W[st];switch(qt.kind){case 177:case 178:const rr=NS(ct.properties,qt);qt===rr.firstAccessor&&te.push(_t(Ft,rr,ct,!!ct.multiLine));break;case 174:te.push(jr(qt,Ft,ct,ct.multiLine));break;case 303:te.push(Er(qt,Ft,ct.multiLine));break;case 304:te.push(vr(qt,Ft,ct.multiLine));break;default:N.failBadSyntaxKind(ct);break}}}function Er(te,ct,Ft){const Vt=t.createAssignment(HS(t,ct,N.checkDefined(nt(te.name,ne,oc))),N.checkDefined(nt(te.initializer,ne,yt)));return dt(Vt,te),Ft&&Xu(Vt),Vt}function vr(te,ct,Ft){const Vt=t.createAssignment(HS(t,ct,N.checkDefined(nt(te.name,ne,oc))),t.cloneNode(te.name));return dt(Vt,te),Ft&&Xu(Vt),Vt}function jr(te,ct,Ft,Vt){const W=t.createAssignment(HS(t,ct,N.checkDefined(nt(te.name,ne,oc))),hn(te,te,void 0,Ft));return dt(W,te),Vt&&Xu(W),W}function Di(te){const ct=K(7104,0);let Ft;if(N.assert(!!te.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),ta(te.variableDeclaration.name)){const Vt=t.createTempVariable(void 0),W=t.createVariableDeclaration(Vt);dt(W,te.variableDeclaration);const Te=u1(te.variableDeclaration,ne,e,0,Vt),st=t.createVariableDeclarationList(Te);dt(st,te.variableDeclaration);const qt=t.createVariableStatement(void 0,st);Ft=t.updateCatchClause(te,W,Mr(te.block,qt))}else Ft=xn(te,ne,e);return Q(ct,0,0),Ft}function Mr(te,ct){const Ft=jn(te.statements,ne,Hi);return t.updateBlock(te,[ct,...Ft])}function Yo(te){N.assert(!Za(te.name));const ct=hn(te,m0(te,-1),void 0,void 0);return pr(ct,1024|Ga(ct)),dt(t.createPropertyAssignment(te.name,ct),te)}function Sl(te){N.assert(!Za(te.name));const ct=C;C=void 0;const Ft=K(32670,65);let Vt;const W=Dl(te.parameters,ne,e),Te=q(te);return te.kind===177?Vt=t.updateGetAccessorDeclaration(te,te.modifiers,te.name,W,te.type,Te):Vt=t.updateSetAccessorDeclaration(te,te.modifiers,te.name,W,Te),Q(Ft,229376,0),C=ct,Vt}function jc(te){return dt(t.createPropertyAssignment(te.name,Ee(t.cloneNode(te.name))),te)}function Us(te){return xn(te,ne,e)}function vc(te){return xn(te,ne,e)}function Es(te){return bt(te.elements,$m)?_d(te.elements,!1,!!te.multiLine,!!te.elements.hasTrailingComma):xn(te,ne,e)}function Uc(te){if(Em(te)&1)return ip(te);const ct=$l(te.expression);return ct.kind===108||zd(ct)||bt(te.arguments,$m)?wc(te):t.updateCallExpression(te,N.checkDefined(nt(te.expression,Y,yt)),void 0,jn(te.arguments,ne,yt))}function ip(te){const ct=oa(oa($l(te.expression),Gs).body,Ko),Ft=Hd=>Ll(Hd)&&!!Ua(Hd.declarationList.declarations).initializer,Vt=C;C=void 0;const W=jn(ct.statements,ye,Hi);C=Vt;const Te=mn(W,Ft),st=mn(W,Hd=>!Ft(Hd)),rr=oa(Ua(Te),Ll).declarationList.declarations[0],ii=$l(rr.initializer);let Yr=ri(ii,Pc);!Yr&&mr(ii)&&ii.operatorToken.kind===28&&(Yr=ri(ii.left,Pc));const oo=oa(Yr?$l(Yr.right):ii,sa),wa=oa($l(oo.expression),Os),Oa=wa.body.statements;let Ol=0,pu=-1;const Rc=[];if(Yr){const Hd=ri(Oa[Ol],Zc);Hd&&(Rc.push(Hd),Ol++),Rc.push(Oa[Ol]),Ol++,Rc.push(t.createExpressionStatement(t.createAssignment(Yr.left,oa(rr.name,Ve))))}for(;!Im(Rv(Oa,pu));)pu--;qr(Rc,Oa,Ol,pu),pu<-1&&qr(Rc,Oa,pu+1);const Ip=ri(Rv(Oa,pu),Im);for(const Hd of st)Im(Hd)&&(Ip!=null&&Ip.expression)&&!Ve(Ip.expression)?Rc.push(Ip):Rc.push(Hd);return qr(Rc,Te,1),t.restoreOuterExpressions(te.expression,t.restoreOuterExpressions(rr.initializer,t.restoreOuterExpressions(Yr&&Yr.right,t.updateCallExpression(oo,t.restoreOuterExpressions(oo.expression,t.updateFunctionExpression(wa,void 0,void 0,void 0,void 0,wa.parameters,void 0,t.updateBlock(wa.body,Rc))),void 0,oo.arguments))))}function wc(te,ct){if(te.transformFlags&32768||te.expression.kind===108||zd($l(te.expression))){const{target:Ft,thisArg:Vt}=t.createCallBinding(te.expression,l);te.expression.kind===108&&pr(Vt,8);let W;if(te.transformFlags&32768?W=t.createFunctionApplyCall(N.checkDefined(nt(Ft,Y,yt)),te.expression.kind===108?Vt:N.checkDefined(nt(Vt,ne,yt)),_d(te.arguments,!0,!1,!1)):W=dt(t.createFunctionCallCall(N.checkDefined(nt(Ft,Y,yt)),te.expression.kind===108?Vt:N.checkDefined(nt(Vt,ne,yt)),jn(te.arguments,ne,yt)),te),te.expression.kind===108){const Te=t.createLogicalOr(W,Io());W=t.createAssignment(ie(),Te)}return Nr(W,te)}return yS(te)&&(A|=131072),xn(te,ne,e)}function sm(te){if(bt(te.arguments,$m)){const{target:ct,thisArg:Ft}=t.createCallBinding(t.createPropertyAccessExpression(te.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(N.checkDefined(nt(ct,ne,yt)),Ft,_d(t.createNodeArray([t.createVoidZero(),...te.arguments]),!0,!1,!1)),void 0,[])}return xn(te,ne,e)}function _d(te,ct,Ft,Vt){const W=te.length,Te=Cs(FB(te,Pe,(ii,Yr,oo,wa)=>Yr(ii,Ft,Vt&&wa===W)));if(Te.length===1){const ii=Te[0];if(ct&&!u.downlevelIteration||bU(ii.expression)||dP(ii.expression,"___spreadArray"))return ii.expression}const st=r(),qt=Te[0].kind!==0;let rr=qt?t.createArrayLiteralExpression():Te[0].expression;for(let ii=qt?0:1;ii<Te.length;ii++){const Yr=Te[ii];rr=st.createSpreadArrayHelper(rr,Yr.expression,Yr.kind===1&&!ct)}return rr}function Pe(te){return $m(te)?Ot:yo}function Ot(te){return Wt(te,Xn)}function Xn(te){N.assertNode(te,$m);let ct=nt(te.expression,ne,yt);N.assert(ct);const Ft=dP(ct,"___read");let Vt=Ft||bU(ct)?2:1;return u.downlevelIteration&&Vt===1&&!fd(ct)&&!Ft&&(ct=r().createReadHelper(ct,void 0),Vt=2),exe(Vt,ct)}function yo(te,ct,Ft){const Vt=t.createArrayLiteralExpression(jn(t.createNodeArray(te,Ft),ne,yt),ct);return exe(0,Vt)}function $o(te){return nt(te.expression,ne,yt)}function na(te){return dt(t.createStringLiteral(te.text),te)}function Zl(te){return te.hasExtendedUnicodeEscape?dt(t.createStringLiteral(te.text),te):te}function yc(te){return te.numericLiteralFlags&384?dt(t.createNumericLiteral(te.text),te):te}function ul(te){return jq(e,te,ne,y,M,1)}function vl(te){let ct=t.createStringLiteral(te.head.text);for(const Ft of te.templateSpans){const Vt=[N.checkDefined(nt(Ft.expression,ne,yt))];Ft.literal.text.length>0&&Vt.push(t.createStringLiteral(Ft.literal.text)),ct=t.createCallExpression(t.createPropertyAccessExpression(ct,"concat"),void 0,Vt)}return dt(ct,te)}function Gl(){return t.createUniqueName("_super",48)}function ec(te,ct){const Ft=A&8&&!ct?t.createPropertyAccessExpression(Nr(Gl(),te),"prototype"):Gl();return Nr(Ft,te),ac(Ft,te),Da(Ft,te),Ft}function Hc(te){return te.keywordToken===105&&te.name.escapedText==="target"?(A|=32768,t.createUniqueName("_newTarget",48)):te}function df(te,ct,Ft){if(O&1&&ea(ct)){const Vt=K(32670,Ga(ct)&16?81:65);m(te,ct,Ft),Q(Vt,0,0);return}m(te,ct,Ft)}function jd(){O&2||(O|=2,e.enableSubstitution(80))}function Nd(){O&1||(O|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function kf(te,ct){return ct=h(te,ct),te===1?qg(ct):Ve(ct)?G_(ct):ct}function G_(te){if(O&2&&!AH(te)){const ct=No(te,Ve);if(ct&&Dh(ct))return dt(t.getGeneratedNameForNode(ct),te)}return te}function Dh(te){switch(te.parent.kind){case 208:case 263:case 266:case 260:return te.parent.name===te&&p.isDeclarationWithCollidingName(te.parent)}return!1}function qg(te){switch(te.kind){case 80:return Bu(te);case 110:return Ap(te)}return te}function Bu(te){if(O&2&&!AH(te)){const ct=p.getReferencedDeclarationWithCollidingName(te);if(ct&&!(di(ct)&&Jg(ct,te)))return dt(t.getGeneratedNameForNode(Lo(ct)),te)}return te}function Jg(te,ct){let Ft=No(ct);if(!Ft||Ft===te||Ft.end<=te.pos||Ft.pos>=te.end)return!1;const Vt=mh(te);for(;Ft;){if(Ft===Vt||Ft===te)return!1;if(Yc(Ft)&&Ft.parent===te)return!0;Ft=Ft.parent}return!1}function Ap(te){return O&1&&A&16?dt(ie(),te):te}function dg(te,ct){return aa(ct)?t.getInternalName(te):t.createPropertyAccessExpression(t.getInternalName(te),"prototype")}function Ud(te,ct){if(!te||!ct||bt(te.parameters))return!1;const Ft=Kc(te.body.statements);if(!Ft||!Ys(Ft)||Ft.kind!==244)return!1;const Vt=Ft.expression;if(!Ys(Vt)||Vt.kind!==213)return!1;const W=Vt.expression;if(!Ys(W)||W.kind!==108)return!1;const Te=oh(Vt.arguments);if(!Te||!Ys(Te)||Te.kind!==230)return!1;const st=Te.expression;return Ve(st)&&st.escapedText==="arguments"}}var Kje=I({"src/compiler/transformers/es2015.ts"(){ra()}});function Dle(e){const{factory:t}=e,r=e.getCompilerOptions();let i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);const s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),Dm(e,l);function l(T){return T}function u(T,A,R){switch(A.kind){case 286:case 287:case 285:const M=A.tagName;o[Wu(M)]=!0;break}i(T,A,R)}function p(T,A){return A.id&&o&&o[A.id]?s(T,A):(A=s(T,A),Fr(A)?h(A):hc(A)?m(A):A)}function h(T){if(qi(T.name))return T;const A=y(T.name);return A?dt(t.createElementAccessExpression(T.expression,A),T):T}function m(T){const A=Ve(T.name)&&y(T.name);return A?t.updatePropertyAssignment(T,A,T.initializer):T}function y(T){const A=r0(T);if(A!==void 0&&A>=83&&A<=118)return dt(t.createStringLiteralFromNode(T),T)}}var Xje=I({"src/compiler/transformers/es5.ts"(){ra()}});function Yje(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 Nle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=os(u),h=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=Lt;let y,T,A,R,M,C,O,U,K,Q,V=1,se,G,ne,he,ye=0,Y=0,X,oe,pe,Ce,de,ie,ve,Le;return Dm(e,Ue);function Ue(Pe){if(Pe.isDeclarationFile||!(Pe.transformFlags&2048))return Pe;const Ot=xn(Pe,Ee,e);return zg(Ot,e.readEmitHelpers()),Ot}function Ee(Pe){const Ot=Pe.transformFlags;return R?De(Pe):A?Me(Pe):Bs(Pe)&&Pe.asteriskToken?At(Pe):Ot&2048?xn(Pe,Ee,e):Pe}function De(Pe){switch(Pe.kind){case 246:return fa(Pe);case 247:return Tn(Pe);case 255:return _t(Pe);case 256:return yn(Pe);default:return Me(Pe)}}function Me(Pe){switch(Pe.kind){case 262:return Se(Pe);case 218:return je(Pe);case 177:case 178:return ot(Pe);case 243:return vt(Pe);case 248:return He(Pe);case 249:return ft(Pe);case 252:return pt(Pe);case 251:return le(Pe);case 253:return it(Pe);default:return Pe.transformFlags&1048576?We(Pe):Pe.transformFlags&4196352?xn(Pe,Ee,e):Pe}}function We(Pe){switch(Pe.kind){case 226:return $e(Pe);case 361:return Mn(Pe);case 227:return gn(Pe);case 229:return Qt(Pe);case 209:return Yt(Pe);case 210:return so(Pe);case 212:return Wi(Pe);case 213:return Co(Pe);case 214:return Ln(Pe);default:return xn(Pe,Ee,e)}}function At(Pe){switch(Pe.kind){case 262:return Se(Pe);case 218:return je(Pe);default:return N.failBadSyntaxKind(Pe)}}function Se(Pe){if(Pe.asteriskToken)Pe=Nr(dt(t.createFunctionDeclaration(Pe.modifiers,void 0,Pe.name,void 0,Dl(Pe.parameters,Ee,e),void 0,Bt(Pe.body)),Pe),Pe);else{const Ot=A,Xn=R;A=!1,R=!1,Pe=xn(Pe,Ee,e),A=Ot,R=Xn}if(A){s(Pe);return}else return Pe}function je(Pe){if(Pe.asteriskToken)Pe=Nr(dt(t.createFunctionExpression(void 0,void 0,Pe.name,void 0,Dl(Pe.parameters,Ee,e),void 0,Bt(Pe.body)),Pe),Pe);else{const Ot=A,Xn=R;A=!1,R=!1,Pe=xn(Pe,Ee,e),A=Ot,R=Xn}return Pe}function ot(Pe){const Ot=A,Xn=R;return A=!1,R=!1,Pe=xn(Pe,Ee,e),A=Ot,R=Xn,Pe}function Bt(Pe){const Ot=[],Xn=A,yo=R,$o=M,na=C,Zl=O,yc=U,ul=K,vl=Q,Gl=V,ec=se,Hc=G,df=ne,jd=he;A=!0,R=!1,M=void 0,C=void 0,O=void 0,U=void 0,K=void 0,Q=void 0,V=1,se=void 0,G=void 0,ne=void 0,he=t.createTempVariable(void 0),i();const Nd=t.copyPrologue(Pe.statements,Ot,!1,Ee);Ci(Pe.statements,Nd);const kf=Z();return Yh(Ot,o()),Ot.push(t.createReturnStatement(kf)),A=Xn,R=yo,M=$o,C=na,O=Zl,U=yc,K=ul,Q=vl,V=Gl,se=ec,G=Hc,ne=df,he=jd,dt(t.createBlock(Ot,Pe.multiLine),Pe)}function vt(Pe){if(Pe.transformFlags&1048576){ci(Pe.declarationList);return}else{if(Ga(Pe)&2097152)return Pe;for(const Xn of Pe.declarationList.declarations)l(Xn.name);const Ot=VC(Pe.declarationList);return Ot.length===0?void 0:Da(t.createExpressionStatement(t.inlineExpressions(Wt(Ot,yi))),Pe)}}function $e(Pe){const Ot=Oj(Pe);switch(Ot){case 0:return tn(Pe);case 1:return It(Pe);default:return N.assertNever(Ot)}}function It(Pe){const{left:Ot,right:Xn}=Pe;if(q(Xn)){let yo;switch(Ot.kind){case 211:yo=t.updatePropertyAccessExpression(Ot,J(N.checkDefined(nt(Ot.expression,Ee,Zd))),Ot.name);break;case 212:yo=t.updateElementAccessExpression(Ot,J(N.checkDefined(nt(Ot.expression,Ee,Zd))),J(N.checkDefined(nt(Ot.argumentExpression,Ee,yt))));break;default:yo=N.checkDefined(nt(Ot,Ee,yt));break}const $o=Pe.operatorToken.kind;return WP($o)?dt(t.createAssignment(yo,dt(t.createBinaryExpression(J(yo),FP($o),N.checkDefined(nt(Xn,Ee,yt))),Pe)),Pe):t.updateBinaryExpression(Pe,yo,Pe.operatorToken,N.checkDefined(nt(Xn,Ee,yt)))}return xn(Pe,Ee,e)}function tn(Pe){return q(Pe.right)?Gie(Pe.operatorToken.kind)?$n(Pe):Pe.operatorToken.kind===28?rn(Pe):t.updateBinaryExpression(Pe,J(N.checkDefined(nt(Pe.left,Ee,yt))),Pe.operatorToken,N.checkDefined(nt(Pe.right,Ee,yt))):xn(Pe,Ee,e)}function rn(Pe){let Ot=[];return Xn(Pe.left),Xn(Pe.right),t.inlineExpressions(Ot);function Xn(yo){mr(yo)&&yo.operatorToken.kind===28?(Xn(yo.left),Xn(yo.right)):(q(yo)&&Ot.length>0&&(ue(1,[t.createExpressionStatement(t.inlineExpressions(Ot))]),Ot=[]),Ot.push(N.checkDefined(nt(yo,Ee,yt))))}}function Mn(Pe){let Ot=[];for(const Xn of Pe.elements)mr(Xn)&&Xn.operatorToken.kind===28?Ot.push(rn(Xn)):(q(Xn)&&Ot.length>0&&(ue(1,[t.createExpressionStatement(t.inlineExpressions(Ot))]),Ot=[]),Ot.push(N.checkDefined(nt(Xn,Ee,yt))));return t.inlineExpressions(Ot)}function $n(Pe){const Ot=Be(),Xn=fe();return cl(Xn,N.checkDefined(nt(Pe.left,Ee,yt)),Pe.left),Pe.operatorToken.kind===56?js(Ot,Xn,Pe.left):nn(Ot,Xn,Pe.left),cl(Xn,N.checkDefined(nt(Pe.right,Ee,yt)),Pe.right),ke(Ot),Xn}function gn(Pe){if(q(Pe.whenTrue)||q(Pe.whenFalse)){const Ot=Be(),Xn=Be(),yo=fe();return js(Ot,N.checkDefined(nt(Pe.condition,Ee,yt)),Pe.condition),cl(yo,N.checkDefined(nt(Pe.whenTrue,Ee,yt)),Pe.whenTrue),wo(Xn),ke(Ot),cl(yo,N.checkDefined(nt(Pe.whenFalse,Ee,yt)),Pe.whenFalse),ke(Xn),yo}return xn(Pe,Ee,e)}function Qt(Pe){const Ot=Be(),Xn=nt(Pe.expression,Ee,yt);if(Pe.asteriskToken){const yo=Ga(Pe.expression)&8388608?Xn:dt(r().createValuesHelper(Xn),Pe);tu(yo,Pe)}else du(Xn,Pe);return ke(Ot),Lf(Pe)}function Yt(Pe){return vi(Pe.elements,void 0,void 0,Pe.multiLine)}function vi(Pe,Ot,Xn,yo){const $o=Oe(Pe);let na;if($o>0){na=fe();const ul=jn(Pe,Ee,yt,0,$o);cl(na,t.createArrayLiteralExpression(Ot?[Ot,...ul]:ul)),Ot=void 0}const Zl=rd(Pe,yc,[],$o);return na?t.createArrayConcatCall(na,[t.createArrayLiteralExpression(Zl,yo)]):dt(t.createArrayLiteralExpression(Ot?[Ot,...Zl]:Zl,yo),Xn);function yc(ul,vl){if(q(vl)&&ul.length>0){const Gl=na!==void 0;na||(na=fe()),cl(na,Gl?t.createArrayConcatCall(na,[t.createArrayLiteralExpression(ul,yo)]):t.createArrayLiteralExpression(Ot?[Ot,...ul]:ul,yo)),Ot=void 0,ul=[]}return ul.push(N.checkDefined(nt(vl,Ee,yt))),ul}}function so(Pe){const Ot=Pe.properties,Xn=Pe.multiLine,yo=Oe(Ot),$o=fe();cl($o,t.createObjectLiteralExpression(jn(Ot,Ee,Mg,0,yo),Xn));const na=rd(Ot,Zl,[],yo);return na.push(Xn?Xu(Ha(dt(t.cloneNode($o),$o),$o.parent)):$o),t.inlineExpressions(na);function Zl(yc,ul){q(ul)&&yc.length>0&&(Nl(t.createExpressionStatement(t.inlineExpressions(yc))),yc=[]);const vl=Nae(t,Pe,ul,$o),Gl=nt(vl,Ee,yt);return Gl&&(Xn&&Xu(Gl),yc.push(Gl)),yc}}function Wi(Pe){return q(Pe.argumentExpression)?t.updateElementAccessExpression(Pe,J(N.checkDefined(nt(Pe.expression,Ee,Zd))),N.checkDefined(nt(Pe.argumentExpression,Ee,yt))):xn(Pe,Ee,e)}function Co(Pe){if(!zp(Pe)&&Xe(Pe.arguments,q)){const{target:Ot,thisArg:Xn}=t.createCallBinding(Pe.expression,l,p,!0);return Nr(dt(t.createFunctionApplyCall(J(N.checkDefined(nt(Ot,Ee,Zd))),Xn,vi(Pe.arguments)),Pe),Pe)}return xn(Pe,Ee,e)}function Ln(Pe){if(Xe(Pe.arguments,q)){const{target:Ot,thisArg:Xn}=t.createCallBinding(t.createPropertyAccessExpression(Pe.expression,"bind"),l);return Nr(dt(t.createNewExpression(t.createFunctionApplyCall(J(N.checkDefined(nt(Ot,Ee,yt))),Xn,vi(Pe.arguments,t.createVoidZero())),void 0,[]),Pe),Pe)}return xn(Pe,Ee,e)}function Ci(Pe,Ot=0){const Xn=Pe.length;for(let yo=Ot;yo<Xn;yo++)sn(Pe[yo])}function Ar(Pe){Ko(Pe)?Ci(Pe.statements):sn(Pe)}function sn(Pe){const Ot=R;R||(R=q(Pe)),tt(Pe),R=Ot}function tt(Pe){switch(Pe.kind){case 241:return zt(Pe);case 244:return Dn(Pe);case 245:return Qi(Pe);case 246:return Io(Pe);case 247:return ka(Pe);case 248:return wn(Pe);case 249:return mt(Pe);case 251:return Ct(Pe);case 252:return Fe(Pe);case 253:return j(Pe);case 254:return Rt(Pe);case 255:return Ye(Pe);case 256:return Gt(Pe);case 257:return fn(Pe);case 258:return hn(Pe);default:return Nl(nt(Pe,Ee,Hi))}}function zt(Pe){q(Pe)?Ci(Pe.statements):Nl(nt(Pe,Ee,Hi))}function Dn(Pe){Nl(nt(Pe,Ee,Hi))}function ci(Pe){for(const na of Pe.declarations){const Zl=t.cloneNode(na.name);ac(Zl,na.name),l(Zl)}const Ot=VC(Pe),Xn=Ot.length;let yo=0,$o=[];for(;yo<Xn;){for(let na=yo;na<Xn;na++){const Zl=Ot[na];if(q(Zl.initializer)&&$o.length>0)break;$o.push(yi(Zl))}$o.length&&(Nl(t.createExpressionStatement(t.inlineExpressions($o))),yo+=$o.length,$o=[])}}function yi(Pe){return Da(t.createAssignment(Da(t.cloneNode(Pe.name),Pe.name),N.checkDefined(nt(Pe.initializer,Ee,yt))),Pe)}function Qi(Pe){if(q(Pe))if(q(Pe.thenStatement)||q(Pe.elseStatement)){const Ot=Be(),Xn=Pe.elseStatement?Be():void 0;js(Pe.elseStatement?Xn:Ot,N.checkDefined(nt(Pe.expression,Ee,yt)),Pe.expression),Ar(Pe.thenStatement),Pe.elseStatement&&(wo(Ot),ke(Xn),Ar(Pe.elseStatement)),ke(Ot)}else Nl(nt(Pe,Ee,Hi));else Nl(nt(Pe,Ee,Hi))}function Io(Pe){if(q(Pe)){const Ot=Be(),Xn=Be();Mi(Ot),ke(Xn),Ar(Pe.statement),ke(Ot),nn(Xn,N.checkDefined(nt(Pe.expression,Ee,yt))),Ri()}else Nl(nt(Pe,Ee,Hi))}function fa(Pe){return R?(vo(),Pe=xn(Pe,Ee,e),Ri(),Pe):xn(Pe,Ee,e)}function ka(Pe){if(q(Pe)){const Ot=Be(),Xn=Mi(Ot);ke(Ot),js(Xn,N.checkDefined(nt(Pe.expression,Ee,yt))),Ar(Pe.statement),wo(Ot),Ri()}else Nl(nt(Pe,Ee,Hi))}function Tn(Pe){return R?(vo(),Pe=xn(Pe,Ee,e),Ri(),Pe):xn(Pe,Ee,e)}function wn(Pe){if(q(Pe)){const Ot=Be(),Xn=Be(),yo=Mi(Xn);if(Pe.initializer){const $o=Pe.initializer;Vc($o)?ci($o):Nl(dt(t.createExpressionStatement(N.checkDefined(nt($o,Ee,yt))),$o))}ke(Ot),Pe.condition&&js(yo,N.checkDefined(nt(Pe.condition,Ee,yt))),Ar(Pe.statement),ke(Xn),Pe.incrementor&&Nl(dt(t.createExpressionStatement(N.checkDefined(nt(Pe.incrementor,Ee,yt))),Pe.incrementor)),wo(Ot),Ri()}else Nl(nt(Pe,Ee,Hi))}function He(Pe){R&&vo();const Ot=Pe.initializer;if(Ot&&Vc(Ot)){for(const yo of Ot.declarations)l(yo.name);const Xn=VC(Ot);Pe=t.updateForStatement(Pe,Xn.length>0?t.inlineExpressions(Wt(Xn,yi)):void 0,nt(Pe.condition,Ee,yt),nt(Pe.incrementor,Ee,yt),xd(Pe.statement,Ee,e))}else Pe=xn(Pe,Ee,e);return R&&Ri(),Pe}function mt(Pe){if(q(Pe)){const Ot=fe(),Xn=fe(),yo=fe(),$o=t.createLoopVariable(),na=Pe.initializer;l($o),cl(Ot,N.checkDefined(nt(Pe.expression,Ee,yt))),cl(Xn,t.createArrayLiteralExpression()),Nl(t.createForInStatement(yo,Ot,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Xn,"push"),void 0,[yo])))),cl($o,t.createNumericLiteral(0));const Zl=Be(),yc=Be(),ul=Mi(yc);ke(Zl),js(ul,t.createLessThan($o,t.createPropertyAccessExpression(Xn,"length"))),cl(yo,t.createElementAccessExpression(Xn,$o)),js(yc,t.createBinaryExpression(yo,103,Ot));let vl;if(Vc(na)){for(const Gl of na.declarations)l(Gl.name);vl=t.cloneNode(na.declarations[0].name)}else vl=N.checkDefined(nt(na,Ee,yt)),N.assert(Zd(vl));cl(vl,yo),Ar(Pe.statement),ke(yc),Nl(t.createExpressionStatement(t.createPostfixIncrement($o))),wo(Zl),Ri()}else Nl(nt(Pe,Ee,Hi))}function ft(Pe){R&&vo();const Ot=Pe.initializer;if(Vc(Ot)){for(const Xn of Ot.declarations)l(Xn.name);Pe=t.updateForInStatement(Pe,Ot.declarations[0].name,N.checkDefined(nt(Pe.expression,Ee,yt)),N.checkDefined(nt(Pe.statement,Ee,Hi,t.liftToBlock)))}else Pe=xn(Pe,Ee,e);return R&&Ri(),Pe}function Ct(Pe){const Ot=da(Pe.label?Sr(Pe.label):void 0);Ot>0?wo(Ot,Pe):Nl(Pe)}function le(Pe){if(R){const Ot=da(Pe.label&&Sr(Pe.label));if(Ot>0)return Ca(Ot,Pe)}return xn(Pe,Ee,e)}function Fe(Pe){const Ot=ho(Pe.label?Sr(Pe.label):void 0);Ot>0?wo(Ot,Pe):Nl(Pe)}function pt(Pe){if(R){const Ot=ho(Pe.label&&Sr(Pe.label));if(Ot>0)return Ca(Ot,Pe)}return xn(Pe,Ee,e)}function j(Pe){Tp(nt(Pe.expression,Ee,yt),Pe)}function it(Pe){return ml(nt(Pe.expression,Ee,yt),Pe)}function Rt(Pe){q(Pe)?(Gn(J(N.checkDefined(nt(Pe.expression,Ee,yt)))),Ar(Pe.statement),qn()):Nl(nt(Pe,Ee,Hi))}function Ye(Pe){if(q(Pe.caseBlock)){const Ot=Pe.caseBlock,Xn=Ot.clauses.length,yo=xo(),$o=J(N.checkDefined(nt(Pe.expression,Ee,yt))),na=[];let Zl=-1;for(let vl=0;vl<Xn;vl++){const Gl=Ot.clauses[vl];na.push(Be()),Gl.kind===297&&Zl===-1&&(Zl=vl)}let yc=0,ul=[];for(;yc<Xn;){let vl=0;for(let Gl=yc;Gl<Xn;Gl++){const ec=Ot.clauses[Gl];if(ec.kind===296){if(q(ec.expression)&&ul.length>0)break;ul.push(t.createCaseClause(N.checkDefined(nt(ec.expression,Ee,yt)),[Ca(na[Gl],ec.expression)]))}else vl++}ul.length&&(Nl(t.createSwitchStatement($o,t.createCaseBlock(ul))),yc+=ul.length,ul=[]),vl>0&&(yc+=vl,vl=0)}Zl>=0?wo(na[Zl]):wo(yo);for(let vl=0;vl<Xn;vl++)ke(na[vl]),Ci(Ot.clauses[vl].statements);Nn()}else Nl(nt(Pe,Ee,Hi))}function _t(Pe){return R&&Jr(),Pe=xn(Pe,Ee,e),R&&Nn(),Pe}function Gt(Pe){q(Pe)?(Ql(Sr(Pe.label)),Ar(Pe.statement),ko()):Nl(nt(Pe,Ee,Hi))}function yn(Pe){return R&&Fs(Sr(Pe.label)),Pe=xn(Pe,Ee,e),R&&ko(),Pe}function fn(Pe){Ms(N.checkDefined(nt(Pe.expression??t.createVoidZero(),Ee,yt)),Pe)}function hn(Pe){q(Pe)?(Pi(),Ar(Pe.tryBlock),Pe.catchClause&&(xi(Pe.catchClause.variableDeclaration),Ar(Pe.catchClause.block)),Pe.finallyBlock&&(ir(),Ar(Pe.finallyBlock)),Vr()):Nl(xn(Pe,Ee,e))}function q(Pe){return!!Pe&&(Pe.transformFlags&1048576)!==0}function Oe(Pe){const Ot=Pe.length;for(let Xn=0;Xn<Ot;Xn++)if(q(Pe[Xn]))return Xn;return-1}function Lt(Pe,Ot){return Ot=m(Pe,Ot),Pe===1?L(Ot):Ot}function L(Pe){return Ve(Pe)?me(Pe):Pe}function me(Pe){if(!al(Pe)&&y&&y.has(Sr(Pe))){const Ot=Pl(Pe);if(Ve(Ot)&&Ot.parent){const Xn=h.getReferencedValueDeclaration(Ot);if(Xn){const yo=T[Wu(Xn)];if(yo){const $o=Ha(dt(t.cloneNode(yo),yo),yo.parent);return Da($o,Pe),ac($o,Pe),$o}}}}return Pe}function J(Pe){if(al(Pe)||Ga(Pe)&8192)return Pe;const Ot=t.createTempVariable(l);return cl(Ot,Pe,Pe),Ot}function fe(Pe){const Ot=Pe?t.createUniqueName(Pe):t.createTempVariable(void 0);return l(Ot),Ot}function Be(){K||(K=[]);const Pe=V;return V++,K[Pe]=-1,Pe}function ke(Pe){N.assert(K!==void 0,"No labels were defined."),K[Pe]=se?se.length:0}function Tt(Pe){M||(M=[],O=[],C=[],U=[]);const Ot=O.length;return O[Ot]=0,C[Ot]=se?se.length:0,M[Ot]=Pe,U.push(Pe),Ot}function kt(){const Pe=en();if(Pe===void 0)return N.fail("beginBlock was never called.");const Ot=O.length;return O[Ot]=1,C[Ot]=se?se.length:0,M[Ot]=Pe,U.pop(),Pe}function en(){return el(U)}function En(){const Pe=en();return Pe&&Pe.kind}function Gn(Pe){const Ot=Be(),Xn=Be();ke(Ot),Tt({kind:1,expression:Pe,startLabel:Ot,endLabel:Xn})}function qn(){N.assert(En()===1);const Pe=kt();ke(Pe.endLabel)}function Pi(){const Pe=Be(),Ot=Be();return ke(Pe),Tt({kind:0,state:0,startLabel:Pe,endLabel:Ot}),lc(),Ot}function xi(Pe){N.assert(En()===0);let Ot;if(al(Pe.name))Ot=Pe.name,l(Pe.name);else{const na=Sr(Pe.name);Ot=fe(na),y||(y=new Map,T=[],e.enableSubstitution(80)),y.set(na,!0),T[Wu(Pe)]=Ot}const Xn=en();N.assert(Xn.state<1);const yo=Xn.endLabel;wo(yo);const $o=Be();ke($o),Xn.state=1,Xn.catchVariable=Ot,Xn.catchLabel=$o,cl(Ot,t.createCallExpression(t.createPropertyAccessExpression(he,"sent"),void 0,[])),lc()}function ir(){N.assert(En()===0);const Pe=en();N.assert(Pe.state<2);const Ot=Pe.endLabel;wo(Ot);const Xn=Be();ke(Xn),Pe.state=2,Pe.finallyLabel=Xn}function Vr(){N.assert(En()===0);const Pe=kt();Pe.state<2?wo(Pe.endLabel):xc(),ke(Pe.endLabel),lc(),Pe.state=3}function vo(){Tt({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function Mi(Pe){const Ot=Be();return Tt({kind:3,isScript:!1,breakLabel:Ot,continueLabel:Pe}),Ot}function Ri(){N.assert(En()===3);const Pe=kt(),Ot=Pe.breakLabel;Pe.isScript||ke(Ot)}function Jr(){Tt({kind:2,isScript:!0,breakLabel:-1})}function xo(){const Pe=Be();return Tt({kind:2,isScript:!1,breakLabel:Pe}),Pe}function Nn(){N.assert(En()===2);const Pe=kt(),Ot=Pe.breakLabel;Pe.isScript||ke(Ot)}function Fs(Pe){Tt({kind:4,isScript:!0,labelText:Pe,breakLabel:-1})}function Ql(Pe){const Ot=Be();Tt({kind:4,isScript:!1,labelText:Pe,breakLabel:Ot})}function ko(){N.assert(En()===4);const Pe=kt();Pe.isScript||ke(Pe.breakLabel)}function cs(Pe){return Pe.kind===2||Pe.kind===3}function Vs(Pe){return Pe.kind===4}function gl(Pe){return Pe.kind===3}function cu(Pe,Ot){for(let Xn=Ot;Xn>=0;Xn--){const yo=U[Xn];if(Vs(yo)){if(yo.labelText===Pe)return!0}else break}return!1}function ho(Pe){if(U)if(Pe)for(let Ot=U.length-1;Ot>=0;Ot--){const Xn=U[Ot];if(Vs(Xn)&&Xn.labelText===Pe)return Xn.breakLabel;if(cs(Xn)&&cu(Pe,Ot-1))return Xn.breakLabel}else for(let Ot=U.length-1;Ot>=0;Ot--){const Xn=U[Ot];if(cs(Xn))return Xn.breakLabel}return 0}function da(Pe){if(U)if(Pe)for(let Ot=U.length-1;Ot>=0;Ot--){const Xn=U[Ot];if(gl(Xn)&&cu(Pe,Ot-1))return Xn.continueLabel}else for(let Ot=U.length-1;Ot>=0;Ot--){const Xn=U[Ot];if(gl(Xn))return Xn.continueLabel}return 0}function uu(Pe){if(Pe!==void 0&&Pe>0){Q===void 0&&(Q=[]);const Ot=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return Q[Pe]===void 0?Q[Pe]=[Ot]:Q[Pe].push(Ot),Ot}return t.createOmittedExpression()}function Ts(Pe){const Ot=t.createNumericLiteral(Pe);return lW(Ot,3,Yje(Pe)),Ot}function Ca(Pe,Ot){return N.assertLessThan(0,Pe,"Invalid label"),dt(t.createReturnStatement(t.createArrayLiteralExpression([Ts(3),uu(Pe)])),Ot)}function ml(Pe,Ot){return dt(t.createReturnStatement(t.createArrayLiteralExpression(Pe?[Ts(2),Pe]:[Ts(2)])),Ot)}function Lf(Pe){return dt(t.createCallExpression(t.createPropertyAccessExpression(he,"sent"),void 0,[]),Pe)}function lc(){ue(0)}function Nl(Pe){Pe?ue(1,[Pe]):lc()}function cl(Pe,Ot,Xn){ue(2,[Pe,Ot],Xn)}function wo(Pe,Ot){ue(3,[Pe],Ot)}function nn(Pe,Ot,Xn){ue(4,[Pe,Ot],Xn)}function js(Pe,Ot,Xn){ue(5,[Pe,Ot],Xn)}function tu(Pe,Ot){ue(7,[Pe],Ot)}function du(Pe,Ot){ue(6,[Pe],Ot)}function Tp(Pe,Ot){ue(8,[Pe],Ot)}function Ms(Pe,Ot){ue(9,[Pe],Ot)}function xc(){ue(10)}function ue(Pe,Ot,Xn){se===void 0&&(se=[],G=[],ne=[]),K===void 0&&ke(Be());const yo=se.length;se[yo]=Pe,G[yo]=Ot,ne[yo]=Xn}function Z(){ye=0,Y=0,X=void 0,oe=!1,pe=!1,Ce=void 0,de=void 0,ie=void 0,ve=void 0,Le=void 0;const Pe=we();return r().createGeneratorHelper(pr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,he)],void 0,t.createBlock(Pe,Pe.length>0)),1048576))}function we(){if(se){for(let Pe=0;Pe<se.length;Pe++)Yo(Pe);un(se.length)}else un(0);if(Ce){const Pe=t.createPropertyAccessExpression(he,"label"),Ot=t.createSwitchStatement(Pe,t.createCaseBlock(Ce));return[Xu(Ot)]}return de||[]}function Et(){de&&(vr(!oe),oe=!1,pe=!1,Y++)}function un(Pe){Er(Pe)&&(jr(Pe),Le=void 0,vc(void 0,void 0)),de&&Ce&&vr(!1),Di()}function Er(Pe){if(!pe)return!0;if(!K||!Q)return!1;for(let Ot=0;Ot<K.length;Ot++)if(K[Ot]===Pe&&Q[Ot])return!0;return!1}function vr(Pe){if(Ce||(Ce=[]),de){if(Le)for(let Ot=Le.length-1;Ot>=0;Ot--){const Xn=Le[Ot];de=[t.createWithStatement(Xn.expression,t.createBlock(de))]}if(ve){const{startLabel:Ot,catchLabel:Xn,finallyLabel:yo,endLabel:$o}=ve;de.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(he,"trys"),"push"),void 0,[t.createArrayLiteralExpression([uu(Ot),uu(Xn),uu(yo),uu($o)])]))),ve=void 0}Pe&&de.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(he,"label"),t.createNumericLiteral(Y+1))))}Ce.push(t.createCaseClause(t.createNumericLiteral(Y),de||[])),de=void 0}function jr(Pe){if(K)for(let Ot=0;Ot<K.length;Ot++)K[Ot]===Pe&&(Et(),X===void 0&&(X=[]),X[Y]===void 0?X[Y]=[Ot]:X[Y].push(Ot))}function Di(){if(Q!==void 0&&X!==void 0)for(let Pe=0;Pe<X.length;Pe++){const Ot=X[Pe];if(Ot!==void 0)for(const Xn of Ot){const yo=Q[Xn];if(yo!==void 0)for(const $o of yo)$o.text=String(Pe)}}}function Mr(Pe){if(M)for(;ye<O.length&&C[ye]<=Pe;ye++){const Ot=M[ye],Xn=O[ye];switch(Ot.kind){case 0:Xn===0?(ie||(ie=[]),de||(de=[]),ie.push(ve),ve=Ot):Xn===1&&(ve=ie.pop());break;case 1:Xn===0?(Le||(Le=[]),Le.push(Ot)):Xn===1&&Le.pop();break}}}function Yo(Pe){if(jr(Pe),Mr(Pe),oe)return;oe=!1,pe=!1;const Ot=se[Pe];if(Ot===0)return;if(Ot===10)return _d();const Xn=G[Pe];if(Ot===1)return Sl(Xn[0]);const yo=ne[Pe];switch(Ot){case 2:return jc(Xn[0],Xn[1],yo);case 3:return Es(Xn[0],yo);case 4:return Uc(Xn[0],Xn[1],yo);case 5:return ip(Xn[0],Xn[1],yo);case 6:return wc(Xn[0],yo);case 7:return sm(Xn[0],yo);case 8:return vc(Xn[0],yo);case 9:return Us(Xn[0],yo)}}function Sl(Pe){Pe&&(de?de.push(Pe):de=[Pe])}function jc(Pe,Ot,Xn){Sl(dt(t.createExpressionStatement(t.createAssignment(Pe,Ot)),Xn))}function Us(Pe,Ot){oe=!0,pe=!0,Sl(dt(t.createThrowStatement(Pe),Ot))}function vc(Pe,Ot){oe=!0,pe=!0,Sl(pr(dt(t.createReturnStatement(t.createArrayLiteralExpression(Pe?[Ts(2),Pe]:[Ts(2)])),Ot),768))}function Es(Pe,Ot){oe=!0,Sl(pr(dt(t.createReturnStatement(t.createArrayLiteralExpression([Ts(3),uu(Pe)])),Ot),768))}function Uc(Pe,Ot,Xn){Sl(pr(t.createIfStatement(Ot,pr(dt(t.createReturnStatement(t.createArrayLiteralExpression([Ts(3),uu(Pe)])),Xn),768)),1))}function ip(Pe,Ot,Xn){Sl(pr(t.createIfStatement(t.createLogicalNot(Ot),pr(dt(t.createReturnStatement(t.createArrayLiteralExpression([Ts(3),uu(Pe)])),Xn),768)),1))}function wc(Pe,Ot){oe=!0,Sl(pr(dt(t.createReturnStatement(t.createArrayLiteralExpression(Pe?[Ts(4),Pe]:[Ts(4)])),Ot),768))}function sm(Pe,Ot){oe=!0,Sl(pr(dt(t.createReturnStatement(t.createArrayLiteralExpression([Ts(5),Pe])),Ot),768))}function _d(){oe=!0,Sl(t.createReturnStatement(t.createArrayLiteralExpression([Ts(7)])))}}var $je=I({"src/compiler/transformers/generators.ts"(){ra()}});function qq(e){function t(q){switch(q){case 2:return se;case 3:return G;default:return V}}const{factory:r,getEmitHelperFactory:i,startLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.getEmitHost(),m=os(u),y=wu(u),T=e.onSubstituteNode,A=e.onEmitNode;e.onSubstituteNode=it,e.onEmitNode=j,e.enableSubstitution(213),e.enableSubstitution(215),e.enableSubstitution(80),e.enableSubstitution(226),e.enableSubstitution(304),e.enableEmitNotification(312);const R=[];let M,C;const O=[];let U;return Dm(e,K);function K(q){if(q.isDeclarationFile||!(RA(q,u)||q.transformFlags&8388608||Yf(q)&&P3(u)&&Ps(u)))return q;M=q,C=wq(e,q),R[Wu(q)]=C;const Lt=t(y)(q);return M=void 0,C=void 0,U=!1,Lt}function Q(){return!!(!C.exportEquals&&sc(M))}function V(q){o();const Oe=[],Lt=dd(u,"alwaysStrict")||!u.noImplicitUseStrict&&sc(M),L=r.copyPrologue(q.statements,Oe,Lt&&!Yf(q),X);if(Q()&&Rn(Oe,Ct()),Ne(C.exportedNames))for(let fe=0;fe<C.exportedNames.length;fe+=50)Rn(Oe,r.createExpressionStatement(rd(C.exportedNames.slice(fe,fe+50),(Be,ke)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Sr(ke))),Be),r.createVoidZero())));Rn(Oe,nt(C.externalHelpersImportDeclaration,X,Hi)),qr(Oe,jn(q.statements,X,Hi,L)),Y(Oe,!1),Yh(Oe,s());const me=r.updateSourceFile(q,dt(r.createNodeArray(Oe),q.statements));return zg(me,e.readEmitHelpers()),me}function se(q){const Oe=r.createIdentifier("define"),Lt=Qk(r,q,h,u),L=Yf(q)&&q,{aliasedModuleNames:me,unaliasedModuleNames:J,importAliasNames:fe}=ne(q,!0),Be=r.updateSourceFile(q,dt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Oe,void 0,[...Lt?[Lt]:[],r.createArrayLiteralExpression(L?et:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...me,...J]),L?L.statements.length?L.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...fe],void 0,ye(q))]))]),q.statements));return zg(Be,e.readEmitHelpers()),Be}function G(q){const{aliasedModuleNames:Oe,unaliasedModuleNames:Lt,importAliasNames:L}=ne(q,!1),me=Qk(r,q,h,u),J=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,dt(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),pr(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,[...me?[me]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...Oe,...Lt]),r.createIdentifier("factory")]))])))],!0),void 0)),fe=r.updateSourceFile(q,dt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(J,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...L],void 0,ye(q))]))]),q.statements));return zg(fe,e.readEmitHelpers()),fe}function ne(q,Oe){const Lt=[],L=[],me=[];for(const J of q.amdDependencies)J.name?(Lt.push(r.createStringLiteral(J.path)),me.push(r.createParameterDeclaration(void 0,void 0,J.name))):L.push(r.createStringLiteral(J.path));for(const J of C.externalImports){const fe=dI(r,J,M,h,p,u),Be=YR(r,J,M);fe&&(Oe&&Be?(pr(Be,8),Lt.push(fe),me.push(r.createParameterDeclaration(void 0,void 0,Be))):L.push(fe))}return{aliasedModuleNames:Lt,unaliasedModuleNames:L,importAliasNames:me}}function he(q){if(eu(q)||Yl(q)||!dI(r,q,M,h,p,u))return;const Oe=YR(r,q,M),Lt=Co(q,Oe);if(Lt!==Oe)return r.createExpressionStatement(r.createAssignment(Oe,Lt))}function ye(q){o();const Oe=[],Lt=r.copyPrologue(q.statements,Oe,!u.noImplicitUseStrict,X);Q()&&Rn(Oe,Ct()),Ne(C.exportedNames)&&Rn(Oe,r.createExpressionStatement(rd(C.exportedNames,(me,J)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Sr(J))),me),r.createVoidZero()))),Rn(Oe,nt(C.externalHelpersImportDeclaration,X,Hi)),y===2&&qr(Oe,eo(C.externalImports,he)),qr(Oe,jn(q.statements,X,Hi,Lt)),Y(Oe,!0),Yh(Oe,s());const L=r.createBlock(Oe,!0);return U&&qA(L,txe),L}function Y(q,Oe){if(C.exportEquals){const Lt=nt(C.exportEquals.expression,Ce,yt);if(Lt)if(Oe){const L=r.createReturnStatement(Lt);dt(L,C.exportEquals),pr(L,3840),q.push(L)}else{const L=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Lt));dt(L,C.exportEquals),pr(L,3072),q.push(L)}}}function X(q){switch(q.kind){case 272:return Ln(q);case 271:return Ar(q);case 278:return sn(q);case 277:return tt(q);default:return oe(q)}}function oe(q){switch(q.kind){case 243:return ci(q);case 262:return zt(q);case 263:return Dn(q);case 248:return Le(q,!0);case 249:return Ue(q);case 250:return Ee(q);case 246:return De(q);case 247:return Me(q);case 256:return We(q);case 254:return At(q);case 245:return Se(q);case 255:return je(q);case 269:return ot(q);case 296:return Bt(q);case 297:return vt(q);case 258:return $e(q);case 299:return It(q);case 241:return tn(q);default:return Ce(q)}}function pe(q,Oe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Le(q,!1);case 244:return rn(q);case 217:return Mn(q,Oe);case 360:return $n(q,Oe);case 213:if(zp(q)&&M.impliedNodeFormat===void 0)return Qt(q);break;case 226:if(Wv(q))return ve(q,Oe);break;case 224:case 225:return gn(q,Oe)}return xn(q,Ce,e)}function Ce(q){return pe(q,!1)}function de(q){return pe(q,!0)}function ie(q){if(La(q))for(const Oe of q.properties)switch(Oe.kind){case 303:if(ie(Oe.initializer))return!0;break;case 304:if(ie(Oe.name))return!0;break;case 305:if(ie(Oe.expression))return!0;break;case 174:case 177:case 178:return!1;default:N.assertNever(Oe,"Unhandled object member kind")}else if(fd(q)){for(const Oe of q.elements)if($m(Oe)){if(ie(Oe.expression))return!0}else if(ie(Oe))return!0}else if(Ve(q))return Ne(hn(q))>(tF(q)?1:0);return!1}function ve(q,Oe){return ie(q.left)?XS(q,Ce,e,0,!Oe,yi):xn(q,Ce,e)}function Le(q,Oe){if(Oe&&q.initializer&&Vc(q.initializer)&&!(q.initializer.flags&7)){const Lt=Tn(void 0,q.initializer,!1);if(Lt){const L=[],me=nt(q.initializer,de,Vc),J=r.createVariableStatement(void 0,me);L.push(J),qr(L,Lt);const fe=nt(q.condition,Ce,yt),Be=nt(q.incrementor,de,yt),ke=xd(q.statement,Oe?oe:Ce,e);return L.push(r.updateForStatement(q,void 0,fe,Be,ke)),L}}return r.updateForStatement(q,nt(q.initializer,de,Sf),nt(q.condition,Ce,yt),nt(q.incrementor,de,yt),xd(q.statement,Oe?oe:Ce,e))}function Ue(q){if(Vc(q.initializer)&&!(q.initializer.flags&7)){const Oe=Tn(void 0,q.initializer,!0);if(bt(Oe)){const Lt=nt(q.initializer,de,Sf),L=nt(q.expression,Ce,yt),me=xd(q.statement,oe,e),J=Ko(me)?r.updateBlock(me,[...Oe,...me.statements]):r.createBlock([...Oe,me],!0);return r.updateForInStatement(q,Lt,L,J)}}return r.updateForInStatement(q,nt(q.initializer,de,Sf),nt(q.expression,Ce,yt),xd(q.statement,oe,e))}function Ee(q){if(Vc(q.initializer)&&!(q.initializer.flags&7)){const Oe=Tn(void 0,q.initializer,!0),Lt=nt(q.initializer,de,Sf),L=nt(q.expression,Ce,yt);let me=xd(q.statement,oe,e);return bt(Oe)&&(me=Ko(me)?r.updateBlock(me,[...Oe,...me.statements]):r.createBlock([...Oe,me],!0)),r.updateForOfStatement(q,q.awaitModifier,Lt,L,me)}return r.updateForOfStatement(q,q.awaitModifier,nt(q.initializer,de,Sf),nt(q.expression,Ce,yt),xd(q.statement,oe,e))}function De(q){return r.updateDoStatement(q,xd(q.statement,oe,e),nt(q.expression,Ce,yt))}function Me(q){return r.updateWhileStatement(q,nt(q.expression,Ce,yt),xd(q.statement,oe,e))}function We(q){return r.updateLabeledStatement(q,q.label,N.checkDefined(nt(q.statement,oe,Hi,r.liftToBlock)))}function At(q){return r.updateWithStatement(q,nt(q.expression,Ce,yt),N.checkDefined(nt(q.statement,oe,Hi,r.liftToBlock)))}function Se(q){return r.updateIfStatement(q,nt(q.expression,Ce,yt),N.checkDefined(nt(q.thenStatement,oe,Hi,r.liftToBlock)),nt(q.elseStatement,oe,Hi,r.liftToBlock))}function je(q){return r.updateSwitchStatement(q,nt(q.expression,Ce,yt),N.checkDefined(nt(q.caseBlock,oe,yP)))}function ot(q){return r.updateCaseBlock(q,jn(q.clauses,oe,b4))}function Bt(q){return r.updateCaseClause(q,nt(q.expression,Ce,yt),jn(q.statements,oe,Hi))}function vt(q){return xn(q,oe,e)}function $e(q){return xn(q,oe,e)}function It(q){return r.updateCatchClause(q,q.variableDeclaration,N.checkDefined(nt(q.block,oe,Ko)))}function tn(q){return q=xn(q,oe,e),q}function rn(q){return r.updateExpressionStatement(q,nt(q.expression,de,yt))}function Mn(q,Oe){return r.updateParenthesizedExpression(q,nt(q.expression,Oe?de:Ce,yt))}function $n(q,Oe){return r.updatePartiallyEmittedExpression(q,nt(q.expression,Oe?de:Ce,yt))}function gn(q,Oe){if((q.operator===46||q.operator===47)&&Ve(q.operand)&&!al(q.operand)&&!Gg(q.operand)&&!rU(q.operand)){const Lt=hn(q.operand);if(Lt){let L,me=nt(q.operand,Ce,yt);Xy(q)?me=r.updatePrefixUnaryExpression(q,me):(me=r.updatePostfixUnaryExpression(q,me),Oe||(L=r.createTempVariable(l),me=r.createAssignment(L,me),dt(me,q)),me=r.createComma(me,r.cloneNode(q.operand)),dt(me,q));for(const J of Lt)O[as(me)]=!0,me=Fe(J,me),dt(me,q);return L&&(O[as(me)]=!0,me=r.createComma(me,L),dt(me,q)),me}}return xn(q,Ce,e)}function Qt(q){if(y===0&&m>=7)return xn(q,Ce,e);const Oe=dI(r,q,M,h,p,u),Lt=nt(Kc(q.arguments),Ce,yt),L=Oe&&(!Lt||!Na(Lt)||Lt.text!==Oe.text)?Oe:Lt,me=!!(q.transformFlags&16384);switch(u.module){case 2:return vi(L,me);case 3:return Yt(L??r.createVoidZero(),me);case 1:default:return so(L)}}function Yt(q,Oe){if(U=!0,c1(q)){const Lt=al(q)?q:Na(q)?r.createStringLiteralFromNode(q):pr(dt(r.cloneNode(q),q),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,so(q),void 0,vi(Lt,Oe))}else{const Lt=r.createTempVariable(l);return r.createComma(r.createAssignment(Lt,q),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,so(Lt,!0),void 0,vi(Lt,Oe)))}}function vi(q,Oe){const Lt=r.createUniqueName("resolve"),L=r.createUniqueName("reject"),me=[r.createParameterDeclaration(void 0,void 0,Lt),r.createParameterDeclaration(void 0,void 0,L)],J=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([q||r.createOmittedExpression()]),Lt,L]))]);let fe;m>=2?fe=r.createArrowFunction(void 0,void 0,me,void 0,void 0,J):(fe=r.createFunctionExpression(void 0,void 0,void 0,void 0,me,void 0,J),Oe&&pr(fe,16));const Be=r.createNewExpression(r.createIdentifier("Promise"),void 0,[fe]);return gh(u)?r.createCallExpression(r.createPropertyAccessExpression(Be,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Be}function so(q,Oe){const Lt=q&&!Ih(q)&&!Oe,L=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Lt?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(q,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[q])]:[]);let me=r.createCallExpression(r.createIdentifier("require"),void 0,Lt?[r.createIdentifier("s")]:q?[q]:[]);gh(u)&&(me=i().createImportStarHelper(me));const J=Lt?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let fe;return m>=2?fe=r.createArrowFunction(void 0,void 0,J,void 0,void 0,me):fe=r.createFunctionExpression(void 0,void 0,void 0,void 0,J,void 0,r.createBlock([r.createReturnStatement(me)])),r.createCallExpression(r.createPropertyAccessExpression(L,"then"),void 0,[fe])}function Wi(q,Oe){return!gh(u)||Em(q)&2?Oe:$se(q)?i().createImportStarHelper(Oe):Oe}function Co(q,Oe){return!gh(u)||Em(q)&2?Oe:UF(q)?i().createImportStarHelper(Oe):kq(q)?i().createImportDefaultHelper(Oe):Oe}function Ln(q){let Oe;const Lt=mR(q);if(y!==2)if(q.importClause){const L=[];Lt&&!NA(q)?L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,Co(q,Ci(q)))):(L.push(r.createVariableDeclaration(r.getGeneratedNameForNode(q),void 0,void 0,Co(q,Ci(q)))),Lt&&NA(q)&&L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)))),Oe=Rn(Oe,Nr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList(L,m>=2?2:0)),q),q))}else return Nr(dt(r.createExpressionStatement(Ci(q)),q),q);else Lt&&NA(q)&&(Oe=Rn(Oe,r.createVariableStatement(void 0,r.createVariableDeclarationList([Nr(dt(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)),q),q)],m>=2?2:0))));return Oe=Io(Oe,q),ah(Oe)}function Ci(q){const Oe=dI(r,q,M,h,p,u),Lt=[];return Oe&&Lt.push(Oe),r.createCallExpression(r.createIdentifier("require"),void 0,Lt)}function Ar(q){N.assert(c0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return y!==2?Qr(q,32)?Oe=Rn(Oe,Nr(dt(r.createExpressionStatement(Fe(q.name,Ci(q))),q),q)):Oe=Rn(Oe,Nr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(q.name),void 0,void 0,Ci(q))],m>=2?2:0)),q),q)):Qr(q,32)&&(Oe=Rn(Oe,Nr(dt(r.createExpressionStatement(Fe(r.getExportName(q),r.getLocalName(q))),q),q))),Oe=fa(Oe,q),ah(Oe)}function sn(q){if(!q.moduleSpecifier)return;const Oe=r.getGeneratedNameForNode(q);if(q.exportClause&&Nf(q.exportClause)){const Lt=[];y!==2&&Lt.push(Nr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Oe,void 0,void 0,Ci(q))])),q),q));for(const L of q.exportClause.elements)if(m===0)Lt.push(Nr(dt(r.createExpressionStatement(i().createCreateBindingHelper(Oe,r.createStringLiteralFromNode(L.propertyName||L.name),L.propertyName?r.createStringLiteralFromNode(L.name):void 0)),L),L));else{const me=!!gh(u)&&!(Em(q)&2)&&Sr(L.propertyName||L.name)==="default",J=r.createPropertyAccessExpression(me?i().createImportDefaultHelper(Oe):Oe,L.propertyName||L.name);Lt.push(Nr(dt(r.createExpressionStatement(Fe(r.getExportName(L),J,void 0,!0)),L),L))}return ah(Lt)}else if(q.exportClause){const Lt=[];return Lt.push(Nr(dt(r.createExpressionStatement(Fe(r.cloneNode(q.exportClause.name),Wi(q,y!==2?Ci(q):P4(q)?Oe:r.createIdentifier(Sr(q.exportClause.name))))),q),q)),ah(Lt)}else return Nr(dt(r.createExpressionStatement(i().createExportStarHelper(y!==2?Ci(q):Oe)),q),q)}function tt(q){if(!q.isExportEquals)return le(r.createIdentifier("default"),nt(q.expression,Ce,yt),q,!0)}function zt(q){let Oe;return Qr(q,32)?Oe=Rn(Oe,Nr(dt(r.createFunctionDeclaration(jn(q.modifiers,pt,Aa),q.asteriskToken,r.getDeclarationName(q,!0,!0),void 0,jn(q.parameters,Ce,Ao),void 0,xn(q.body,Ce,e)),q),q)):Oe=Rn(Oe,xn(q,Ce,e)),Oe=He(Oe,q),ah(Oe)}function Dn(q){let Oe;return Qr(q,32)?Oe=Rn(Oe,Nr(dt(r.createClassDeclaration(jn(q.modifiers,pt,sl),r.getDeclarationName(q,!0,!0),void 0,jn(q.heritageClauses,Ce,nf),jn(q.members,Ce,Yc)),q),q)):Oe=Rn(Oe,xn(q,Ce,e)),Oe=He(Oe,q),ah(Oe)}function ci(q){let Oe,Lt,L;if(Qr(q,32)){let me,J=!1;for(const fe of q.declarationList.declarations)if(Ve(fe.name)&&Gg(fe.name))if(me||(me=jn(q.modifiers,pt,Aa)),fe.initializer){const Be=r.updateVariableDeclaration(fe,fe.name,void 0,void 0,Fe(fe.name,nt(fe.initializer,Ce,yt)));Lt=Rn(Lt,Be)}else Lt=Rn(Lt,fe);else if(fe.initializer)if(!ta(fe.name)&&(Gs(fe.initializer)||Os(fe.initializer)||Qc(fe.initializer))){const Be=r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),fe.name),fe.name),r.createIdentifier(Qf(fe.name))),ke=r.createVariableDeclaration(fe.name,fe.exclamationToken,fe.type,nt(fe.initializer,Ce,yt));Lt=Rn(Lt,ke),L=Rn(L,Be),J=!0}else L=Rn(L,Qi(fe));if(Lt&&(Oe=Rn(Oe,r.updateVariableStatement(q,me,r.updateVariableDeclarationList(q.declarationList,Lt)))),L){const fe=Nr(dt(r.createExpressionStatement(r.inlineExpressions(L)),q),q);J&&Pk(fe),Oe=Rn(Oe,fe)}}else Oe=Rn(Oe,xn(q,Ce,e));return Oe=ka(Oe,q),ah(Oe)}function yi(q,Oe,Lt){const L=hn(q);if(L){let me=tF(q)?Oe:r.createAssignment(q,Oe);for(const J of L)pr(me,8),me=Fe(J,me,Lt);return me}return r.createAssignment(q,Oe)}function Qi(q){return ta(q.name)?XS(nt(q,Ce,dk),Ce,e,0,!1,yi):r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),q.name),q.name),q.initializer?nt(q.initializer,Ce,yt):r.createVoidZero())}function Io(q,Oe){if(C.exportEquals)return q;const Lt=Oe.importClause;if(!Lt)return q;const L=new gI;Lt.name&&(q=mt(q,L,Lt));const me=Lt.namedBindings;if(me)switch(me.kind){case 274:q=mt(q,L,me);break;case 275:for(const J of me.elements)q=mt(q,L,J,!0);break}return q}function fa(q,Oe){return C.exportEquals?q:mt(q,new gI,Oe)}function ka(q,Oe){return Tn(q,Oe.declarationList,!1)}function Tn(q,Oe,Lt){if(C.exportEquals)return q;for(const L of Oe.declarations)q=wn(q,L,Lt);return q}function wn(q,Oe,Lt){if(C.exportEquals)return q;if(ta(Oe.name))for(const L of Oe.name.elements)Gc(L)||(q=wn(q,L,Lt));else!al(Oe.name)&&(!Oi(Oe)||Oe.initializer||Lt)&&(q=mt(q,new gI,Oe));return q}function He(q,Oe){if(C.exportEquals)return q;const Lt=new gI;if(Qr(Oe,32)){const L=Qr(Oe,2048)?r.createIdentifier("default"):r.getDeclarationName(Oe);q=ft(q,Lt,L,r.getLocalName(Oe),Oe)}return Oe.name&&(q=mt(q,Lt,Oe)),q}function mt(q,Oe,Lt,L){const me=r.getDeclarationName(Lt),J=C.exportSpecifiers.get(me);if(J)for(const fe of J)q=ft(q,Oe,fe.name,me,fe.name,void 0,L);return q}function ft(q,Oe,Lt,L,me,J,fe){return Oe.has(Lt)||(Oe.set(Lt,!0),q=Rn(q,le(Lt,L,me,J,fe))),q}function Ct(){let q;return m===0?q=r.createExpressionStatement(Fe(r.createIdentifier("__esModule"),r.createTrue())):q=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),pr(q,2097152),q}function le(q,Oe,Lt,L,me){const J=dt(r.createExpressionStatement(Fe(q,Oe,void 0,me)),Lt);return Xu(J),L||pr(J,3072),J}function Fe(q,Oe,Lt,L){return dt(L&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(q),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(Oe)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),Oe),Lt)}function pt(q){switch(q.kind){case 95:case 90:return}return q}function j(q,Oe,Lt){Oe.kind===312?(M=Oe,C=R[Wu(M)],A(q,Oe,Lt),M=void 0,C=void 0):A(q,Oe,Lt)}function it(q,Oe){return Oe=T(q,Oe),Oe.id&&O[Oe.id]?Oe:q===1?Ye(Oe):np(Oe)?Rt(Oe):Oe}function Rt(q){const Oe=q.name,Lt=yn(Oe);if(Lt!==Oe){if(q.objectAssignmentInitializer){const L=r.createAssignment(Lt,q.objectAssignmentInitializer);return dt(r.createPropertyAssignment(Oe,L),q)}return dt(r.createPropertyAssignment(Oe,Lt),q)}return q}function Ye(q){switch(q.kind){case 80:return yn(q);case 213:return _t(q);case 215:return Gt(q);case 226:return fn(q)}return q}function _t(q){if(Ve(q.expression)){const Oe=yn(q.expression);if(O[as(Oe)]=!0,!Ve(Oe)&&!(Ga(q.expression)&8192))return UA(r.updateCallExpression(q,Oe,void 0,q.arguments),16)}return q}function Gt(q){if(Ve(q.tag)){const Oe=yn(q.tag);if(O[as(Oe)]=!0,!Ve(Oe)&&!(Ga(q.tag)&8192))return UA(r.updateTaggedTemplateExpression(q,Oe,void 0,q.template),16)}return q}function yn(q){var Oe,Lt;if(Ga(q)&8192){const L=$k(M);return L?r.createPropertyAccessExpression(L,q):q}else if(!(al(q)&&!(q.emitNode.autoGenerate.flags&64))&&!Gg(q)){const L=p.getReferencedExportContainer(q,tF(q));if(L&&L.kind===312)return dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),q);const me=p.getReferencedImportDeclaration(q);if(me){if(bh(me))return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(me.parent),r.createIdentifier("default")),q);if(tp(me)){const J=me.propertyName||me.name;return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Lt=(Oe=me.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||me),r.cloneNode(J)),q)}}}return q}function fn(q){if(Ov(q.operatorToken.kind)&&Ve(q.left)&&(!al(q.left)||cL(q.left))&&!Gg(q.left)){const Oe=hn(q.left);if(Oe){let Lt=q;for(const L of Oe)O[as(Lt)]=!0,Lt=Fe(L,Lt,q);return Lt}}return q}function hn(q){if(al(q)){if(cL(q)){const Oe=C==null?void 0:C.exportSpecifiers.get(q);if(Oe){const Lt=[];for(const L of Oe)Lt.push(L.name);return Lt}}}else{const Oe=p.getReferencedImportDeclaration(q);if(Oe)return C==null?void 0:C.exportedBindings[Wu(Oe)];const Lt=new Set,L=p.getReferencedValueDeclarations(q);if(L){for(const me of L){const J=C==null?void 0:C.exportedBindings[Wu(me)];if(J)for(const fe of J)Lt.add(fe)}if(Lt.size)return zo(Lt)}}}}var txe,Qje=I({"src/compiler/transformers/module/module.ts"(){ra(),txe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Cle(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),p=e.onSubstituteNode,h=e.onEmitNode;e.onSubstituteNode=Fe,e.onEmitNode=le,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const m=[],y=[],T=[],A=[];let R,M,C,O,U,K,Q;return Dm(e,V);function V(q){if(q.isDeclarationFile||!(RA(q,s)||q.transformFlags&8388608))return q;const Oe=Wu(q);R=q,K=q,M=m[Oe]=wq(e,q),C=t.createUniqueName("exports"),y[Oe]=C,O=A[Oe]=t.createUniqueName("context");const Lt=se(M.externalImports),L=G(q,Lt),me=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,C),t.createParameterDeclaration(void 0,void 0,O)],void 0,L),J=Qk(t,q,u,s),fe=t.createArrayLiteralExpression(Wt(Lt,ke=>ke.name)),Be=pr(t.updateSourceFile(q,dt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,J?[J,fe,me]:[fe,me]))]),q.statements)),2048);return Ps(s)||Koe(Be,L,ke=>!ke.scoped),Q&&(T[Oe]=Q,Q=void 0),R=void 0,M=void 0,C=void 0,O=void 0,U=void 0,K=void 0,Be}function se(q){const Oe=new Map,Lt=[];for(const L of q){const me=dI(t,L,R,u,l,s);if(me){const J=me.text,fe=Oe.get(J);fe!==void 0?Lt[fe].externalImports.push(L):(Oe.set(J,Lt.length),Lt.push({name:me,externalImports:[L]}))}}return Lt}function G(q,Oe){const Lt=[];r();const L=dd(s,"alwaysStrict")||!s.noImplicitUseStrict&&sc(R),me=t.copyPrologue(q.statements,Lt,L,Y);Lt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(O,t.createPropertyAccessExpression(O,"id")))]))),nt(M.externalHelpersImportDeclaration,Y,Hi);const J=jn(q.statements,Y,Hi,me);qr(Lt,U),Yh(Lt,i());const fe=ne(Lt),Be=q.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,ke=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ye(fe,Oe)),t.createPropertyAssignment("execute",t.createFunctionExpression(Be,void 0,void 0,void 0,[],void 0,t.createBlock(J,!0)))],!0);return Lt.push(t.createReturnStatement(ke)),t.createBlock(Lt,!0)}function ne(q){if(!M.hasExportStarsToExportValues)return;if(!M.exportedNames&&M.exportSpecifiers.size===0){let me=!1;for(const J of M.externalImports)if(J.kind===278&&J.exportClause){me=!0;break}if(!me){const J=he(void 0);return q.push(J),J.name}}const Oe=[];if(M.exportedNames)for(const me of M.exportedNames)me.escapedText!=="default"&&Oe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(me),t.createTrue()));const Lt=t.createUniqueName("exportedNames");q.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Lt,void 0,void 0,t.createObjectLiteralExpression(Oe,!0))])));const L=he(Lt);return q.push(L),L.name}function he(q){const Oe=t.createUniqueName("exportStar"),Lt=t.createIdentifier("m"),L=t.createIdentifier("n"),me=t.createIdentifier("exports");let J=t.createStrictInequality(L,t.createStringLiteral("default"));return q&&(J=t.createLogicalAnd(J,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(q,"hasOwnProperty"),void 0,[L])))),t.createFunctionDeclaration(void 0,void 0,Oe,void 0,[t.createParameterDeclaration(void 0,void 0,Lt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(me,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(L)]),Lt,t.createBlock([pr(t.createIfStatement(J,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(me,L),t.createElementAccessExpression(Lt,L)))),1)])),t.createExpressionStatement(t.createCallExpression(C,void 0,[me]))],!0))}function ye(q,Oe){const Lt=[];for(const L of Oe){const me=Xe(L.externalImports,Be=>YR(t,Be,R)),J=me?t.getGeneratedNameForNode(me):t.createUniqueName(""),fe=[];for(const Be of L.externalImports){const ke=YR(t,Be,R);switch(Be.kind){case 272:if(!Be.importClause)break;case 271:N.assert(ke!==void 0),fe.push(t.createExpressionStatement(t.createAssignment(ke,J))),Qr(Be,32)&&fe.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createStringLiteral(Sr(ke)),J])));break;case 278:if(N.assert(ke!==void 0),Be.exportClause)if(Nf(Be.exportClause)){const Tt=[];for(const kt of Be.exportClause.elements)Tt.push(t.createPropertyAssignment(t.createStringLiteral(Sr(kt.name)),t.createElementAccessExpression(J,t.createStringLiteral(Sr(kt.propertyName||kt.name)))));fe.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createObjectLiteralExpression(Tt,!0)])))}else fe.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createStringLiteral(Sr(Be.exportClause.name)),J])));else fe.push(t.createExpressionStatement(t.createCallExpression(q,void 0,[J])));break}}Lt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,J)],void 0,t.createBlock(fe,!0)))}return t.createArrayLiteralExpression(Lt,!0)}function Y(q){switch(q.kind){case 272:return X(q);case 271:return pe(q);case 278:return oe(q);case 277:return Ce(q);default:return rn(q)}}function X(q){let Oe;return q.importClause&&o(YR(t,q,R)),ah(At(Oe,q))}function oe(q){N.assertIsDefined(q)}function pe(q){N.assert(c0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return o(YR(t,q,R)),ah(Se(Oe,q))}function Ce(q){if(q.isExportEquals)return;const Oe=nt(q.expression,Qi,yt);return It(t.createIdentifier("default"),Oe,!0)}function de(q){Qr(q,32)?U=Rn(U,t.updateFunctionDeclaration(q,jn(q.modifiers,Ct,sl),q.asteriskToken,t.getDeclarationName(q,!0,!0),void 0,jn(q.parameters,Qi,Ao),void 0,nt(q.body,Qi,Ko))):U=Rn(U,xn(q,Qi,e)),U=Bt(U,q)}function ie(q){let Oe;const Lt=t.getLocalName(q);return o(Lt),Oe=Rn(Oe,dt(t.createExpressionStatement(t.createAssignment(Lt,dt(t.createClassExpression(jn(q.modifiers,Ct,sl),q.name,void 0,jn(q.heritageClauses,Qi,nf),jn(q.members,Qi,Yc)),q))),q)),Oe=Bt(Oe,q),ah(Oe)}function ve(q){if(!Ue(q.declarationList))return nt(q,Qi,Hi);let Oe;if(RL(q.declarationList)||xL(q.declarationList)){const Lt=jn(q.modifiers,Ct,sl),L=[];for(const J of q.declarationList.declarations)L.push(t.updateVariableDeclaration(J,t.getGeneratedNameForNode(J.name),void 0,void 0,Ee(J,!1)));const me=t.updateVariableDeclarationList(q.declarationList,L);Oe=Rn(Oe,t.updateVariableStatement(q,Lt,me))}else{let Lt;const L=Qr(q,32);for(const me of q.declarationList.declarations)me.initializer?Lt=Rn(Lt,Ee(me,L)):Le(me);Lt&&(Oe=Rn(Oe,dt(t.createExpressionStatement(t.inlineExpressions(Lt)),q)))}return Oe=je(Oe,q,!1),ah(Oe)}function Le(q){if(ta(q.name))for(const Oe of q.name.elements)Gc(Oe)||Le(Oe);else o(t.cloneNode(q.name))}function Ue(q){return(Ga(q)&4194304)===0&&(K.kind===312||(Pl(q).flags&7)===0)}function Ee(q,Oe){const Lt=Oe?De:Me;return ta(q.name)?XS(q,Qi,e,0,!1,Lt):q.initializer?Lt(q.name,nt(q.initializer,Qi,yt)):q.name}function De(q,Oe,Lt){return We(q,Oe,Lt,!0)}function Me(q,Oe,Lt){return We(q,Oe,Lt,!1)}function We(q,Oe,Lt,L){return o(t.cloneNode(q)),L?tn(q,fn(dt(t.createAssignment(q,Oe),Lt))):fn(dt(t.createAssignment(q,Oe),Lt))}function At(q,Oe){if(M.exportEquals)return q;const Lt=Oe.importClause;if(!Lt)return q;Lt.name&&(q=vt(q,Lt));const L=Lt.namedBindings;if(L)switch(L.kind){case 274:q=vt(q,L);break;case 275:for(const me of L.elements)q=vt(q,me);break}return q}function Se(q,Oe){return M.exportEquals?q:vt(q,Oe)}function je(q,Oe,Lt){if(M.exportEquals)return q;for(const L of Oe.declarationList.declarations)(L.initializer||Lt)&&(q=ot(q,L));return q}function ot(q,Oe,Lt){if(M.exportEquals)return q;if(ta(Oe.name))for(const L of Oe.name.elements)Gc(L)||(q=ot(q,L));else al(Oe.name)||(q=vt(q,Oe,void 0));return q}function Bt(q,Oe){if(M.exportEquals)return q;let Lt;if(Qr(Oe,32)){const L=Qr(Oe,2048)?t.createStringLiteral("default"):Oe.name;q=$e(q,L,t.getLocalName(Oe)),Lt=Qf(L)}return Oe.name&&(q=vt(q,Oe,Lt)),q}function vt(q,Oe,Lt){if(M.exportEquals)return q;const L=t.getDeclarationName(Oe),me=M.exportSpecifiers.get(L);if(me)for(const J of me)J.name.escapedText!==Lt&&(q=$e(q,J.name,L));return q}function $e(q,Oe,Lt,L){return q=Rn(q,It(Oe,Lt,L)),q}function It(q,Oe,Lt){const L=t.createExpressionStatement(tn(q,Oe));return Xu(L),Lt||pr(L,3072),L}function tn(q,Oe){const Lt=Ve(q)?t.createStringLiteralFromNode(q):q;return pr(Oe,Ga(Oe)|3072),ac(t.createCallExpression(C,void 0,[Lt,Oe]),Oe)}function rn(q){switch(q.kind){case 243:return ve(q);case 262:return de(q);case 263:return ie(q);case 248:return Mn(q,!0);case 249:return $n(q);case 250:return gn(q);case 246:return vi(q);case 247:return so(q);case 256:return Wi(q);case 254:return Co(q);case 245:return Ln(q);case 255:return Ci(q);case 269:return Ar(q);case 296:return sn(q);case 297:return tt(q);case 258:return zt(q);case 299:return Dn(q);case 241:return ci(q);default:return Qi(q)}}function Mn(q,Oe){const Lt=K;return K=q,q=t.updateForStatement(q,nt(q.initializer,Oe?Yt:Io,Sf),nt(q.condition,Qi,yt),nt(q.incrementor,Io,yt),xd(q.statement,Oe?rn:Qi,e)),K=Lt,q}function $n(q){const Oe=K;return K=q,q=t.updateForInStatement(q,Yt(q.initializer),nt(q.expression,Qi,yt),xd(q.statement,rn,e)),K=Oe,q}function gn(q){const Oe=K;return K=q,q=t.updateForOfStatement(q,q.awaitModifier,Yt(q.initializer),nt(q.expression,Qi,yt),xd(q.statement,rn,e)),K=Oe,q}function Qt(q){return Vc(q)&&Ue(q)}function Yt(q){if(Qt(q)){let Oe;for(const Lt of q.declarations)Oe=Rn(Oe,Ee(Lt,!1)),Lt.initializer||Le(Lt);return Oe?t.inlineExpressions(Oe):t.createOmittedExpression()}else return nt(q,Io,Sf)}function vi(q){return t.updateDoStatement(q,xd(q.statement,rn,e),nt(q.expression,Qi,yt))}function so(q){return t.updateWhileStatement(q,nt(q.expression,Qi,yt),xd(q.statement,rn,e))}function Wi(q){return t.updateLabeledStatement(q,q.label,N.checkDefined(nt(q.statement,rn,Hi,t.liftToBlock)))}function Co(q){return t.updateWithStatement(q,nt(q.expression,Qi,yt),N.checkDefined(nt(q.statement,rn,Hi,t.liftToBlock)))}function Ln(q){return t.updateIfStatement(q,nt(q.expression,Qi,yt),N.checkDefined(nt(q.thenStatement,rn,Hi,t.liftToBlock)),nt(q.elseStatement,rn,Hi,t.liftToBlock))}function Ci(q){return t.updateSwitchStatement(q,nt(q.expression,Qi,yt),N.checkDefined(nt(q.caseBlock,rn,yP)))}function Ar(q){const Oe=K;return K=q,q=t.updateCaseBlock(q,jn(q.clauses,rn,b4)),K=Oe,q}function sn(q){return t.updateCaseClause(q,nt(q.expression,Qi,yt),jn(q.statements,rn,Hi))}function tt(q){return xn(q,rn,e)}function zt(q){return xn(q,rn,e)}function Dn(q){const Oe=K;return K=q,q=t.updateCatchClause(q,q.variableDeclaration,N.checkDefined(nt(q.block,rn,Ko))),K=Oe,q}function ci(q){const Oe=K;return K=q,q=xn(q,rn,e),K=Oe,q}function yi(q,Oe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Mn(q,!1);case 244:return fa(q);case 217:return ka(q,Oe);case 360:return Tn(q,Oe);case 226:if(Wv(q))return He(q,Oe);break;case 213:if(zp(q))return wn(q);break;case 224:case 225:return ft(q,Oe)}return xn(q,Qi,e)}function Qi(q){return yi(q,!1)}function Io(q){return yi(q,!0)}function fa(q){return t.updateExpressionStatement(q,nt(q.expression,Io,yt))}function ka(q,Oe){return t.updateParenthesizedExpression(q,nt(q.expression,Oe?Io:Qi,yt))}function Tn(q,Oe){return t.updatePartiallyEmittedExpression(q,nt(q.expression,Oe?Io:Qi,yt))}function wn(q){const Oe=dI(t,q,R,u,l,s),Lt=nt(Kc(q.arguments),Qi,yt),L=Oe&&(!Lt||!Na(Lt)||Lt.text!==Oe.text)?Oe:Lt;return t.createCallExpression(t.createPropertyAccessExpression(O,t.createIdentifier("import")),void 0,L?[L]:[])}function He(q,Oe){return mt(q.left)?XS(q,Qi,e,0,!Oe):xn(q,Qi,e)}function mt(q){if(Pc(q,!0))return mt(q.left);if($m(q))return mt(q.expression);if(La(q))return bt(q.properties,mt);if(fd(q))return bt(q.elements,mt);if(np(q))return mt(q.name);if(hc(q))return mt(q.initializer);if(Ve(q)){const Oe=l.getReferencedExportContainer(q);return Oe!==void 0&&Oe.kind===312}else return!1}function ft(q,Oe){if((q.operator===46||q.operator===47)&&Ve(q.operand)&&!al(q.operand)&&!Gg(q.operand)&&!rU(q.operand)){const Lt=Gt(q.operand);if(Lt){let L,me=nt(q.operand,Qi,yt);Xy(q)?me=t.updatePrefixUnaryExpression(q,me):(me=t.updatePostfixUnaryExpression(q,me),Oe||(L=t.createTempVariable(o),me=t.createAssignment(L,me),dt(me,q)),me=t.createComma(me,t.cloneNode(q.operand)),dt(me,q));for(const J of Lt)me=tn(J,fn(me));return L&&(me=t.createComma(me,L),dt(me,q)),me}}return xn(q,Qi,e)}function Ct(q){switch(q.kind){case 95:case 90:return}return q}function le(q,Oe,Lt){if(Oe.kind===312){const L=Wu(Oe);R=Oe,M=m[L],C=y[L],Q=T[L],O=A[L],Q&&delete T[L],h(q,Oe,Lt),R=void 0,M=void 0,C=void 0,O=void 0,Q=void 0}else h(q,Oe,Lt)}function Fe(q,Oe){return Oe=p(q,Oe),hn(Oe)?Oe:q===1?it(Oe):q===4?pt(Oe):Oe}function pt(q){switch(q.kind){case 304:return j(q)}return q}function j(q){var Oe,Lt;const L=q.name;if(!al(L)&&!Gg(L)){const me=l.getReferencedImportDeclaration(L);if(me){if(bh(me))return dt(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(me.parent),t.createIdentifier("default"))),q);if(tp(me))return dt(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=me.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||me),t.cloneNode(me.propertyName||me.name))),q)}}return q}function it(q){switch(q.kind){case 80:return Rt(q);case 226:return Ye(q);case 236:return _t(q)}return q}function Rt(q){var Oe,Lt;if(Ga(q)&8192){const L=$k(R);return L?t.createPropertyAccessExpression(L,q):q}if(!al(q)&&!Gg(q)){const L=l.getReferencedImportDeclaration(q);if(L){if(bh(L))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(L.parent),t.createIdentifier("default")),q);if(tp(L))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=L.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||L),t.cloneNode(L.propertyName||L.name)),q)}}return q}function Ye(q){if(Ov(q.operatorToken.kind)&&Ve(q.left)&&(!al(q.left)||cL(q.left))&&!Gg(q.left)){const Oe=Gt(q.left);if(Oe){let Lt=q;for(const L of Oe)Lt=tn(L,fn(Lt));return Lt}}return q}function _t(q){return oR(q)?t.createPropertyAccessExpression(O,t.createIdentifier("meta")):q}function Gt(q){let Oe;const Lt=yn(q);if(Lt){const L=l.getReferencedExportContainer(q,!1);L&&L.kind===312&&(Oe=Rn(Oe,t.getDeclarationName(Lt))),Oe=qr(Oe,M==null?void 0:M.exportedBindings[Wu(Lt)])}else if(al(q)&&cL(q)){const L=M==null?void 0:M.exportSpecifiers.get(q);if(L){const me=[];for(const J of L)me.push(J.name);return me}}return Oe}function yn(q){if(!al(q)){const Oe=l.getReferencedImportDeclaration(q);if(Oe)return Oe;const Lt=l.getReferencedValueDeclaration(q);if(Lt&&(M!=null&&M.exportedBindings[Wu(Lt)]))return Lt;const L=l.getReferencedValueDeclarations(q);if(L){for(const me of L)if(me!==Lt&&(M!=null&&M.exportedBindings[Wu(me)]))return me}return Lt}}function fn(q){return Q===void 0&&(Q=[]),Q[as(q)]=!0,q}function hn(q){return Q&&q.id&&Q[q.id]}}var Zje=I({"src/compiler/transformers/module/system.ts"(){ra()}});function Jq(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=os(s),u=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=Q,e.onSubstituteNode=V,e.enableEmitNotification(312),e.enableSubstitution(80);let h,m,y;return Dm(e,T);function T(G){if(G.isDeclarationFile)return G;if(sc(G)||rm(s)){m=G,y=void 0;let ne=A(G);return m=void 0,y&&(ne=t.updateSourceFile(ne,dt(t.createNodeArray(XV(ne.statements.slice(),y)),ne.statements))),!sc(G)||wu(s)===200||bt(ne.statements,mL)?ne:t.updateSourceFile(ne,dt(t.createNodeArray([...ne.statements,Kk(t)]),ne.statements))}return G}function A(G){const ne=xH(t,r(),G,s);if(ne){const he=[],ye=t.copyPrologue(G.statements,he);return Rn(he,ne),qr(he,jn(G.statements,R,Hi,ye)),t.updateSourceFile(G,dt(t.createNodeArray(he),G.statements))}else return xn(G,R,e)}function R(G){switch(G.kind){case 271:return wu(s)>=100?C(G):void 0;case 277:return U(G);case 278:return K(G)}return G}function M(G){const ne=dI(t,G,N.checkDefined(m),i,o,s),he=[];if(ne&&he.push(ne),wu(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,he);if(!y){const Y=t.createUniqueName("_createRequire",48),X=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),Y)])),t.createStringLiteral("module"),void 0),oe=t.createUniqueName("__require",48),pe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(oe,void 0,void 0,t.createCallExpression(t.cloneNode(Y),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));y=[X,pe]}const ye=y[1].declarationList.declarations[0].name;return N.assertNode(ye,Ve),t.createCallExpression(t.cloneNode(ye),void 0,he)}function C(G){N.assert(c0(G),"import= for internal module references should be handled in an earlier transformer.");let ne;return ne=Rn(ne,Nr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(G.name),void 0,void 0,M(G))],l>=2?2:0)),G),G)),ne=O(ne,G),ah(ne)}function O(G,ne){return Qr(ne,32)&&(G=Rn(G,t.createExportDeclaration(void 0,ne.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Sr(ne.name))])))),G}function U(G){return G.isExportEquals?wu(s)===200?Nr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),G.expression)),G):void 0:G}function K(G){if(s.module!==void 0&&s.module>5||!G.exportClause||!Eh(G.exportClause)||!G.moduleSpecifier)return G;const ne=G.exportClause.name,he=t.getGeneratedNameForNode(ne),ye=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(he)),G.moduleSpecifier,G.attributes);Nr(ye,G.exportClause);const Y=P4(G)?t.createExportDefault(he):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,he,ne)]));return Nr(Y,G),[ye,Y]}function Q(G,ne,he){$i(ne)?((sc(ne)||rm(s))&&s.importHelpers&&(h=new Map),u(G,ne,he),h=void 0):u(G,ne,he)}function V(G,ne){return ne=p(G,ne),h&&Ve(ne)&&Ga(ne)&8192?se(ne):ne}function se(G){const ne=Sr(G);let he=h.get(ne);return he||h.set(ne,he=t.createUniqueName(ne,48)),he}}var eUe=I({"src/compiler/transformers/module/esnextAnd2015.ts"(){ra()}});function Ple(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=Jq(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const l=qq(e),u=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=y,e.enableSubstitution(312),e.enableEmitNotification(312);let h;return R;function m(C,O){return $i(O)?(h=O,t(C,O)):h?h.impliedNodeFormat===99?o(C,O):u(C,O):t(C,O)}function y(C,O,U){return $i(O)&&(h=O),h?h.impliedNodeFormat===99?s(C,O,U):p(C,O,U):r(C,O,U)}function T(C){return C.impliedNodeFormat===99?i:l}function A(C){if(C.isDeclarationFile)return C;h=C;const O=T(C)(C);return h=void 0,N.assert($i(O)),O}function R(C){return C.kind===312?A(C):M(C)}function M(C){return e.factory.createBundle(Wt(C.sourceFiles,A),C.prepends)}}var tUe=I({"src/compiler/transformers/module/node.ts"(){ra()}});function QF(e){return Oi(e)||qo(e)||gp(e)||$a(e)||Mv(e)||My(e)||Bk(e)||ZA(e)||Hl(e)||vh(e)||Tc(e)||Ao(e)||hl(e)||Vv(e)||eu(e)||xm(e)||Ml(e)||XE(e)||Fr(e)||$s(e)||mr(e)||$f(e)}function Mle(e){if(Mv(e)||My(e))return t;return vh(e)||Hl(e)?i:Uv(e);function t(s){const l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return aa(e)?s.errorModuleName?s.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){const l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return aa(e)?s.errorModuleName?s.accessibility===2?f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function Uv(e){if(Oi(e)||qo(e)||gp(e)||Fr(e)||$s(e)||mr(e)||$a(e)||Ml(e))return r;return Mv(e)||My(e)?i:Bk(e)||ZA(e)||Hl(e)||vh(e)||Tc(e)||XE(e)?o:Ao(e)?pp(e,e.parent)&&Qr(e.parent,2)?r:s:hl(e)?u:Vv(e)?p:eu(e)?h:xm(e)||$f(e)?m:N.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${N.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===260||e.kind===208)return y.errorModuleName?y.accessibility===2?f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:f.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&Qr(e.parent,2))return aa(e)?y.errorModuleName?y.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?y.errorModuleName?y.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(y){const T=t(y);return T!==void 0?{diagnosticMessage:T,errorNode:e,typeName:e.name}:void 0}function i(y){let T;return e.kind===178?aa(e)?T=y.errorModuleName?f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:T=y.errorModuleName?f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:aa(e)?T=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:T=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:T,errorNode:e.name,typeName:e.name}}function o(y){let T;switch(e.kind){case 180:T=y.errorModuleName?f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:T=y.errorModuleName?f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:T=y.errorModuleName?f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:aa(e)?T=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?T=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:T=y.errorModuleName?f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:T=y.errorModuleName?y.accessibility===2?f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return N.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:T,errorNode:e.name||e}}function s(y){const T=l(y);return T!==void 0?{diagnosticMessage:T,errorNode:e,typeName:e.name}:void 0}function l(y){switch(e.parent.kind){case 176:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return y.errorModuleName?f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return y.errorModuleName?f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return y.errorModuleName?f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return aa(e.parent)?y.errorModuleName?y.accessibility===2?f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y.errorModuleName?y.accessibility===2?f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return N.fail(`Unknown parent for parameter: ${N.formatSyntaxKind(e.parent.kind)}`)}}function u(){let y;switch(e.parent.kind){case 263:y=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:y=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:y=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:y=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:y=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:aa(e.parent)?y=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:y=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:y=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:y=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return N.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function p(){let y;return Ac(e.parent.parent)?y=nf(e.parent)&&e.parent.token===119?f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:f.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:Lo(e.parent.parent)}}function h(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(y){return{diagnosticMessage:y.errorModuleName?f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:f.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:$f(e)?N.checkDefined(e.typeExpression):e.type,typeName:$f(e)?Lo(e):e.name}}}var nUe=I({"src/compiler/transformers/declarations/diagnostics.ts"(){ra()}});function Lle(e,t,r){const i=e.getCompilerOptions();return Pw(t,e,w,i,r?[r]:mn(e.getSourceFiles(),gj),[Kq],!1).diagnostics}function Kq(e){const t=()=>N.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,l=!1,u=!1,p,h,m,y,T,A;const{factory:R}=e,M=e.getEmitHost(),C={trackSymbol:de,reportInaccessibleThisError:Ee,reportInaccessibleUniqueSymbolError:Le,reportCyclicStructureError:Ue,reportPrivateInBaseOfClassExpression:ie,reportLikelyUnsafeImportRequiredError:De,reportTruncationError:Me,moduleResolverHost:M,trackReferencedAmbientModule:X,trackExternalModuleSymbolOfImportTypeNode:Ce,reportNonlocalAugmentation:We,reportNonSerializableProperty:At};let O,U,K,Q,V,se;const G=e.getEmitResolver(),ne=e.getCompilerOptions(),{noResolve:he,stripInternal:ye}=ne;return je;function Y(j){if(j){h=h||new Set;for(const it of j)h.add(it)}}function X(j,it){const Rt=G.getTypeReferenceDirectivesForSymbol(it,-1);if(Ne(Rt))return Y(Rt);const Ye=Un(j);Q.set(Wu(Ye),Ye)}function oe(j){const it=pR(j),Rt=it&&G.tryFindAmbientModule(it);if(Rt!=null&&Rt.declarations)for(const Ye of Rt.declarations)ku(Ye)&&Un(Ye)!==K&&X(Ye,Rt)}function pe(j){if(j.accessibility===0){if(j.aliasesToMakeVisible)if(!m)m=j.aliasesToMakeVisible;else for(const it of j.aliasesToMakeVisible)Ef(m,it)}else{const it=r(j);if(it)return it.typeName?e.addDiagnostic(kr(j.errorNode||it.errorNode,it.diagnosticMessage,fc(it.typeName),j.errorSymbolName,j.errorModuleName)):e.addDiagnostic(kr(j.errorNode||it.errorNode,it.diagnosticMessage,j.errorSymbolName,j.errorModuleName)),!0}return!1}function Ce(j){o||(A||(A=[])).push(j)}function de(j,it,Rt){if(j.flags&262144)return!1;const Ye=pe(G.isSymbolAccessible(j,it,Rt,!0));return Y(G.getTypeReferenceDirectivesForSymbol(j,Rt)),Ye}function ie(j){(O||U)&&e.addDiagnostic(kr(O||U,f.Property_0_of_exported_class_expression_may_not_be_private_or_protected,j))}function ve(){return O?xs(O):U&&Lo(U)?xs(Lo(U)):U&&kl(U)?U.isExportEquals?"export=":"default":"(Missing)"}function Le(){(O||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"unique symbol"))}function Ue(){(O||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ve()))}function Ee(){(O||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"this"))}function De(j){(O||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ve(),j))}function Me(){(O||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function We(j,it,Rt){var Ye;const _t=(Ye=it.declarations)==null?void 0:Ye.find(yn=>Un(yn)===j),Gt=mn(Rt.declarations,yn=>Un(yn)!==j);if(_t&&Gt)for(const yn of Gt)e.addDiagnostic(Ma(kr(yn,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),kr(_t,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function At(j){(O||U)&&e.addDiagnostic(kr(O||U,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,j))}function Se(j,it){const Rt=r;r=_t=>_t.errorNode&&QF(_t.errorNode)?Uv(_t.errorNode)(_t):{diagnosticMessage:_t.errorModuleName?f.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:f.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:_t.errorNode||j};const Ye=G.getDeclarationStatementsForSourceFile(j,YS,C,it);return r=Rt,Ye}function je(j){if(j.kind===312&&j.isDeclarationFile)return j;if(j.kind===313){o=!0,Q=new Map,V=new Map;let Oe=!1;const Lt=R.createBundle(Wt(j.sourceFiles,J=>{if(J.isDeclarationFile)return;if(Oe=Oe||J.hasNoDefaultLib,K=J,p=J,m=void 0,T=!1,y=new Map,r=t,l=!1,u=!1,ot(J,Q),Bt(J,V),Fp(J)||Yf(J)){s=!1,i=!1;const Be=cd(J)?R.createNodeArray(Se(J,!0)):jn(J.statements,ci,Hi);return R.updateSourceFile(J,[R.createModuleDeclaration([R.createModifier(138)],R.createStringLiteral(u3(e.getEmitHost(),J)),R.createModuleBlock(dt(R.createNodeArray(tt(Be)),J.statements)))],!0,[],[],!1,[])}i=!0;const fe=cd(J)?R.createNodeArray(Se(J)):jn(J.statements,ci,Hi);return R.updateSourceFile(J,tt(fe),!0,[],[],!1,[])}),eo(j.prepends,J=>{if(J.kind===315){const fe=UU(J,"dts",ye);return Oe=Oe||!!fe.hasNoDefaultLib,ot(fe,Q),Y(Wt(fe.typeReferenceDirectives,Be=>[Be.fileName,Be.resolutionMode])),Bt(fe,V),fe}return J}));Lt.syntheticFileReferences=[],Lt.syntheticTypeReferences=fn(),Lt.syntheticLibReferences=yn(),Lt.hasNoDefaultLib=Oe;const L=ai(Lu(qP(j,M,!0).declarationFilePath)),me=q(Lt.syntheticFileReferences,L);return Q.forEach(me),Lt}i=!0,l=!1,u=!1,p=j,K=j,r=t,o=!1,s=!1,T=!1,m=void 0,y=new Map,h=void 0,Q=ot(K,new Map),V=Bt(K,new Map);const it=[],Rt=ai(Lu(qP(j,M,!0).declarationFilePath)),Ye=q(it,Rt);let _t;if(cd(K))_t=R.createNodeArray(Se(j)),Q.forEach(Ye),se=mn(_t,gS);else{const Oe=jn(j.statements,ci,Hi);_t=dt(R.createNodeArray(tt(Oe)),j.statements),Q.forEach(Ye),se=mn(_t,gS),sc(j)&&(!s||l&&!u)&&(_t=dt(R.createNodeArray([..._t,Kk(R)]),_t))}const Gt=R.updateSourceFile(j,_t,!0,it,fn(),j.hasNoDefaultLib,yn());return Gt.exportedModulesFromDeclarationEmit=A,Gt;function yn(){return zo(V.keys(),Oe=>({fileName:Oe,pos:-1,end:-1}))}function fn(){return h?eo(zo(h.keys()),hn):[]}function hn([Oe,Lt]){if(se){for(const L of se)if(eu(L)&&Sh(L.moduleReference)){const me=L.moduleReference.expression;if(ls(me)&&me.text===Oe)return}else if(Mc(L)&&Na(L.moduleSpecifier)&&L.moduleSpecifier.text===Oe)return}return{fileName:Oe,pos:-1,end:-1,...Lt?{resolutionMode:Lt}:void 0}}function q(Oe,Lt){return L=>{if(A!=null&&A.includes(L.symbol))return;let me;if(L.isDeclarationFile)me=L.fileName;else{if(o&&Or(j.sourceFiles,L))return;const J=qP(L,M,!0);me=J.declarationFilePath||J.jsFilePath||L.fileName}if(me){const J=MF(ne,K,go(Lt,M.getCurrentDirectory()),go(me,M.getCurrentDirectory()),M);if(!Op(J)){Y([[J,void 0]]);return}let fe=yA(Lt,me,M.getCurrentDirectory(),M.getCanonicalFileName,!1);if(uo(fe,"./")&&vA(fe)&&(fe=fe.substring(2)),uo(fe,"node_modules/")||x0(fe))return;Oe.push({pos:-1,end:-1,fileName:fe})}}}}function ot(j,it){return he||!VS(j)&&cd(j)||Xe(j.referencedFiles,Rt=>{const Ye=M.getSourceFileFromReference(j,Rt);Ye&&it.set(Wu(Ye),Ye)}),it}function Bt(j,it){return Xe(j.libReferenceDirectives,Rt=>{M.getLibFileFromReference(Rt)&&it.set(sh(Rt.fileName),!0)}),it}function vt(j){if(j.kind===80)return j;return j.kind===207?R.updateArrayBindingPattern(j,jn(j.elements,it,h4)):R.updateObjectBindingPattern(j,jn(j.elements,it,$a));function it(Rt){return Rt.kind===232?Rt:(Rt.propertyName&&Za(Rt.propertyName)&&Bl(Rt.propertyName.expression)&&Wi(Rt.propertyName.expression,p),R.updateBindingElement(Rt,Rt.dotDotDotToken,Rt.propertyName,vt(Rt.name),It(Rt)?Rt.initializer:void 0))}}function $e(j,it,Rt){let Ye;T||(Ye=r,r=Uv(j));const _t=R.updateParameterDeclaration(j,iUe(R,j,it),j.dotDotDotToken,vt(j.name),G.isOptionalParameter(j)?j.questionToken||R.createToken(58):void 0,rn(j,Rt||j.type,!0),tn(j));return T||(r=Ye),_t}function It(j){return oUe(j)&&G.isLiteralConstDeclaration(No(j))}function tn(j){if(It(j))return G.createLiteralConstValue(No(j),C)}function rn(j,it,Rt){if(!Rt&&_p(j,2)||It(j))return;const Ye=j.kind===169&&(G.isRequiredInitializedParameter(j)||G.isOptionalUninitializedParameterProperty(j));if(it&&!Ye)return nt(it,zt,ji);if(!No(j))return it?nt(it,zt,ji):R.createKeywordTypeNode(133);if(j.kind===178)return R.createKeywordTypeNode(133);O=j.name;let _t;if(T||(_t=r,r=Uv(j)),j.kind===260||j.kind===208)return Gt(G.createTypeOfDeclaration(j,p,YS,C));if(j.kind===169||j.kind===172||j.kind===171)return gp(j)||!j.initializer?Gt(G.createTypeOfDeclaration(j,p,YS,C,Ye)):Gt(G.createTypeOfDeclaration(j,p,YS,C,Ye)||G.createTypeOfExpression(j.initializer,p,YS,C));return Gt(G.createReturnTypeOfSignatureDeclaration(j,p,YS,C));function Gt(yn){return O=void 0,T||(r=_t),yn||R.createKeywordTypeNode(133)}}function Mn(j){switch(j=No(j),j.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!G.isDeclarationVisible(j);case 260:return!gn(j);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function $n(j){var it;if(j.body)return!0;const Rt=(it=j.symbol.declarations)==null?void 0:it.filter(Ye=>Tc(Ye)&&!Ye.body);return!Rt||Rt.indexOf(j)===Rt.length-1}function gn(j){return Gc(j)?!1:ta(j.name)?bt(j.name.elements,gn):G.isDeclarationVisible(j)}function Qt(j,it,Rt){if(_p(j,2))return R.createNodeArray();const Ye=Wt(it,_t=>$e(_t,Rt));return Ye?R.createNodeArray(Ye,it.hasTrailingComma):R.createNodeArray()}function Yt(j,it){let Rt;if(!it){const Ye=BE(j);Ye&&(Rt=[$e(Ye)])}if(vp(j)){let Ye;if(!it){const _t=wC(j);if(_t){const Gt=Fe(j,G.getAllAccessorDeclarations(j));Ye=$e(_t,void 0,Gt)}}Ye||(Ye=R.createParameterDeclaration(void 0,void 0,"value")),Rt=Rn(Rt,Ye)}return R.createNodeArray(Rt||et)}function vi(j,it){return _p(j,2)?void 0:jn(it,zt,hl)}function so(j){return $i(j)||xm(j)||Xl(j)||Ac(j)||md(j)||ea(j)||XE(j)||GR(j)}function Wi(j,it){const Rt=G.isEntityNameVisible(j,it);pe(Rt),Y(G.getTypeReferenceDirectivesForEntityName(j))}function Co(j,it){return Wp(j)&&Wp(it)&&(j.jsDoc=it.jsDoc),ac(j,M_(it))}function Ln(j,it){if(it){if(s=s||j.kind!==267&&j.kind!==205,ls(it))if(o){const Rt=Aie(e.getEmitHost(),G,j);if(Rt)return R.createStringLiteral(Rt)}else{const Rt=G.getSymbolOfExternalModuleSpecifier(it);Rt&&(A||(A=[])).push(Rt)}return it}}function Ci(j){if(G.isDeclarationVisible(j))if(j.moduleReference.kind===283){const it=TC(j);return R.updateImportEqualsDeclaration(j,j.modifiers,j.isTypeOnly,j.name,R.updateExternalModuleReference(j.moduleReference,Ln(j,it)))}else{const it=r;return r=Uv(j),Wi(j.moduleReference,p),r=it,j}}function Ar(j){if(!j.importClause)return R.updateImportDeclaration(j,j.modifiers,j.importClause,Ln(j,j.moduleSpecifier),sn(j.attributes));const it=j.importClause&&j.importClause.name&&G.isDeclarationVisible(j.importClause)?j.importClause.name:void 0;if(!j.importClause.namedBindings)return it&&R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,it,void 0),Ln(j,j.moduleSpecifier),sn(j.attributes));if(j.importClause.namedBindings.kind===274){const Ye=G.isDeclarationVisible(j.importClause.namedBindings)?j.importClause.namedBindings:void 0;return it||Ye?R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,it,Ye),Ln(j,j.moduleSpecifier),sn(j.attributes)):void 0}const Rt=eo(j.importClause.namedBindings.elements,Ye=>G.isDeclarationVisible(Ye)?Ye:void 0);if(Rt&&Rt.length||it)return R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,it,Rt&&Rt.length?R.updateNamedImports(j.importClause.namedBindings,Rt):void 0),Ln(j,j.moduleSpecifier),sn(j.attributes));if(G.isImportRequiredByAugmentation(j))return R.updateImportDeclaration(j,j.modifiers,void 0,Ln(j,j.moduleSpecifier),sn(j.attributes))}function sn(j){const it=uD(j);return j&&it!==void 0?j:void 0}function tt(j){for(;Ne(m);){const Rt=m.shift();if(!L4(Rt))return N.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${N.formatSyntaxKind(Rt.kind)}`);const Ye=i;i=Rt.parent&&$i(Rt.parent)&&!(sc(Rt.parent)&&o);const _t=Io(Rt);i=Ye,y.set(Wu(Rt),_t)}return jn(j,it,Hi);function it(Rt){if(L4(Rt)){const Ye=Wu(Rt);if(y.has(Ye)){const _t=y.get(Ye);return y.delete(Ye),_t&&((To(_t)?bt(_t,g4):g4(_t))&&(l=!0),$i(Rt.parent)&&(To(_t)?bt(_t,mL):mL(_t))&&(s=!0)),_t}}return Rt}}function zt(j){if(He(j)||Ju(j)&&(Mn(j)||Wy(j)&&!G.isLateBound(No(j)))||ea(j)&&G.isImplementationOfOverload(j)||fae(j))return;let it;so(j)&&(it=p,p=j);const Rt=r,Ye=QF(j),_t=T;let Gt=(j.kind===187||j.kind===200)&&j.parent.kind!==265;if((Hl(j)||vh(j))&&_p(j,2))return j.symbol&&j.symbol.declarations&&j.symbol.declarations[0]!==j?void 0:yn(R.createPropertyDeclaration(Ct(j),j.name,void 0,void 0,void 0));if(Ye&&!T&&(r=Uv(j)),eI(j)&&Wi(j.exprName,p),Gt&&(T=!0),sUe(j))switch(j.kind){case 233:{(Qd(j.expression)||Bl(j.expression))&&Wi(j.expression,p);const fn=xn(j,zt,e);return yn(R.updateExpressionWithTypeArguments(fn,fn.expression,fn.typeArguments))}case 183:{Wi(j.typeName,p);const fn=xn(j,zt,e);return yn(R.updateTypeReferenceNode(fn,fn.typeName,fn.typeArguments))}case 180:return yn(R.updateConstructSignature(j,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 176:{const fn=R.createConstructorDeclaration(Ct(j),Qt(j,j.parameters,0),void 0);return yn(fn)}case 174:{if(qi(j.name))return yn(void 0);const fn=R.createMethodDeclaration(Ct(j),void 0,j.name,j.questionToken,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type),void 0);return yn(fn)}case 177:{if(qi(j.name))return yn(void 0);const fn=Fe(j,G.getAllAccessorDeclarations(j));return yn(R.updateGetAccessorDeclaration(j,Ct(j),j.name,Yt(j,_p(j,2)),rn(j,fn),void 0))}case 178:return qi(j.name)?yn(void 0):yn(R.updateSetAccessorDeclaration(j,Ct(j),j.name,Yt(j,_p(j,2)),void 0));case 172:return qi(j.name)?yn(void 0):yn(R.updatePropertyDeclaration(j,Ct(j),j.name,j.questionToken,rn(j,j.type),tn(j)));case 171:return qi(j.name)?yn(void 0):yn(R.updatePropertySignature(j,Ct(j),j.name,j.questionToken,rn(j,j.type)));case 173:return qi(j.name)?yn(void 0):yn(R.updateMethodSignature(j,Ct(j),j.name,j.questionToken,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 179:return yn(R.updateCallSignature(j,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 181:return yn(R.updateIndexSignature(j,Ct(j),Qt(j,j.parameters),nt(j.type,zt,ji)||R.createKeywordTypeNode(133)));case 260:return ta(j.name)?ka(j.name):(Gt=!0,T=!0,yn(R.updateVariableDeclaration(j,j.name,void 0,rn(j,j.type),tn(j))));case 168:return Dn(j)&&(j.default||j.constraint)?yn(R.updateTypeParameterDeclaration(j,j.modifiers,j.name,void 0,void 0)):yn(xn(j,zt,e));case 194:{const fn=nt(j.checkType,zt,ji),hn=nt(j.extendsType,zt,ji),q=p;p=j.trueType;const Oe=nt(j.trueType,zt,ji);p=q;const Lt=nt(j.falseType,zt,ji);return N.assert(fn),N.assert(hn),N.assert(Oe),N.assert(Lt),yn(R.updateConditionalTypeNode(j,fn,hn,Oe,Lt))}case 184:return yn(R.updateFunctionTypeNode(j,jn(j.typeParameters,zt,hl),Qt(j,j.parameters),N.checkDefined(nt(j.type,zt,ji))));case 185:return yn(R.updateConstructorTypeNode(j,Ct(j),jn(j.typeParameters,zt,hl),Qt(j,j.parameters),N.checkDefined(nt(j.type,zt,ji))));case 205:return Oy(j)?(oe(j),yn(R.updateImportTypeNode(j,R.updateLiteralTypeNode(j.argument,Ln(j,j.argument.literal)),j.attributes,j.qualifier,jn(j.typeArguments,zt,ji),j.isTypeOf))):yn(j);default:N.assertNever(j,`Attempted to process unhandled node kind: ${N.formatSyntaxKind(j.kind)}`)}return tI(j)&&ys(K,j.pos).line===ys(K,j.end).line&&pr(j,1),yn(xn(j,zt,e));function yn(fn){return fn&&Ye&&Wy(j)&&wn(j),so(j)&&(p=it),Ye&&!T&&(r=Rt),Gt&&(T=_t),fn===j?fn:fn&&Nr(Co(fn,j),j)}}function Dn(j){return j.parent.kind===174&&_p(j.parent,2)}function ci(j){if(!aUe(j)||He(j))return;switch(j.kind){case 278:return $i(j.parent)&&(s=!0),u=!0,oe(j),R.updateExportDeclaration(j,j.modifiers,j.isTypeOnly,j.exportClause,Ln(j,j.moduleSpecifier),sn(j.attributes));case 277:{if($i(j.parent)&&(s=!0),u=!0,j.expression.kind===80)return j;{const Rt=R.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:j}),U=j;const Ye=R.createVariableDeclaration(Rt,void 0,G.createTypeOfExpression(j.expression,j,YS,C),void 0);U=void 0;const _t=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([Ye],2));return Co(_t,j),Pk(j),[_t,R.updateExportAssignment(j,j.modifiers,Rt)]}}}const it=Io(j);return y.set(Wu(j),it),j}function yi(j){if(eu(j)||_p(j,2048)||!Rm(j))return j;const it=R.createModifiersFromModifierFlags(ud(j)&131039);return R.replaceModifiers(j,it)}function Qi(j,it,Rt,Ye){const _t=R.updateModuleDeclaration(j,it,Rt,Ye);if(ku(_t)||_t.flags&32)return _t;const Gt=R.createModuleDeclaration(_t.modifiers,_t.name,_t.body,_t.flags|32);return Nr(Gt,_t),dt(Gt,_t),Gt}function Io(j){if(m)for(;wx(m,j););if(He(j))return;switch(j.kind){case 271:{const yn=Ci(j);return yn&&oe(j),yn}case 272:{const yn=Ar(j);return yn&&oe(j),yn}}if(Ju(j)&&Mn(j)||ea(j)&&G.isImplementationOfOverload(j))return;let it;so(j)&&(it=p,p=j);const Rt=QF(j),Ye=r;Rt&&(r=Uv(j));const _t=i;switch(j.kind){case 265:{i=!1;const yn=Gt(R.updateTypeAliasDeclaration(j,Ct(j),j.name,jn(j.typeParameters,zt,hl),N.checkDefined(nt(j.type,zt,ji))));return i=_t,yn}case 264:return Gt(R.updateInterfaceDeclaration(j,Ct(j),j.name,vi(j,j.typeParameters),pt(j.heritageClauses),jn(j.members,zt,fS)));case 262:{const yn=Gt(R.updateFunctionDeclaration(j,Ct(j),void 0,j.name,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type),void 0));if(yn&&G.isExpandoFunctionDeclaration(j)&&$n(j)){const fn=G.getPropertiesOfContainerFunction(j),hn=Th.createModuleDeclaration(void 0,yn.name||R.createIdentifier("_default"),R.createModuleBlock([]),32);Ha(hn,p),hn.locals=ca(fn),hn.symbol=fn[0].parent;const q=[];let Oe=eo(fn,Be=>{if(!X3(Be.valueDeclaration))return;const ke=Vi(Be.escapedName);if(!Zp(ke,99))return;r=Uv(Be.valueDeclaration);const Tt=G.createTypeOfDeclaration(Be.valueDeclaration,hn,YS,C);r=Ye;const kt=LA(ke),en=kt?R.getGeneratedNameForNode(Be.valueDeclaration):R.createIdentifier(ke);kt&&q.push([en,ke]);const En=R.createVariableDeclaration(en,void 0,Tt,void 0);return R.createVariableStatement(kt?void 0:[R.createToken(95)],R.createVariableDeclarationList([En]))});q.length?Oe.push(R.createExportDeclaration(void 0,!1,R.createNamedExports(Wt(q,([Be,ke])=>R.createExportSpecifier(!1,Be,ke))))):Oe=eo(Oe,Be=>R.replaceModifiers(Be,0));const Lt=R.createModuleDeclaration(Ct(j),j.name,R.createModuleBlock(Oe),32);if(!_p(yn,2048))return[yn,Lt];const L=R.createModifiersFromModifierFlags(ud(yn)&-2081|128),me=R.updateFunctionDeclaration(yn,L,void 0,yn.name,yn.typeParameters,yn.parameters,yn.type,void 0),J=R.updateModuleDeclaration(Lt,L,Lt.name,Lt.body),fe=R.createExportAssignment(void 0,!1,Lt.name);return $i(j.parent)&&(s=!0),u=!0,[me,J,fe]}else return yn}case 267:{i=!1;const yn=j.body;if(yn&&yn.kind===268){const fn=l,hn=u;u=!1,l=!1;const q=jn(yn.statements,ci,Hi);let Oe=tt(q);j.flags&33554432&&(l=!1),!A_(j)&&!ft(Oe)&&!u&&(l?Oe=R.createNodeArray([...Oe,Kk(R)]):Oe=jn(Oe,yi,Hi));const Lt=R.updateModuleBlock(yn,Oe);i=_t,l=fn,u=hn;const L=Ct(j);return Gt(Qi(j,L,PE(j)?Ln(j,j.name):j.name,Lt))}else{i=_t;const fn=Ct(j);i=!1,nt(yn,ci);const hn=Wu(yn),q=y.get(hn);return y.delete(hn),Gt(Qi(j,fn,j.name,q))}}case 263:{O=j.name,U=j;const yn=R.createNodeArray(Ct(j)),fn=vi(j,j.typeParameters),hn=ng(j);let q;if(hn){const fe=r;q=C2(Do(hn.parameters,Be=>{if(!Qr(Be,31)||He(Be))return;if(r=Uv(Be),Be.name.kind===80)return Co(R.createPropertyDeclaration(Ct(Be),Be.name,Be.questionToken,rn(Be,Be.type),tn(Be)),Be);return ke(Be.name);function ke(Tt){let kt;for(const en of Tt.elements)Gc(en)||(ta(en.name)&&(kt=So(kt,ke(en.name))),kt=kt||[],kt.push(R.createPropertyDeclaration(Ct(Be),en.name,void 0,rn(en,void 0),void 0)));return kt}})),r=fe}const Lt=bt(j.members,fe=>!!fe.name&&qi(fe.name))?[R.createPropertyDeclaration(void 0,R.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,L=So(So(Lt,q),jn(j.members,zt,Yc)),me=R.createNodeArray(L),J=I_(j);if(J&&!Bl(J.expression)&&J.expression.kind!==106){const fe=j.name?Vi(j.name.escapedText):"default",Be=R.createUniqueName(`${fe}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:J,typeName:j.name});const ke=R.createVariableDeclaration(Be,void 0,G.createTypeOfExpression(J.expression,j,YS,C),void 0),Tt=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([ke],2)),kt=R.createNodeArray(Wt(j.heritageClauses,en=>{if(en.token===96){const En=r;r=Uv(en.types[0]);const Gn=R.updateHeritageClause(en,Wt(en.types,qn=>R.updateExpressionWithTypeArguments(qn,Be,jn(qn.typeArguments,zt,ji))));return r=En,Gn}return R.updateHeritageClause(en,jn(R.createNodeArray(mn(en.types,En=>Bl(En.expression)||En.expression.kind===106)),zt,Vv))}));return[Tt,Gt(R.updateClassDeclaration(j,yn,j.name,fn,kt,me))]}else{const fe=pt(j.heritageClauses);return Gt(R.updateClassDeclaration(j,yn,j.name,fn,fe,me))}}case 243:return Gt(fa(j));case 266:return Gt(R.updateEnumDeclaration(j,R.createNodeArray(Ct(j)),j.name,R.createNodeArray(eo(j.members,yn=>{if(He(yn))return;const fn=G.getConstantValue(yn),hn=fn===void 0?void 0:typeof fn=="string"?R.createStringLiteral(fn):fn<0?R.createPrefixUnaryExpression(41,R.createNumericLiteral(-fn)):R.createNumericLiteral(fn);return Co(R.updateEnumMember(yn,yn.name,hn),yn)}))))}return N.assertNever(j,`Unhandled top-level node in declaration emit: ${N.formatSyntaxKind(j.kind)}`);function Gt(yn){return so(j)&&(p=it),Rt&&(r=Ye),j.kind===267&&(i=_t),yn===j?yn:(U=void 0,O=void 0,yn&&Nr(Co(yn,j),j))}}function fa(j){if(!Xe(j.declarationList.declarations,gn))return;const it=jn(j.declarationList.declarations,zt,Oi);if(!Ne(it))return;const Rt=R.createNodeArray(Ct(j));let Ye;return RL(j.declarationList)||xL(j.declarationList)?(Ye=R.createVariableDeclarationList(it,2),Nr(Ye,j.declarationList),dt(Ye,j.declarationList),ac(Ye,j.declarationList)):Ye=R.updateVariableDeclarationList(j.declarationList,it),R.updateVariableStatement(j,Rt,Ye)}function ka(j){return Cs(eo(j.elements,it=>Tn(it)))}function Tn(j){if(j.kind!==232&&j.name)return gn(j)?ta(j.name)?ka(j.name):R.createVariableDeclaration(j.name,void 0,rn(j,void 0),void 0):void 0}function wn(j){let it;T||(it=r,r=Mle(j)),O=j.name,N.assert(G.isLateBound(No(j)));const Ye=j.name.expression;Wi(Ye,p),T||(r=it),O=void 0}function He(j){return!!ye&&!!j&&HV(j,K)}function mt(j){return kl(j)||Yl(j)}function ft(j){return bt(j,mt)}function Ct(j){const it=ud(j),Rt=le(j);return it===Rt?Rw(j.modifiers,Ye=>ri(Ye,Aa),Aa):R.createModifiersFromModifierFlags(Rt)}function le(j){let it=130030,Rt=i&&!rUe(j)?128:0;const Ye=j.parent.kind===312;return(!Ye||o&&Ye&&sc(j.parent))&&(it^=128,Rt=0),nxe(j,it,Rt)}function Fe(j,it){let Rt=kle(j);return!Rt&&j!==it.firstAccessor&&(Rt=kle(it.firstAccessor),r=Uv(it.firstAccessor)),!Rt&&it.secondAccessor&&j!==it.secondAccessor&&(Rt=kle(it.secondAccessor),r=Uv(it.secondAccessor)),Rt}function pt(j){return R.createNodeArray(mn(Wt(j,it=>R.updateHeritageClause(it,jn(R.createNodeArray(mn(it.types,Rt=>Bl(Rt.expression)||it.token===96&&Rt.expression.kind===106)),zt,Vv))),it=>it.types&&!!it.types.length))}}function rUe(e){return e.kind===264}function iUe(e,t,r,i){return e.createModifiersFromModifierFlags(nxe(t,r,i))}function nxe(e,t=131070,r=0){let i=ud(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function kle(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function oUe(e){switch(e.kind){case 172:case 171:return!_p(e,2);case 169:case 260:return!0}return!1}function aUe(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function sUe(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var YS,lUe=I({"src/compiler/transformers/declarations.ts"(){ra(),zse(),YS=531469}});function cUe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return Jq;case 4:return Cle;case 100:case 199:return Ple;default:return qq}}function Xq(e,t,r){return{scriptTransformers:uUe(e,t,r),declarationTransformers:dUe(t)}}function uUe(e,t,r){if(r)return et;const i=os(e),o=wu(e),s=lP(e),l=[];return qr(l,t&&Wt(t.before,ixe)),l.push(dle),e.experimentalDecorators&&l.push(mle),L3(e)&&l.push(Ile),i<99&&l.push(Ele),!e.experimentalDecorators&&(i<99||!s)&&l.push(_le),l.push(ple),i<8&&l.push(ble),i<7&&l.push(yle),i<6&&l.push(vle),i<5&&l.push(gle),i<4&&l.push(hle),i<3&&l.push(xle),i<2&&(l.push(Rle),l.push(Nle)),l.push(cUe(o)),i<1&&l.push(Dle),qr(l,t&&Wt(t.after,ixe)),l}function dUe(e){const t=[];return t.push(Kq),qr(t,e&&Wt(e.afterDeclarations,fUe)),t}function pUe(e){return t=>pH(t)?e.transformBundle(t):e.transformSourceFile(t)}function rxe(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):pUe(i)}}function ixe(e){return rxe(e,Dm)}function fUe(e){return rxe(e,(t,r)=>r)}function jP(e,t){return t}function Cw(e,t,r){r(e,t)}function Pw(e,t,r,i,o,s,l){var u,p;const h=new Array(363);let m,y,T,A=0,R=[],M=[],C=[],O=[],U=0,K=!1,Q=[],V=0,se,G,ne=jP,he=Cw,ye=0;const Y=[],X={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Sd(()=>Zoe(X)),startLexicalEnvironment:Se,suspendLexicalEnvironment:je,resumeLexicalEnvironment:ot,endLexicalEnvironment:Bt,setLexicalEnvironmentFlags:vt,getLexicalEnvironmentFlags:$e,hoistVariableDeclaration:Me,hoistFunctionDeclaration:We,addInitializationStatement:At,startBlockScope:It,endBlockScope:tn,addBlockScopedVariable:rn,requestEmitHelper:Mn,readEmitHelpers:$n,enableSubstitution:ie,enableEmitNotification:Ue,isSubstitutionEnabled:ve,isEmitNotificationEnabled:Ee,get onSubstituteNode(){return ne},set onSubstituteNode(Qt){N.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),N.assert(Qt!==void 0,"Value must not be 'undefined'"),ne=Qt},get onEmitNode(){return he},set onEmitNode(Qt){N.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),N.assert(Qt!==void 0,"Value must not be 'undefined'"),he=Qt},addDiagnostic(Qt){Y.push(Qt)}};for(const Qt of o)KU(Un(No(Qt)));rl("beforeTransform");const oe=s.map(Qt=>Qt(X)),pe=Qt=>{for(const Yt of oe)Qt=Yt(Qt);return Qt};ye=1;const Ce=[];for(const Qt of o)(u=sr)==null||u.push(sr.Phase.Emit,"transformNodes",Qt.kind===312?{path:Qt.path}:{kind:Qt.kind,pos:Qt.pos,end:Qt.end}),Ce.push((l?pe:de)(Qt)),(p=sr)==null||p.pop();return ye=2,rl("afterTransform"),Qp("transformTime","beforeTransform","afterTransform"),{transformed:Ce,substituteNode:Le,emitNodeWithNotification:De,isEmitNotificationEnabled:Ee,dispose:gn,diagnostics:Y};function de(Qt){return Qt&&(!$i(Qt)||!Qt.isDeclarationFile)?pe(Qt):Qt}function ie(Qt){N.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),h[Qt]|=1}function ve(Qt){return(h[Qt.kind]&1)!==0&&(Ga(Qt)&8)===0}function Le(Qt,Yt){return N.assert(ye<3,"Cannot substitute a node after the result is disposed."),Yt&&ve(Yt)&&ne(Qt,Yt)||Yt}function Ue(Qt){N.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),h[Qt]|=2}function Ee(Qt){return(h[Qt.kind]&2)!==0||(Ga(Qt)&4)!==0}function De(Qt,Yt,vi){N.assert(ye<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Yt&&(Ee(Yt)?he(Qt,Yt,vi):vi(Qt,Yt))}function Me(Qt){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed.");const Yt=pr(r.createVariableDeclaration(Qt),128);m?m.push(Yt):m=[Yt],A&1&&(A|=2)}function We(Qt){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),pr(Qt,2097152),y?y.push(Qt):y=[Qt]}function At(Qt){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),pr(Qt,2097152),T?T.push(Qt):T=[Qt]}function Se(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is suspended."),R[U]=m,M[U]=y,C[U]=T,O[U]=A,U++,m=void 0,y=void 0,T=void 0,A=0}function je(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is already suspended."),K=!0}function ot(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(K,"Lexical environment is not suspended."),K=!1}function Bt(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is suspended.");let Qt;if(m||y||T){if(y&&(Qt=[...y]),m){const Yt=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));pr(Yt,2097152),Qt?Qt.push(Yt):Qt=[Yt]}T&&(Qt?Qt=[...Qt,...T]:Qt=[...T])}return U--,m=R[U],y=M[U],T=C[U],A=O[U],U===0&&(R=[],M=[],C=[],O=[]),Qt}function vt(Qt,Yt){A=Yt?A|Qt:A&~Qt}function $e(){return A}function It(){N.assert(ye>0,"Cannot start a block scope during initialization."),N.assert(ye<2,"Cannot start a block scope after transformation has completed."),Q[V]=se,V++,se=void 0}function tn(){N.assert(ye>0,"Cannot end a block scope during initialization."),N.assert(ye<2,"Cannot end a block scope after transformation has completed.");const Qt=bt(se)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(se.map(Yt=>r.createVariableDeclaration(Yt)),1))]:void 0;return V--,se=Q[V],V===0&&(Q=[]),Qt}function rn(Qt){N.assert(V>0,"Cannot add a block scoped variable outside of an iteration body."),(se||(se=[])).push(Qt)}function Mn(Qt){if(N.assert(ye>0,"Cannot modify the transformation context during initialization."),N.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),N.assert(!Qt.scoped,"Cannot request a scoped emit helper."),Qt.dependencies)for(const Yt of Qt.dependencies)Mn(Yt);G=Rn(G,Qt)}function $n(){N.assert(ye>0,"Cannot modify the transformation context during initialization."),N.assert(ye<2,"Cannot modify the transformation context after transformation has completed.");const Qt=G;return G=void 0,Qt}function gn(){if(ye<3){for(const Qt of o)KU(Un(No(Qt)));m=void 0,R=void 0,y=void 0,M=void 0,ne=void 0,he=void 0,G=void 0,ye=3}}}var Yq,UP,mUe=I({"src/compiler/transformer.ts"(){ra(),sS(),Yq={scriptTransformers:et,declarationTransformers:et},UP={factory:w,getCompilerOptions:()=>({}),getEmitResolver:Jo,getEmitHost:Jo,getEmitHelperFactory:Jo,startLexicalEnvironment:Ya,resumeLexicalEnvironment:Ya,suspendLexicalEnvironment:Ya,endLexicalEnvironment:Yb,setLexicalEnvironmentFlags:Ya,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Ya,hoistFunctionDeclaration:Ya,addInitializationStatement:Ya,startBlockScope:Ya,endBlockScope:Yb,addBlockScopedVariable:Ya,requestEmitHelper:Ya,readEmitHelpers:Jo,enableSubstitution:Ya,enableEmitNotification:Ya,isSubstitutionEnabled:Jo,isEmitNotificationEnabled:Jo,onSubstituteNode:jP,onEmitNode:Cw,addDiagnostic:Ya}}});function wle(e){return Il(e,".tsbuildinfo")}function $q(e,t,r,i=!1,o,s){const l=To(r)?r:Uj(e,r,i),u=e.getCompilerOptions();if(Ps(u)){const p=e.getPrependNodes();if(l.length||p.length){const h=w.createBundle(l,p),m=t(qP(h,e,i),h);if(m)return m}}else{if(!o)for(const p of l){const h=t(qP(p,e,i),p);if(h)return h}if(s){const p=Hv(u);if(p)return t({buildInfoPath:p},void 0)}}}function Hv(e){const t=e.configFilePath;if(!sP(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=Ps(e);let i;if(r)i=Ad(r);else{if(!t)return;const o=Ad(t);i=e.outDir?e.rootDir?Iy(e.outDir,vm(e.rootDir,o,!0)):$r(e.outDir,ic(o)):o}return i+".tsbuildinfo"}function HP(e,t){const r=Ps(e),i=e.emitDeclarationOnly?void 0:r,o=i&&oxe(i,e),s=t||Rf(e)?Ad(r)+".d.ts":void 0,l=s&&Ak(e)?s+".map":void 0,u=Hv(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:u}}function qP(e,t,r){const i=t.getCompilerOptions();if(e.kind===313)return HP(i,r);{const o=Iie(e.fileName,t,ZF(e.fileName,i)),s=Yf(e),l=s&&Dg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,p=!u||Yf(e)?void 0:oxe(u,i),h=r||Rf(i)&&!s?xie(e.fileName,t):void 0,m=h&&Ak(i)?h+".map":void 0;return{jsFilePath:u,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function oxe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function ZF(e,t){return Il(e,".json")?".json":t.jsx===1&&Sc(e,[".jsx",".tsx"])?".jsx":Sc(e,[".mts",".mjs"])?".mjs":Sc(e,[".cts",".cjs"])?".cjs":".js"}function axe(e,t,r,i){return r?Iy(r,vm(i(),e,t)):e}function JP(e,t,r,i=()=>cD(t,r)){return Qq(e,t.options,r,i)}function Qq(e,t,r,i){return _0(axe(e,r,t.declarationDir||t.outDir,i),p3(e))}function sxe(e,t,r,i=()=>cD(t,r)){if(t.options.emitDeclarationOnly)return;const o=Il(e,".json"),s=Zq(e,t.options,r,i);return!o||Dg(e,s,N.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function Zq(e,t,r,i){return _0(axe(e,r,t.outDir,i),ZF(e,t))}function lxe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||et}}function cxe(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=HP(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function uxe(e,t,r,i,o){if(Su(t))return;const s=sxe(t,e,r,o);if(i(s),!Il(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Rf(e.options))){const l=JP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function KP(e,t,r,i,o){let s;return e.rootDir?(s=go(e.rootDir,r),o==null||o(e.rootDir)):e.composite&&e.configFilePath?(s=ai(Lu(e.configFilePath)),o==null||o(s)):s=Gle(t(),r,i),s&&s[s.length-1]!==ol&&(s+=ol),s}function cD({options:e,fileNames:t},r){return KP(e,()=>mn(t,i=>!(e.noEmitForJsFiles&&Sc(i,OR))&&!Su(i)),ai(Lu(N.checkDefined(e.configFilePath))),Mu(!r))}function e7(e,t){const{addOutput:r,getOutputs:i}=lxe();if(Ps(e.options))cxe(e,r);else{const o=Sd(()=>cD(e,t));for(const s of e.fileNames)uxe(e,s,t,r,o);r(Hv(e.options))}return i()}function dxe(e,t,r){t=ha(t),N.assert(Or(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=lxe();return Ps(e.options)?cxe(e,i):uxe(e,t,r,i),o()}function eJ(e,t){if(Ps(e.options)){const{jsFilePath:o,declarationFilePath:s}=HP(e.options,!1);return N.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}const r=Sd(()=>cD(e,t));for(const o of e.fileNames){if(Su(o))continue;const s=sxe(o,e,t,r);if(s)return s;if(!Il(o,".json")&&Rf(e.options))return JP(o,e,t,r)}const i=Hv(e.options);return i||N.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function t7(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u){var p=t.getCompilerOptions(),h=p.sourceMap||p.inlineSourceMap||Ak(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,y=ER(),T=Fv(p),A=ok(T),{enter:R,exit:M}=sG("printTime","beforePrint","afterPrint"),C,O=!1;return R(),$q(t,U,Uj(t,r,u),u,l,!r),M(),{emitSkipped:O,diagnostics:y.getDiagnostics(),emittedFiles:m,sourceMaps:h};function U({jsFilePath:X,sourceMapFilePath:oe,declarationFilePath:pe,declarationMapPath:Ce,buildInfoPath:de},ie){var ve,Le,Ue,Ee,De,Me;let We;de&&ie&&pH(ie)&&(We=ai(go(de,t.getCurrentDirectory())),C={commonSourceDirectory:At(t.getCommonSourceDirectory()),sourceFiles:ie.sourceFiles.map(Se=>At(go(Se.fileName,t.getCurrentDirectory())))}),(ve=sr)==null||ve.push(sr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:X}),Q(ie,X,oe,At),(Le=sr)==null||Le.pop(),(Ue=sr)==null||Ue.push(sr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:pe}),V(ie,pe,Ce,At),(Ee=sr)==null||Ee.pop(),(De=sr)==null||De.push(sr.Phase.Emit,"emitBuildInfo",{buildInfoPath:de}),K(C,de),(Me=sr)==null||Me.pop();function At(Se){return AE(vm(We,Se,t.getCanonicalFileName))}}function K(X,oe){if(!oe||r||O)return;if(t.isEmitBlocked(oe)){O=!0;return}const pe=t.getBuildInfo(X)||Mw(void 0,X);LC(t,y,oe,Ole(pe),!1,void 0,{buildInfo:pe}),m==null||m.push(oe)}function Q(X,oe,pe,Ce){if(!X||s||!oe)return;if(t.isEmitBlocked(oe)||p.noEmit){O=!0;return}const de=Pw(e,t,w,p,[X],i,!1),ie={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!C,relativeToBuildInfo:Ce},ve=R0(ie,{hasGlobalName:e.hasGlobalName,onEmitNode:de.emitNodeWithNotification,isEmitNotificationEnabled:de.isEmitNotificationEnabled,substituteNode:de.substituteNode});N.assert(de.transformed.length===1,"Should only see one output from the transform"),G(oe,pe,de,ve,p),de.dispose(),C&&(C.js=ve.bundleFileInfo),m&&(m.push(oe),pe&&m.push(pe))}function V(X,oe,pe,Ce){if(!X||s===0)return;if(!oe){(s||p.emitDeclarationOnly)&&(O=!0);return}const de=$i(X)?[X]:X.sourceFiles,ie=u?de:mn(de,gj),ve=Ps(p)?[w.createBundle(ie,$i(X)?void 0:X.prepends)]:ie;s&&!Rf(p)&&ie.forEach(se);const Le=Pw(e,t,w,p,ve,o,!1);if(Ne(Le.diagnostics))for(const Ee of Le.diagnostics)y.add(Ee);const Ue=!!Le.diagnostics&&!!Le.diagnostics.length||!!t.isEmitBlocked(oe)||!!p.noEmit;if(O=O||Ue,!Ue||u){N.assert(Le.transformed.length===1,"Should only see one output from the decl transform");const Ee={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!u&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!C,recordInternalSection:!!C,relativeToBuildInfo:Ce},De=R0(Ee,{hasGlobalName:e.hasGlobalName,onEmitNode:Le.emitNodeWithNotification,isEmitNotificationEnabled:Le.isEmitNotificationEnabled,substituteNode:Le.substituteNode});G(oe,pe,Le,De,{sourceMap:Ee.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(oe),pe&&m.push(pe)),C&&(C.dts=De.bundleFileInfo)}Le.dispose()}function se(X){if(kl(X)){X.expression.kind===80&&e.collectLinkedAliases(X.expression,!0);return}else if(Ku(X)){e.collectLinkedAliases(X.propertyName||X.name,!0);return}Uo(X,se)}function G(X,oe,pe,Ce,de){const ie=pe.transformed[0],ve=ie.kind===313?ie:void 0,Le=ie.kind===312?ie:void 0,Ue=ve?ve.sourceFiles:[Le];let Ee;ne(de,ie)&&(Ee=qse(t,ic(Lu(X)),he(de),ye(de,X,Le),de)),ve?Ce.writeBundle(ve,A,Ee):Ce.writeFile(Le,A,Ee);let De;if(Ee){h&&h.push({inputSourceFileNames:Ee.getSources(),sourceMap:Ee.toJSON()});const We=Y(de,Ee,X,oe,Le);if(We&&(A.isAtStartOfLine()||A.rawWrite(T),De=A.getTextPos(),A.writeComment(`//# sourceMappingURL=${We}`)),oe){const At=Ee.toString();LC(t,y,oe,At,!1,Ue),Ce.bundleFileInfo&&(Ce.bundleFileInfo.mapHash=QS(At,t))}}else A.writeLine();const Me=A.getText();LC(t,y,X,Me,!!p.emitBOM,Ue,{sourceMapUrlPos:De,diagnostics:pe.diagnostics}),Ce.bundleFileInfo&&(Ce.bundleFileInfo.hash=QS(Me,t)),A.clear()}function ne(X,oe){return(X.sourceMap||X.inlineSourceMap)&&(oe.kind!==312||!Il(oe.fileName,".json"))}function he(X){const oe=Lu(X.sourceRoot||"");return oe&&Fc(oe)}function ye(X,oe,pe){if(X.sourceRoot)return t.getCommonSourceDirectory();if(X.mapRoot){let Ce=Lu(X.mapRoot);return pe&&(Ce=ai(m3(pe.fileName,t,Ce))),uh(Ce)===0&&(Ce=$r(t.getCommonSourceDirectory(),Ce)),Ce}return ai(ha(oe))}function Y(X,oe,pe,Ce,de){if(X.inlineSourceMap){const ve=oe.toString();return`data:application/json;base64,${qie(gu,ve)}`}const ie=ic(Lu(N.checkDefined(Ce)));if(X.mapRoot){let ve=Lu(X.mapRoot);return de&&(ve=ai(m3(de.fileName,t,ve))),uh(ve)===0?(ve=$r(t.getCommonSourceDirectory(),ve),encodeURI(yA(ai(ha(pe)),$r(ve,ie),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI($r(ve,ie))}return encodeURI(ie)}}function Mw(e,t){return{bundle:t,program:e,version:Re}}function Ole(e){return JSON.stringify(e)}function n7(e,t){return eU(e,t)}function _Ue(e,t,r){var i;const o=N.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&TE(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,u)=>{const p=s==null?void 0:s.get(u),h=p==null?void 0:p.directives.map(T=>{const A=dt(w.createStringLiteral(T.expression.text),T.expression),R=dt(w.createExpressionStatement(A),T);return Ha(A,R),R}),m=w.createToken(1),y=w.createSourceFile(h??[],m,0);return y.fileName=vm(r.getCurrentDirectory(),go(l,t),!r.useCaseSensitiveFileNames()),y.text=(p==null?void 0:p.text)??"",ZC(y,0,(p==null?void 0:p.text.length)??0),LR(y.statements,y),ZC(m,y.end,0),Ha(m,y),y})}function Wle(e,t,r,i){var o,s;(o=sr)==null||o.push(sr.Phase.Emit,"emitUsingBuildInfo",{},!0),rl("beforeEmit");const l=hUe(e,t,r,i);return rl("afterEmit"),Qp("Emit","beforeEmit","afterEmit"),(s=sr)==null||s.pop(),l}function hUe(e,t,r,i){const{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:u,declarationMapPath:p}=HP(e.options,!1),h=t.getBuildInfo(o,e.options.configFilePath);if(!h||!h.bundle||!h.bundle.js||u&&!h.bundle.dts)return o;const m=t.readFile(N.checkDefined(s));if(!m||QS(m,t)!==h.bundle.js.hash)return s;const y=l&&t.readFile(l);if(l&&!y||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&QS(y,t)!==h.bundle.js.mapHash)return l;const T=u&&t.readFile(u);if(u&&!T||u&&QS(T,t)!==h.bundle.dts.hash)return u;const A=p&&t.readFile(p);if(p&&!A||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&QS(A,t)!==h.bundle.dts.mapHash)return p;const R=ai(go(o,t.getCurrentDirectory())),M=qU(s,m,l,y,u,T,p,A,o,h,!0),C=[],O=TJ(e.projectReferences,r,se=>t.readFile(se),t),U=_Ue(h.bundle,R,t);let K,Q;const V={getPrependNodes:Sd(()=>[...O,M]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>go(h.bundle.commonSourceDirectory,R),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:Yb,getSourceFileByPath:Yb,getSourceFiles:()=>U,getLibFileFromReference:Jo,isSourceFileFromExternalLibrary:qm,getResolvedProjectReferenceToRedirect:Yb,getProjectReferenceRedirect:Yb,isSourceOfProjectReferenceRedirect:qm,writeFile:(se,G,ne,he,ye,Y)=>{switch(se){case s:if(m===G)return;break;case l:if(y===G)return;break;case o:break;case u:if(T===G)return;K=G,Q=Y;break;case p:if(A===G)return;break;default:N.fail(`Unexpected path: ${se}`)}C.push({name:se,text:G,writeByteOrderMark:ne,data:Y})},isEmitBlocked:qm,readFile:se=>t.readFile(se),fileExists:se=>t.fileExists(se),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:se=>{const G=h.program;G&&K!==void 0&&e.options.composite&&(G.outSignature=QS(K,t,Q));const{js:ne,dts:he,sourceFiles:ye}=h.bundle;return se.js.sources=ne.sources,he&&(se.dts.sources=he.sources),se.sourceFiles=ye,Mw(G,se)},getSourceFileFromReference:Yb,redirectTargetsMap:$p(),getFileIncludeReasons:Jo,createHash:ia(t,t.createHash)};return t7(r7,V,void 0,Xq(e.options,i)),C}function R0(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Cw,isEmitNotificationEnabled:o,substituteNode:s=jP,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:h,onBeforeEmitToken:m,onAfterEmitToken:y}=t,T=!!e.extendedDiagnostics,A=!!e.omitBraceSourceMapPositions,R=Fv(e),M=wu(e),C=new Map,O,U,K,Q,V,se,G,ne,he,ye,Y,X,oe,pe,Ce,de=e.preserveSourceNewlines,ie,ve,Le,Ue=ET,Ee,De=e.writeBundleFileInfo?{sections:[]}:void 0,Me=De?N.checkDefined(e.relativeToBuildInfo):void 0,We=e.recordInternalSection,At=0,Se="text",je=!0,ot,Bt,vt=-1,$e,It=-1,tn=-1,rn=-1,Mn=-1,$n,gn,Qt=!1,Yt=!!e.removeComments,vi,so,{enter:Wi,exit:Co}=UEe(T,"commentTime","beforeComment","afterComment"),Ln=w.parenthesizer,Ci={select:D=>D===0?Ln.parenthesizeLeadingTypeArgument:void 0},Ar=Jg();return it(),{printNode:sn,printList:tt,printFile:Dn,printBundle:zt,writeNode:yi,writeList:Qi,writeFile:ft,writeBundle:He,bundleFileInfo:De};function sn(D,ae,ht){switch(D){case 0:N.assert($i(ae),"Expected a SourceFile node.");break;case 2:N.assert(Ve(ae),"Expected an Identifier node.");break;case 1:N.assert(yt(ae),"Expected an Expression node.");break}switch(ae.kind){case 312:return Dn(ae);case 313:return zt(ae);case 314:return ci(ae)}return yi(D,ae,ht,Ct()),le()}function tt(D,ae,ht){return Qi(D,ae,ht,Ct()),le()}function zt(D){return He(D,Ct(),void 0),le()}function Dn(D){return ft(D,Ct(),void 0),le()}function ci(D){return mt(D,Ct()),le()}function yi(D,ae,ht,on){const wr=ve;j(on,void 0),Fe(D,ae,ht),it(),ve=wr}function Qi(D,ae,ht,on){const wr=ve;j(on,void 0),ht&&pt(ht),Qs(void 0,ae,D),it(),ve=wr}function Io(){return ve.getTextPosWithWriteLine?ve.getTextPosWithWriteLine():ve.getTextPos()}function fa(D,ae,ht){const on=el(De.sections);on&&on.kind===ht?on.end=ae:De.sections.push({pos:D,end:ae,kind:ht})}function ka(D){if(We&&De&&O&&(Ju(D)||Ll(D))&&HV(D,O)&&Se!=="internal"){const ae=Se;return wn(ve.getTextPos()),At=Io(),Se="internal",ae}}function Tn(D){D&&(wn(ve.getTextPos()),At=Io(),Se=D)}function wn(D){return At<D?(fa(At,D,Se),!0):!1}function He(D,ae,ht){Ee=!1;const on=ve;j(ae,ht),db(D),Zg(D),en(D),a_(D);for(const wr of D.prepends){qc();const wi=ve.getTextPos(),bi=De&&De.sections;if(bi&&(De.sections=[]),Fe(4,wr,void 0),De){const no=De.sections;De.sections=bi,wr.oldFileOfCurrentEmit?De.sections.push(...no):(no.forEach(ga=>N.assert(toe(ga))),De.sections.push({pos:wi,end:ve.getTextPos(),kind:"prepend",data:Me(wr.fileName),texts:no}))}}At=Io();for(const wr of D.sourceFiles)Fe(0,wr,wr);if(De&&D.sourceFiles.length){const wr=ve.getTextPos();if(wn(wr)){const wi=CM(D);wi&&(De.sources||(De.sources={}),De.sources.prologues=wi);const bi=kt(D);bi&&(De.sources||(De.sources={}),De.sources.helpers=bi)}}it(),ve=on}function mt(D,ae){const ht=ve;j(ae,void 0),Fe(4,D,void 0),it(),ve=ht}function ft(D,ae,ht){Ee=!0;const on=ve;j(ae,ht),db(D),Zg(D),Fe(0,D,D),it(),ve=on}function Ct(){return Le||(Le=ok(R))}function le(){const D=Le.getText();return Le.clear(),D}function Fe(D,ae,ht){ht&&pt(ht),q(D,ae,void 0)}function pt(D){O=D,$n=void 0,gn=void 0,D&&iv(D)}function j(D,ae){D&&e.omitTrailingSemicolon&&(D=Vj(D)),ve=D,ot=ae,je=!ve||!ot}function it(){U=[],K=[],Q=[],V=new Set,se=[],G=new Map,ne=[],he=0,ye=[],Y=0,X=[],oe=void 0,pe=[],Ce=void 0,O=void 0,$n=void 0,gn=void 0,j(void 0,void 0)}function Rt(){return $n||($n=Ng(N.checkDefined(O)))}function Ye(D,ae){if(D===void 0)return;const ht=ka(D);q(4,D,ae),Tn(ht)}function _t(D){D!==void 0&&q(2,D,void 0)}function Gt(D,ae){D!==void 0&&q(1,D,ae)}function yn(D){q(Na(D)?6:4,D)}function fn(D){de&&Em(D)&4&&(de=!1)}function hn(D){de=D}function q(D,ae,ht){so=ht,L(0,D,ae)(D,ae),so=void 0}function Oe(D){return!Yt&&!$i(D)}function Lt(D){return!je&&!$i(D)&&!Y4(D)&&!VS(D)&&!vae(D)}function L(D,ae,ht){switch(D){case 0:if(i!==Cw&&(!o||o(ht)))return J;case 1:if(s!==jP&&(vi=s(ae,ht)||ht)!==ht)return so&&(vi=so(vi)),Tt;case 2:if(Oe(ht))return aN;case 3:if(Lt(ht))return X0;case 4:return fe;default:return N.assertNever(D)}}function me(D,ae,ht){return L(D+1,ae,ht)}function J(D,ae){const ht=me(0,D,ae);i(D,ae,ht)}function fe(D,ae){if(l==null||l(ae),de){const ht=de;fn(ae),Be(D,ae),hn(ht)}else Be(D,ae);u==null||u(ae),so=void 0}function Be(D,ae,ht=!0){if(ht){const on=XU(ae);if(on)return vo(D,ae,on)}if(D===0)return YI(oa(ae,$i));if(D===2)return Jr(oa(ae,Ve));if(D===6)return qn(oa(ae,Na),!0);if(D===3)return ke(oa(ae,hl));if(D===7)return jI(oa(ae,aI));if(D===5)return N.assertNode(ae,cH),oo(!0);if(D===4){switch(ae.kind){case 16:case 17:case 18:return qn(ae,!1);case 80:return Jr(ae);case 81:return xo(ae);case 166:return Nn(ae);case 167:return Ql(ae);case 168:return ko(ae);case 169:return cs(ae);case 170:return Vs(ae);case 171:return gl(ae);case 172:return cu(ae);case 173:return ho(ae);case 174:return da(ae);case 175:return uu(ae);case 176:return Ts(ae);case 177:case 178:return Ca(ae);case 179:return ml(ae);case 180:return Lf(ae);case 181:return lc(ae);case 182:return wo(ae);case 183:return nn(ae);case 184:return js(ae);case 185:return xc(ae);case 186:return ue(ae);case 187:return Z(ae);case 188:return we(ae);case 189:return un(ae);case 190:return vr(ae);case 192:return jr(ae);case 193:return Di(ae);case 194:return Mr(ae);case 195:return Yo(ae);case 196:return Sl(ae);case 233:return Ft(ae);case 197:return jc();case 198:return Us(ae);case 199:return vc(ae);case 200:return Es(ae);case 201:return Uc(ae);case 202:return Er(ae);case 203:return ip(ae);case 204:return Nl(ae);case 205:return wc(ae);case 206:return sm(ae);case 207:return _d(ae);case 208:return Pe(ae);case 239:return qt(ae);case 240:return cl();case 241:return rr(ae);case 243:return Yr(ae);case 242:return oo(!1);case 244:return wa(ae);case 245:return Oa(ae);case 246:return pu(ae);case 247:return Rc(ae);case 248:return Ip(ae);case 249:return Hd(ae);case 250:return ab(ae);case 251:return Pm(ae);case 252:return Mm(ae);case 253:return E1(ae);case 254:return pf(ae);case 255:return V_(ae);case 256:return ff(ae);case 257:return Xg(ae);case 258:return ze(ae);case 259:return Ze(ae);case 260:return Mt(ae);case 261:return jt(ae);case 262:return bn(ae);case 263:return Qo(ae);case 264:return Zu(ae);case 265:return fu(ae);case 266:return Yg(ae);case 267:return O0(ae);case 268:return zI(ae);case 269:return W0(ae);case 270:return HI(ae);case 271:return qD(ae);case 272:return KD(ae);case 273:return uT(ae);case 274:return S1(ae);case 280:return T1(ae);case 275:return BI(ae);case 276:return XD(ae);case 277:return GI(ae);case 278:return VI(ae);case 279:return A1(ae);case 281:return sb(ae);case 300:return UI(ae);case 301:return dT(ae);case 282:return;case 283:return F0(ae);case 12:return $g(ae);case 286:case 289:return z0(ae);case 287:case 290:return Nh(ae);case 291:return qd(ae);case 292:return wf(ae);case 293:return xp(ae);case 294:return $D(ae);case 295:return qI(ae);case 296:return B0(ae);case 297:return JI(ae);case 298:return ny(ae);case 299:return KI(ae);case 303:return r_(ae);case 304:return mT(ae);case 305:return qe(ae);case 306:return i_(ae);case 307:return xi(ae);case 314:case 308:return Pi(ae);case 309:case 310:return ir(ae);case 311:return Vr(ae);case 312:return YI(ae);case 313:return N.fail("Bundles should be printed using printBundle");case 315:return N.fail("InputFiles should not be printed");case 316:return Qg(ae);case 317:return ub(ae);case 319:return hr("*");case 320:return hr("?");case 321:return du(ae);case 322:return Tp(ae);case 323:return Ms(ae);case 324:return tu(ae);case 191:case 325:return Et(ae);case 326:return;case 327:return mu(ae);case 329:return hT(ae);case 330:return V0(ae);case 334:case 339:case 344:return _T(ae);case 335:case 336:return ry(ae);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Ka(ae);case 346:return o_(ae);case 348:case 355:return gT(ae);case 347:case 349:case 350:case 351:case 356:case 357:return G0(ae);case 352:return iy(ae);case 353:return DM(ae);case 354:return XI(ae);case 359:return}if(yt(ae)&&(D=1,s!==jP)){const on=s(D,ae)||ae;on!==ae&&(ae=on,so&&(ae=so(ae)))}}if(D===1)switch(ae.kind){case 9:case 10:return Gn(ae);case 11:case 14:case 15:return qn(ae,!1);case 80:return Jr(ae);case 81:return xo(ae);case 209:return Ot(ae);case 210:return Xn(ae);case 211:return yo(ae);case 212:return na(ae);case 213:return Zl(ae);case 214:return yc(ae);case 215:return ul(ae);case 216:return vl(ae);case 217:return Gl(ae);case 218:return ec(ae);case 219:return Hc(ae);case 220:return jd(ae);case 221:return Nd(ae);case 222:return kf(ae);case 223:return G_(ae);case 224:return Dh(ae);case 225:return Bu(ae);case 226:return Ar(ae);case 227:return Ap(ae);case 228:return dg(ae);case 229:return Ud(ae);case 230:return te(ae);case 231:return ct(ae);case 232:return;case 234:return Vt(ae);case 235:return W(ae);case 233:return Ft(ae);case 238:return Te(ae);case 236:return st(ae);case 237:return N.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return ts(ae);case 285:return pT(ae);case 288:return YD(ae);case 358:return N.fail("SyntaxList should not be printed");case 359:return;case 360:return Zr(ae);case 361:return Ch(ae);case 362:return N.fail("SyntheticReferenceExpression should not be printed")}if(Bd(ae.kind))return N1(ae,to);if(MV(ae.kind))return N1(ae,hr);N.fail(`Unhandled SyntaxKind: ${N.formatSyntaxKind(ae.kind)}.`)}function ke(D){Ye(D.name),ur(),to("in"),ur(),Ye(D.constraint)}function Tt(D,ae){const ht=me(1,D,ae);N.assertIsDefined(vi),ae=vi,vi=void 0,ht(D,ae)}function kt(D){let ae;if(M===0||e.noEmitHelpers)return;const ht=new Map;for(const on of D.sourceFiles){const wr=$k(on)!==void 0,wi=En(on);if(wi)for(const bi of wi)!bi.scoped&&!wr&&!ht.get(bi.name)&&(ht.set(bi.name,!0),(ae||(ae=[])).push(bi.name))}return ae}function en(D){let ae=!1;const ht=D.kind===313?D:void 0;if(ht&&M===0)return;const on=ht?ht.prepends.length:0,wr=ht?ht.sourceFiles.length+on:1;for(let wi=0;wi<wr;wi++){const bi=ht?wi<on?ht.prepends[wi]:ht.sourceFiles[wi-on]:D,no=$i(bi)?bi:VS(bi)?void 0:O,ga=e.noEmitHelpers||!!no&&Mae(no),ed=($i(bi)||VS(bi))&&!Ee,Pd=VS(bi)?bi.helpers:En(bi);if(Pd)for(const Ff of Pd){if(Ff.scoped){if(ht)continue}else{if(ga)continue;if(ed){if(C.get(Ff.name))continue;C.set(Ff.name,!0)}}const bb=Io();typeof Ff.text=="string"?TT(Ff.text):TT(Ff.text(ex)),De&&De.sections.push({pos:bb,end:ve.getTextPos(),kind:"emitHelpers",data:Ff.name}),ae=!0}}return ae}function En(D){const ae=cW(D);return ae&&Sv(ae,eae)}function Gn(D){qn(D,!1)}function qn(D,ae){const ht=xT(D,e.neverAsciiEscape,ae);(e.sourceMap||e.inlineSourceMap)&&(D.kind===11||Ny(D.kind))?fb(ht):nN(ht)}function Pi(D){for(const ae of D.texts)qc(),Ye(ae)}function xi(D){ve.rawWrite(D.parent.text.substring(D.pos,D.end))}function ir(D){const ae=Io();xi(D),De&&fa(ae,ve.getTextPos(),D.kind===309?"text":"internal")}function Vr(D){const ae=Io();if(xi(D),De){const ht=qB(D.section);ht.pos=ae,ht.end=ve.getTextPos(),De.sections.push(ht)}}function vo(D,ae,ht){switch(ht.kind){case 1:Mi(D,ae,ht);break;case 0:Ri(D,ae,ht);break}}function Mi(D,ae,ht){j0(`\${${ht.order}:`),Be(D,ae,!1),j0("}")}function Ri(D,ae,ht){N.assert(ae.kind===242,`A tab stop cannot be attached to a node of kind ${N.formatSyntaxKind(ae.kind)}.`),N.assert(D!==5,"A tab stop cannot be attached to an embedded statement."),j0(`$${ht.order}`)}function Jr(D){(D.symbol?PM:Ue)(Oc(D,!1),D.symbol),Qs(D,LS(D),53776)}function xo(D){Ue(Oc(D,!1))}function Nn(D){Fs(D.left),hr("."),Ye(D.right)}function Fs(D){D.kind===80?Gt(D):Ye(D)}function Ql(D){const ae=he,ht=Ce;hb(),hr("["),Gt(D.expression,Ln.parenthesizeExpressionOfComputedPropertyName),hr("]"),Of(ae,ht)}function ko(D){fg(D,D.modifiers),Ye(D.name),D.constraint&&(ur(),to("extends"),ur(),Ye(D.constraint)),D.default&&(ur(),mf("="),ur(),Ye(D.default))}function cs(D){jp(D,D.modifiers,!0),Ye(D.dotDotDotToken),yl(D.name,ay),Ye(D.questionToken),D.parent&&D.parent.kind===324&&!D.name?Ye(D.type):um(D.type),pb(D.initializer,D.type?D.type.end:D.questionToken?D.questionToken.end:D.name?D.name.end:D.modifiers?D.modifiers.end:D.pos,D,Ln.parenthesizeExpressionForDisallowedComma)}function Vs(D){hr("@"),Gt(D.expression,Ln.parenthesizeLeftSideOfAccess)}function gl(D){fg(D,D.modifiers),yl(D.name,ST),Ye(D.questionToken),um(D.type),nu()}function cu(D){jp(D,D.modifiers,!0),Ye(D.name),Ye(D.questionToken),Ye(D.exclamationToken),um(D.type),pb(D.initializer,D.type?D.type.end:D.questionToken?D.questionToken.end:D.name.end,D),nu()}function ho(D){Au(D),fg(D,D.modifiers),Ye(D.name),Ye(D.questionToken),j_(D,D.typeParameters),oy(D,D.parameters),um(D.type),nu(),ap(D)}function da(D){jp(D,D.modifiers,!0),Ye(D.asteriskToken),Ye(D.name),Ye(D.questionToken),vn(D,Zn)}function uu(D){to("static"),cr(D.body)}function Ts(D){jp(D,D.modifiers,!1),to("constructor"),vn(D,Zn)}function Ca(D){const ae=jp(D,D.modifiers,!0),ht=D.kind===177?139:153;Ui(ht,ae,to,D),ur(),Ye(D.name),vn(D,Zn)}function ml(D){Au(D),j_(D,D.typeParameters),oy(D,D.parameters),um(D.type),nu(),ap(D)}function Lf(D){Au(D),to("new"),ur(),j_(D,D.typeParameters),oy(D,D.parameters),um(D.type),nu(),ap(D)}function lc(D){jp(D,D.modifiers,!1),tN(D,D.parameters),um(D.type),nu()}function Nl(D){Ye(D.type),Ye(D.literal)}function cl(){nu()}function wo(D){D.assertsModifier&&(Ye(D.assertsModifier),ur()),Ye(D.parameterName),D.type&&(ur(),to("is"),ur(),Ye(D.type))}function nn(D){Ye(D.typeName),_g(D,D.typeArguments)}function js(D){Au(D),j_(D,D.typeParameters),eN(D,D.parameters),ur(),hr("=>"),ur(),Ye(D.type),ap(D)}function tu(D){to("function"),oy(D,D.parameters),hr(":"),Ye(D.type)}function du(D){hr("?"),Ye(D.type)}function Tp(D){hr("!"),Ye(D.type)}function Ms(D){Ye(D.type),hr("=")}function xc(D){Au(D),fg(D,D.modifiers),to("new"),ur(),j_(D,D.typeParameters),oy(D,D.parameters),ur(),hr("=>"),ur(),Ye(D.type),ap(D)}function ue(D){to("typeof"),ur(),Ye(D.exprName),_g(D,D.typeArguments)}function Z(D){Of(0,void 0),hr("{");const ae=Ga(D)&1?768:32897;Qs(D,D.members,ae|524288),hr("}"),hb()}function we(D){Ye(D.elementType,Ln.parenthesizeNonArrayTypeOfPostfixType),hr("["),hr("]")}function Et(D){hr("..."),Ye(D.type)}function un(D){Ui(23,D.pos,hr,D);const ae=Ga(D)&1?528:657;Qs(D,D.elements,ae|524288,Ln.parenthesizeElementTypeOfTupleType),Ui(24,D.elements.end,hr,D)}function Er(D){Ye(D.dotDotDotToken),Ye(D.name),Ye(D.questionToken),Ui(59,D.name.end,hr,D),ur(),Ye(D.type)}function vr(D){Ye(D.type,Ln.parenthesizeTypeOfOptionalType),hr("?")}function jr(D){Qs(D,D.types,516,Ln.parenthesizeConstituentTypeOfUnionType)}function Di(D){Qs(D,D.types,520,Ln.parenthesizeConstituentTypeOfIntersectionType)}function Mr(D){Ye(D.checkType,Ln.parenthesizeCheckTypeOfConditionalType),ur(),to("extends"),ur(),Ye(D.extendsType,Ln.parenthesizeExtendsTypeOfConditionalType),ur(),hr("?"),ur(),Ye(D.trueType),ur(),hr(":"),ur(),Ye(D.falseType)}function Yo(D){to("infer"),ur(),Ye(D.typeParameter)}function Sl(D){hr("("),Ye(D.type),hr(")")}function jc(){to("this")}function Us(D){mb(D.operator,to),ur();const ae=D.operator===148?Ln.parenthesizeOperandOfReadonlyTypeOperator:Ln.parenthesizeOperandOfTypeOperator;Ye(D.type,ae)}function vc(D){Ye(D.objectType,Ln.parenthesizeNonArrayTypeOfPostfixType),hr("["),Ye(D.indexType),hr("]")}function Es(D){const ae=Ga(D);hr("{"),ae&1?ur():(qc(),Ph()),D.readonlyToken&&(Ye(D.readonlyToken),D.readonlyToken.kind!==148&&to("readonly"),ur()),hr("["),q(3,D.typeParameter),D.nameType&&(ur(),to("as"),ur(),Ye(D.nameType)),hr("]"),D.questionToken&&(Ye(D.questionToken),D.questionToken.kind!==58&&hr("?")),hr(":"),ur(),Ye(D.type),nu(),ae&1?ur():(qc(),Om()),Qs(D,D.members,2),hr("}")}function Uc(D){Gt(D.literal)}function ip(D){Ye(D.head),Qs(D,D.templateSpans,262144)}function wc(D){D.isTypeOf&&(to("typeof"),ur()),to("import"),hr("("),Ye(D.argument),D.attributes&&(hr(","),ur(),q(7,D.attributes)),hr(")"),D.qualifier&&(hr("."),Ye(D.qualifier)),_g(D,D.typeArguments)}function sm(D){hr("{"),Qs(D,D.elements,525136),hr("}")}function _d(D){hr("["),Qs(D,D.elements,524880),hr("]")}function Pe(D){Ye(D.dotDotDotToken),D.propertyName&&(Ye(D.propertyName),hr(":"),ur()),Ye(D.name),pb(D.initializer,D.name.end,D,Ln.parenthesizeExpressionForDisallowedComma)}function Ot(D){const ae=D.elements,ht=D.multiLine?65536:0;R1(D,ae,8914|ht,Ln.parenthesizeExpressionForDisallowedComma)}function Xn(D){Of(0,void 0),Xe(D.properties,ZI);const ae=Ga(D)&131072;ae&&Ph();const ht=D.multiLine?65536:0,on=O&&O.languageVersion>=1&&!Yf(O)?64:0;Qs(D,D.properties,526226|on|ht),ae&&Om(),hb()}function yo(D){Gt(D.expression,Ln.parenthesizeLeftSideOfAccess);const ae=D.questionDotToken||hh(w.createToken(25),D.expression.end,D.name.pos),ht=Up(D,D.expression,ae),on=Up(D,ae,D.name);Wm(ht,!1),ae.kind!==29&&$o(D.expression)&&!ve.hasTrailingComment()&&!ve.hasTrailingWhitespace()&&hr("."),D.questionDotToken?Ye(ae):Ui(ae.kind,D.expression.end,hr,D),Wm(on,!1),Ye(D.name),U0(ht,on)}function $o(D){if(D=bm(D),hp(D)){const ae=xT(D,!0,!1);return!(D.numericLiteralFlags&448)&&!ae.includes(pa(25))&&!ae.includes("E")&&!ae.includes("e")}else if(ws(D)){const ae=qoe(D);return typeof ae=="number"&&isFinite(ae)&&ae>=0&&Math.floor(ae)===ae}}function na(D){Gt(D.expression,Ln.parenthesizeLeftSideOfAccess),Ye(D.questionDotToken),Ui(23,D.expression.end,hr,D),Gt(D.argumentExpression),Ui(24,D.argumentExpression.end,hr,D)}function Zl(D){const ae=Em(D)&16;ae&&(hr("("),fb("0"),hr(","),ur()),Gt(D.expression,Ln.parenthesizeLeftSideOfAccess),ae&&hr(")"),Ye(D.questionDotToken),_g(D,D.typeArguments),R1(D,D.arguments,2576,Ln.parenthesizeExpressionForDisallowedComma)}function yc(D){Ui(105,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeExpressionOfNew),_g(D,D.typeArguments),R1(D,D.arguments,18960,Ln.parenthesizeExpressionForDisallowedComma)}function ul(D){const ae=Em(D)&16;ae&&(hr("("),fb("0"),hr(","),ur()),Gt(D.tag,Ln.parenthesizeLeftSideOfAccess),ae&&hr(")"),_g(D,D.typeArguments),ur(),Gt(D.template)}function vl(D){hr("<"),Ye(D.type),hr(">"),Gt(D.expression,Ln.parenthesizeOperandOfPrefixUnary)}function Gl(D){const ae=Ui(21,D.pos,hr,D),ht=rN(D.expression,D);Gt(D.expression,void 0),C1(D.expression,D),U0(ht),Ui(22,D.expression?D.expression.end:ae,hr,D)}function ec(D){Hp(D.name),Qn(D)}function Hc(D){fg(D,D.modifiers),vn(D,df)}function df(D){j_(D,D.typeParameters),eN(D,D.parameters),um(D.type),ur(),Ye(D.equalsGreaterThanToken)}function jd(D){Ui(91,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeOperandOfPrefixUnary)}function Nd(D){Ui(114,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeOperandOfPrefixUnary)}function kf(D){Ui(116,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeOperandOfPrefixUnary)}function G_(D){Ui(135,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeOperandOfPrefixUnary)}function Dh(D){mb(D.operator,mf),qg(D)&&ur(),Gt(D.operand,Ln.parenthesizeOperandOfPrefixUnary)}function qg(D){const ae=D.operand;return ae.kind===224&&(D.operator===40&&(ae.operator===40||ae.operator===46)||D.operator===41&&(ae.operator===41||ae.operator===47))}function Bu(D){Gt(D.operand,Ln.parenthesizeOperandOfPostfixUnary),mb(D.operator,mf)}function Jg(){return aF(D,ae,ht,on,wr,void 0);function D(bi,no){if(no){no.stackIndex++,no.preserveSourceNewlinesStack[no.stackIndex]=de,no.containerPosStack[no.stackIndex]=tn,no.containerEndStack[no.stackIndex]=rn,no.declarationListContainerEndStack[no.stackIndex]=Mn;const ga=no.shouldEmitCommentsStack[no.stackIndex]=Oe(bi),ed=no.shouldEmitSourceMapsStack[no.stackIndex]=Lt(bi);l==null||l(bi),ga&&CT(bi),ed&&ix(bi),fn(bi)}else no={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return no}function ae(bi,no,ga){return wi(bi,ga,"left")}function ht(bi,no,ga){const ed=bi.kind!==28,Pd=Up(ga,ga.left,bi),Ff=Up(ga,bi,ga.right);Wm(Pd,ed),gg(bi.pos),N1(bi,bi.kind===103?to:mf),Fm(bi.end,!0),Wm(Ff,!0)}function on(bi,no,ga){return wi(bi,ga,"right")}function wr(bi,no){const ga=Up(bi,bi.left,bi.operatorToken),ed=Up(bi,bi.operatorToken,bi.right);if(U0(ga,ed),no.stackIndex>0){const Pd=no.preserveSourceNewlinesStack[no.stackIndex],Ff=no.containerPosStack[no.stackIndex],bb=no.containerEndStack[no.stackIndex],Si=no.declarationListContainerEndStack[no.stackIndex],kh=no.shouldEmitCommentsStack[no.stackIndex],Hn=no.shouldEmitSourceMapsStack[no.stackIndex];hn(Pd),Hn&&LT(bi),kh&&sN(bi,Ff,bb,Si),u==null||u(bi),no.stackIndex--}}function wi(bi,no,ga){const ed=ga==="left"?Ln.getParenthesizeLeftSideOfBinaryForOperator(no.operatorToken.kind):Ln.getParenthesizeRightSideOfBinaryForOperator(no.operatorToken.kind);let Pd=L(0,1,bi);if(Pd===Tt&&(N.assertIsDefined(vi),bi=ed(oa(vi,yt)),Pd=me(1,1,bi),vi=void 0),(Pd===aN||Pd===X0||Pd===fe)&&mr(bi))return bi;so=ed,Pd(1,bi)}}function Ap(D){const ae=Up(D,D.condition,D.questionToken),ht=Up(D,D.questionToken,D.whenTrue),on=Up(D,D.whenTrue,D.colonToken),wr=Up(D,D.colonToken,D.whenFalse);Gt(D.condition,Ln.parenthesizeConditionOfConditionalExpression),Wm(ae,!0),Ye(D.questionToken),Wm(ht,!0),Gt(D.whenTrue,Ln.parenthesizeBranchOfConditionalExpression),U0(ae,ht),Wm(on,!0),Ye(D.colonToken),Wm(wr,!0),Gt(D.whenFalse,Ln.parenthesizeBranchOfConditionalExpression),U0(on,wr)}function dg(D){Ye(D.head),Qs(D,D.templateSpans,262144)}function Ud(D){Ui(127,D.pos,to,D),Ye(D.asteriskToken),x1(D.expression&&Lm(D.expression),b1)}function te(D){Ui(26,D.pos,hr,D),Gt(D.expression,Ln.parenthesizeExpressionForDisallowedComma)}function ct(D){Hp(D.name),Ja(D)}function Ft(D){Gt(D.expression,Ln.parenthesizeLeftSideOfAccess),_g(D,D.typeArguments)}function Vt(D){Gt(D.expression,void 0),D.type&&(ur(),to("as"),ur(),Ye(D.type))}function W(D){Gt(D.expression,Ln.parenthesizeLeftSideOfAccess),mf("!")}function Te(D){Gt(D.expression,void 0),D.type&&(ur(),to("satisfies"),ur(),Ye(D.type))}function st(D){D1(D.keywordToken,D.pos,hr),hr("."),Ye(D.name)}function qt(D){Gt(D.expression),Ye(D.literal)}function rr(D){ii(D,!D.multiLine&&IT(D))}function ii(D,ae){Ui(19,D.pos,hr,D);const ht=ae||Ga(D)&1?768:129;Qs(D,D.statements,ht),Ui(20,D.statements.end,hr,D,!!(ht&1))}function Yr(D){jp(D,D.modifiers,!1),Ye(D.declarationList),nu()}function oo(D){D?hr(";"):nu()}function wa(D){Gt(D.expression,Ln.parenthesizeExpressionOfExpressionStatement),(!O||!Yf(O)||Ys(D.expression))&&nu()}function Oa(D){const ae=Ui(101,D.pos,to,D);ur(),Ui(21,ae,hr,D),Gt(D.expression),Ui(22,D.expression.end,hr,D),mg(D,D.thenStatement),D.elseStatement&&(tv(D,D.thenStatement,D.elseStatement),Ui(93,D.thenStatement.end,to,D),D.elseStatement.kind===245?(ur(),Ye(D.elseStatement)):mg(D,D.elseStatement))}function Ol(D,ae){const ht=Ui(117,ae,to,D);ur(),Ui(21,ht,hr,D),Gt(D.expression),Ui(22,D.expression.end,hr,D)}function pu(D){Ui(92,D.pos,to,D),mg(D,D.statement),Ko(D.statement)&&!de?ur():tv(D,D.statement,D.expression),Ol(D,D.statement.end),nu()}function Rc(D){Ol(D,D.pos),mg(D,D.statement)}function Ip(D){const ae=Ui(99,D.pos,to,D);ur();let ht=Ui(21,ae,hr,D);us(D.initializer),ht=Ui(27,D.initializer?D.initializer.end:ht,hr,D),x1(D.condition),ht=Ui(27,D.condition?D.condition.end:ht,hr,D),x1(D.incrementor),Ui(22,D.incrementor?D.incrementor.end:ht,hr,D),mg(D,D.statement)}function Hd(D){const ae=Ui(99,D.pos,to,D);ur(),Ui(21,ae,hr,D),us(D.initializer),ur(),Ui(103,D.initializer.end,to,D),ur(),Gt(D.expression),Ui(22,D.expression.end,hr,D),mg(D,D.statement)}function ab(D){const ae=Ui(99,D.pos,to,D);ur(),vT(D.awaitModifier),Ui(21,ae,hr,D),us(D.initializer),ur(),Ui(165,D.initializer.end,to,D),ur(),Gt(D.expression),Ui(22,D.expression.end,hr,D),mg(D,D.statement)}function us(D){D!==void 0&&(D.kind===261?Ye(D):Gt(D))}function Pm(D){Ui(88,D.pos,to,D),ev(D.label),nu()}function Mm(D){Ui(83,D.pos,to,D),ev(D.label),nu()}function Ui(D,ae,ht,on,wr){const wi=No(on),bi=wi&&wi.kind===on.kind,no=ae;if(bi&&O&&(ae=Pa(O.text,ae)),bi&&on.pos!==no){const ga=wr&&O&&!If(no,ae,O);ga&&Ph(),gg(no),ga&&Om()}if(!A&&(D===19||D===20)?ae=D1(D,ae,ht,on):ae=mb(D,ht,ae),bi&&on.end!==ae){const ga=on.kind===294;Fm(ae,!ga,ga)}return ae}function Kg(D){return D.kind===2||!!D.hasTrailingNewLine}function ey(D){if(!O)return!1;const ae=qh(O.text,D.pos);if(ae){const ht=No(D);if(ht&&Gd(ht.parent))return!0}return bt(ae,Kg)||bt(WR(D),Kg)?!0:qW(D)?D.pos!==D.expression.pos&&bt(Zb(O.text,D.expression.pos),Kg)?!0:ey(D.expression):!1}function Lm(D){if(!Yt&&qW(D)&&ey(D)){const ae=No(D);if(ae&&Gd(ae)){const ht=w.createParenthesizedExpression(D.expression);return Nr(ht,D),dt(ht,ae),ht}return w.createParenthesizedExpression(D)}return D}function b1(D){return Lm(Ln.parenthesizeExpressionForDisallowedComma(D))}function E1(D){Ui(107,D.pos,to,D),x1(D.expression&&Lm(D.expression),Lm),nu()}function pf(D){const ae=Ui(118,D.pos,to,D);ur(),Ui(21,ae,hr,D),Gt(D.expression),Ui(22,D.expression.end,hr,D),mg(D,D.statement)}function V_(D){const ae=Ui(109,D.pos,to,D);ur(),Ui(21,ae,hr,D),Gt(D.expression),Ui(22,D.expression.end,hr,D),ur(),Ye(D.caseBlock)}function ff(D){Ye(D.label),Ui(59,D.label.end,hr,D),ur(),Ye(D.statement)}function Xg(D){Ui(111,D.pos,to,D),x1(Lm(D.expression),Lm),nu()}function ze(D){Ui(113,D.pos,to,D),ur(),Ye(D.tryBlock),D.catchClause&&(tv(D,D.tryBlock,D.catchClause),Ye(D.catchClause)),D.finallyBlock&&(tv(D,D.catchClause||D.tryBlock,D.finallyBlock),Ui(98,(D.catchClause||D.tryBlock).end,to,D),ur(),Ye(D.finallyBlock))}function Ze(D){D1(89,D.pos,to),nu()}function Mt(D){var ae,ht,on;Ye(D.name),Ye(D.exclamationToken),um(D.type),pb(D.initializer,((ae=D.type)==null?void 0:ae.end)??((on=(ht=D.name.emitNode)==null?void 0:ht.typeNode)==null?void 0:on.end)??D.name.end,D,Ln.parenthesizeExpressionForDisallowedComma)}function jt(D){if(xL(D))to("await"),ur(),to("using");else{const ae=O4(D)?"let":iR(D)?"const":RL(D)?"using":"var";to(ae)}ur(),Qs(D,D.declarations,528)}function bn(D){Qn(D)}function Qn(D){jp(D,D.modifiers,!1),to("function"),Ye(D.asteriskToken),ur(),_t(D.name),vn(D,Zn)}function vn(D,ae){const ht=D.body;if(ht)if(Ko(ht)){const on=Ga(D)&131072;on&&Ph(),Au(D),Xe(D.parameters,ru),ru(D.body),ae(D),cr(ht),ap(D),on&&Om()}else ae(D),ur(),Gt(ht,Ln.parenthesizeConciseBodyOfArrowFunction);else ae(D),nu()}function Zn(D){j_(D,D.typeParameters),oy(D,D.parameters),um(D.type)}function _i(D){if(Ga(D)&1)return!0;if(D.multiLine||!Ys(D)&&O&&!CS(D,O)||hg(D,Kc(D.statements),2)||QI(D,el(D.statements),2,D.statements))return!1;let ae;for(const ht of D.statements){if(_b(ae,ht,2)>0)return!1;ae=ht}return!0}function cr(D){l==null||l(D),ur(),hr("{"),Ph();const ae=_i(D)?ni:fr;Ir(D,D.statements,ae),Om(),D1(20,D.statements.end,hr,D),u==null||u(D)}function ni(D){fr(D,!0)}function fr(D,ae){const ht=Jd(D.statements),on=ve.getTextPos();en(D),ht===0&&on===ve.getTextPos()&&ae?(Om(),Qs(D,D.statements,768),Ph()):Qs(D,D.statements,1,void 0,ht)}function Qo(D){Ja(D)}function Ja(D){Of(0,void 0),Xe(D.members,ZI),jp(D,D.modifiers,!0),Ui(86,C_(D).pos,to,D),D.name&&(ur(),_t(D.name));const ae=Ga(D)&131072;ae&&Ph(),j_(D,D.typeParameters),Qs(D,D.heritageClauses,0),ur(),hr("{"),Qs(D,D.members,129),hr("}"),ae&&Om(),hb()}function Zu(D){Of(0,void 0),jp(D,D.modifiers,!1),to("interface"),ur(),Ye(D.name),j_(D,D.typeParameters),Qs(D,D.heritageClauses,512),ur(),hr("{"),Qs(D,D.members,129),hr("}"),hb()}function fu(D){jp(D,D.modifiers,!1),to("type"),ur(),Ye(D.name),j_(D,D.typeParameters),ur(),hr("="),ur(),Ye(D.type),nu()}function Yg(D){jp(D,D.modifiers,!1),to("enum"),ur(),Ye(D.name),ur(),hr("{"),Qs(D,D.members,145),hr("}")}function O0(D){jp(D,D.modifiers,!1),~D.flags&2048&&(to(D.flags&32?"namespace":"module"),ur()),Ye(D.name);let ae=D.body;if(!ae)return nu();for(;ae&&Xl(ae);)hr("."),Ye(ae.name),ae=ae.body;ur(),Ye(ae)}function zI(D){Au(D),Xe(D.statements,ru),ii(D,IT(D)),ap(D)}function W0(D){Ui(19,D.pos,hr,D),Qs(D,D.clauses,129),Ui(20,D.clauses.end,hr,D,!0)}function qD(D){jp(D,D.modifiers,!1),Ui(102,D.modifiers?D.modifiers.end:D.pos,to,D),ur(),D.isTypeOnly&&(Ui(156,D.pos,to,D),ur()),Ye(D.name),ur(),Ui(64,D.name.end,hr,D),ur(),JD(D.moduleReference),nu()}function JD(D){D.kind===80?Gt(D):Ye(D)}function KD(D){jp(D,D.modifiers,!1),Ui(102,D.modifiers?D.modifiers.end:D.pos,to,D),ur(),D.importClause&&(Ye(D.importClause),ur(),Ui(161,D.importClause.end,to,D),ur()),Gt(D.moduleSpecifier),D.attributes&&ev(D.attributes),nu()}function uT(D){D.isTypeOnly&&(Ui(156,D.pos,to,D),ur()),Ye(D.name),D.name&&D.namedBindings&&(Ui(28,D.name.end,hr,D),ur()),Ye(D.namedBindings)}function S1(D){const ae=Ui(42,D.pos,hr,D);ur(),Ui(130,ae,to,D),ur(),Ye(D.name)}function BI(D){lb(D)}function XD(D){pg(D)}function GI(D){const ae=Ui(95,D.pos,to,D);ur(),D.isExportEquals?Ui(64,ae,mf,D):Ui(90,ae,to,D),ur(),Gt(D.expression,D.isExportEquals?Ln.getParenthesizeRightSideOfBinaryForOperator(64):Ln.parenthesizeExpressionOfExportDefault),nu()}function VI(D){jp(D,D.modifiers,!1);let ae=Ui(95,D.pos,to,D);if(ur(),D.isTypeOnly&&(ae=Ui(156,ae,to,D),ur()),D.exportClause?Ye(D.exportClause):ae=Ui(42,ae,hr,D),D.moduleSpecifier){ur();const ht=D.exportClause?D.exportClause.end:ae;Ui(161,ht,to,D),ur(),Gt(D.moduleSpecifier)}D.attributes&&ev(D.attributes),nu()}function jI(D){hr("{"),ur(),to(D.token===132?"assert":"with"),hr(":"),ur();const ae=D.elements;Qs(D,ae,526226),ur(),hr("}")}function UI(D){Ui(D.token,D.pos,to,D),ur();const ae=D.elements;Qs(D,ae,526226)}function dT(D){Ye(D.name),hr(":"),ur();const ae=D.value;if(!(Ga(ae)&1024)){const ht=M_(ae);Fm(ht.pos)}Ye(ae)}function HI(D){let ae=Ui(95,D.pos,to,D);ur(),ae=Ui(130,ae,to,D),ur(),ae=Ui(145,ae,to,D),ur(),Ye(D.name),nu()}function T1(D){const ae=Ui(42,D.pos,hr,D);ur(),Ui(130,ae,to,D),ur(),Ye(D.name)}function A1(D){lb(D)}function sb(D){pg(D)}function lb(D){hr("{"),Qs(D,D.elements,525136),hr("}")}function pg(D){D.isTypeOnly&&(to("type"),ur()),D.propertyName&&(Ye(D.propertyName),ur(),Ui(130,D.propertyName.end,to,D),ur()),Ye(D.name)}function F0(D){to("require"),hr("("),Gt(D.expression),hr(")")}function ts(D){Ye(D.openingElement),Qs(D,D.children,262144),Ye(D.closingElement)}function pT(D){hr("<"),cb(D.tagName),_g(D,D.typeArguments),ur(),Ye(D.attributes),hr("/>")}function YD(D){Ye(D.openingFragment),Qs(D,D.children,262144),Ye(D.closingFragment)}function z0(D){if(hr("<"),k_(D)){const ae=rN(D.tagName,D);cb(D.tagName),_g(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&ur(),Ye(D.attributes),C1(D.attributes,D),U0(ae)}hr(">")}function $g(D){ve.writeLiteral(D.text)}function Nh(D){hr("</"),e1(D)&&cb(D.tagName),hr(">")}function wf(D){Qs(D,D.properties,262656)}function qd(D){Ye(D.name),km("=",hr,D.initializer,yn)}function xp(D){hr("{..."),Gt(D.expression),hr("}")}function op(D){let ae=!1;return $2((O==null?void 0:O.text)||"",D+1,()=>ae=!0),ae}function ty(D){let ae=!1;return Y2((O==null?void 0:O.text)||"",D+1,()=>ae=!0),ae}function fT(D){return op(D)||ty(D)}function $D(D){var ae;if(D.expression||!Yt&&!Ys(D)&&fT(D.pos)){const ht=O&&!Ys(D)&&ys(O,D.pos).line!==ys(O,D.end).line;ht&&ve.increaseIndent();const on=Ui(19,D.pos,hr,D);Ye(D.dotDotDotToken),Gt(D.expression),Ui(20,((ae=D.expression)==null?void 0:ae.end)||on,hr,D),ht&&ve.decreaseIndent()}}function qI(D){_t(D.namespace),hr(":"),_t(D.name)}function cb(D){D.kind===80?Gt(D):Ye(D)}function B0(D){Ui(84,D.pos,to,D),ur(),Gt(D.expression,Ln.parenthesizeExpressionForDisallowedComma),bc(D,D.statements,D.expression.end)}function JI(D){const ae=Ui(90,D.pos,to,D);bc(D,D.statements,ae)}function bc(D,ae,ht){const on=ae.length===1&&(!O||Ys(D)||Ys(ae[0])||A3(D,ae[0],O));let wr=163969;on?(D1(59,ht,hr,D),ur(),wr&=-130):Ui(59,ht,hr,D),Qs(D,ae,wr)}function ny(D){ur(),mb(D.token,to),ur(),Qs(D,D.types,528)}function KI(D){const ae=Ui(85,D.pos,to,D);ur(),D.variableDeclaration&&(Ui(21,ae,hr,D),Ye(D.variableDeclaration),Ui(22,D.variableDeclaration.end,hr,D),ur()),Ye(D.block)}function r_(D){Ye(D.name),hr(":"),ur();const ae=D.initializer;if(!(Ga(ae)&1024)){const ht=M_(ae);Fm(ht.pos)}Gt(ae,Ln.parenthesizeExpressionForDisallowedComma)}function mT(D){Ye(D.name),D.objectAssignmentInitializer&&(ur(),hr("="),ur(),Gt(D.objectAssignmentInitializer,Ln.parenthesizeExpressionForDisallowedComma))}function qe(D){D.expression&&(Ui(26,D.pos,hr,D),Gt(D.expression,Ln.parenthesizeExpressionForDisallowedComma))}function i_(D){Ye(D.name),pb(D.initializer,D.name.end,D,Ln.parenthesizeExpressionForDisallowedComma)}function mu(D){if(Ue("/**"),D.comment){const ae=aL(D.comment);if(ae){const ht=ae.split(/\r\n?|\n/g);for(const on of ht)qc(),ur(),hr("*"),ur(),Ue(on)}}D.tags&&(D.tags.length===1&&D.tags[0].kind===351&&!D.comment?(ur(),Ye(D.tags[0])):Qs(D,D.tags,33)),ur(),Ue("*/")}function G0(D){lm(D.tagName),Qg(D.typeExpression),cm(D.comment)}function XI(D){lm(D.tagName),Ye(D.name),cm(D.comment)}function ub(D){ur(),hr("{"),Ye(D.name),hr("}")}function ry(D){lm(D.tagName),ur(),hr("{"),Ye(D.class),hr("}"),cm(D.comment)}function iy(D){lm(D.tagName),Qg(D.constraint),ur(),Qs(D,D.typeParameters,528),cm(D.comment)}function DM(D){lm(D.tagName),D.typeExpression&&(D.typeExpression.kind===316?Qg(D.typeExpression):(ur(),hr("{"),Ue("Object"),D.typeExpression.isArrayType&&(hr("["),hr("]")),hr("}"))),D.fullName&&(ur(),Ye(D.fullName)),cm(D.comment),D.typeExpression&&D.typeExpression.kind===329&&hT(D.typeExpression)}function Ka(D){lm(D.tagName),D.name&&(ur(),Ye(D.name)),cm(D.comment),V0(D.typeExpression)}function o_(D){cm(D.comment),V0(D.typeExpression)}function _T(D){lm(D.tagName),cm(D.comment)}function hT(D){Qs(D,w.createNodeArray(D.jsDocPropertyTags),33)}function V0(D){D.typeParameters&&Qs(D,w.createNodeArray(D.typeParameters),33),D.parameters&&Qs(D,w.createNodeArray(D.parameters),33),D.type&&(qc(),ur(),hr("*"),ur(),Ye(D.type))}function gT(D){lm(D.tagName),Qg(D.typeExpression),ur(),D.isBracketed&&hr("["),Ye(D.name),D.isBracketed&&hr("]"),cm(D.comment)}function lm(D){hr("@"),Ye(D)}function cm(D){const ae=aL(D);ae&&(ur(),Ue(ae))}function Qg(D){D&&(ur(),hr("{"),Ye(D.type),hr("}"))}function YI(D){qc();const ae=D.statements;if(ae.length===0||!Sm(ae[0])||Ys(ae[0])){Ir(D,ae,Ki);return}Ki(D)}function a_(D){I1(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[]);for(const ae of D.prepends)if(VS(ae)&&ae.syntheticReferences)for(const ht of ae.syntheticReferences)Ye(ht),qc()}function QD(D){D.isDeclarationFile&&I1(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function I1(D,ae,ht,on){if(D){const wr=ve.getTextPos();U_('/// <reference no-default-lib="true"/>'),De&&De.sections.push({pos:wr,end:ve.getTextPos(),kind:"no-default-lib"}),qc()}if(O&&O.moduleName&&(U_(`/// <amd-module name="${O.moduleName}" />`),qc()),O&&O.amdDependencies)for(const wr of O.amdDependencies)wr.name?U_(`/// <amd-dependency name="${wr.name}" path="${wr.path}" />`):U_(`/// <amd-dependency path="${wr.path}" />`),qc();for(const wr of ae){const wi=ve.getTextPos();U_(`/// <reference path="${wr.fileName}" />`),De&&De.sections.push({pos:wi,end:ve.getTextPos(),kind:"reference",data:wr.fileName}),qc()}for(const wr of ht){const wi=ve.getTextPos(),bi=wr.resolutionMode&&wr.resolutionMode!==(O==null?void 0:O.impliedNodeFormat)?`resolution-mode="${wr.resolutionMode===99?"import":"require"}"`:"";U_(`/// <reference types="${wr.fileName}" ${bi}/>`),De&&De.sections.push({pos:wi,end:ve.getTextPos(),kind:wr.resolutionMode?wr.resolutionMode===99?"type-import":"type-require":"type",data:wr.fileName}),qc()}for(const wr of on){const wi=ve.getTextPos();U_(`/// <reference lib="${wr.fileName}" />`),De&&De.sections.push({pos:wi,end:ve.getTextPos(),kind:"lib",data:wr.fileName}),qc()}}function Ki(D){const ae=D.statements;Au(D),Xe(D.statements,ru),en(D);const ht=mi(ae,on=>!Sm(on));QD(D),Qs(D,ae,1,void 0,ht===-1?ae.length:ht),ap(D)}function Zr(D){const ae=Ga(D);!(ae&1024)&&D.pos!==D.expression.pos&&Fm(D.expression.pos),Gt(D.expression),!(ae&2048)&&D.end!==D.expression.end&&gg(D.expression.end)}function Ch(D){R1(D,D.elements,528,void 0)}function Jd(D,ae,ht,on){let wr=!!ae;for(let wi=0;wi<D.length;wi++){const bi=D[wi];if(Sm(bi)){if(ht?!ht.has(bi.expression.text):!0){wr&&(wr=!1,pt(ae)),qc();const ga=ve.getTextPos();Ye(bi),on&&De&&De.sections.push({pos:ga,end:ve.getTextPos(),kind:"prologue",data:bi.expression.text}),ht&&ht.add(bi.expression.text)}}else return wi}return D.length}function NM(D,ae){for(const ht of D)if(!ae.has(ht.data)){qc();const on=ve.getTextPos();Ye(ht),De&&De.sections.push({pos:on,end:ve.getTextPos(),kind:"prologue",data:ht.data}),ae&&ae.add(ht.data)}}function Zg(D){if($i(D))Jd(D.statements,D);else{const ae=new Set;for(const ht of D.prepends)NM(ht.prologues,ae);for(const ht of D.sourceFiles)Jd(ht.statements,ht,ae,!0);pt(void 0)}}function CM(D){const ae=new Set;let ht;for(let on=0;on<D.sourceFiles.length;on++){const wr=D.sourceFiles[on];let wi,bi=0;for(const no of wr.statements){if(!Sm(no))break;ae.has(no.expression.text)||(ae.add(no.expression.text),(wi||(wi=[])).push({pos:no.pos,end:no.end,expression:{pos:no.expression.pos,end:no.expression.end,text:no.expression.text}}),bi=bi<no.end?no.end:bi)}wi&&(ht||(ht=[])).push({file:on,text:wr.text.substring(0,bi),directives:wi})}return ht}function db(D){if($i(D)||VS(D)){const ae=r4(D.text);if(ae)return U_(ae),qc(),!0}else{for(const ae of D.prepends)if(N.assertNode(ae,VS),db(ae))return!0;for(const ae of D.sourceFiles)if(db(ae))return!0}}function yl(D,ae){if(!D)return;const ht=Ue;Ue=ae,Ye(D),Ue=ht}function jp(D,ae,ht){if(ae!=null&&ae.length){if(Jn(ae,Aa))return fg(D,ae);if(Jn(ae,Eu))return ht?$I(D,ae):D.pos;p==null||p(ae);let on,wr,wi=0,bi=0,no;for(;wi<ae.length;){for(;bi<ae.length;){if(no=ae[bi],wr=Eu(no)?"decorators":"modifiers",on===void 0)on=wr;else if(wr!==on)break;bi++}const ga={pos:-1,end:-1};wi===0&&(ga.pos=ae.pos),bi===ae.length-1&&(ga.end=ae.end),(on==="modifiers"||ht)&&wm(Ye,D,ae,on==="modifiers"?2359808:2146305,void 0,wi,bi-wi,!1,ga),wi=bi,on=wr,bi++}if(h==null||h(ae),no&&!Ym(no.end))return no.end}return D.pos}function fg(D,ae){Qs(D,ae,2359808);const ht=el(ae);return ht&&!Ym(ht.end)?ht.end:D.pos}function um(D){D&&(hr(":"),ur(),Ye(D))}function pb(D,ae,ht,on){D&&(ur(),Ui(64,ae,mf,ht),ur(),Gt(D,on))}function km(D,ae,ht,on){ht&&(ae(D),on(ht))}function ev(D){D&&(ur(),Ye(D))}function x1(D,ae){D&&(ur(),Gt(D,ae))}function vT(D){D&&(Ye(D),ur())}function mg(D,ae){Ko(ae)||Ga(D)&1||de&&!hg(D,ae,0)?(ur(),Ye(ae)):(qc(),Ph(),cH(ae)?q(5,ae):Ye(ae),Om())}function $I(D,ae){Qs(D,ae,2146305);const ht=el(ae);return ht&&!Ym(ht.end)?ht.end:D.pos}function _g(D,ae){Qs(D,ae,53776,Ci)}function j_(D,ae){if(ea(D)&&D.typeArguments)return _g(D,D.typeArguments);Qs(D,ae,53776)}function oy(D,ae){Qs(D,ae,2576)}function ZD(D,ae){const ht=oh(ae);return ht&&ht.pos===D.pos&&Gs(D)&&!D.type&&!bt(D.modifiers)&&!bt(D.typeParameters)&&!bt(ht.modifiers)&&!ht.dotDotDotToken&&!ht.questionToken&&!ht.type&&!ht.initializer&&Ve(ht.name)}function eN(D,ae){ZD(D,ae)?Qs(D,ae,528):oy(D,ae)}function tN(D,ae){Qs(D,ae,8848)}function yT(D){switch(D&60){case 0:break;case 16:hr(",");break;case 4:ur(),hr("|");break;case 32:ur(),hr("*"),ur();break;case 8:ur(),hr("&");break}}function Qs(D,ae,ht,on,wr,wi){bT(Ye,D,ae,ht|(D&&Ga(D)&2?65536:0),on,wr,wi)}function R1(D,ae,ht,on,wr,wi){bT(Gt,D,ae,ht,on,wr,wi)}function bT(D,ae,ht,on,wr,wi=0,bi=ht?ht.length-wi:0){if(ht===void 0&&on&16384)return;const ga=ht===void 0||wi>=ht.length||bi===0;if(ga&&on&32768){p==null||p(ht),h==null||h(ht);return}on&15360&&(hr(vUe(on)),ga&&ht&&Fm(ht.pos,!0)),p==null||p(ht),ga?on&1&&!(de&&(!ae||O&&CS(ae,O)))?qc():on&256&&!(on&524288)&&ur():wm(D,ae,ht,on,wr,wi,bi,ht.hasTrailingComma,ht),h==null||h(ht),on&15360&&(ga&&ht&&gg(ht.end),hr(yUe(on)))}function wm(D,ae,ht,on,wr,wi,bi,no,ga){const ed=(on&262144)===0;let Pd=ed;const Ff=hg(ae,ht[wi],on);Ff?(qc(Ff),Pd=!1):on&256&&ur(),on&128&&Ph();const bb=TUe(D,wr);let Si,kh,Hn=!1;for(let W1=0;W1<bi;W1++){const q_=ht[wi+W1];if(on&32)qc(),yT(on);else if(Si){on&60&&Si.end!==(ae?ae.end:-1)&&(Ga(Si)&2048||gg(Si.end)),yT(on),Tn(kh);const wh=_b(Si,q_,on);if(wh>0){if(on&131||(Ph(),Hn=!0),Pd&&on&60&&!Ym(q_.pos)){const dN=M_(q_);Fm(dN.pos,!!(on&512),!0)}qc(wh),Pd=!1}else Si&&on&512&&ur()}if(kh=ka(q_),Pd){const wh=M_(q_);Fm(wh.pos)}else Pd=ed;ie=q_.pos,bb(q_,D,wr,W1),Hn&&(Om(),Hn=!1),Si=q_}const ox=Si?Ga(Si):0,Eb=Yt||!!(ox&2048),Sb=no&&on&64&&on&16;Sb&&(Si&&!Eb?Ui(28,Si.end,hr,Si):hr(",")),Si&&(ae?ae.end:-1)!==Si.end&&on&60&&!Eb&&gg(Sb&&(ga!=null&&ga.end)?ga.end:Si.end),on&128&&Om(),Tn(kh);const kT=QI(ae,ht[wi+bi-1],on,ga);kT?qc(kT):on&2097408&&ur()}function fb(D){ve.writeLiteral(D)}function nN(D){ve.writeStringLiteral(D)}function ET(D){ve.write(D)}function PM(D,ae){ve.writeSymbol(D,ae)}function hr(D){ve.writePunctuation(D)}function nu(){ve.writeTrailingSemicolon(";")}function to(D){ve.writeKeyword(D)}function mf(D){ve.writeOperator(D)}function ay(D){ve.writeParameter(D)}function U_(D){ve.writeComment(D)}function ur(){ve.writeSpace(" ")}function ST(D){ve.writeProperty(D)}function j0(D){ve.nonEscapingWrite?ve.nonEscapingWrite(D):ve.write(D)}function qc(D=1){for(let ae=0;ae<D;ae++)ve.writeLine(ae>0)}function Ph(){ve.increaseIndent()}function Om(){ve.decreaseIndent()}function D1(D,ae,ht,on){return je?mb(D,ht,ae):O1(on,D,ht,ae,mb)}function N1(D,ae){m&&m(D),ae(pa(D.kind)),y&&y(D)}function mb(D,ae,ht){const on=pa(D);return ae(on),ht<0?ht:ht+on.length}function tv(D,ae,ht){if(Ga(D)&1)ur();else if(de){const on=Up(D,ae,ht);on?qc(on):ur()}else qc()}function TT(D){const ae=D.split(/\r\n?|\n/g),ht=xre(ae);for(const on of ae){const wr=ht?on.slice(ht):on;wr.length&&(qc(),Ue(wr))}}function Wm(D,ae){D?(Ph(),qc(D)):ae&&ur()}function U0(D,ae){D&&Om(),ae&&Om()}function hg(D,ae,ht){if(ht&2||de){if(ht&65536)return 1;if(ae===void 0)return!D||O&&CS(D,O)?0:1;if(ae.pos===ie||ae.kind===12)return 0;if(O&&D&&!Ym(D.pos)&&!Ys(ae)&&(!ae.parent||Pl(ae.parent)===Pl(D)))return de?H0(on=>$ie(ae.pos,D.pos,O,on)):A3(D,ae,O)?0:1;if(AT(ae,ht))return 1}return ht&1?1:0}function _b(D,ae,ht){if(ht&2||de){if(D===void 0||ae===void 0||ae.kind===12)return 0;if(O&&!Ys(D)&&!Ys(ae))return de&&Cd(D,ae)?H0(on=>nU(D,ae,O,on)):!de&&_f(D,ae)?uk(D,ae,O)?0:1:ht&65536?1:0;if(AT(D,ht)||AT(ae,ht))return 1}else if(cP(ae))return 1;return ht&1?1:0}function QI(D,ae,ht,on){if(ht&2||de){if(ht&65536)return 1;if(ae===void 0)return!D||O&&CS(D,O)?0:1;if(O&&D&&!Ym(D.pos)&&!Ys(ae)&&(!ae.parent||ae.parent===D)){if(de){const wr=on&&!Ym(on.end)?on.end:ae.end;return H0(wi=>Qie(wr,D.end,O,wi))}return Kie(D,ae,O)?0:1}if(AT(ae,ht))return 1}return ht&1&&!(ht&131072)?1:0}function H0(D){N.assert(!!de);const ae=D(!0);return ae===0?D(!1):ae}function rN(D,ae){const ht=de&&hg(ae,D,0);return ht&&Wm(ht,!1),!!ht}function C1(D,ae){const ht=de&&QI(ae,D,0,void 0);ht&&qc(ht)}function AT(D,ae){if(Ys(D)){const ht=cP(D);return ht===void 0?(ae&65536)!==0:ht}return(ae&65536)!==0}function Up(D,ae,ht){return Ga(D)&262144?0:(D=Vl(D),ae=Vl(ae),ht=Vl(ht),cP(ht)?1:O&&!Ys(D)&&!Ys(ae)&&!Ys(ht)?de?H0(on=>nU(ae,ht,O,on)):uk(ae,ht,O)?0:1:0)}function IT(D){return D.statements.length===0&&(!O||uk(D,D,O))}function Vl(D){for(;D.kind===217&&Ys(D);)D=D.expression;return D}function Oc(D,ae){if(al(D)||dS(D))return RT(D);if(Na(D)&&D.textSourceNode)return Oc(D.textSourceNode,ae);const ht=O,on=!!ht&&!!D.parent&&!Ys(D);if(Kh(D)){if(!on||Un(D)!==Pl(ht))return Sr(D)}else if(Qm(D)){if(!on||Un(D)!==Pl(ht))return oP(D)}else if(N.assertNode(D,DE),!on)return D.text;return CE(ht,D,ae)}function xT(D,ae,ht){if(D.kind===11&&D.textSourceNode){const wr=D.textSourceNode;if(Ve(wr)||qi(wr)||hp(wr)||Qm(wr)){const wi=hp(wr)?wr.text:Oc(wr);return ht?`"${Gj(wi)}"`:ae||Ga(D)&16777216?`"${tg(wi)}"`:`"${ik(wi)}"`}else return xT(wr,ae,ht)}const on=(ae?1:0)|(ht?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Wre(D,O,on)}function Au(D){D&&Ga(D)&1048576||(ye.push(Y),Y=0,se.push(G),G=void 0,X.push(oe))}function ap(D){D&&Ga(D)&1048576||(Y=ye.pop(),G=se.pop(),oe=X.pop())}function q0(D){(!oe||oe===el(X))&&(oe=new Set),oe.add(D)}function Of(D,ae){ne.push(he),he=D,pe.push(oe),Ce=ae}function hb(){he=ne.pop(),Ce=pe.pop()}function gb(D){(!Ce||Ce===el(pe))&&(Ce=new Set),Ce.add(D)}function ru(D){if(D)switch(D.kind){case 241:Xe(D.statements,ru);break;case 256:case 254:case 246:case 247:ru(D.statement);break;case 245:ru(D.thenStatement),ru(D.elseStatement);break;case 248:case 250:case 249:ru(D.initializer),ru(D.statement);break;case 255:ru(D.caseBlock);break;case 269:Xe(D.clauses,ru);break;case 296:case 297:Xe(D.statements,ru);break;case 258:ru(D.tryBlock),ru(D.catchClause),ru(D.finallyBlock);break;case 299:ru(D.variableDeclaration),ru(D.block);break;case 243:ru(D.declarationList);break;case 261:Xe(D.declarations,ru);break;case 260:case 169:case 208:case 263:Hp(D.name);break;case 262:Hp(D.name),Ga(D)&1048576&&(Xe(D.parameters,ru),ru(D.body));break;case 206:case 207:Xe(D.elements,ru);break;case 272:ru(D.importClause);break;case 273:Hp(D.name),ru(D.namedBindings);break;case 274:Hp(D.name);break;case 280:Hp(D.name);break;case 275:Xe(D.elements,ru);break;case 276:Hp(D.propertyName||D.name);break}}function ZI(D){if(D)switch(D.kind){case 303:case 304:case 172:case 174:case 177:case 178:Hp(D.name);break}}function Hp(D){D&&(al(D)||dS(D)?RT(D):ta(D)&&ru(D))}function RT(D){const ae=D.emitNode.autoGenerate;if((ae.flags&7)===4)return DT(tw(D),qi(D),ae.flags,ae.prefix,ae.suffix);{const ht=ae.id;return Q[ht]||(Q[ht]=oN(D))}}function DT(D,ae,ht,on,wr){const wi=as(D),bi=ae?K:U;return bi[wi]||(bi[wi]=NT(D,ae,ht??0,QR(on,RT),QR(wr)))}function Hs(D,ae){return J0(D)&&!iN(D,ae)&&!V.has(D)}function iN(D,ae){return ae?!!(Ce!=null&&Ce.has(D)):!!(oe!=null&&oe.has(D))}function J0(D,ae){return O?N4(O,D,r):!0}function P1(D,ae){for(let ht=ae;ht&&WE(ht,ae);ht=ht.nextContainer)if(dh(ht)&&ht.locals){const on=ht.locals.get(_l(D));if(on&&on.flags&3257279)return!1}return!0}function MM(D){switch(D){case"":return Y;case"#":return he;default:return(G==null?void 0:G.get(D))??0}}function hd(D,ae){switch(D){case"":Y=ae;break;case"#":he=ae;break;default:G??(G=new Map),G.set(D,ae);break}}function nv(D,ae,ht,on,wr){on.length>0&&on.charCodeAt(0)===35&&(on=on.slice(1));const wi=S0(ht,on,"",wr);let bi=MM(wi);if(D&&!(bi&D)){const ga=S0(ht,on,D===268435456?"_i":"_n",wr);if(Hs(ga,ht))return bi|=D,ht?gb(ga):ae&&q0(ga),hd(wi,bi),ga}for(;;){const no=bi&268435455;if(bi++,no!==8&&no!==13){const ga=no<26?"_"+String.fromCharCode(97+no):"_"+(no-26),ed=S0(ht,on,ga,wr);if(Hs(ed,ht))return ht?gb(ed):ae&&q0(ed),hd(wi,bi),ed}}}function H_(D,ae=Hs,ht,on,wr,wi,bi){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),wi.length>0&&wi.charCodeAt(0)===35&&(wi=wi.slice(1)),ht){const ga=S0(wr,wi,D,bi);if(ae(ga,wr))return wr?gb(ga):on?q0(ga):V.add(ga),ga}D.charCodeAt(D.length-1)!==95&&(D+="_");let no=1;for(;;){const ga=S0(wr,wi,D+no,bi);if(ae(ga,wr))return wr?gb(ga):on?q0(ga):V.add(ga),ga;no++}}function ex(D){return H_(D,J0,!0,!1,!1,"","")}function Rp(D){const ae=Oc(D.name);return P1(ae,ri(D,dh))?ae:H_(ae,Hs,!1,!1,!1,"","")}function tx(D){const ae=fR(D),ht=Na(ae)?zre(ae.text):"module";return H_(ht,Hs,!1,!1,!1,"","")}function sp(){return H_("default",Hs,!1,!1,!1,"","")}function nx(){return H_("class",Hs,!1,!1,!1,"","")}function sy(D,ae,ht,on){return Ve(D.name)?DT(D.name,ae):nv(0,!1,ae,ht,on)}function NT(D,ae,ht,on,wr){switch(D.kind){case 80:case 81:return H_(Oc(D),Hs,!!(ht&16),!!(ht&8),ae,on,wr);case 267:case 266:return N.assert(!on&&!wr&&!ae),Rp(D);case 272:case 278:return N.assert(!on&&!wr&&!ae),tx(D);case 262:case 263:{N.assert(!on&&!wr&&!ae);const wi=D.name;return wi&&!al(wi)?NT(wi,!1,ht,on,wr):sp()}case 277:return N.assert(!on&&!wr&&!ae),sp();case 231:return N.assert(!on&&!wr&&!ae),nx();case 174:case 177:case 178:return sy(D,ae,on,wr);case 167:return nv(0,!0,ae,on,wr);default:return nv(0,!1,ae,on,wr)}}function oN(D){const ae=D.emitNode.autoGenerate,ht=QR(ae.prefix,RT),on=QR(ae.suffix);switch(ae.flags&7){case 1:return nv(0,!!(ae.flags&8),qi(D),ht,on);case 2:return N.assertNode(D,Ve),nv(268435456,!!(ae.flags&8),!1,ht,on);case 3:return H_(Sr(D),ae.flags&32?J0:Hs,!!(ae.flags&16),!!(ae.flags&8),qi(D),ht,on)}return N.fail(`Unsupported GeneratedIdentifierKind: ${N.formatEnum(ae.flags&7,W6,!0)}.`)}function aN(D,ae){const ht=me(2,D,ae),on=tn,wr=rn,wi=Mn;CT(ae),ht(D,ae),sN(ae,on,wr,wi)}function CT(D){const ae=Ga(D),ht=M_(D);vb(D,ae,ht.pos,ht.end),ae&4096&&(Yt=!0)}function sN(D,ae,ht,on){const wr=Ga(D),wi=M_(D);wr&4096&&(Yt=!1),Dp(D,wr,wi.pos,wi.end,ae,ht,on);const bi=Yoe(D);bi&&Dp(D,wr,bi.pos,bi.end,ae,ht,on)}function vb(D,ae,ht,on){Wi(),Qt=!1;const wr=ht<0||(ae&1024)!==0||D.kind===12,wi=on<0||(ae&2048)!==0||D.kind===12;(ht>0||on>0)&&ht!==on&&(wr||M1(ht,D.kind!==359),(!wr||ht>=0&&ae&1024)&&(tn=ht),(!wi||on>=0&&ae&2048)&&(rn=on,D.kind===261&&(Mn=on))),Xe(WR(D),Mh),Co()}function Dp(D,ae,ht,on,wr,wi,bi){Wi();const no=on<0||(ae&2048)!==0||D.kind===12;Xe(Lk(D),lN),(ht>0||on>0)&&ht!==on&&(tn=wr,rn=wi,Mn=bi,!no&&D.kind!==359&&s_(on)),Co()}function Mh(D){(D.hasLeadingNewline||D.kind===2)&&ve.writeLine(),PT(D),D.hasTrailingNewLine||D.kind===2?ve.writeLine():ve.writeSpace(" ")}function lN(D){ve.isAtStartOfLine()||ve.writeSpace(" "),PT(D),D.hasTrailingNewLine&&ve.writeLine()}function PT(D){const ae=rs(D),ht=D.kind===3?bA(ae):void 0;IR(ae,ht,ve,0,ae.length,R)}function rs(D){return D.kind===3?`/*${D.text}*/`:`//${D.text}`}function Ir(D,ae,ht){Wi();const{pos:on,end:wr}=ae,wi=Ga(D),bi=on<0||(wi&1024)!==0,no=Yt||wr<0||(wi&2048)!==0;bi||Wf(ae),Co(),wi&4096&&!Yt?(Yt=!0,ht(D),Yt=!1):ht(D),Wi(),no||(M1(ae.end,!0),Qt&&!ve.isAtStartOfLine()&&ve.writeLine()),Co()}function _f(D,ae){return D=Pl(D),D.parent&&D.parent===Pl(ae).parent}function Cd(D,ae){if(ae.pos<D.end)return!1;D=Pl(D),ae=Pl(ae);const ht=D.parent;if(!ht||ht!==ae.parent)return!1;const on=Roe(D),wr=on==null?void 0:on.indexOf(D);return wr!==void 0&&wr>-1&&on.indexOf(ae)===wr+1}function M1(D,ae){Qt=!1,ae?D===0&&(O!=null&&O.isDeclarationFile)?yg(D,K0):yg(D,MT):D===0&&yg(D,cN)}function cN(D,ae,ht,on,wr){gf(D,ae)&&MT(D,ae,ht,on,wr)}function K0(D,ae,ht,on,wr){gf(D,ae)||MT(D,ae,ht,on,wr)}function L1(D,ae){return e.onlyPrintJsDocStyle?LH(D,ae)||C4(D,ae):!0}function MT(D,ae,ht,on,wr){!O||!L1(O.text,D)||(Qt||(Lie(Rt(),ve,wr,D),Qt=!0),Ls(D),IR(O.text,Rt(),ve,D,ae,R),Ls(ae),on?ve.writeLine():ht===3&&ve.writeSpace(" "))}function gg(D){Yt||D===-1||M1(D,!0)}function s_(D){rx(D,hf)}function hf(D,ae,ht,on){!O||!L1(O.text,D)||(ve.isAtStartOfLine()||ve.writeSpace(" "),Ls(D),IR(O.text,Rt(),ve,D,ae,R),Ls(ae),on&&ve.writeLine())}function Fm(D,ae,ht){Yt||(Wi(),rx(D,ae?hf:ht?rv:vg),Co())}function rv(D,ae,ht){O&&(Ls(D),IR(O.text,Rt(),ve,D,ae,R),Ls(ae),ht===2&&ve.writeLine())}function vg(D,ae,ht,on){O&&(Ls(D),IR(O.text,Rt(),ve,D,ae,R),Ls(ae),on?ve.writeLine():ve.writeSpace(" "))}function yg(D,ae){O&&(tn===-1||D!==tn)&&(cc(D)?uN(ae):Y2(O.text,D,ae,D))}function rx(D,ae){O&&(rn===-1||D!==rn&&D!==Mn)&&$2(O.text,D,ae)}function cc(D){return gn!==void 0&&Xa(gn).nodePos===D}function uN(D){if(!O)return;const ae=Xa(gn).detachedCommentEndPos;gn.length-1?gn.pop():gn=void 0,Y2(O.text,ae,D,ae)}function Wf(D){const ae=O&&wie(O.text,Rt(),ve,Lh,D,R,Yt);ae&&(gn?gn.push(ae):gn=[ae])}function Lh(D,ae,ht,on,wr,wi){!O||!L1(O.text,on)||(Ls(on),IR(D,ae,ht,on,wr,wi),Ls(wr))}function gf(D,ae){return!!O&&YV(O.text,D,ae)}function k1(D){return D.parsedSourceMap===void 0&&D.sourceMapText!==void 0&&(D.parsedSourceMap=Pq(D.sourceMapText)||!1),D.parsedSourceMap||void 0}function X0(D,ae){const ht=me(3,D,ae);ix(ae),ht(D,ae),LT(ae)}function ix(D){const ae=Ga(D),ht=Bv(D);if(PV(D)){N.assertIsDefined(D.parent,"UnparsedNodes must have parent pointers");const on=k1(D.parent);on&&ot&&ot.appendSourceMap(ve.getLine(),ve.getColumn(),on,D.parent.sourceMapPath,D.parent.getLineAndCharacterOfPosition(D.pos),D.parent.getLineAndCharacterOfPosition(D.end))}else{const on=ht.source||Bt;D.kind!==359&&!(ae&32)&&ht.pos>=0&&w1(ht.source||Bt,vf(on,ht.pos)),ae&128&&(je=!0)}}function LT(D){const ae=Ga(D),ht=Bv(D);PV(D)||(ae&128&&(je=!1),D.kind!==359&&!(ae&64)&&ht.end>=0&&w1(ht.source||Bt,ht.end))}function vf(D,ae){return D.skipTrivia?D.skipTrivia(ae):Pa(D.text,ae)}function Ls(D){if(je||Ym(D)||Y0(Bt))return;const{line:ae,character:ht}=ys(Bt,D);ot.addMapping(ve.getLine(),ve.getColumn(),vt,ae,ht,void 0)}function w1(D,ae){if(D!==Bt){const ht=Bt,on=vt;iv(D),Ls(ae),yb(ht,on)}else Ls(ae)}function O1(D,ae,ht,on,wr){if(je||D&&Y4(D))return wr(ae,ht,on);const wi=D&&D.emitNode,bi=wi&&wi.flags||0,no=wi&&wi.tokenSourceMapRanges&&wi.tokenSourceMapRanges[ae],ga=no&&no.source||Bt;return on=vf(ga,no?no.pos:on),!(bi&256)&&on>=0&&w1(ga,on),on=wr(ae,ht,on),no&&(on=no.end),!(bi&512)&&on>=0&&w1(ga,on),on}function iv(D){if(!je){if(Bt=D,D===$e){vt=It;return}Y0(D)||(vt=ot.addSource(D.fileName),e.inlineSources&&ot.setSourceContent(vt,D.text),$e=D,It=vt)}}function yb(D,ae){Bt=D,vt=ae}function Y0(D){return Il(D.fileName,".json")}}function gUe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function vUe(e){return Fle[e&15360][0]}function yUe(e){return Fle[e&15360][1]}function bUe(e,t,r,i){t(e)}function EUe(e,t,r,i){t(e,r.select(i))}function SUe(e,t,r,i){t(e,r)}function TUe(e,t){return e.length===1?bUe:typeof t=="object"?EUe:SUe}var Fle,r7,tJ,d1,nJ,Lw,AUe=I({"src/compiler/emitter.ts"(){ra(),ra(),sS(),Fle=gUe(),r7={hasGlobalName:Jo,getReferencedExportContainer:Jo,getReferencedImportDeclaration:Jo,getReferencedDeclarationWithCollidingName:Jo,isDeclarationWithCollidingName:Jo,isValueAliasDeclaration:Jo,isReferencedAliasDeclaration:Jo,isTopLevelValueImportEqualsWithEntityName:Jo,getNodeCheckFlags:Jo,isDeclarationVisible:Jo,isLateBound:e=>!1,collectLinkedAliases:Jo,isImplementationOfOverload:Jo,isRequiredInitializedParameter:Jo,isOptionalUninitializedParameterProperty:Jo,isExpandoFunctionDeclaration:Jo,getPropertiesOfContainerFunction:Jo,createTypeOfDeclaration:Jo,createReturnTypeOfSignatureDeclaration:Jo,createTypeOfExpression:Jo,createLiteralConstValue:Jo,isSymbolAccessible:Jo,isEntityNameVisible:Jo,getConstantValue:Jo,getReferencedValueDeclaration:Jo,getReferencedValueDeclarations:Jo,getTypeReferenceSerializationKind:Jo,isOptionalParameter:Jo,moduleExportsSomeValue:Jo,isArgumentsLocalBinding:Jo,getExternalModuleFileFromDeclaration:Jo,getTypeReferenceDirectivesForEntityName:Jo,getTypeReferenceDirectivesForSymbol:Jo,isLiteralConstDeclaration:Jo,getJsxFactoryEntity:Jo,getJsxFragmentFactoryEntity:Jo,getAllAccessorDeclarations:Jo,getSymbolOfExternalModuleSpecifier:Jo,isBindingCapturedByNode:Jo,getDeclarationStatementsForSourceFile:Jo,isImportRequiredByAugmentation:Jo,tryFindAmbientModule:Jo},tJ=Sd(()=>R0({})),d1=Sd(()=>R0({removeComments:!0})),nJ=Sd(()=>R0({removeComments:!0,neverAsciiEscape:!0})),Lw=Sd(()=>R0({removeComments:!0,omitTrailingSemicolon:!0}))}});function i7(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=Mu(r);return{useCaseSensitiveFileNames:r,fileExists:A,readFile:(G,ne)=>e.readFile(G,ne),directoryExists:e.directoryExists&&R,getDirectories:C,readDirectory:O,createDirectory:e.createDirectory&&M,writeFile:e.writeFile&&T,addOrDeleteFileOrDirectory:K,addOrDeleteFile:Q,clearCache:se,realpath:e.realpath&&U};function s(G){return il(G,t,o)}function l(G){return i.get(Fc(G))}function u(G){const ne=l(ai(G));return ne&&(ne.sortedAndCanonicalizedFiles||(ne.sortedAndCanonicalizedFiles=ne.files.map(o).sort(),ne.sortedAndCanonicalizedDirectories=ne.directories.map(o).sort()),ne)}function p(G){return ic(ha(G))}function h(G,ne){var he;if(!e.realpath||Fc(s(e.realpath(G)))===ne){const ye={files:Wt(e.readDirectory(G,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(G)||[]};return i.set(Fc(ne),ye),ye}if((he=e.directoryExists)!=null&&he.call(e,G))return i.set(ne,!1),!1}function m(G,ne){ne=Fc(ne);const he=l(ne);if(he)return he;try{return h(G,ne)}catch{N.assert(!i.has(Fc(ne)));return}}function y(G,ne){return Tv(G,ne,tl,Uu)>=0}function T(G,ne,he){const ye=s(G),Y=u(ye);return Y&&V(Y,p(G),!0),e.writeFile(G,ne,he)}function A(G){const ne=s(G),he=u(ne);return he&&y(he.sortedAndCanonicalizedFiles,o(p(G)))||e.fileExists(G)}function R(G){const ne=s(G);return i.has(Fc(ne))||e.directoryExists(G)}function M(G){const ne=s(G),he=u(ne);if(he){const ye=p(G),Y=o(ye),X=he.sortedAndCanonicalizedDirectories;by(X,Y,Uu)&&he.directories.push(ye)}e.createDirectory(G)}function C(G){const ne=s(G),he=m(G,ne);return he?he.directories.slice():e.getDirectories(G)}function O(G,ne,he,ye,Y){const X=s(G),oe=m(G,X);let pe;if(oe!==void 0)return mU(G,ne,he,ye,r,t,Y,Ce,U);return e.readDirectory(G,ne,he,ye,Y);function Ce(ie){const ve=s(ie);if(ve===X)return oe||de(ie,ve);const Le=m(ie,ve);return Le!==void 0?Le||de(ie,ve):iW}function de(ie,ve){if(pe&&ve===X)return pe;const Le={files:Wt(e.readDirectory(ie,void 0,void 0,["*.*"]),p)||et,directories:e.getDirectories(ie)||et};return ve===X&&(pe=Le),Le}}function U(G){return e.realpath?e.realpath(G):G}function K(G,ne){if(l(ne)!==void 0){se();return}const ye=u(ne);if(!ye)return;if(!e.directoryExists){se();return}const Y=p(G),X={fileExists:e.fileExists(G),directoryExists:e.directoryExists(G)};return X.directoryExists||y(ye.sortedAndCanonicalizedDirectories,o(Y))?se():V(ye,Y,X.fileExists),X}function Q(G,ne,he){if(he===1)return;const ye=u(ne);ye&&V(ye,p(G),he===0)}function V(G,ne,he){const ye=G.sortedAndCanonicalizedFiles,Y=o(ne);if(he)by(ye,Y,Uu)&&G.files.push(ne);else{const X=Tv(ye,Y,tl,Uu);if(X>=0){ye.splice(X,1);const oe=G.files.findIndex(pe=>o(pe)===Y);G.files.splice(oe,1)}}}function se(){i.clear()}}function o7(e,t,r,i,o){var s;const l=TE(((s=t==null?void 0:t.configFile)==null?void 0:s.extendedSourceFiles)||et,o);r.forEach((u,p)=>{l.has(p)||(u.projects.delete(e),u.close())}),l.forEach((u,p)=>{const h=r.get(p);h?h.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(u,p),close:()=>{const m=r.get(p);!m||m.projects.size!==0||(m.watcher.close(),r.delete(p))}})})}function rJ(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function a7(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&a7(e,o,r)})}function iJ(e,t,r){UC(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Xm})}function kw(e,t,r){t?UC(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Cf,onExistingValue:o}):ep(e,Cf);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,u){s.flags!==l&&(s.watcher.close(),e.set(u,i(u,l)))}}function ww({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:p,writeLog:h,toPath:m,getScriptKind:y}){const T=v7(r);if(!T)return h(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=T,r===e)return!1;if(vA(r)&&!(yoe(t,o,l)||O()))return h(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(tse(t,o.configFile.configFileSpecs,go(ai(i),u),p,u))return h(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||Ps(o)||o.outDir)return!1;if(Su(r)){if(o.declarationDir)return!1}else if(!Sc(r,OR))return!1;const A=Ad(r),R=To(s)?void 0:IUe(s)?s.getProgramOrUndefined():s,M=!R&&!To(s)?s:void 0;if(C(A+".ts")||C(A+".tsx"))return h(`Project: ${i} Detected output file: ${t}`),!0;return!1;function C(U){return R?!!R.getSourceFileByPath(U):M?M.getState().fileInfos.has(U):!!In(s,K=>m(K)===U)}function O(){if(!y)return!1;switch(y(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return jy(o);case 6:return g0(o);case 0:return!1}}}function IUe(e){return!!e.getState}function zle(e,t){return e?e.isEmittedFile(t):!1}function oJ(e,t,r,i){Tne(t===2?r:Ya);const o={watchFile:(M,C,O,U)=>e.watchFile(M,C,O,U),watchDirectory:(M,C,O,U)=>e.watchDirectory(M,C,(O&1)!==0,U)},s=t!==0?{watchFile:A("watchFile"),watchDirectory:A("watchDirectory")}:void 0,l=t===2?{watchFile:y,watchDirectory:T}:s||o,u=t===2?m:gD;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(M){return(C,O,U,K,Q,V)=>{var se;return mF(C,M==="watchFile"?K==null?void 0:K.excludeFiles:K==null?void 0:K.excludeDirectories,h(),((se=e.getCurrentDirectory)==null?void 0:se.call(e))||"")?u(C,U,K,Q,V):l[M].call(void 0,C,O,U,K,Q,V)}}function h(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(M,C,O,U,K){return r(`ExcludeWatcher:: Added:: ${R(M,C,O,U,K,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(M,C,O,U,K,i)}`)}}function y(M,C,O,U,K,Q){r(`FileWatcher:: Added:: ${R(M,O,U,K,Q,i)}`);const V=s.watchFile(M,C,O,U,K,Q);return{close:()=>{r(`FileWatcher:: Close:: ${R(M,O,U,K,Q,i)}`),V.close()}}}function T(M,C,O,U,K,Q){const V=`DirectoryWatcher:: Added:: ${R(M,O,U,K,Q,i)}`;r(V);const se=Xs(),G=s.watchDirectory(M,C,O,U,K,Q),ne=Xs()-se;return r(`Elapsed:: ${ne}ms ${V}`),{close:()=>{const he=`DirectoryWatcher:: Close:: ${R(M,O,U,K,Q,i)}`;r(he);const ye=Xs();G.close();const Y=Xs()-ye;r(`Elapsed:: ${Y}ms ${he}`)}}}function A(M){return(C,O,U,K,Q,V)=>o[M].call(void 0,C,(...se)=>{const G=`${M==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${se[0]} ${se[1]!==void 0?se[1]:""}:: ${R(C,U,K,Q,V,i)}`;r(G);const ne=Xs();O.call(void 0,...se);const he=Xs()-ne;r(`Elapsed:: ${he}ms ${G}`)},U,K,Q,V)}function R(M,C,O,U,K,Q){return`WatchInfo: ${M} ${C} ${JSON.stringify(O)} ${Q?Q(U,K):K===void 0?U:`${U} ${K}`}`}}function Ow(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Cf(e){e.watcher.close()}var aJ,sJ,xUe=I({"src/compiler/watchUtilities.ts"(){ra(),aJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(aJ||{}),sJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(sJ||{})}});function Ble(e,t,r="tsconfig.json"){return ym(e,i=>{const o=$r(i,r);return t(o)?o:void 0})}function s7(e,t){const r=ai(t),i=dp(e)?e:$r(r,e);return ha(i)}function Gle(e,t,r){let i;return Xe(e,s=>{const l=j2(s,t);if(l.pop(),!i){i=l;return}const u=Math.min(i.length,l.length);for(let p=0;p<u;p++)if(r(i[p])!==r(l[p])){if(p===0)return!0;i.length=p;break}l.length<i.length&&(i.length=l.length)})?"":i?Ay(i):t}function Vle(e,t){return uJ(e,t)}function lJ(e,t,r){return(i,o,s)=>{let l;try{rl("beforeIORead"),l=e(i,t().charset),rl("afterIORead"),Qp("I/O Read","beforeIORead","afterIORead")}catch(u){s&&s(u.message),l=""}return l!==void 0?iw(i,l,o,r):void 0}}function cJ(e,t,r){return(i,o,s,l)=>{try{rl("beforeIOWrite"),Hj(i,o,s,e,t,r),rl("afterIOWrite"),Qp("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function uJ(e,t,r=gu){const i=new Map,o=Mu(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(h.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return ai(ha(r.getExecutingFilePath()))}const u=Fv(e),p=r.realpath&&(m=>r.realpath(m)),h={getSourceFile:lJ(m=>h.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>$r(l(),Z2(m)),writeFile:cJ((m,y,T)=>r.writeFile(m,y,T),m=>(h.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:Sd(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>u,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+u),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:p,readDirectory:(m,y,T,A,R)=>r.readDirectory(m,y,T,A,R),createDirectory:m=>r.createDirectory(m),createHash:ia(r,r.createHash)};return h}function Ww(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,p=new Map,h=new Map,m=new Map,y=new Map,T=M=>{const C=t(M),O=p.get(C);return O!==void 0?O!==!1?O:void 0:A(C,M)},A=(M,C)=>{const O=i.call(e,C);return p.set(M,O!==void 0?O:!1),O};e.readFile=M=>{const C=t(M),O=p.get(C);return O!==void 0?O!==!1?O:void 0:!Il(M,".json")&&!wle(M)?i.call(e,M):A(C,M)};const R=r?(M,C,O,U)=>{const K=t(M),Q=typeof C=="object"?C.impliedNodeFormat:void 0,V=y.get(Q),se=V==null?void 0:V.get(K);if(se)return se;const G=r(M,C,O,U);return G&&(Su(M)||Il(M,".json"))&&y.set(Q,(V||new Map).set(K,G)),G}:void 0;return e.fileExists=M=>{const C=t(M),O=h.get(C);if(O!==void 0)return O;const U=o.call(e,M);return h.set(C,!!U),U},u&&(e.writeFile=(M,C,...O)=>{const U=t(M);h.delete(U);const K=p.get(U);K!==void 0&&K!==C?(p.delete(U),y.forEach(Q=>Q.delete(U))):R&&y.forEach(Q=>{const V=Q.get(U);V&&V.text!==C&&Q.delete(U)}),u.call(e,M,C,...O)}),s&&(e.directoryExists=M=>{const C=t(M),O=m.get(C);if(O!==void 0)return O;const U=s.call(e,M);return m.set(C,!!U),U},l&&(e.createDirectory=M=>{const C=t(M);m.delete(C),l.call(e,M)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:R,readFileWithCache:T}}function pxe(e,t,r){let i;return i=qr(i,e.getConfigFileParsingDiagnostics()),i=qr(i,e.getOptionsDiagnostics(r)),i=qr(i,e.getSyntacticDiagnostics(t,r)),i=qr(i,e.getGlobalDiagnostics(r)),i=qr(i,e.getSemanticDiagnostics(t,r)),Rf(e.getCompilerOptions())&&(i=qr(i,e.getDeclarationDiagnostics(t,r))),Ux(i||et)}function fxe(e,t){let r="";for(const i of e)r+=dJ(i,t);return r}function dJ(e,t){const r=`${lS(e)} TS${e.code}: ${O_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:o}=ys(e.file,e.start),s=e.file.fileName;return`${eC(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${o+1}): `+r}return r}function mxe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return N.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function p1(e,t){return t+e+qle}function _xe(e,t,r,i,o,s){const{line:l,character:u}=ys(e,t),{line:p,character:h}=ys(e,t+r),m=ys(e,e.text.length).line,y=p-l>=4;let T=(p+1+"").length;y&&(T=Math.max(Jle.length,T));let A="";for(let R=l;R<=p;R++){A+=s.getNewLine(),y&&l+1<R&&R<p-1&&(A+=i+p1(Jle.padStart(T),xJ)+RJ+s.getNewLine(),R=p-1);const M=K2(e,R,0),C=R<m?K2(e,R+1,0):e.text.length;let O=e.text.slice(M,C);if(O=O.trimEnd(),O=O.replace(/\t/g," "),A+=i+p1((R+1+"").padStart(T),xJ)+RJ,A+=O+s.getNewLine(),A+=i+p1("".padStart(T),xJ)+RJ,A+=o,R===l){const U=R===p?h:void 0;A+=O.slice(0,u).replace(/\S/g," "),A+=O.slice(u,U).replace(/./g,"~")}else R===p?A+=O.slice(0,h).replace(/./g,"~"):A+=O.replace(/./g,"~");A+=qle}return A}function pJ(e,t,r,i=p1){const{line:o,character:s}=ys(e,t),l=r?eC(e.fileName,r.getCurrentDirectory(),p=>r.getCanonicalFileName(p)):e.fileName;let u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u}function jle(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=pJ(o,s,t),r+=" - "}if(r+=p1(lS(i),mxe(i.category)),r+=p1(` TS${i.code}: `,"\x1B[90m"),r+=O_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=_xe(i.file,i.start,i.length,"",mxe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:o,start:s,length:l,messageText:u}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=vxe+pJ(o,s,t),r+=_xe(o,s,l,Kle,"\x1B[96m",t)),r+=t.getNewLine(),r+=Kle+O_(u,t.getNewLine())}r+=t.getNewLine()}return r}function O_(e,t,r=0){if(Mo(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;o<r;o++)i+=" "}if(i+=e.messageText,r++,e.next)for(const o of e.next)i+=O_(o,t,r);return i}function Fw(e,t){return(Mo(e)?t:e.resolutionMode)||t}function Ule(e,t,r){return _J(e,Gw(e,t),r)}function fJ(e){var t;return Yl(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function mJ(e,t,r){return _J(e,t,r)}function _J(e,t,r){var i;if((Mc(t.parent)||Yl(t.parent))&&fJ(t.parent)){const l=uD(t.parent.attributes);if(l)return l}if(t.parent.parent&&ag(t.parent.parent)){const s=uD(t.parent.parent.attributes);if(s)return s}if(r&&wu(r)===200)return t.parent.parent&&eu(t.parent.parent)||Td(t.parent,!1)?1:99;if(e.impliedNodeFormat===void 0)return;if(e.impliedNodeFormat!==99)return zp(kv(t.parent))?99:1;const o=(i=kv(t.parent))==null?void 0:i.parent;return o&&eu(o)?1:99}function uD(e,t){if(!e)return;if(Ne(e.elements)!==1){t==null||t(e,e.token===118?f.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:f.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}const r=e.elements[0];if(ls(r.name)){if(r.name.text!=="resolution-mode"){t==null||t(r.name,e.token===118?f.resolution_mode_is_the_only_valid_key_for_type_import_attributes:f.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(ls(r.value)){if(r.value.text!=="import"&&r.value.text!=="require"){t==null||t(r.value,f.resolution_mode_should_be_either_require_or_import);return}return r.value.text==="import"?99:1}}}function Hle(e){return e.text}function hJ(e,t,r,i,o){return{nameAndMode:m7,resolve:(s,l)=>iD(s,e,r,i,o,t,l)}}function gJ(e){return Mo(e)?e:sh(e.fileName)}function l7(e,t,r,i,o){return{nameAndMode:yxe,resolve:(s,l)=>hse(s,e,r,i,t,o,l)}}function zw(e,t,r,i,o,s,l,u){if(e.length===0)return et;const p=[],h=new Map,m=u(t,r,i,s,l);for(const y of e){const T=m.nameAndMode.getName(y),A=m.nameAndMode.getMode(y,o,(r==null?void 0:r.commandLine.options)||i),R=kP(T,A);let M=h.get(R);M||h.set(R,M=m.resolve(T,A)),p.push(M)}return p}function vJ(e,t){return c7(void 0,e,(r,i)=>r&&t(r,i))}function c7(e,t,r,i){let o;return s(e,t,void 0);function s(l,u,p){if(i){const h=i(l,p);if(h)return h}return Xe(u,(h,m)=>{if(h&&(o!=null&&o.has(h.sourceFile.path)))return;const y=r(h,p,m);return y||!h?y:((o||(o=new Set)).add(h.sourceFile.path),s(h.commandLine.projectReferences,h.references,h))})}}function u7(e,t,r){const i=e.configFilePath?ai(e.configFilePath):t;return $r(i,`__lib_node_modules_lookup_${r}__.ts`)}function yJ(e){const t=e.split(".");let r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function hxe(e){const t=sh(e.fileName),r=_F.get(t);return{libName:t,libFileName:r}}function D0(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function dD(e){return e.pos!==void 0}function XP(e,t){var r,i,o,s;const l=N.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:p}=t;let h,m,y,T;switch(u){case 3:const A=Gw(l,p);if(y=(i=(r=e.getResolvedModule(l,A.text,e.getModeForUsageLocation(l,A)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,A.pos===-1)return{file:l,packageId:y,text:A.text};h=Pa(l.text,A.pos),m=A.end;break;case 4:({pos:h,end:m}=l.referencedFiles[p]);break;case 5:({pos:h,end:m,resolutionMode:T}=l.typeReferenceDirectives[p]),y=(s=(o=e.getResolvedTypeReferenceDirective(l,sh(l.typeReferenceDirectives[p].fileName),T||l.impliedNodeFormat))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:h,end:m}=l.libReferenceDirectives[p]);break;default:return N.assertNever(u)}return{file:l,pos:h,end:m,packageId:y}}function bJ(e,t,r,i,o,s,l,u,p,h){if(!e||u!=null&&u()||!Hm(e.getRootFileNames(),t))return!1;let m;if(!Hm(e.getProjectReferences(),h,M)||e.getSourceFiles().some(A))return!1;const y=e.getMissingFilePaths();if(y&&zc(y,o))return!1;const T=e.getCompilerOptions();if(!iU(T,r)||e.resolvedLibReferences&&zc(e.resolvedLibReferences,(O,U)=>l(U)))return!1;if(T.configFile&&r.configFile)return T.configFile.text===r.configFile.text;return!0;function A(O){return!R(O)||s(O.path)}function R(O){return O.version===i(O.resolvedPath,O.fileName)}function M(O,U,K){return JV(O,U)&&C(e.getResolvedProjectReferences()[K],O)}function C(O,U){if(O){if(Or(m,O))return!0;const Q=pD(U),V=p(Q);return!V||O.commandLine.options.configFile!==V.options.configFile||!Hm(O.commandLine.fileNames,V.fileNames)?!1:((m||(m=[])).push(O),!Xe(O.references,(se,G)=>!C(se,O.commandLine.projectReferences[G])))}const K=pD(U);return!p(K)}}function $S(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Bw(e,t,r,i){const o=EJ(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function EJ(e,t,r,i){switch(pd(i)){case 3:case 99:return Sc(e,[".d.mts",".mts",".mjs"])?99:Sc(e,[".d.cts",".cts",".cjs"])?1:Sc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){const s=bw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;const u=Ew(e,s);return{impliedNodeFormat:(u==null?void 0:u.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:l,packageJsonScope:u}}}function RUe(e,t){return e?Zx(e.getCompilerOptions(),t,gF):!1}function DUe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function d7(e,t,r,i,o){var s,l,u,p,h,m,y,T,A,R,M,C,O,U,K,Q;const V=To(e)?DUe(e,t,r,i,o):e,{rootNames:se,options:G,configFileParsingDiagnostics:ne,projectReferences:he,typeScriptVersion:ye}=V;let{oldProgram:Y}=V;const X=Sd(()=>Pm("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations));let oe,pe,Ce,de,ie,ve,Le;const Ue=new Map;let Ee=$p();const De={},Me={};let We=_I(),At,Se,je,ot,Bt,vt,$e,It,tn,rn;const Mn=typeof G.maxNodeModuleJsDepth=="number"?G.maxNodeModuleJsDepth:0;let $n=0;const gn=new Map,Qt=new Map;(s=sr)==null||s.push(sr.Phase.Program,"createProgram",{configFilePath:G.configFilePath,rootDir:G.rootDir},!0),rl("beforeProgram");const Yt=V.host||Vle(G),vi=f7(Yt);let so=G.noLib;const Wi=Sd(()=>Yt.getDefaultLibFileName(G)),Co=Yt.getDefaultLibLocation?Yt.getDefaultLibLocation():ai(Wi()),Ln=ER(),Ci=Yt.getCurrentDirectory(),Ar=JC(G),sn=mk(G,Ar),tt=new Map;let zt,Dn,ci;const yi=Yt.hasInvalidatedResolutions||qm;Yt.resolveModuleNameLiterals?(ci=Yt.resolveModuleNameLiterals.bind(Yt),Dn=(l=Yt.getModuleResolutionCache)==null?void 0:l.call(Yt)):Yt.resolveModuleNames?(ci=(ze,Ze,Mt,jt,bn,Qn)=>Yt.resolveModuleNames(ze.map(Hle),Ze,Qn==null?void 0:Qn.map(Hle),Mt,jt,bn).map(vn=>vn?vn.extension!==void 0?{resolvedModule:vn}:{resolvedModule:{...vn,extension:XC(vn.resolvedFileName)}}:Xle),Dn=(u=Yt.getModuleResolutionCache)==null?void 0:u.call(Yt)):(Dn=rD(Ci,te,G),ci=(ze,Ze,Mt,jt,bn)=>zw(ze,Ze,Mt,jt,bn,Yt,Dn,hJ));let Qi;if(Yt.resolveTypeReferenceDirectiveReferences)Qi=Yt.resolveTypeReferenceDirectiveReferences.bind(Yt);else if(Yt.resolveTypeReferenceDirectives)Qi=(ze,Ze,Mt,jt,bn)=>Yt.resolveTypeReferenceDirectives(ze.map(gJ),Ze,Mt,jt,bn==null?void 0:bn.impliedNodeFormat).map(Qn=>({resolvedTypeReferenceDirective:Qn}));else{const ze=xF(Ci,te,void 0,Dn==null?void 0:Dn.getPackageJsonInfoCache(),Dn==null?void 0:Dn.optionsToRedirectsKey);Qi=(Ze,Mt,jt,bn,Qn)=>zw(Ze,Mt,jt,bn,Qn,Yt,ze,l7)}const Io=Yt.hasInvalidatedLibResolutions||qm;let fa;if(Yt.resolveLibrary)fa=Yt.resolveLibrary.bind(Yt);else{const ze=rD(Ci,te,G,Dn==null?void 0:Dn.getPackageJsonInfoCache());fa=(Ze,Mt,jt)=>RF(Ze,Mt,jt,Yt,ze)}const ka=new Map;let Tn=new Map,wn=$p(),He=!1;const mt=new Map;let ft=new Map;const Ct=Yt.useCaseSensitiveFileNames()?new Map:void 0;let le,Fe,pt,j;const it=!!((p=Yt.useSourceOfProjectReferenceRedirect)!=null&&p.call(Yt))&&!G.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Rt,fileExists:Ye,directoryExists:_t}=NUe({compilerHost:Yt,getSymlinkCache:V_,useSourceOfProjectReferenceRedirect:it,toPath:ir,getResolvedProjectReferences:ko,getSourceOfProjectReferenceRedirect:Nd,forEachResolvedProjectReference:jd}),Gt=Yt.readFile.bind(Yt);(h=sr)==null||h.push(sr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Y});const yn=RUe(Y,G);(m=sr)==null||m.pop();let fn;if((y=sr)==null||y.push(sr.Phase.Program,"tryReuseStructureFromOldProgram",{}),fn=xo(),(T=sr)==null||T.pop(),fn!==2){if(oe=[],pe=[],he&&(le||(le=he.map(Vt)),se.length&&(le==null||le.forEach((ze,Ze)=>{if(!ze)return;const Mt=Ps(ze.commandLine.options);if(it){if(Mt||wu(ze.commandLine.options)===0)for(const jt of ze.commandLine.fileNames)Ot(jt,{kind:1,index:Ze})}else if(Mt)Ot(_0(Mt,".d.ts"),{kind:2,index:Ze});else if(wu(ze.commandLine.options)===0){const jt=Sd(()=>cD(ze.commandLine,!Yt.useCaseSensitiveFileNames()));for(const bn of ze.commandLine.fileNames)!Su(bn)&&!Il(bn,".json")&&Ot(JP(bn,ze.commandLine,!Yt.useCaseSensitiveFileNames(),jt),{kind:2,index:Ze})}}))),(A=sr)==null||A.push(sr.Phase.Program,"processRootFiles",{count:se.length}),Xe(se,(ze,Ze)=>Us(ze,!1,!1,{kind:0,index:Ze})),(R=sr)==null||R.pop(),Se??(Se=se.length?AF(G,Yt):et),je=_I(),Se.length){(M=sr)==null||M.push(sr.Phase.Program,"processTypeReferences",{count:Se.length});const ze=G.configFilePath?ai(G.configFilePath):Ci,Ze=$r(ze,fD),Mt=Ri(Se,Ze);for(let jt=0;jt<Se.length;jt++)je.set(Se[jt],void 0,Mt[jt]),Bu(Se[jt],void 0,Mt[jt],{kind:8,typeReference:Se[jt],packageId:(O=(C=Mt[jt])==null?void 0:C.resolvedTypeReferenceDirective)==null?void 0:O.packageId});(U=sr)==null||U.pop()}if(se.length&&!so){const ze=Wi();!G.lib&&ze?Us(ze,!0,!1,{kind:6}):Xe(G.lib,(Ze,Mt)=>{Us(Ap(Ze),!0,!1,{kind:6,index:Mt})})}Ce=Sv(oe,Pi).concat(pe),oe=void 0,pe=void 0}if(Y&&Yt.onReleaseOldSourceFile){const ze=Y.getSourceFiles();for(const Ze of ze){const Mt=ml(Ze.resolvedPath);(yn||!Mt||Mt.impliedNodeFormat!==Ze.impliedNodeFormat||Ze.resolvedPath===Ze.path&&Mt.resolvedPath!==Ze.path)&&Yt.onReleaseOldSourceFile(Ze,Y.getCompilerOptions(),!!ml(Ze.path))}Yt.getParsedCommandLine||Y.forEachResolvedProjectReference(Ze=>{G_(Ze.sourceFile.path)||Yt.onReleaseOldSourceFile(Ze.sourceFile,Y.getCompilerOptions(),!1)})}Y&&Yt.onReleaseParsedCommandLine&&c7(Y.getProjectReferences(),Y.getResolvedProjectReferences(),(ze,Ze,Mt)=>{const jt=(Ze==null?void 0:Ze.commandLine.projectReferences[Mt])||Y.getProjectReferences()[Mt],bn=pD(jt);Fe!=null&&Fe.has(ir(bn))||Yt.onReleaseParsedCommandLine(bn,ze,Y.getCompilerOptions())}),Y=void 0,Bt=void 0,$e=void 0,tn=void 0;const hn={getRootFileNames:()=>se,getSourceFile:Ca,getSourceFileByPath:ml,getSourceFiles:()=>Ce,getMissingFilePaths:()=>ft,getModuleResolutionCache:()=>Dn,getFilesByNameMap:()=>mt,getCompilerOptions:()=>G,getSyntacticDiagnostics:lc,getOptionsDiagnostics:Mr,getGlobalDiagnostics:Sl,getSemanticDiagnostics:Nl,getCachedSemanticDiagnostics:cl,getSuggestionDiagnostics:we,getDeclarationDiagnostics:js,getBindAndCheckDiagnostics:wo,getProgramDiagnostics:nn,getTypeChecker:ho,getClassifiableNames:vo,getCommonSourceDirectory:Vr,emit:da,getCurrentDirectory:()=>Ci,getNodeCount:()=>ho().getNodeCount(),getIdentifierCount:()=>ho().getIdentifierCount(),getSymbolCount:()=>ho().getSymbolCount(),getTypeCount:()=>ho().getTypeCount(),getInstantiationCount:()=>ho().getInstantiationCount(),getRelationCacheSizes:()=>ho().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>At,getResolvedTypeReferenceDirectives:()=>We,getAutomaticTypeDirectiveNames:()=>Se,getAutomaticTypeDirectiveResolutions:()=>je,isSourceFileFromExternalLibrary:gl,isSourceFileDefaultLibrary:cu,getModeForUsageLocation:ff,getModeForResolutionAtIndex:Xg,getSourceFileFromReference:sm,getLibFileFromReference:wc,sourceFileToPackageName:Tn,redirectTargetsMap:wn,usesUriStyleNodeCoreModules:He,resolvedModules:vt,resolvedTypeReferenceDirectiveNames:It,resolvedLibReferences:ot,getResolvedModule:q,getResolvedModuleFromModuleSpecifier:Oe,getResolvedTypeReferenceDirective:Lt,forEachResolvedModule:L,forEachResolvedTypeReferenceDirective:me,getCurrentPackagesMap:()=>rn,typesPackageExists:Be,packageBundlesTypes:ke,isEmittedFile:E1,getConfigFileParsingDiagnostics:jc,getProjectReferences:cs,getResolvedProjectReferences:ko,getProjectReferenceRedirect:Gl,getResolvedProjectReferenceToRedirect:df,getResolvedProjectReferenceByPath:G_,forEachResolvedProjectReference:jd,isSourceOfProjectReferenceRedirect:kf,emitBuildInfo:Ql,fileExists:Ye,readFile:Gt,directoryExists:_t,getSymlinkCache:V_,realpath:(K=Yt.realpath)==null?void 0:K.bind(Yt),useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getCanonicalFileName:te,getFileIncludeReasons:()=>Ee,structureIsReused:fn,writeFile:Fs};return Rt(),At==null||At.forEach(ze=>{switch(ze.kind){case 1:return Ln.add(ii(ze.file&&ml(ze.file),ze.fileProcessingReason,ze.diagnostic,ze.args||et));case 0:const{file:Ze,pos:Mt,end:jt}=XP(hn,ze.reason);return Ln.add($c(Ze,N.checkDefined(Mt),N.checkDefined(jt)-Mt,ze.diagnostic,...ze.args||et));case 2:return ze.diagnostics.forEach(bn=>Ln.add(bn));default:N.assertNever(ze)}}),W(),rl("afterProgram"),Qp("Program","beforeProgram","afterProgram"),(Q=sr)==null||Q.pop(),hn;function q(ze,Ze,Mt){var jt;return(jt=vt==null?void 0:vt.get(ze.path))==null?void 0:jt.get(Ze,Mt)}function Oe(ze){const Ze=Un(ze);return N.assertIsDefined(Ze,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),q(Ze,ze.text,ff(Ze,ze))}function Lt(ze,Ze,Mt){var jt;return(jt=It==null?void 0:It.get(ze.path))==null?void 0:jt.get(Ze,Mt)}function L(ze,Ze){J(vt,ze,Ze)}function me(ze,Ze){J(It,ze,Ze)}function J(ze,Ze,Mt){var jt;Mt?(jt=ze==null?void 0:ze.get(Mt.path))==null||jt.forEach((bn,Qn,vn)=>Ze(bn,Qn,vn,Mt.path)):ze==null||ze.forEach((bn,Qn)=>bn.forEach((vn,Zn,_i)=>Ze(vn,Zn,_i,Qn)))}function fe(){return rn||(rn=new Map,L(({resolvedModule:ze})=>{ze!=null&&ze.packageId&&rn.set(ze.packageId.name,ze.extension===".d.ts"||!!rn.get(ze.packageId.name))}),rn)}function Be(ze){return fe().has(CF(ze))}function ke(ze){return!!fe().get(ze)}function Tt(ze){var Ze;(Ze=ze.resolutionDiagnostics)!=null&&Ze.length&&(At??(At=[])).push({kind:2,diagnostics:ze.resolutionDiagnostics})}function kt(ze,Ze,Mt,jt){if(Yt.resolveModuleNameLiterals||!Yt.resolveModuleNames)return Tt(Mt);if(!Dn||Xc(Ze))return;const bn=go(ze.originalFileName,Ci),Qn=ai(bn),vn=Gn(ze),Zn=Dn.getFromNonRelativeNameCache(Ze,jt,Qn,vn);Zn&&Tt(Zn)}function en(ze,Ze,Mt){var jt,bn;if(!ze.length)return et;const Qn=go(Ze.originalFileName,Ci),vn=Gn(Ze);(jt=sr)==null||jt.push(sr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Qn}),rl("beforeResolveModule");const Zn=ci(ze,Qn,vn,G,Ze,Mt);return rl("afterResolveModule"),Qp("ResolveModule","beforeResolveModule","afterResolveModule"),(bn=sr)==null||bn.pop(),Zn}function En(ze,Ze,Mt){var jt,bn;if(!ze.length)return[];const Qn=Mo(Ze)?void 0:Ze,vn=Mo(Ze)?Ze:go(Ze.originalFileName,Ci),Zn=Qn&&Gn(Qn);(jt=sr)==null||jt.push(sr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:vn}),rl("beforeResolveTypeReference");const _i=Qi(ze,vn,Zn,G,Qn,Mt);return rl("afterResolveTypeReference"),Qp("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(bn=sr)==null||bn.pop(),_i}function Gn(ze){const Ze=df(ze.originalFileName);if(Ze||!Su(ze.originalFileName))return Ze;const Mt=qn(ze.path);if(Mt)return Mt;if(!Yt.realpath||!G.preserveSymlinks||!ze.originalFileName.includes(Ah))return;const jt=ir(Yt.realpath(ze.originalFileName));return jt===ze.path?void 0:qn(jt)}function qn(ze){const Ze=Nd(ze);if(Mo(Ze))return df(Ze);if(Ze)return jd(Mt=>{const jt=Ps(Mt.commandLine.options);if(jt)return ir(jt)===ze?Mt:void 0})}function Pi(ze,Ze){return nl(xi(ze),xi(Ze))}function xi(ze){if(gm(Co,ze.fileName,!1)){const Ze=ic(ze.fileName);if(Ze==="lib.d.ts"||Ze==="lib.es6.d.ts")return 0;const Mt=kx(XN(Ze,"lib."),".d.ts"),jt=pw.indexOf(Mt);if(jt!==-1)return jt+1}return pw.length+2}function ir(ze){return il(ze,Ci,te)}function Vr(){if(ie===void 0){const ze=mn(Ce,Ze=>xS(Ze,hn));ie=KP(G,()=>eo(ze,Ze=>Ze.isDeclarationFile?void 0:Ze.fileName),Ci,te,Ze=>Ft(ze,Ze))}return ie}function vo(){var ze;if(!Le){ho(),Le=new Set;for(const Ze of Ce)(ze=Ze.classifiableNames)==null||ze.forEach(Mt=>Le.add(Mt))}return Le}function Mi(ze,Ze){if(fn===0&&!Ze.ambientModuleNames.length)return en(ze,Ze,void 0);let Mt,jt,bn;const Qn=Xle,vn=Y&&Y.getSourceFile(Ze.fileName);for(let ni=0;ni<ze.length;ni++){const fr=ze[ni];if(Ze===vn&&!yi(Ze.path)){const Ja=Y==null?void 0:Y.getResolvedModule(Ze,fr.text,ff(Ze,fr));if(Ja!=null&&Ja.resolvedModule){Vg(G,Yt)&&bo(Yt,Ja.resolvedModule.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,fr.text,go(Ze.originalFileName,Ci),Ja.resolvedModule.resolvedFileName,Ja.resolvedModule.packageId&&ky(Ja.resolvedModule.packageId)),(jt??(jt=new Array(ze.length)))[ni]=Ja,(bn??(bn=[])).push(fr);continue}}let Qo=!1;Or(Ze.ambientModuleNames,fr.text)?(Qo=!0,Vg(G,Yt)&&bo(Yt,f.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,fr.text,go(Ze.originalFileName,Ci))):Qo=cr(fr),Qo?(jt||(jt=new Array(ze.length)))[ni]=Qn:(Mt??(Mt=[])).push(fr)}const Zn=Mt&&Mt.length?en(Mt,Ze,bn):et;if(!jt)return N.assert(Zn.length===ze.length),Zn;let _i=0;for(let ni=0;ni<jt.length;ni++)jt[ni]||(jt[ni]=Zn[_i],_i++);return N.assert(_i===Zn.length),jt;function cr(ni){var fr;const Qo=(fr=Y==null?void 0:Y.getResolvedModule(Ze,ni.text,ff(Ze,ni)))==null?void 0:fr.resolvedModule,Ja=Qo&&Y.getSourceFile(Qo.resolvedFileName);if(Qo&&Ja)return!1;const Zu=Ue.get(ni.text);return Zu?(Vg(G,Yt)&&bo(Yt,f.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,ni.text,Zu),!0):!1}}function Ri(ze,Ze){var Mt;if(fn===0)return En(ze,Ze,void 0);let jt,bn,Qn;const vn=Mo(Ze)?void 0:Ze,Zn=Mo(Ze)?void 0:Y&&Y.getSourceFile(Ze.fileName),_i=Mo(Ze)?!yi(ir(Ze)):Ze===Zn&&!yi(Ze.path);for(let fr=0;fr<ze.length;fr++){const Qo=ze[fr];if(_i){const Ja=gJ(Qo),Zu=Fw(Qo,vn==null?void 0:vn.impliedNodeFormat),fu=Mo(Ze)?(Mt=Y==null?void 0:Y.getAutomaticTypeDirectiveResolutions())==null?void 0:Mt.get(Ja,Zu):Y==null?void 0:Y.getResolvedTypeReferenceDirective(Ze,Ja,Zu);if(fu!=null&&fu.resolvedTypeReferenceDirective){Vg(G,Yt)&&bo(Yt,fu.resolvedTypeReferenceDirective.packageId?f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Ja,Mo(Ze)?Ze:go(Ze.originalFileName,Ci),fu.resolvedTypeReferenceDirective.resolvedFileName,fu.resolvedTypeReferenceDirective.packageId&&ky(fu.resolvedTypeReferenceDirective.packageId)),(bn??(bn=new Array(ze.length)))[fr]=fu,(Qn??(Qn=[])).push(Qo);continue}}(jt??(jt=[])).push(Qo)}if(!jt)return bn||et;const cr=En(jt,Ze,Qn);if(!bn)return N.assert(cr.length===ze.length),cr;let ni=0;for(let fr=0;fr<bn.length;fr++)bn[fr]||(bn[fr]=cr[ni],ni++);return N.assert(ni===cr.length),bn}function Jr(){return!c7(Y.getProjectReferences(),Y.getResolvedProjectReferences(),(ze,Ze,Mt)=>{const jt=(Ze?Ze.commandLine.projectReferences:he)[Mt],bn=Vt(jt);return ze?!bn||bn.sourceFile!==ze.sourceFile||!Hm(ze.commandLine.fileNames,bn.commandLine.fileNames):bn!==void 0},(ze,Ze)=>{const Mt=Ze?G_(Ze.sourceFile.path).commandLine.projectReferences:he;return!Hm(ze,Mt,JV)})}function xo(){var ze;if(!Y)return 0;const Ze=Y.getCompilerOptions();if(A4(Ze,G))return 0;const Mt=Y.getRootFileNames();if(!Hm(Mt,se)||!Jr())return 0;he&&(le=he.map(Vt));const jt=[],bn=[];if(fn=2,zc(Y.getMissingFilePaths(),cr=>Yt.fileExists(cr)))return 0;const Qn=Y.getSourceFiles();let vn;(cr=>{cr[cr.Exists=0]="Exists",cr[cr.Modified=1]="Modified"})(vn||(vn={}));const Zn=new Map;for(const cr of Qn){const ni=na(cr.fileName,Dn,Yt,G);let fr=Yt.getSourceFileByPath?Yt.getSourceFileByPath(cr.fileName,cr.resolvedPath,ni,void 0,yn):Yt.getSourceFile(cr.fileName,ni,void 0,yn);if(!fr)return 0;fr.packageJsonLocations=(ze=ni.packageJsonLocations)!=null&&ze.length?ni.packageJsonLocations:void 0,fr.packageJsonScope=ni.packageJsonScope,N.assert(!fr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Qo;if(cr.redirectInfo){if(fr!==cr.redirectInfo.unredirected)return 0;Qo=!1,fr=cr}else if(Y.redirectTargetsMap.has(cr.path)){if(fr!==cr)return 0;Qo=!1}else Qo=fr!==cr;fr.path=cr.path,fr.originalFileName=cr.originalFileName,fr.resolvedPath=cr.resolvedPath,fr.fileName=cr.fileName;const Ja=Y.sourceFileToPackageName.get(cr.path);if(Ja!==void 0){const Zu=Zn.get(Ja),fu=Qo?1:0;if(Zu!==void 0&&fu===1||Zu===1)return 0;Zn.set(Ja,fu)}if(Qo)cr.impliedNodeFormat!==fr.impliedNodeFormat?fn=1:Hm(cr.libReferenceDirectives,fr.libReferenceDirectives,vc)?cr.hasNoDefaultLib!==fr.hasNoDefaultLib?fn=1:Hm(cr.referencedFiles,fr.referencedFiles,vc)?(ip(fr),Hm(cr.imports,fr.imports,Es)&&Hm(cr.moduleAugmentations,fr.moduleAugmentations,Es)?(cr.flags&12582912)!==(fr.flags&12582912)?fn=1:Hm(cr.typeReferenceDirectives,fr.typeReferenceDirectives,vc)||(fn=1):fn=1):fn=1:fn=1,bn.push(fr);else if(yi(cr.path))fn=1,bn.push(fr);else for(const Zu of cr.ambientModuleNames)Ue.set(Zu,cr.fileName);jt.push(fr)}if(fn!==2)return fn;for(const cr of bn){const ni=gxe(cr),fr=Mi(ni,cr);($e??($e=new Map)).set(cr.path,fr),KV(ni,fr,Yg=>Y.getResolvedModule(cr,Yg.text,ff(cr,Yg)),Mre)&&(fn=1);const Ja=cr.typeReferenceDirectives,Zu=Ri(Ja,cr);(tn??(tn=new Map)).set(cr.path,Zu),KV(Ja,Zu,Yg=>Y.getResolvedTypeReferenceDirective(cr,gJ(Yg),Fw(Yg,cr.impliedNodeFormat)),Lre)&&(fn=1)}if(fn!==2)return fn;if(Cre(Ze,G)||Y.resolvedLibReferences&&zc(Y.resolvedLibReferences,(cr,ni)=>dg(ni).actual!==cr.actual))return 1;if(Yt.hasChangedAutomaticTypeDirectiveNames){if(Yt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Se=AF(G,Yt),!Hm(Y.getAutomaticTypeDirectiveNames(),Se))return 1;ft=Y.getMissingFilePaths(),N.assert(jt.length===Y.getSourceFiles().length);for(const cr of jt)mt.set(cr.path,cr);return Y.getFilesByNameMap().forEach((cr,ni)=>{if(!cr){mt.set(ni,cr);return}if(cr.path===ni){Y.isSourceFileFromExternalLibrary(cr)&&Qt.set(cr.path,!0);return}mt.set(ni,mt.get(cr.path))}),Ce=jt,Ee=Y.getFileIncludeReasons(),At=Y.getFileProcessingDiagnostics(),We=Y.getResolvedTypeReferenceDirectives(),Se=Y.getAutomaticTypeDirectiveNames(),je=Y.getAutomaticTypeDirectiveResolutions(),Tn=Y.sourceFileToPackageName,wn=Y.redirectTargetsMap,He=Y.usesUriStyleNodeCoreModules,vt=Y.resolvedModules,It=Y.resolvedTypeReferenceDirectiveNames,ot=Y.resolvedLibReferences,rn=Y.getCurrentPackagesMap(),2}function Nn(ze){return{getPrependNodes:Vs,getCanonicalFileName:te,getCommonSourceDirectory:hn.getCommonSourceDirectory,getCompilerOptions:hn.getCompilerOptions,getCurrentDirectory:()=>Ci,getSourceFile:hn.getSourceFile,getSourceFileByPath:hn.getSourceFileByPath,getSourceFiles:hn.getSourceFiles,getLibFileFromReference:hn.getLibFileFromReference,isSourceFileFromExternalLibrary:gl,getResolvedProjectReferenceToRedirect:df,getProjectReferenceRedirect:Gl,isSourceOfProjectReferenceRedirect:kf,getSymlinkCache:V_,writeFile:ze||Fs,isEmitBlocked:uu,readFile:Ze=>Yt.readFile(Ze),fileExists:Ze=>{const Mt=ir(Ze);return ml(Mt)?!0:ft.has(Mt)?!1:Yt.fileExists(Ze)},useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getBuildInfo:Ze=>{var Mt;return(Mt=hn.getBuildInfo)==null?void 0:Mt.call(hn,Ze)},getSourceFileFromReference:(Ze,Mt)=>hn.getSourceFileFromReference(Ze,Mt),redirectTargetsMap:wn,getFileIncludeReasons:hn.getFileIncludeReasons,createHash:ia(Yt,Yt.createHash)}}function Fs(ze,Ze,Mt,jt,bn,Qn){Yt.writeFile(ze,Ze,Mt,jt,bn,Qn)}function Ql(ze){var Ze,Mt;N.assert(!Ps(G)),(Ze=sr)==null||Ze.push(sr.Phase.Emit,"emitBuildInfo",{},!0),rl("beforeEmit");const jt=t7(r7,Nn(ze),void 0,Yq,!1,!0);return rl("afterEmit"),Qp("Emit","beforeEmit","afterEmit"),(Mt=sr)==null||Mt.pop(),jt}function ko(){return le}function cs(){return he}function Vs(){return TJ(he,(ze,Ze)=>{var Mt;return(Mt=le[Ze])==null?void 0:Mt.commandLine},ze=>{const Ze=ir(ze),Mt=ml(Ze);return Mt?Mt.text:mt.has(Ze)?void 0:Yt.readFile(Ze)},Yt)}function gl(ze){return!!Qt.get(ze.path)}function cu(ze){if(!ze.isDeclarationFile)return!1;if(ze.hasNoDefaultLib)return!0;if(!G.noLib)return!1;const Ze=Yt.useCaseSensitiveFileNames()?oS:$b;return G.lib?bt(G.lib,Mt=>Ze(ze.fileName,ot.get(Mt).actual)):Ze(ze.fileName,Wi())}function ho(){return ve||(ve=Bse(hn))}function da(ze,Ze,Mt,jt,bn,Qn){var vn,Zn;(vn=sr)==null||vn.push(sr.Phase.Emit,"emit",{path:ze==null?void 0:ze.path},!0);const _i=du(()=>Ts(hn,ze,Ze,Mt,jt,bn,Qn));return(Zn=sr)==null||Zn.pop(),_i}function uu(ze){return tt.has(ir(ze))}function Ts(ze,Ze,Mt,jt,bn,Qn,vn){if(!vn){const cr=SJ(ze,Ze,Mt,jt);if(cr)return cr}const Zn=ho().getEmitResolver(Ps(G)?void 0:Ze,jt);rl("beforeEmit");const _i=t7(Zn,Nn(Mt),Ze,Xq(G,Qn,bn),bn,!1,vn);return rl("afterEmit"),Qp("Emit","beforeEmit","afterEmit"),_i}function Ca(ze){return ml(ir(ze))}function ml(ze){return mt.get(ze)||void 0}function Lf(ze,Ze,Mt){return Ux(ze?Ze(ze,Mt):Do(hn.getSourceFiles(),jt=>(Mt&&Mt.throwIfCancellationRequested(),Ze(jt,Mt))))}function lc(ze,Ze){return Lf(ze,tu,Ze)}function Nl(ze,Ze){return Lf(ze,Tp,Ze)}function cl(ze){var Ze;return ze?(Ze=De.perFile)==null?void 0:Ze.get(ze.path):De.allDiagnostics}function wo(ze,Ze){return Ms(ze,Ze)}function nn(ze){var Ze;if(YC(ze,G,hn))return et;const Mt=Ln.getDiagnostics(ze.fileName);return(Ze=ze.commentDirectives)!=null&&Ze.length?Z(ze,ze.commentDirectives,Mt).diagnostics:Mt}function js(ze,Ze){const Mt=hn.getCompilerOptions();return!ze||Ps(Mt)?Er(ze,Ze):Lf(ze,Di,Ze)}function tu(ze){return cd(ze)?(ze.additionalSyntacticDiagnostics||(ze.additionalSyntacticDiagnostics=un(ze)),So(ze.additionalSyntacticDiagnostics,ze.parseDiagnostics)):ze.parseDiagnostics}function du(ze){try{return ze()}catch(Ze){throw Ze instanceof zx&&(ve=void 0),Ze}}function Tp(ze,Ze){return So(p7(Ms(ze,Ze),G),nn(ze))}function Ms(ze,Ze){return jr(ze,Ze,De,xc)}function xc(ze,Ze){return du(()=>{if(YC(ze,G,hn))return et;const Mt=ho();N.assert(!!ze.bindDiagnostics);const bn=(ze.scriptKind===1||ze.scriptKind===2)&&gk(ze,G),Qn=bL(ze,G.checkJs),Zn=!(!!ze.checkJsDirective&&ze.checkJsDirective.enabled===!1)&&(ze.scriptKind===3||ze.scriptKind===4||ze.scriptKind===5||Qn||bn||ze.scriptKind===7);let _i=Zn?ze.bindDiagnostics:et,cr=Zn?Mt.getDiagnostics(ze,Ze):et;return Qn&&(_i=mn(_i,ni=>_7.has(ni.code)),cr=mn(cr,ni=>_7.has(ni.code))),ue(ze,Zn&&!Qn,_i,cr,bn?ze.jsDocDiagnostics:void 0)})}function ue(ze,Ze,...Mt){var jt;const bn=Cs(Mt);if(!Ze||!((jt=ze.commentDirectives)!=null&&jt.length))return bn;const{diagnostics:Qn,directives:vn}=Z(ze,ze.commentDirectives,bn);for(const Zn of vn.getUnusedExpectations())Qn.push(Kre(ze,Zn.range,f.Unused_ts_expect_error_directive));return Qn}function Z(ze,Ze,Mt){const jt=Ore(ze,Ze);return{diagnostics:Mt.filter(Qn=>Et(Qn,jt)===-1),directives:jt}}function we(ze,Ze){return du(()=>ho().getSuggestionDiagnostics(ze,Ze))}function Et(ze,Ze){const{file:Mt,start:jt}=ze;if(!Mt)return-1;const bn=Ng(Mt);let Qn=Vx(bn,jt).line-1;for(;Qn>=0;){if(Ze.markUsed(Qn))return Qn;const vn=Mt.text.slice(bn[Qn],bn[Qn+1]).trim();if(vn!==""&&!/^(\s*)\/\/(.*)$/.test(vn))return-1;Qn--}return-1}function un(ze){return du(()=>{const Ze=[];return Mt(ze,ze),RP(ze,Mt,jt),Ze;function Mt(Zn,_i){switch(_i.kind){case 169:case 172:case 174:if(_i.questionToken===Zn)return Ze.push(vn(Zn,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(_i.type===Zn)return Ze.push(vn(Zn,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Zn.kind){case 273:if(Zn.isTypeOnly)return Ze.push(vn(_i,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(Zn.isTypeOnly)return Ze.push(vn(Zn,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(Zn.isTypeOnly)return Ze.push(vn(Zn,f._0_declarations_can_only_be_used_in_TypeScript_files,tp(Zn)?"import...type":"export...type")),"skip";break;case 271:return Ze.push(vn(Zn,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(Zn.isExportEquals)return Ze.push(vn(Zn,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(Zn.token===119)return Ze.push(vn(Zn,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const ni=pa(120);return N.assertIsDefined(ni),Ze.push(vn(Zn,f._0_declarations_can_only_be_used_in_TypeScript_files,ni)),"skip";case 267:const fr=Zn.flags&32?pa(145):pa(144);return N.assertIsDefined(fr),Ze.push(vn(Zn,f._0_declarations_can_only_be_used_in_TypeScript_files,fr)),"skip";case 265:return Ze.push(vn(Zn,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return Zn.body?void 0:(Ze.push(vn(Zn,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const Qo=N.checkDefined(pa(94));return Ze.push(vn(Zn,f._0_declarations_can_only_be_used_in_TypeScript_files,Qo)),"skip";case 235:return Ze.push(vn(Zn,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Ze.push(vn(Zn.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Ze.push(vn(Zn.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:N.fail()}}function jt(Zn,_i){if(NH(_i)){const cr=In(_i.modifiers,Eu);cr&&Ze.push(vn(cr,f.Decorators_are_not_valid_here))}else if(qS(_i)&&_i.modifiers){const cr=mi(_i.modifiers,Eu);if(cr>=0){if(Ao(_i)&&!G.experimentalDecorators)Ze.push(vn(_i.modifiers[cr],f.Decorators_are_not_valid_here));else if(Ac(_i)){const ni=mi(_i.modifiers,$A);if(ni>=0){const fr=mi(_i.modifiers,GW);if(cr>ni&&fr>=0&&cr<fr)Ze.push(vn(_i.modifiers[cr],f.Decorators_are_not_valid_here));else if(ni>=0&&cr<ni){const Qo=mi(_i.modifiers,Eu,ni);Qo>=0&&Ze.push(Ma(vn(_i.modifiers[Qo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),vn(_i.modifiers[cr],f.Decorator_used_before_export_here)))}}}}}switch(_i.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(Zn===_i.typeParameters)return Ze.push(Qn(Zn,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(Zn===_i.modifiers)return bn(_i.modifiers,_i.kind===243),"skip";break;case 172:if(Zn===_i.modifiers){for(const cr of Zn)Aa(cr)&&cr.kind!==126&&cr.kind!==129&&Ze.push(vn(cr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,pa(cr.kind)));return"skip"}break;case 169:if(Zn===_i.modifiers&&bt(Zn,Aa))return Ze.push(Qn(Zn,f.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(Zn===_i.typeArguments)return Ze.push(Qn(Zn,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function bn(Zn,_i){for(const cr of Zn)switch(cr.kind){case 87:if(_i)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Ze.push(vn(cr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,pa(cr.kind)));break;case 126:case 95:case 90:case 129:}}function Qn(Zn,_i,...cr){const ni=Zn.pos;return $c(ze,ni,Zn.end-ni,_i,...cr)}function vn(Zn,_i,...cr){return Xf(ze,Zn,_i,...cr)}})}function Er(ze,Ze){return jr(ze,Ze,Me,vr)}function vr(ze,Ze){return du(()=>{const Mt=ho().getEmitResolver(ze,Ze);return Lle(Nn(Ya),Mt,ze)||et})}function jr(ze,Ze,Mt,jt){var bn;const Qn=ze?(bn=Mt.perFile)==null?void 0:bn.get(ze.path):Mt.allDiagnostics;if(Qn)return Qn;const vn=jt(ze,Ze);return ze?(Mt.perFile||(Mt.perFile=new Map)).set(ze.path,vn):Mt.allDiagnostics=vn,vn}function Di(ze,Ze){return ze.isDeclarationFile?[]:Er(ze,Ze)}function Mr(){return Ux(So(Ln.getGlobalDiagnostics(),Yo()))}function Yo(){if(!G.configFile)return et;let ze=Ln.getDiagnostics(G.configFile.fileName);return jd(Ze=>{ze=So(ze,Ln.getDiagnostics(Ze.sourceFile.fileName))}),ze}function Sl(){return se.length?Ux(ho().getGlobalDiagnostics().slice()):et}function jc(){return ne||et}function Us(ze,Ze,Mt,jt){Pe(ha(ze),Ze,Mt,void 0,jt)}function vc(ze,Ze){return ze.fileName===Ze.fileName}function Es(ze,Ze){return ze.kind===80?Ze.kind===80&&ze.escapedText===Ze.escapedText:Ze.kind===11&&ze.text===Ze.text}function Uc(ze,Ze){const Mt=w.createStringLiteral(ze),jt=w.createImportDeclaration(void 0,void 0,Mt,void 0);return UA(jt,2),Ha(Mt,jt),Ha(jt,Ze),Mt.flags&=-17,jt.flags&=-17,Mt}function ip(ze){if(ze.imports)return;const Ze=cd(ze),Mt=sc(ze);let jt,bn,Qn;if((rm(G)||Mt)&&!ze.isDeclarationFile){G.importHelpers&&(jt=[Uc(Vy,ze)]);const cr=w3(k3(G,ze),G);cr&&(jt||(jt=[])).push(Uc(cr,ze))}for(const cr of ze.statements)vn(cr,!1);(ze.flags&4194304||Ze)&&Zn(ze),ze.imports=jt||et,ze.moduleAugmentations=bn||et,ze.ambientModuleNames=Qn||et;return;function vn(cr,ni){if(TL(cr)){const fr=fR(cr);fr&&Na(fr)&&fr.text&&(!ni||!Xc(fr.text))&&(Gy(cr,!1),jt=Rn(jt,fr),!He&&$n===0&&!ze.isDeclarationFile&&(He=uo(fr.text,"node:")))}else if(Xl(cr)&&ku(cr)&&(ni||Qr(cr,128)||ze.isDeclarationFile)){cr.name.parent=cr;const fr=Qf(cr.name);if(Mt||ni&&!Xc(fr))(bn||(bn=[])).push(cr.name);else if(!ni){ze.isDeclarationFile&&(Qn||(Qn=[])).push(fr);const Qo=cr.body;if(Qo)for(const Ja of Qo.statements)vn(Ja,!0)}}}function Zn(cr){const ni=/import|require/g;for(;ni.exec(cr.text)!==null;){const fr=_i(cr,ni.lastIndex);Ze&&Td(fr,!0)||zp(fr)&&fr.arguments.length>=1&&ls(fr.arguments[0])?(Gy(fr,!1),jt=Rn(jt,fr.arguments[0])):Oy(fr)&&(Gy(fr,!1),jt=Rn(jt,fr.argument.literal))}}function _i(cr,ni){let fr=cr;const Qo=Ja=>{if(Ja.pos<=ni&&(ni<Ja.end||ni===Ja.end&&Ja.kind===1))return Ja};for(;;){const Ja=Ze&&Wp(fr)&&Xe(fr.jsDoc,Qo)||Uo(fr,Qo);if(!Ja)return fr;fr=Ja}}}function wc(ze){var Ze;const{libFileName:Mt}=hxe(ze),jt=Mt&&((Ze=ot==null?void 0:ot.get(Mt))==null?void 0:Ze.actual);return jt!==void 0?Ca(jt):void 0}function sm(ze,Ze){return _d(s7(Ze.fileName,ze.fileName),Ca)}function _d(ze,Ze,Mt,jt){if(vA(ze)){const bn=Yt.getCanonicalFileName(ze);if(!G.allowNonTsExtensions&&!Xe(Cs(sn),vn=>Il(bn,vn))){Mt&&(UE(bn)?Mt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,ze):Mt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,ze,"'"+Cs(Ar).join("', '")+"'"));return}const Qn=Ze(ze);if(Mt)if(Qn)D0(jt)&&bn===Yt.getCanonicalFileName(ml(jt.file).fileName)&&Mt(f.A_file_cannot_have_a_reference_to_itself);else{const vn=Gl(ze);vn?Mt(f.Output_file_0_has_not_been_built_from_source_file_1,vn,ze):Mt(f.File_0_not_found,ze)}return Qn}else{const bn=G.allowNonTsExtensions&&Ze(ze);if(bn)return bn;if(Mt&&G.allowNonTsExtensions){Mt(f.File_0_not_found,ze);return}const Qn=Xe(Ar[0],vn=>Ze(ze+vn));return Mt&&!Qn&&Mt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,ze,"'"+Cs(Ar).join("', '")+"'"),Qn}}function Pe(ze,Ze,Mt,jt,bn){_d(ze,Qn=>$o(Qn,Ze,Mt,bn,jt),(Qn,...vn)=>Yr(void 0,bn,Qn,vn),bn)}function Ot(ze,Ze){return Pe(ze,!1,!1,void 0,Ze)}function Xn(ze,Ze,Mt){!D0(Mt)&&bt(Ee.get(Ze.path),D0)?Yr(Ze,Mt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ze.fileName,ze]):Yr(Ze,Mt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[ze,Ze.fileName])}function yo(ze,Ze,Mt,jt,bn,Qn,vn){var Zn;const _i=Th.createRedirectedSourceFile({redirectTarget:ze,unredirected:Ze});return _i.fileName=Mt,_i.path=jt,_i.resolvedPath=bn,_i.originalFileName=Qn,_i.packageJsonLocations=(Zn=vn.packageJsonLocations)!=null&&Zn.length?vn.packageJsonLocations:void 0,_i.packageJsonScope=vn.packageJsonScope,Qt.set(jt,$n>0),_i}function $o(ze,Ze,Mt,jt,bn){var Qn,vn;(Qn=sr)==null||Qn.push(sr.Phase.Program,"findSourceFile",{fileName:ze,isDefaultLib:Ze||void 0,fileIncludeKind:F6[jt.kind]});const Zn=Zl(ze,Ze,Mt,jt,bn);return(vn=sr)==null||vn.pop(),Zn}function na(ze,Ze,Mt,jt){const bn=EJ(go(ze,Ci),Ze==null?void 0:Ze.getPackageJsonInfoCache(),Mt,jt),Qn=os(jt),vn=fk(jt);return typeof bn=="object"?{...bn,languageVersion:Qn,setExternalModuleIndicator:vn,jsDocParsingMode:Mt.jsDocParsingMode}:{languageVersion:Qn,impliedNodeFormat:bn,setExternalModuleIndicator:vn,jsDocParsingMode:Mt.jsDocParsingMode}}function Zl(ze,Ze,Mt,jt,bn){var Qn;const vn=ir(ze);if(it){let fr=Nd(vn);if(!fr&&Yt.realpath&&G.preserveSymlinks&&Su(ze)&&ze.includes(Ah)){const Qo=ir(Yt.realpath(ze));Qo!==vn&&(fr=Nd(Qo))}if(fr){const Qo=Mo(fr)?$o(fr,Ze,Mt,jt,bn):void 0;return Qo&&ul(Qo,vn,ze,void 0),Qo}}const Zn=ze;if(mt.has(vn)){const fr=mt.get(vn);if(yc(fr||void 0,jt),fr&&G.forceConsistentCasingInFileNames!==!1){const Qo=fr.fileName;ir(Qo)!==ir(ze)&&(ze=Gl(ze)||ze);const Zu=mV(Qo,Ci),fu=mV(ze,Ci);Zu!==fu&&Xn(ze,fr,jt)}return fr&&Qt.get(fr.path)&&$n===0?(Qt.set(fr.path,!1),G.noResolve||(Dh(fr,Ze),qg(fr)),G.noLib||Ud(fr),gn.set(fr.path,!1),ct(fr)):fr&&gn.get(fr.path)&&$n<Mn&&(gn.set(fr.path,!1),ct(fr)),fr||void 0}let _i;if(D0(jt)&&!it){const fr=ec(ze);if(fr){if(Ps(fr.commandLine.options))return;const Qo=Hc(fr,ze);ze=Qo,_i=ir(Qo)}}const cr=na(ze,Dn,Yt,G),ni=Yt.getSourceFile(ze,cr,fr=>Yr(void 0,jt,f.Cannot_read_file_0_Colon_1,[ze,fr]),yn);if(bn){const fr=ky(bn),Qo=ka.get(fr);if(Qo){const Ja=yo(Qo,ni,ze,vn,ir(ze),Zn,cr);return wn.add(Qo.path,ze),ul(Ja,vn,ze,_i),yc(Ja,jt),Tn.set(vn,R4(bn)),pe.push(Ja),Ja}else ni&&(ka.set(fr,ni),Tn.set(vn,R4(bn)))}if(ul(ni,vn,ze,_i),ni){if(Qt.set(vn,$n>0),ni.fileName=ze,ni.path=vn,ni.resolvedPath=ir(ze),ni.originalFileName=Zn,ni.packageJsonLocations=(Qn=cr.packageJsonLocations)!=null&&Qn.length?cr.packageJsonLocations:void 0,ni.packageJsonScope=cr.packageJsonScope,yc(ni,jt),Yt.useCaseSensitiveFileNames()){const fr=sh(vn),Qo=Ct.get(fr);Qo?Xn(ze,Qo,jt):Ct.set(fr,ni)}so=so||ni.hasNoDefaultLib&&!Mt,G.noResolve||(Dh(ni,Ze),qg(ni)),G.noLib||Ud(ni),ct(ni),Ze?oe.push(ni):pe.push(ni)}return ni}function yc(ze,Ze){ze&&Ee.add(ze.path,Ze)}function ul(ze,Ze,Mt,jt){jt?(vl(Mt,jt,ze),vl(Mt,Ze,ze||!1)):vl(Mt,Ze,ze)}function vl(ze,Ze,Mt){mt.set(Ze,Mt),Mt!==void 0?ft.delete(Ze):ft.set(Ze,ze)}function Gl(ze){const Ze=ec(ze);return Ze&&Hc(Ze,ze)}function ec(ze){if(!(!le||!le.length||Su(ze)||Il(ze,".json")))return df(ze)}function Hc(ze,Ze){const Mt=Ps(ze.commandLine.options);return Mt?_0(Mt,".d.ts"):JP(Ze,ze.commandLine,!Yt.useCaseSensitiveFileNames())}function df(ze){pt===void 0&&(pt=new Map,jd(Mt=>{ir(G.configFilePath)!==Mt.sourceFile.path&&Mt.commandLine.fileNames.forEach(jt=>pt.set(ir(jt),Mt.sourceFile.path))}));const Ze=pt.get(ir(ze));return Ze&&G_(Ze)}function jd(ze){return vJ(le,ze)}function Nd(ze){if(Su(ze))return j===void 0&&(j=new Map,jd(Ze=>{const Mt=Ps(Ze.commandLine.options);if(Mt){const jt=_0(Mt,".d.ts");j.set(ir(jt),!0)}else{const jt=Sd(()=>cD(Ze.commandLine,!Yt.useCaseSensitiveFileNames()));Xe(Ze.commandLine.fileNames,bn=>{if(!Su(bn)&&!Il(bn,".json")){const Qn=JP(bn,Ze.commandLine,!Yt.useCaseSensitiveFileNames(),jt);j.set(ir(Qn),bn)}})}})),j.get(ze)}function kf(ze){return it&&!!df(ze)}function G_(ze){if(Fe)return Fe.get(ze)||void 0}function Dh(ze,Ze){Xe(ze.referencedFiles,(Mt,jt)=>{Pe(s7(Mt.fileName,ze.fileName),Ze,!1,void 0,{kind:4,file:ze.path,index:jt})})}function qg(ze){const Ze=ze.typeReferenceDirectives;if(!Ze.length)return;const Mt=(tn==null?void 0:tn.get(ze.path))||Ri(Ze,ze),jt=_I();(It??(It=new Map)).set(ze.path,jt);for(let bn=0;bn<Ze.length;bn++){const Qn=ze.typeReferenceDirectives[bn],vn=Mt[bn],Zn=sh(Qn.fileName);jt.set(Zn,Fw(Qn,ze.impliedNodeFormat),vn);const _i=Qn.resolutionMode||ze.impliedNodeFormat;Bu(Zn,_i,vn,{kind:5,file:ze.path,index:bn})}}function Bu(ze,Ze,Mt,jt){var bn,Qn;(bn=sr)==null||bn.push(sr.Phase.Program,"processTypeReferenceDirective",{directive:ze,hasResolved:!!Mt.resolvedTypeReferenceDirective,refKind:jt.kind,refPath:D0(jt)?jt.file:void 0}),Jg(ze,Ze,Mt,jt),(Qn=sr)==null||Qn.pop()}function Jg(ze,Ze,Mt,jt){var bn;Tt(Mt);const Qn=(bn=We.get(ze,Ze))==null?void 0:bn.resolvedTypeReferenceDirective;if(Qn&&Qn.primary)return;let vn=!0;const{resolvedTypeReferenceDirective:Zn}=Mt;if(Zn){if(Zn.isExternalLibraryImport&&$n++,Zn.primary)Pe(Zn.resolvedFileName,!1,!1,Zn.packageId,jt);else if(Qn){if(Zn.resolvedFileName!==Qn.resolvedFileName){const _i=Yt.readFile(Zn.resolvedFileName),cr=Ca(Qn.resolvedFileName);_i!==cr.text&&Yr(cr,jt,f.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[ze,Zn.resolvedFileName,Qn.resolvedFileName])}vn=!1}else Pe(Zn.resolvedFileName,!1,!1,Zn.packageId,jt);Zn.isExternalLibraryImport&&$n--}else Yr(void 0,jt,f.Cannot_find_type_definition_file_for_0,[ze]);vn&&We.set(ze,Ze,Mt)}function Ap(ze){const Ze=ot==null?void 0:ot.get(ze);if(Ze)return Ze.actual;const Mt=dg(ze);return(ot??(ot=new Map)).set(ze,Mt),Mt.actual}function dg(ze){var Ze,Mt,jt,bn,Qn;const vn=Bt==null?void 0:Bt.get(ze);if(vn)return vn;if(fn!==0&&Y&&!Io(ze)){const fr=(Ze=Y.resolvedLibReferences)==null?void 0:Ze.get(ze);if(fr){if(fr.resolution&&Vg(G,Yt)){const Qo=yJ(ze),Ja=u7(G,Ci,ze);bo(Yt,fr.resolution.resolvedModule?fr.resolution.resolvedModule.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Qo,go(Ja,Ci),(Mt=fr.resolution.resolvedModule)==null?void 0:Mt.resolvedFileName,((jt=fr.resolution.resolvedModule)==null?void 0:jt.packageId)&&ky(fr.resolution.resolvedModule.packageId))}return(Bt??(Bt=new Map)).set(ze,fr),fr}}const Zn=yJ(ze),_i=u7(G,Ci,ze);(bn=sr)==null||bn.push(sr.Phase.Program,"resolveLibrary",{resolveFrom:_i}),rl("beforeResolveLibrary");const cr=fa(Zn,_i,G,ze);rl("afterResolveLibrary"),Qp("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),(Qn=sr)==null||Qn.pop();const ni={resolution:cr,actual:cr.resolvedModule?cr.resolvedModule.resolvedFileName:$r(Co,ze)};return(Bt??(Bt=new Map)).set(ze,ni),ni}function Ud(ze){Xe(ze.libReferenceDirectives,(Ze,Mt)=>{const{libName:jt,libFileName:bn}=hxe(Ze);if(bn)Us(Ap(bn),!0,!0,{kind:7,file:ze.path,index:Mt});else{const Qn=kx(XN(jt,"lib."),".d.ts"),vn=KN(Qn,pw,tl),Zn=vn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,_i=vn?[jt,vn]:[jt];(At||(At=[])).push({kind:0,reason:{kind:7,file:ze.path,index:Mt},diagnostic:Zn,args:_i})}})}function te(ze){return Yt.getCanonicalFileName(ze)}function ct(ze){var Ze;if(ip(ze),ze.imports.length||ze.moduleAugmentations.length){const Mt=gxe(ze),jt=($e==null?void 0:$e.get(ze.path))||Mi(Mt,ze);N.assert(jt.length===Mt.length);const bn=((Ze=Gn(ze))==null?void 0:Ze.commandLine.options)||G,Qn=_I();(vt??(vt=new Map)).set(ze.path,Qn);for(let vn=0;vn<Mt.length;vn++){const Zn=jt[vn].resolvedModule,_i=Mt[vn].text,cr=_J(ze,Mt[vn],bn);if(Qn.set(_i,cr,jt[vn]),kt(ze,_i,jt[vn],cr),!Zn)continue;const ni=Zn.isExternalLibraryImport,fr=!KC(Zn.extension),Qo=ni&&fr&&(!Zn.originalPath||x0(Zn.resolvedFileName)),Ja=Zn.resolvedFileName;ni&&$n++;const Zu=Qo&&$n>Mn,fu=Ja&&!AJ(bn,Zn,ze)&&!bn.noResolve&&vn<ze.imports.length&&!Zu&&!(fr&&!jy(bn))&&(lr(ze.imports[vn])||!(ze.imports[vn].flags&16777216));Zu?gn.set(ze.path,!0):fu&&$o(Ja,!1,!1,{kind:3,file:ze.path,index:vn},Zn.packageId),ni&&$n--}}}function Ft(ze,Ze){let Mt=!0;const jt=Yt.getCanonicalFileName(go(Ze,Ci));for(const bn of ze)bn.isDeclarationFile||Yt.getCanonicalFileName(go(bn.fileName,Ci)).indexOf(jt)!==0&&(oo(bn,f.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[bn.fileName,Ze]),Mt=!1);return Mt}function Vt(ze){Fe||(Fe=new Map);const Ze=pD(ze),Mt=ir(Ze),jt=Fe.get(Mt);if(jt!==void 0)return jt||void 0;let bn,Qn;if(Yt.getParsedCommandLine){if(bn=Yt.getParsedCommandLine(Ze),!bn){ul(void 0,Mt,Ze,void 0),Fe.set(Mt,!1);return}Qn=N.checkDefined(bn.options.configFile),N.assert(!Qn.path||Qn.path===Mt),ul(Qn,Mt,Ze,void 0)}else{const Zn=go(ai(Ze),Ci);if(Qn=Yt.getSourceFile(Ze,100),ul(Qn,Mt,Ze,void 0),Qn===void 0){Fe.set(Mt,!1);return}bn=cw(Qn,vi,Zn,void 0,Ze)}Qn.fileName=Ze,Qn.path=Mt,Qn.resolvedPath=Mt,Qn.originalFileName=Ze;const vn={commandLine:bn,sourceFile:Qn};return Fe.set(Mt,vn),bn.projectReferences&&(vn.references=bn.projectReferences.map(Vt)),vn}function W(){G.strictPropertyInitialization&&!dd(G,"strictNullChecks")&&us(f.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),G.exactOptionalPropertyTypes&&!dd(G,"strictNullChecks")&&us(f.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(G.isolatedModules||G.verbatimModuleSyntax)&&(G.out&&us(f.Option_0_cannot_be_specified_with_option_1,"out",G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),G.outFile&&us(f.Option_0_cannot_be_specified_with_option_1,"outFile",G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),G.inlineSourceMap&&(G.sourceMap&&us(f.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),G.mapRoot&&us(f.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),G.composite&&(G.declaration===!1&&us(f.Composite_projects_may_not_disable_declaration_emit,"declaration"),G.incremental===!1&&us(f.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const ze=Ps(G);if(G.tsBuildInfoFile?sP(G)||us(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):G.incremental&&!ze&&!G.configFilePath&&Ln.add(Ul(f.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),qt(),Oa(),G.composite){const vn=new Set(se.map(ir));for(const Zn of Ce)xS(Zn,hn)&&!vn.has(Zn.path)&&oo(Zn,f.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Zn.fileName,G.configFilePath||""])}if(G.paths){for(const vn in G.paths)if(Is(G.paths,vn))if(uU(vn)||pu(!0,vn,f.Pattern_0_can_have_at_most_one_Asterisk_character,vn),To(G.paths[vn])){const Zn=G.paths[vn].length;Zn===0&&pu(!1,vn,f.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,vn);for(let _i=0;_i<Zn;_i++){const cr=G.paths[vn][_i],ni=typeof cr;ni==="string"?(uU(cr)||Ol(vn,_i,f.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,cr,vn),!G.baseUrl&&!Op(cr)&&!ZN(cr)&&Ol(vn,_i,f.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Ol(vn,_i,f.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,cr,vn,ni)}}else pu(!1,vn,f.Substitutions_for_pattern_0_should_be_an_array,vn)}!G.sourceMap&&!G.inlineSourceMap&&(G.inlineSources&&us(f.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),G.sourceRoot&&us(f.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),G.out&&G.outFile&&us(f.Option_0_cannot_be_specified_with_option_1,"out","outFile"),G.mapRoot&&!(G.sourceMap||G.declarationMap)&&us(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),G.declarationDir&&(Rf(G)||us(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),ze&&us(f.Option_0_cannot_be_specified_with_option_1,"declarationDir",G.out?"out":"outFile")),G.declarationMap&&!Rf(G)&&us(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),G.lib&&G.noLib&&us(f.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),G.noImplicitUseStrict&&dd(G,"alwaysStrict")&&us(f.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");const Ze=os(G),Mt=In(Ce,vn=>sc(vn)&&!vn.isDeclarationFile);if(G.isolatedModules||G.verbatimModuleSyntax)G.module===0&&Ze<2&&G.isolatedModules&&us(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),G.preserveConstEnums===!1&&us(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Mt&&Ze<2&&G.module===0){const vn=vS(Mt,typeof Mt.externalModuleIndicator=="boolean"?Mt:Mt.externalModuleIndicator);Ln.add($c(Mt,vn.start,vn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(ze&&!G.emitDeclarationOnly){if(G.module&&!(G.module===2||G.module===4))us(f.Only_amd_and_system_modules_are_supported_alongside_0,G.out?"out":"outFile","module");else if(G.module===void 0&&Mt){const vn=vS(Mt,typeof Mt.externalModuleIndicator=="boolean"?Mt:Mt.externalModuleIndicator);Ln.add($c(Mt,vn.start,vn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,G.out?"out":"outFile"))}}if(g0(G)&&(pd(G)===1?us(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):P3(G)||us(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),G.outDir||G.rootDir||G.sourceRoot||G.mapRoot){const vn=Vr();G.outDir&&vn===""&&Ce.some(Zn=>uh(Zn.fileName)>1)&&us(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}G.useDefineForClassFields&&Ze===0&&us(f.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),G.checkJs&&!jy(G)&&Ln.add(Ul(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),G.emitDeclarationOnly&&(Rf(G)||us(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),G.noEmit&&us(f.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),G.emitDecoratorMetadata&&!G.experimentalDecorators&&us(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),G.jsxFactory?(G.reactNamespace&&us(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(G.jsx===4||G.jsx===5)&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",PP.get(""+G.jsx)),pI(G.jsxFactory,Ze)||Pm("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFactory)):G.reactNamespace&&!Zp(G.reactNamespace,Ze)&&Pm("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,G.reactNamespace),G.jsxFragmentFactory&&(G.jsxFactory||us(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(G.jsx===4||G.jsx===5)&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",PP.get(""+G.jsx)),pI(G.jsxFragmentFactory,Ze)||Pm("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFragmentFactory)),G.reactNamespace&&(G.jsx===4||G.jsx===5)&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",PP.get(""+G.jsx)),G.jsxImportSource&&G.jsx===2&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",PP.get(""+G.jsx)),G.preserveValueImports&&wu(G)<5&&us(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");const jt=wu(G);G.verbatimModuleSyntax&&((jt===2||jt===3||jt===4)&&us(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),G.preserveValueImports&&Lm("preserveValueImports","verbatimModuleSyntax"),G.importsNotUsedAsValues&&Lm("importsNotUsedAsValues","verbatimModuleSyntax")),G.allowImportingTsExtensions&&!(G.noEmit||G.emitDeclarationOnly)&&Pm("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const bn=pd(G);if(G.resolvePackageJsonExports&&!BA(bn)&&us(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),G.resolvePackageJsonImports&&!BA(bn)&&us(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),G.customConditions&&!BA(bn)&&us(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),bn===100&&!C3(jt)&&jt!==200&&Pm("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),$N[jt]&&100<=jt&&jt<=199&&!(3<=bn&&bn<=99)){const vn=$N[jt];Pm("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,vn,vn)}else if(Bx[bn]&&3<=bn&&bn<=99&&!(100<=jt&&jt<=199)){const vn=Bx[bn];Pm("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,vn,vn)}if(!G.noEmit&&!G.suppressOutputPathCheck){const vn=Nn(),Zn=new Set;$q(vn,_i=>{G.emitDeclarationOnly||Qn(_i.jsFilePath,Zn),Qn(_i.declarationFilePath,Zn)})}function Qn(vn,Zn){if(vn){const _i=ir(vn);if(mt.has(_i)){let ni;G.configFilePath||(ni=Vo(void 0,f.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),ni=Vo(ni,f.Cannot_write_file_0_because_it_would_overwrite_input_file,vn),b1(vn,D3(ni))}const cr=Yt.useCaseSensitiveFileNames()?_i:sh(_i);Zn.has(cr)?b1(vn,Ul(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,vn)):Zn.add(cr)}}}function Te(){const ze=G.ignoreDeprecations;if(ze){if(ze==="5.0")return new hm(ze);X()}return hm.zero}function st(ze,Ze,Mt,jt){const bn=new hm(ze),Qn=new hm(Ze),vn=new hm(ye||_e),Zn=Te(),_i=Qn.compareTo(vn)!==1,cr=!_i&&Zn.compareTo(bn)===-1;(_i||cr)&&jt((ni,fr,Qo)=>{_i?fr===void 0?Mt(ni,fr,Qo,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ni):Mt(ni,fr,Qo,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ni,fr):fr===void 0?Mt(ni,fr,Qo,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ni,Ze,ze):Mt(ni,fr,Qo,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ni,fr,Ze,ze)})}function qt(){function ze(Ze,Mt,jt,bn,...Qn){if(jt){const vn=Vo(void 0,f.Use_0_instead,jt),Zn=Vo(vn,bn,...Qn);Ui(!Mt,Ze,void 0,Zn)}else Ui(!Mt,Ze,void 0,bn,...Qn)}st("5.0","5.5",ze,Ze=>{G.target===0&&Ze("target","ES3"),G.noImplicitUseStrict&&Ze("noImplicitUseStrict"),G.keyofStringsOnly&&Ze("keyofStringsOnly"),G.suppressExcessPropertyErrors&&Ze("suppressExcessPropertyErrors"),G.suppressImplicitAnyIndexErrors&&Ze("suppressImplicitAnyIndexErrors"),G.noStrictGenericChecks&&Ze("noStrictGenericChecks"),G.charset&&Ze("charset"),G.out&&Ze("out",void 0,"outFile"),G.importsNotUsedAsValues&&Ze("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),G.preserveValueImports&&Ze("preserveValueImports",void 0,"verbatimModuleSyntax")})}function rr(ze,Ze,Mt){function jt(bn,Qn,vn,Zn,..._i){Mm(Ze,Mt,Zn,..._i)}st("5.0","5.5",jt,bn=>{ze.prepend&&bn("prepend")})}function ii(ze,Ze,Mt,jt){var bn;let Qn,vn,Zn=D0(Ze)?Ze:void 0;ze&&((bn=Ee.get(ze.path))==null||bn.forEach(Qo)),Ze&&Qo(Ze),Zn&&(Qn==null?void 0:Qn.length)===1&&(Qn=void 0);const _i=Zn&&XP(hn,Zn),cr=Qn&&Vo(Qn,f.The_file_is_in_the_program_because_Colon),ni=ze&&GJ(ze),fr=Vo(ni?cr?[cr,...ni]:ni:cr,Mt,...jt||et);return _i&&dD(_i)?k4(_i.file,_i.pos,_i.end-_i.pos,fr,vn):D3(fr,vn);function Qo(Ja){(Qn||(Qn=[])).push(UJ(hn,Ja)),!Zn&&D0(Ja)?Zn=Ja:Zn!==Ja&&(vn=Rn(vn,wa(Ja))),Ja===Ze&&(Ze=void 0)}}function Yr(ze,Ze,Mt,jt){(At||(At=[])).push({kind:1,file:ze&&ze.path,fileProcessingReason:Ze,diagnostic:Mt,args:jt})}function oo(ze,Ze,Mt){Ln.add(ii(ze,void 0,Ze,Mt))}function wa(ze){if(D0(ze)){const jt=XP(hn,ze);let bn;switch(ze.kind){case 3:bn=f.File_is_included_via_import_here;break;case 4:bn=f.File_is_included_via_reference_here;break;case 5:bn=f.File_is_included_via_type_library_reference_here;break;case 7:bn=f.File_is_included_via_library_reference_here;break;default:N.assertNever(ze)}return dD(jt)?$c(jt.file,jt.pos,jt.end-jt.pos,bn):void 0}if(!G.configFile)return;let Ze,Mt;switch(ze.kind){case 0:if(!G.configFile.configFileSpecs)return;const jt=go(se[ze.index],Ci),bn=VJ(hn,jt);if(bn){Ze=G4(G.configFile,"files",bn),Mt=f.File_is_matched_by_files_list_specified_here;break}const Qn=jJ(hn,jt);if(!Qn||!Mo(Qn))return;Ze=G4(G.configFile,"include",Qn),Mt=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const vn=N.checkDefined(le==null?void 0:le[ze.index]),Zn=c7(he,le,(Qo,Ja,Zu)=>Qo===vn?{sourceFile:(Ja==null?void 0:Ja.sourceFile)||G.configFile,index:Zu}:void 0);if(!Zn)return;const{sourceFile:_i,index:cr}=Zn,ni=NL(_i,"references",Qo=>fd(Qo.initializer)?Qo.initializer:void 0);return ni&&ni.elements.length>cr?Xf(_i,ni.elements[cr],ze.kind===2?f.File_is_output_from_referenced_project_specified_here:f.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!G.types)return;Ze=ab("types",ze.typeReference),Mt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(ze.index!==void 0){Ze=ab("lib",G.lib[ze.index]),Mt=f.File_is_library_specified_here;break}const fr=zc(mw.type,(Qo,Ja)=>Qo===os(G)?Ja:void 0);Ze=fr?Hd("target",fr):void 0,Mt=f.File_is_default_library_for_target_specified_here;break;default:N.assertNever(ze)}return Ze&&Xf(G.configFile,Ze,Mt)}function Oa(){const ze=G.suppressOutputPathCheck?void 0:Hv(G);c7(he,le,(Ze,Mt,jt)=>{const bn=(Mt?Mt.commandLine.projectReferences:he)[jt],Qn=Mt&&Mt.sourceFile;if(rr(bn,Qn,jt),!Ze){Mm(Qn,jt,f.File_0_not_found,bn.path);return}const vn=Ze.commandLine.options;if((!vn.composite||vn.noEmit)&&(Mt?Mt.commandLine.fileNames:se).length&&(vn.composite||Mm(Qn,jt,f.Referenced_project_0_must_have_setting_composite_Colon_true,bn.path),vn.noEmit&&Mm(Qn,jt,f.Referenced_project_0_may_not_disable_emit,bn.path)),bn.prepend){const Zn=Ps(vn);Zn?Yt.fileExists(Zn)||Mm(Qn,jt,f.Output_file_0_from_project_1_does_not_exist,Zn,bn.path):Mm(Qn,jt,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,bn.path)}!Mt&&ze&&ze===Hv(vn)&&(Mm(Qn,jt,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,ze,bn.path),tt.set(ir(ze),!0))})}function Ol(ze,Ze,Mt,...jt){let bn=!0;Ip(Qn=>{La(Qn.initializer)&&sR(Qn.initializer,ze,vn=>{const Zn=vn.initializer;fd(Zn)&&Zn.elements.length>Ze&&(Ln.add(Xf(G.configFile,Zn.elements[Ze],Mt,...jt)),bn=!1)})}),bn&&Ln.add(Ul(Mt,...jt))}function pu(ze,Ze,Mt,...jt){let bn=!0;Ip(Qn=>{La(Qn.initializer)&&ey(Qn.initializer,ze,Ze,void 0,Mt,...jt)&&(bn=!1)}),bn&&Ln.add(Ul(Mt,...jt))}function Rc(ze,Ze){return sR(Kg(),ze,Ze)}function Ip(ze){return Rc("paths",ze)}function Hd(ze,Ze){return Rc(ze,Mt=>Na(Mt.initializer)&&Mt.initializer.text===Ze?Mt.initializer:void 0)}function ab(ze,Ze){const Mt=Kg();return Mt&&rie(Mt,ze,Ze)}function us(ze,Ze,Mt,jt){Ui(!0,Ze,Mt,ze,Ze,Mt,jt)}function Pm(ze,Ze,...Mt){Ui(!1,ze,void 0,Ze,...Mt)}function Mm(ze,Ze,Mt,...jt){const bn=NL(ze||G.configFile,"references",Qn=>fd(Qn.initializer)?Qn.initializer:void 0);bn&&bn.elements.length>Ze?Ln.add(Xf(ze||G.configFile,bn.elements[Ze],Mt,...jt)):Ln.add(Ul(Mt,...jt))}function Ui(ze,Ze,Mt,jt,...bn){const Qn=Kg();(!Qn||!ey(Qn,ze,Ze,Mt,jt,...bn))&&("messageText"in jt?Ln.add(D3(jt)):Ln.add(Ul(jt,...bn)))}function Kg(){return zt===void 0&&(zt=sR(EC(G.configFile),"compilerOptions",ze=>La(ze.initializer)?ze.initializer:void 0)||!1),zt||void 0}function ey(ze,Ze,Mt,jt,bn,...Qn){let vn=!1;return sR(ze,Mt,Zn=>{"messageText"in bn?Ln.add(Lg(G.configFile,Ze?Zn.name:Zn.initializer,bn)):Ln.add(Xf(G.configFile,Ze?Zn.name:Zn.initializer,bn,...Qn)),vn=!0},jt),vn}function Lm(ze,Ze){const Mt=Kg();Mt?ey(Mt,!0,ze,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze):us(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze)}function b1(ze,Ze){tt.set(ir(ze),!0),Ln.add(Ze)}function E1(ze){if(G.noEmit)return!1;const Ze=ir(ze);if(ml(Ze))return!1;const Mt=Ps(G);if(Mt)return pf(Ze,Mt)||pf(Ze,Ad(Mt)+".d.ts");if(G.declarationDir&&gm(G.declarationDir,Ze,Ci,!Yt.useCaseSensitiveFileNames()))return!0;if(G.outDir)return gm(G.outDir,Ze,Ci,!Yt.useCaseSensitiveFileNames());if(Sc(Ze,OR)||Su(Ze)){const jt=Ad(Ze);return!!ml(jt+".ts")||!!ml(jt+".tsx")}return!1}function pf(ze,Ze){return Dg(ze,Ze,Ci,!Yt.useCaseSensitiveFileNames())===0}function V_(){return Yt.getSymlinkCache?Yt.getSymlinkCache():(de||(de=dU(Ci,te)),Ce&&!de.hasProcessedResolutions()&&de.setSymlinksFromResolutions(L,me,je),de)}function ff(ze,Ze){var Mt;const jt=((Mt=Gn(ze))==null?void 0:Mt.commandLine.options)||G;return _J(ze,Ze,jt)}function Xg(ze,Ze){return ff(ze,Gw(ze,Ze))}}function NUe(e){let t;const r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Ya,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=A=>i.call(e.compilerHost,A)?(y(A),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{const M=Ps(R.commandLine.options);if(M)t.add(ai(e.toPath(M)));else{const C=R.commandLine.options.declarationDir||R.commandLine.options.outDir;C&&t.add(e.toPath(C))}})),T(A,!1)):!1),o&&(e.compilerHost.getDirectories=A=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,A)?o.call(e.compilerHost,A):[]),s&&(e.compilerHost.realpath=A=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(A)))||s.call(e.compilerHost,A)}),{onProgramCreateComplete:u,fileExists:p,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(A){return r.call(e.compilerHost,A)?!0:!e.getResolvedProjectReferences()||!Su(A)?!1:T(A,!0)}function h(A){const R=e.getSourceOfProjectReferenceRedirect(e.toPath(A));return R!==void 0?Mo(R)?r.call(e.compilerHost,R):!0:void 0}function m(A){const R=e.toPath(A),M=`${R}${ol}`;return fh(t,C=>R===C||uo(C,M)||uo(R,`${C}/`))}function y(A){var R;if(!e.getResolvedProjectReferences()||eP(A)||!s||!A.includes(Ah))return;const M=e.getSymlinkCache(),C=Fc(e.toPath(A));if((R=M.getSymlinkedDirectories())!=null&&R.has(C))return;const O=ha(s.call(e.compilerHost,A));let U;if(O===A||(U=Fc(e.toPath(O)))===C){M.setSymlinkedDirectory(C,!1);return}M.setSymlinkedDirectory(A,{real:Fc(O),realPath:U})}function T(A,R){var M;const C=R?V=>h(V):V=>m(V),O=C(A);if(O!==void 0)return O;const U=e.getSymlinkCache(),K=U.getSymlinkedDirectories();if(!K)return!1;const Q=e.toPath(A);return Q.includes(Ah)?R&&((M=U.getSymlinkedFiles())!=null&&M.has(Q))?!0:pn(K.entries(),([V,se])=>{if(!se||!uo(Q,V))return;const G=C(Q.replace(V,se.realPath));if(R&&G){const ne=go(A,e.compilerHost.getCurrentDirectory());U.setSymlinkedFile(Q,`${se.real}${ne.replace(new RegExp(V,"i"),"")}`)}return G})||!1:!1}}function SJ(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||Ps(o)?h7:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&Rf(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!Ps(o)){const u=e.emitBuildInfo(r,i);u.diagnostics&&(s=[...s,...u.diagnostics]),l=u.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function p7(e,t){return mn(e,r=>!r.skippedOn||!t[r.skippedOn])}function f7(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return N.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),directoryExists:ia(t,t.directoryExists),getDirectories:ia(t,t.getDirectories),realpath:ia(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Yb,trace:e.trace?r=>e.trace(r):void 0}}function TJ(e,t,r,i){if(!e)return et;let o;for(let s=0;s<e.length;s++){const l=e[s],u=t(l,s);if(l.prepend&&u&&u.options){if(!Ps(u.options))continue;const{jsFilePath:h,sourceMapFilePath:m,declarationFilePath:y,declarationMapPath:T,buildInfoPath:A}=HP(u.options,!0),R=HU(r,h,m,y,T,A,i,u.options);(o||(o=[])).push(R)}}return o||et}function pD(e){return YJ(e.path)}function AJ(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()||o();case".js":case".mjs":case".cjs":return o();case".json":return s();default:return l()}function i(){return e.jsx?void 0:f.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return jy(e)||!dd(e,"noImplicitAny")?void 0:f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return g0(e)?void 0:f.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function l(){return r||e.allowArbitraryExtensions?void 0:f.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function gxe({imports:e,moduleAugmentations:t}){const r=e.map(i=>i);for(const i of t)i.kind===11&&r.push(i);return r}function Gw({imports:e,moduleAugmentations:t},r){if(r<e.length)return e[r];let i=e.length;for(const o of t)if(o.kind===11){if(r===i)return o;i++}N.fail("should never ask for module name at index higher than possible module name")}var IJ,xJ,RJ,qle,Jle,vxe,Kle,Xle,m7,yxe,fD,_7,h7,CUe=I({"src/compiler/program.ts"(){ra(),sS(),IJ=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(IJ||{}),xJ="\x1B[7m",RJ=" ",qle="\x1B[0m",Jle="...",vxe=" ",Kle=" ",Xle={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},m7={getName:Hle,getMode:(e,t,r)=>mJ(t,e,r)},yxe={getName:gJ,getMode:(e,t)=>Fw(e,t==null?void 0:t.impliedNodeFormat)},fD="__inferred type names__.ts",_7=new Set([f.Cannot_redeclare_block_scoped_variable_0.code,f.A_module_cannot_have_multiple_default_exports.code,f.Another_export_default_is_here.code,f.The_first_export_default_is_here.code,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,f.constructor_is_a_reserved_word.code,f.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,f.Invalid_use_of_0_in_strict_mode.code,f.A_label_is_not_allowed_here.code,f.with_statements_are_not_allowed_in_strict_mode.code,f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,f.A_class_declaration_without_the_default_modifier_must_have_a_name.code,f.A_class_member_cannot_have_the_0_keyword.code,f.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,f.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,f.A_destructuring_declaration_must_have_an_initializer.code,f.A_get_accessor_cannot_have_parameters.code,f.A_rest_element_cannot_contain_a_binding_pattern.code,f.A_rest_element_cannot_have_a_property_name.code,f.A_rest_element_cannot_have_an_initializer.code,f.A_rest_element_must_be_last_in_a_destructuring_pattern.code,f.A_rest_parameter_cannot_have_an_initializer.code,f.A_rest_parameter_must_be_last_in_a_parameter_list.code,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,f.A_return_statement_cannot_be_used_inside_a_class_static_block.code,f.A_set_accessor_cannot_have_rest_parameter.code,f.A_set_accessor_must_have_exactly_one_parameter.code,f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_export_declaration_cannot_have_modifiers.code,f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_import_declaration_cannot_have_modifiers.code,f.An_object_member_cannot_be_declared_optional.code,f.Argument_of_dynamic_import_cannot_be_spread_element.code,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,f.Cannot_redeclare_identifier_0_in_catch_clause.code,f.Catch_clause_variable_cannot_have_an_initializer.code,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,f.Classes_can_only_extend_a_single_class.code,f.Classes_may_not_have_a_field_named_constructor.code,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,f.Duplicate_label_0.code,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,f.for_await_loops_cannot_be_used_inside_a_class_static_block.code,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,f.Jump_target_cannot_cross_function_boundary.code,f.Line_terminator_not_permitted_before_arrow.code,f.Modifiers_cannot_appear_here.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,f.Private_identifiers_are_not_allowed_outside_class_bodies.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,f.Trailing_comma_not_allowed.code,f.Variable_declaration_list_cannot_be_empty.code,f._0_and_1_operations_cannot_be_mixed_without_parentheses.code,f._0_expected.code,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,f._0_list_cannot_be_empty.code,f._0_modifier_already_seen.code,f._0_modifier_cannot_appear_on_a_constructor_declaration.code,f._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,f._0_modifier_cannot_appear_on_a_parameter.code,f._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,f._0_modifier_cannot_be_used_here.code,f._0_modifier_must_precede_1_modifier.code,f._0_declarations_can_only_be_declared_inside_a_block.code,f._0_declarations_must_be_initialized.code,f.extends_clause_already_seen.code,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,f.Class_constructor_may_not_be_a_generator.code,f.Class_constructor_may_not_be_an_accessor.code,f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Private_field_0_must_be_declared_in_an_enclosing_class.code,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),h7={diagnostics:et,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),PUe=I({"src/compiler/builderStatePublic.ts"(){}});function Yle(e,t,r,i,o,s){const l=[],{emitSkipped:u,diagnostics:p}=e.emit(t,h,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:p};function h(m,y,T){l.push({name:m,writeByteOrderMark:T,text:y})}}var Nm,MUe=I({"src/compiler/builderState.ts"(){ra(),(e=>{function t(){function Y(X,oe,pe){const Ce={getKeys:de=>oe.get(de),getValues:de=>X.get(de),keys:()=>X.keys(),deleteKey:de=>{(pe||(pe=new Set)).add(de);const ie=X.get(de);return ie?(ie.forEach(ve=>i(oe,ve,de)),X.delete(de),!0):!1},set:(de,ie)=>{pe==null||pe.delete(de);const ve=X.get(de);return X.set(de,ie),ve==null||ve.forEach(Le=>{ie.has(Le)||i(oe,Le,de)}),ie.forEach(Le=>{ve!=null&&ve.has(Le)||r(oe,Le,de)}),Ce}};return Ce}return Y(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(Y,X,oe){let pe=Y.get(X);pe||(pe=new Set,Y.set(X,pe)),pe.add(oe)}function i(Y,X,oe){const pe=Y.get(X);return pe!=null&&pe.delete(oe)?(pe.size||Y.delete(X),!0):!1}function o(Y){return eo(Y.declarations,X=>{var oe;return(oe=Un(X))==null?void 0:oe.resolvedPath})}function s(Y,X){const oe=Y.getSymbolAtLocation(X);return oe&&o(oe)}function l(Y,X,oe,pe){return il(Y.getProjectReferenceRedirect(X)||X,oe,pe)}function u(Y,X,oe){let pe;if(X.imports&&X.imports.length>0){const ve=Y.getTypeChecker();for(const Le of X.imports){const Ue=s(ve,Le);Ue==null||Ue.forEach(ie)}}const Ce=ai(X.resolvedPath);if(X.referencedFiles&&X.referencedFiles.length>0)for(const ve of X.referencedFiles){const Le=l(Y,ve.fileName,Ce,oe);ie(Le)}if(Y.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ve})=>{if(!ve)return;const Le=ve.resolvedFileName,Ue=l(Y,Le,Ce,oe);ie(Ue)},X),X.moduleAugmentations.length){const ve=Y.getTypeChecker();for(const Le of X.moduleAugmentations){if(!Na(Le))continue;const Ue=ve.getSymbolAtLocation(Le);Ue&&de(Ue)}}for(const ve of Y.getTypeChecker().getAmbientModules())ve.declarations&&ve.declarations.length>1&&de(ve);return pe;function de(ve){if(ve.declarations)for(const Le of ve.declarations){const Ue=Un(Le);Ue&&Ue!==X&&ie(Ue.resolvedPath)}}function ie(ve){(pe||(pe=new Set)).add(ve)}}function p(Y,X){return X&&!X.referencedMap==!Y}e.canReuseOldState=p;function h(Y,X,oe){var pe,Ce,de;const ie=new Map,ve=Y.getCompilerOptions(),Le=Ps(ve),Ue=ve.module!==0&&!Le?t():void 0,Ee=Ue?t():void 0,De=p(Ue,X);Y.getTypeChecker();for(const Me of Y.getSourceFiles()){const We=N.checkDefined(Me.version,"Program intended to be used with Builder should have source files with versions set"),At=De?(pe=X.oldSignatures)==null?void 0:pe.get(Me.resolvedPath):void 0,Se=At===void 0?De?(Ce=X.fileInfos.get(Me.resolvedPath))==null?void 0:Ce.signature:void 0:At||void 0;if(Ue){const je=u(Y,Me,Y.getCanonicalFileName);if(je&&Ue.set(Me.resolvedPath,je),De){const ot=(de=X.oldExportedModulesMap)==null?void 0:de.get(Me.resolvedPath),Bt=ot===void 0?X.exportedModulesMap.getValues(Me.resolvedPath):ot||void 0;Bt&&Ee.set(Me.resolvedPath,Bt)}}ie.set(Me.resolvedPath,{version:We,signature:Se,affectsGlobalScope:Le?void 0:G(Me)||void 0,impliedFormat:Me.impliedNodeFormat})}return{fileInfos:ie,referencedMap:Ue,exportedModulesMap:Ee,useFileVersionAsSignature:!oe&&!De}}e.create=h;function m(Y){Y.allFilesExcludingDefaultLibraryFile=void 0,Y.allFileNames=void 0}e.releaseCache=m;function y(Y,X,oe,pe,Ce){var de,ie;const ve=T(Y,X,oe,pe,Ce);return(de=Y.oldSignatures)==null||de.clear(),(ie=Y.oldExportedModulesMap)==null||ie.clear(),ve}e.getFilesAffectedBy=y;function T(Y,X,oe,pe,Ce){const de=X.getSourceFileByPath(oe);return de?M(Y,X,de,pe,Ce)?(Y.referencedMap?ye:he)(Y,X,de,pe,Ce):[de]:et}e.getFilesAffectedByWithOldState=T;function A(Y,X,oe){Y.fileInfos.get(oe).signature=X,(Y.hasCalledUpdateShapeSignature||(Y.hasCalledUpdateShapeSignature=new Set)).add(oe)}e.updateSignatureOfFile=A;function R(Y,X,oe,pe,Ce){Y.emit(X,(de,ie,ve,Le,Ue,Ee)=>{N.assert(Su(de),`File extension for signature expected to be dts: Got:: ${de}`),Ce(NJ(Y,X,ie,pe,Ee),Ue)},oe,!0,void 0,!0)}e.computeDtsSignature=R;function M(Y,X,oe,pe,Ce,de=Y.useFileVersionAsSignature){var ie;if((ie=Y.hasCalledUpdateShapeSignature)!=null&&ie.has(oe.resolvedPath))return!1;const ve=Y.fileInfos.get(oe.resolvedPath),Le=ve.signature;let Ue;if(!oe.isDeclarationFile&&!de&&R(X,oe,pe,Ce,(Ee,De)=>{Ue=Ee,Ue!==Le&&C(Y,oe,De[0].exportedModulesFromDeclarationEmit)}),Ue===void 0&&(Ue=oe.version,Y.exportedModulesMap&&Ue!==Le)){(Y.oldExportedModulesMap||(Y.oldExportedModulesMap=new Map)).set(oe.resolvedPath,Y.exportedModulesMap.getValues(oe.resolvedPath)||!1);const Ee=Y.referencedMap?Y.referencedMap.getValues(oe.resolvedPath):void 0;Ee?Y.exportedModulesMap.set(oe.resolvedPath,Ee):Y.exportedModulesMap.deleteKey(oe.resolvedPath)}return(Y.oldSignatures||(Y.oldSignatures=new Map)).set(oe.resolvedPath,Le||!1),(Y.hasCalledUpdateShapeSignature||(Y.hasCalledUpdateShapeSignature=new Set)).add(oe.resolvedPath),ve.signature=Ue,Ue!==Le}e.updateShapeSignature=M;function C(Y,X,oe){if(!Y.exportedModulesMap)return;(Y.oldExportedModulesMap||(Y.oldExportedModulesMap=new Map)).set(X.resolvedPath,Y.exportedModulesMap.getValues(X.resolvedPath)||!1);const pe=O(oe);pe?Y.exportedModulesMap.set(X.resolvedPath,pe):Y.exportedModulesMap.deleteKey(X.resolvedPath)}e.updateExportedModules=C;function O(Y){let X;return Y==null||Y.forEach(oe=>o(oe).forEach(pe=>(X??(X=new Set)).add(pe))),X}e.getExportedModules=O;function U(Y,X,oe){const pe=X.getCompilerOptions();if(Ps(pe)||!Y.referencedMap||G(oe))return K(Y,X);const Ce=new Set,de=[oe.resolvedPath];for(;de.length;){const ie=de.pop();if(!Ce.has(ie)){Ce.add(ie);const ve=Y.referencedMap.getValues(ie);if(ve)for(const Le of ve.keys())de.push(Le)}}return zo(Kb(Ce.keys(),ie=>{var ve;return((ve=X.getSourceFileByPath(ie))==null?void 0:ve.fileName)??ie}))}e.getAllDependencies=U;function K(Y,X){if(!Y.allFileNames){const oe=X.getSourceFiles();Y.allFileNames=oe===et?et:oe.map(pe=>pe.fileName)}return Y.allFileNames}function Q(Y,X){const oe=Y.referencedMap.getKeys(X);return oe?zo(oe.keys()):[]}e.getReferencedByPaths=Q;function V(Y){for(const X of Y.statements)if(!M4(X))return!1;return!0}function se(Y){return bt(Y.moduleAugmentations,X=>A_(X.parent))}function G(Y){return se(Y)||!Fp(Y)&&!Yf(Y)&&!V(Y)}function ne(Y,X,oe){if(Y.allFilesExcludingDefaultLibraryFile)return Y.allFilesExcludingDefaultLibraryFile;let pe;oe&&Ce(oe);for(const de of X.getSourceFiles())de!==oe&&Ce(de);return Y.allFilesExcludingDefaultLibraryFile=pe||et,Y.allFilesExcludingDefaultLibraryFile;function Ce(de){X.isSourceFileDefaultLibrary(de)||(pe||(pe=[])).push(de)}}e.getAllFilesExcludingDefaultLibraryFile=ne;function he(Y,X,oe){const pe=X.getCompilerOptions();return pe&&Ps(pe)?[oe]:ne(Y,X,oe)}function ye(Y,X,oe,pe,Ce){if(G(oe))return ne(Y,X,oe);const de=X.getCompilerOptions();if(de&&(rm(de)||Ps(de)))return[oe];const ie=new Map;ie.set(oe.resolvedPath,oe);const ve=Q(Y,oe.resolvedPath);for(;ve.length>0;){const Le=ve.pop();if(!ie.has(Le)){const Ue=X.getSourceFileByPath(Le);ie.set(Le,Ue),Ue&&M(Y,X,Ue,pe,Ce)&&ve.push(...Q(Y,Ue.resolvedPath))}}return zo(Kb(ie.values(),Le=>Le))}})(Nm||(Nm={}))}});function eb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Rf(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function mD(e,t){const r=t&&(Av(t)?t:eb(t)),i=Av(e)?e:eb(e);if(r===i)return 0;if(!r||!i)return i;const o=r^i;let s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function LUe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!fh(e,r=>!t.has(r))}function kUe(e,t){var r,i;const o=Nm.create(e,t,!1);o.program=e;const s=e.getCompilerOptions();o.compilerOptions=s;const l=Ps(s);l?s.composite&&(t!=null&&t.outSignature)&&l===Ps(t==null?void 0:t.compilerOptions)&&(o.outSignature=t.outSignature&&Exe(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const u=Nm.canReuseOldState(o.referencedMap,t),p=u?t.compilerOptions:void 0,h=u&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!poe(s,p),m=s.composite&&(t==null?void 0:t.emitSignatures)&&!l&&!moe(s,t.compilerOptions);u?((r=t.changedFilesSet)==null||r.forEach(M=>o.changedFilesSet.add(M)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;const y=o.referencedMap,T=u?t.referencedMap:void 0,A=h&&!s.skipLibCheck==!p.skipLibCheck,R=A&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((M,C)=>{var O;let U,K;if(!u||!(U=t.fileInfos.get(C))||U.version!==M.version||U.impliedFormat!==M.impliedFormat||!LUe(K=y&&y.getValues(C),T&&T.getValues(C))||K&&fh(K,Q=>!o.fileInfos.has(Q)&&t.fileInfos.has(Q)))bxe(o,C);else{const Q=e.getSourceFileByPath(C),V=(O=t.emitDiagnosticsPerFile)==null?void 0:O.get(C);if(V&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(C,t.hasReusableDiagnostic?Axe(V,e):Sxe(V,e)),h){if(Q.isDeclarationFile&&!A||Q.hasNoDefaultLib&&!R)return;const se=t.semanticDiagnosticsPerFile.get(C);se&&(o.semanticDiagnosticsPerFile.set(C,t.hasReusableDiagnostic?Axe(se,e):Sxe(se,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(C))}}if(m){const Q=t.emitSignatures.get(C);Q&&(o.emitSignatures??(o.emitSignatures=new Map)).set(C,Exe(s,t.compilerOptions,Q))}}),u&&zc(t.fileInfos,(M,C)=>o.fileInfos.has(C)?!1:l||M.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))Nm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(M=>bxe(o,M.resolvedPath));else if(p){const M=foe(s,p)?eb(s):mD(s,p);M!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|M:M:(e.getSourceFiles().forEach(C=>{o.changedFilesSet.has(C.resolvedPath)||nce(o,C.resolvedPath,M)}),N.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(u&&(o.bundle=t.bundle),bt(e.getProjectReferences(),M=>!!M.prepend)&&(o.programEmitPending=eb(s))),o}function bxe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function Exe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Mo(r)?[r]:r[0]}function Sxe(e,t){return e.length?Zo(e,r=>{if(Mo(r.messageText))return r;const i=$le(r.messageText,r.file,t,o=>{var s;return(s=o.repopulateInfo)==null?void 0:s.call(o)});return i===r.messageText?r:{...r,messageText:i}}):e}function $le(e,t,r,i){const o=i(e);if(o)return{...x4(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:Txe(e.next,t,r,i)};const s=Txe(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function Txe(e,t,r,i){return Zo(e,o=>$le(o,t,r,i))}function Axe(e,t){if(!e.length)return et;let r;return e.map(o=>{const s=Ixe(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;const{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(u=>Ixe(u,t,i)):[]:void 0,s});function i(o){return r??(r=ai(go(Hv(t.getCompilerOptions()),t.getCurrentDirectory()))),il(o,r,t.getCanonicalFileName)}}function Ixe(e,t,r){const{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:Mo(e.messageText)?e.messageText:$le(e.messageText,o,t,s=>s.info)}}function wUe(e){Nm.releaseCache(e),e.program=void 0}function OUe(e){const t=Ps(e.compilerOptions);return N.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function WUe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function xxe(e,t){N.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function Rxe(e,t,r){for(var i,o;;){const{affectedFiles:s}=e;if(s){const h=e.seenAffectedFiles;let m=e.affectedFilesIndex;for(;m<s.length;){const y=s[m];if(!h.has(y.resolvedPath))return e.affectedFilesIndex=m,nce(e,y.resolvedPath,eb(e.compilerOptions)),GUe(e,y,t,r),y;m++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),(o=e.oldExportedModulesMap)==null||o.clear(),e.affectedFiles=void 0}const l=e.changedFilesSet.keys().next();if(l.done)return;const u=N.checkDefined(e.program),p=u.getCompilerOptions();if(Ps(p))return N.assert(!e.semanticDiagnosticsPerFile),u;e.affectedFiles=Nm.getFilesAffectedByWithOldState(e,u,l.value,t,r),e.currentChangedFilePath=l.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function FUe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size){if(!t)return e.affectedFilesPendingEmit=void 0;e.affectedFilesPendingEmit.forEach((i,o)=>{const s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function zUe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return zc(e.affectedFilesPendingEmit,(i,o)=>{var s;const l=e.program.getSourceFileByPath(o);if(!l||!xS(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}const u=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath);let p=mD(i,u);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function BUe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return zc(e.emitDiagnosticsPerFile,(r,i)=>{var o;const s=e.program.getSourceFileByPath(i);if(!s||!xS(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}const l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function Dxe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=N.checkDefined(e.program),r=t.getCompilerOptions();Xe(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!YC(i,r,t)&&Qle(e,i.resolvedPath))}}function GUe(e,t,r,i){if(Qle(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){Dxe(e),Nm.updateShapeSignature(e,N.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||VUe(e,t,r,i)}function DJ(e,t,r,i){if(Qle(e,t),!e.changedFilesSet.has(t)){const o=N.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(Nm.updateShapeSignature(e,o,s,r,i,!0),Rf(e.compilerOptions)&&nce(e,t,e.compilerOptions.declarationMap?24:8))}}function Qle(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function Nxe(e,t){const r=N.checkDefined(e.oldSignatures).get(t)||void 0;return N.checkDefined(e.fileInfos.get(t)).signature!==r}function Zle(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(Nm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>DJ(e,s.resolvedPath,r,i)),Dxe(e),!0):!1}function VUe(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!Nxe(e,t.resolvedPath))return;if(rm(e.compilerOptions)){const l=new Map;l.set(t.resolvedPath,!0);const u=Nm.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){const p=u.pop();if(!l.has(p)){if(l.set(p,!0),Zle(e,p,r,i))return;if(DJ(e,p,r,i),Nxe(e,p)){const h=N.checkDefined(e.program).getSourceFileByPath(p);u.push(...Nm.getReferencedByPaths(e,h.resolvedPath))}}}}const s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(Zle(e,l,r,i))return!0;const u=e.referencedMap.getKeys(l);return u&&fh(u,p=>Cxe(e,p,s,r,i))})}function Cxe(e,t,r,i,o){var s,l;if(Xb(r,t)){if(Zle(e,t,i,o))return!0;DJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(u=>Cxe(e,u,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>!r.has(u)&&DJ(e,u,i,o))}}function ece(e,t,r){return So(jUe(e,t,r),N.checkDefined(e.program).getProgramDiagnostics(t))}function jUe(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const s=e.semanticDiagnosticsPerFile.get(i);if(s)return p7(s,e.compilerOptions)}const o=N.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),p7(o,e.compilerOptions)}function tce(e){return!!Ps(e.options||{})}function UUe(e,t){var r,i,o;const s=N.checkDefined(e.program).getCurrentDirectory(),l=ai(go(Hv(e.compilerOptions),s)),u=e.latestChangedDtsFile?se(e.latestChangedDtsFile):void 0,p=[],h=new Map,m=[];if(Ps(e.compilerOptions)){const ve=zo(e.fileInfos.entries(),([We,At])=>{const Se=ne(We);return ye(We,Se),At.impliedFormat?{version:At.version,impliedFormat:At.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:At.version}),Le={fileNames:p,fileInfos:ve,root:m,options:Y(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===eb(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Ue,dts:Ee,commonSourceDirectory:De,sourceFiles:Me}=t;return e.bundle=t={commonSourceDirectory:De,sourceFiles:Me,js:Ue||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:Ee||(Rf(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},Mw(Le,t)}let y,T,A;const R=zo(e.fileInfos.entries(),([ve,Le])=>{var Ue,Ee;const De=ne(ve);ye(ve,De),N.assert(p[De-1]===G(ve));const Me=(Ue=e.oldSignatures)==null?void 0:Ue.get(ve),We=Me!==void 0?Me||void 0:Le.signature;if(e.compilerOptions.composite){const At=e.program.getSourceFileByPath(ve);if(!Yf(At)&&xS(At,e.program)){const Se=(Ee=e.emitSignatures)==null?void 0:Ee.get(ve);Se!==We&&(A||(A=[])).push(Se===void 0?De:[De,!Mo(Se)&&Se[0]===We?et:Se])}}return Le.version===We?Le.affectsGlobalScope||Le.impliedFormat?{version:Le.version,signature:void 0,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}:Le.version:We!==void 0?Me===void 0?Le:{version:Le.version,signature:We,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}:{version:Le.version,signature:!1,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}});let M;e.referencedMap&&(M=zo(e.referencedMap.keys()).sort(Uu).map(ve=>[ne(ve),he(e.referencedMap.getValues(ve))]));let C;e.exportedModulesMap&&(C=eo(zo(e.exportedModulesMap.keys()).sort(Uu),ve=>{var Le;const Ue=(Le=e.oldExportedModulesMap)==null?void 0:Le.get(ve);if(Ue===void 0)return[ne(ve),he(e.exportedModulesMap.getValues(ve))];if(Ue)return[ne(ve),he(Ue)]}));const O=oe(e.semanticDiagnosticsPerFile);let U;if((o=e.affectedFilesPendingEmit)!=null&&o.size){const ve=eb(e.compilerOptions),Le=new Set;for(const Ue of zo(e.affectedFilesPendingEmit.keys()).sort(Uu))if(Xb(Le,Ue)){const Ee=e.program.getSourceFileByPath(Ue);if(!Ee||!xS(Ee,e.program))continue;const De=ne(Ue),Me=e.affectedFilesPendingEmit.get(Ue);(U||(U=[])).push(Me===ve?De:Me===8?[De]:[De,Me])}}let K;if(e.changedFilesSet.size)for(const ve of zo(e.changedFilesSet.keys()).sort(Uu))(K||(K=[])).push(ne(ve));const Q=oe(e.emitDiagnosticsPerFile),V={fileNames:p,fileInfos:R,root:m,options:Y(e.compilerOptions),fileIdsList:y,referencedMap:M,exportedModulesMap:C,semanticDiagnosticsPerFile:O,emitDiagnosticsPerFile:Q,affectedFilesPendingEmit:U,changeFileSet:K,emitSignatures:A,latestChangedDtsFile:u};return Mw(V,t);function se(ve){return G(go(ve,s))}function G(ve){return AE(vm(l,ve,e.program.getCanonicalFileName))}function ne(ve){let Le=h.get(ve);return Le===void 0&&(p.push(G(ve)),h.set(ve,Le=p.length)),Le}function he(ve){const Le=zo(ve.keys(),ne).sort(nl),Ue=Le.join();let Ee=T==null?void 0:T.get(Ue);return Ee===void 0&&((y||(y=[])).push(Le),(T||(T=new Map)).set(Ue,Ee=y.length)),Ee}function ye(ve,Le){const Ue=e.program.getSourceFile(ve);if(!e.program.getFileIncludeReasons().get(Ue.path).some(We=>We.kind===0))return;if(!m.length)return m.push(Le);const Ee=m[m.length-1],De=To(Ee);if(De&&Ee[1]===Le-1)return Ee[1]=Le;if(De||m.length===1||Ee!==Le-1)return m.push(Le);const Me=m[m.length-2];return!Av(Me)||Me!==Ee-1?m.push(Le):(m[m.length-2]=[Me,Le],m.length=m.length-1)}function Y(ve){let Le;const{optionsNameMap:Ue}=eD();for(const Ee of Hh(ve).sort(Uu)){const De=Ue.get(Ee.toLowerCase());De!=null&&De.affectsBuildInfo&&((Le||(Le={}))[Ee]=X(De,ve[Ee]))}return Le}function X(ve,Le){if(ve){if(N.assert(ve.type!=="listOrElement"),ve.type==="list"){const Ue=Le;if(ve.element.isFilePath&&Ue.length)return Ue.map(se)}else if(ve.isFilePath)return se(Le)}return Le}function oe(ve){let Le;if(ve)for(const Ue of zo(ve.keys()).sort(Uu)){const Ee=ve.get(Ue);(Le||(Le=[])).push(Ee.length?[ne(Ue),pe(Ee)]:ne(Ue))}return Le}function pe(ve){return N.assert(!!ve.length),ve.map(Le=>{const Ue=Ce(Le);Ue.reportsUnnecessary=Le.reportsUnnecessary,Ue.reportDeprecated=Le.reportsDeprecated,Ue.source=Le.source,Ue.skippedOn=Le.skippedOn;const{relatedInformation:Ee}=Le;return Ue.relatedInformation=Ee?Ee.length?Ee.map(De=>Ce(De)):[]:void 0,Ue})}function Ce(ve){const{file:Le}=ve;return{...ve,file:Le?G(Le.resolvedPath):void 0,messageText:Mo(ve.messageText)?ve.messageText:de(ve.messageText)}}function de(ve){if(ve.repopulateInfo)return{info:ve.repopulateInfo(),next:ie(ve.next)};const Le=ie(ve.next);return Le===ve.next?ve:{...ve,next:Le}}function ie(ve){return ve&&(Xe(ve,(Le,Ue)=>{const Ee=de(Le);if(Le===Ee)return;const De=Ue>0?ve.slice(0,Ue-1):[];De.push(Ee);for(let Me=Ue+1;Me<ve.length;Me++)De.push(de(ve[Me]));return De})||ve)}}function g7(e,t,r,i,o,s){let l,u,p;return e===void 0?(N.assert(t===void 0),l=r,p=i,N.assert(!!p),u=p.getProgram()):To(e)?(p=i,u=d7({rootNames:e,options:t,host:r,oldProgram:p&&p.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),l=r):(u=e,l=t,p=r,o=i),{host:l,newProgram:u,oldProgram:p,configFileParsingDiagnostics:o||et}}function Pxe(e,t){return(t==null?void 0:t.sourceMapUrlPos)!==void 0?e.substring(0,t.sourceMapUrlPos):e}function NJ(e,t,r,i,o){var s;r=Pxe(r,o);let l;return(s=o==null?void 0:o.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(h=>`${p(h)}${F2[h.category]}${h.code}: ${u(h.messageText)}`).join(`
`)),(i.createHash??QN)(r);function u(h){return Mo(h)?h:h===void 0?"":h.next?h.messageText+h.next.map(u).join(`
`):h.messageText}function p(h){return h.file.resolvedPath===t.resolvedPath?`(${h.start},${h.length})`:(l===void 0&&(l=ai(t.resolvedPath)),`${AE(vm(l,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function QS(e,t,r){return(t.createHash??QN)(Pxe(e,r))}function CJ(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;const l=kUe(t,s);t.getBuildInfo=M=>UUe(l,M),t=void 0,i=void 0,s=void 0;const u=()=>l,p=MJ(u,o);return p.getState=u,p.saveEmitState=()=>OUe(l),p.restoreEmitState=M=>WUe(l,M),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=M=>Nm.getAllDependencies(l,N.checkDefined(l.program),M),p.getSemanticDiagnostics=R,p.emit=T,p.releaseProgram=()=>wUe(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=A:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=A,p.emitNextAffectedFile=m,p.emitBuildInfo=h):Jo(),p;function h(M,C){if(l.buildInfoEmitPending){const O=N.checkDefined(l.program).emitBuildInfo(M||ia(r,r.writeFile),C);return l.buildInfoEmitPending=!1,O}return h7}function m(M,C,O,U){var K,Q,V;let se=Rxe(l,C,r);const G=eb(l.compilerOptions);let ne=O?G&24:G;if(!se)if(Ps(l.compilerOptions)){if(!l.programEmitPending||(ne=l.programEmitPending,O&&(ne=ne&24),!ne))return;se=l.program}else{const Y=zUe(l,O);if(!Y){const X=BUe(l);if(X)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(X.affectedFile.resolvedPath,X.seenKind|24),{result:{emitSkipped:!0,diagnostics:X.diagnostics},affected:X.affectedFile};if(!l.buildInfoEmitPending)return;const oe=l.program,pe=oe.emitBuildInfo(M||ia(r,r.writeFile),C);return l.buildInfoEmitPending=!1,{result:pe,affected:oe}}({affectedFile:se,emitKind:ne}=Y)}let he;ne&7&&(he=0),ne&24&&(he=he===void 0?1:void 0),se===l.program&&(l.programEmitPending=l.changedFilesSet.size?mD(G,ne):l.programEmitPending?mD(l.programEmitPending,ne):void 0);const ye=l.program.emit(se===l.program?void 0:se,y(M,U),C,he,U);if(se!==l.program){const Y=se;l.seenAffectedFiles.add(Y.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const X=((K=l.seenEmittedFiles)==null?void 0:K.get(Y.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(Y.resolvedPath,ne|X);const oe=((Q=l.affectedFilesPendingEmit)==null?void 0:Q.get(Y.resolvedPath))||G,pe=mD(oe,ne|X);pe?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set(Y.resolvedPath,pe):(V=l.affectedFilesPendingEmit)==null||V.delete(Y.resolvedPath),ye.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(Y.resolvedPath,ye.diagnostics)}else l.changedFilesSet.clear();return{result:ye,affected:se}}function y(M,C){return Rf(l.compilerOptions)?(O,U,K,Q,V,se)=>{var G,ne,he,ye;if(Su(O))if(Ps(l.compilerOptions)){if(l.compilerOptions.composite){const X=Y(l.outSignature,void 0);if(!X)return;l.outSignature=X}}else{N.assert((V==null?void 0:V.length)===1);let X;if(!C){const oe=V[0],pe=l.fileInfos.get(oe.resolvedPath);if(pe.signature===oe.version){const Ce=NJ(l.program,oe,U,r,se);(G=se==null?void 0:se.diagnostics)!=null&&G.length||(X=Ce),Ce!==oe.version&&(r.storeFilesChangingSignatureDuringEmit&&(l.filesChangingSignature??(l.filesChangingSignature=new Set)).add(oe.resolvedPath),l.exportedModulesMap&&Nm.updateExportedModules(l,oe,oe.exportedModulesFromDeclarationEmit),l.affectedFiles?(((ne=l.oldSignatures)==null?void 0:ne.get(oe.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(oe.resolvedPath,pe.signature||!1),pe.signature=Ce):(pe.signature=Ce,(he=l.oldExportedModulesMap)==null||he.clear()))}}if(l.compilerOptions.composite){const oe=V[0].resolvedPath;if(X=Y((ye=l.emitSignatures)==null?void 0:ye.get(oe),X),!X)return;(l.emitSignatures??(l.emitSignatures=new Map)).set(oe,X)}}M?M(O,U,K,Q,V,se):r.writeFile?r.writeFile(O,U,K,Q,V,se):l.program.writeFile(O,U,K,Q,V,se);function Y(X,oe){const pe=!X||Mo(X)?X:X[0];if(oe??(oe=QS(U,r,se)),oe===pe){if(X===pe)return;se?se.differsOnlyInMap=!0:se={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=O;return oe}}:M||ia(r,r.writeFile)}function T(M,C,O,U,K){e===1&&xxe(l,M);const Q=SJ(p,M,C,O);if(Q)return Q;if(!M)if(e===1){let V=[],se=!1,G,ne=[],he;for(;he=m(C,O,U,K);)se=se||he.result.emitSkipped,G=qr(G,he.result.diagnostics),ne=qr(ne,he.result.emittedFiles),V=qr(V,he.result.sourceMaps);return{emitSkipped:se,diagnostics:G||et,emittedFiles:ne,sourceMaps:V}}else FUe(l,U);return N.checkDefined(l.program).emit(M,y(C,K),O,U,K)}function A(M,C){for(;;){const O=Rxe(l,M,r);let U;if(O)if(O!==l.program){const K=O;if((!C||!C(K))&&(U=ece(l,K,M)),l.seenAffectedFiles.add(K.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!U)continue}else U=l.program.getSemanticDiagnostics(void 0,M),l.changedFilesSet.clear(),l.programEmitPending=eb(l.compilerOptions);else return;return{result:U,affected:O}}}function R(M,C){xxe(l,M);const O=N.checkDefined(l.program).getCompilerOptions();if(Ps(O))return N.assert(!l.semanticDiagnosticsPerFile),N.checkDefined(l.program).getSemanticDiagnostics(M,C);if(M)return ece(l,M,C);for(;A(C););let U;for(const K of N.checkDefined(l.program).getSourceFiles())U=qr(U,ece(l,K,C));return U||et}}function nce(e,t,r){var i,o;const s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,s|r),(o=e.emitDiagnosticsPerFile)==null||o.delete(t)}function rce(e){return Mo(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Mo(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function ice(e,t){return Av(e)?t:e[1]||8}function oce(e,t){return e||eb(t||{})}function ace(e,t,r){var i,o,s,l;const u=e.program,p=ai(go(t,r.getCurrentDirectory())),h=Mu(r.useCaseSensitiveFileNames());let m;const y=(i=u.fileNames)==null?void 0:i.map(R);let T;const A=u.latestChangedDtsFile?M(u.latestChangedDtsFile):void 0;if(tce(u)){const Q=new Map;u.fileInfos.forEach((V,se)=>{const G=C(se+1);Q.set(G,Mo(V)?{version:V,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:V)}),m={fileInfos:Q,compilerOptions:u.options?JH(u.options,M):{},latestChangedDtsFile:A,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:oce(u.pendingEmit,u.options),bundle:e.bundle}}else{T=(o=u.fileIdsList)==null?void 0:o.map(G=>new Set(G.map(C)));const Q=new Map,V=(s=u.options)!=null&&s.composite&&!Ps(u.options)?new Map:void 0;u.fileInfos.forEach((G,ne)=>{const he=C(ne+1),ye=rce(G);Q.set(he,ye),V&&ye.signature&&V.set(he,ye.signature)}),(l=u.emitSignatures)==null||l.forEach(G=>{if(Av(G))V.delete(C(G));else{const ne=C(G[0]);V.set(ne,!Mo(G[1])&&!G[1].length?[V.get(ne)]:G[1])}});const se=u.affectedFilesPendingEmit?eb(u.options||{}):void 0;m={fileInfos:Q,compilerOptions:u.options?JH(u.options,M):{},referencedMap:U(u.referencedMap),exportedModulesMap:U(u.exportedModulesMap),semanticDiagnosticsPerFile:K(u.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:K(u.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&TE(u.affectedFilesPendingEmit,G=>C(Av(G)?G:G[0]),G=>ice(G,se)),changedFilesSet:new Set(Wt(u.changeFileSet,C)),latestChangedDtsFile:A,emitSignatures:V!=null&&V.size?V:void 0}}return{getState:()=>m,saveEmitState:Ya,restoreEmitState:Ya,getProgram:Jo,getProgramOrUndefined:Yb,releaseProgram:Ya,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Jo,getSourceFiles:Jo,getOptionsDiagnostics:Jo,getGlobalDiagnostics:Jo,getConfigFileParsingDiagnostics:Jo,getSyntacticDiagnostics:Jo,getDeclarationDiagnostics:Jo,getSemanticDiagnostics:Jo,emit:Jo,getAllDependencies:Jo,getCurrentDirectory:Jo,emitNextAffectedFile:Jo,getSemanticDiagnosticsOfNextAffectedFile:Jo,emitBuildInfo:Jo,close:Ya,hasChangedEmitSignature:qm};function R(Q){return il(Q,p,h)}function M(Q){return go(Q,p)}function C(Q){return y[Q-1]}function O(Q){return T[Q-1]}function U(Q){if(!Q)return;const V=Nm.createManyToManyPathMap();return Q.forEach(([se,G])=>V.set(C(se),O(G))),V}function K(Q){return Q&&TE(Q,V=>C(Av(V)?V:V[0]),V=>Av(V)?et:V[1])}}function PJ(e,t,r){const i=ai(go(t,r.getCurrentDirectory())),o=Mu(r.useCaseSensitiveFileNames()),s=new Map;let l=0;const u=[];return e.fileInfos.forEach((p,h)=>{const m=il(e.fileNames[h],i,o),y=Mo(p)?p:p.version;if(s.set(m,y),l<e.root.length){const T=e.root[l],A=h+1;To(T)?T[0]<=A&&A<=T[1]&&(u.push(m),T[1]===A&&l++):T===A&&(u.push(m),l++)}}),{fileInfos:s,roots:u}}function MJ(e,t){return{getState:Jo,saveEmitState:Ya,restoreEmitState:Ya,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,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,u)=>r().emit(i,o,s,l,u),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Jo,getCurrentDirectory:()=>r().getCurrentDirectory(),close:Ya};function r(){return N.checkDefined(e().program)}}var LJ,kJ,HUe=I({"src/compiler/builder.ts"(){ra(),LJ=(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))(LJ||{}),kJ=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(kJ||{})}});function Mxe(e,t,r,i,o,s){return CJ(0,g7(e,t,r,i,o,s))}function wJ(e,t,r,i,o,s){return CJ(1,g7(e,t,r,i,o,s))}function Lxe(e,t,r,i,o,s){const{newProgram:l,configFileParsingDiagnostics:u}=g7(e,t,r,i,o,s);return MJ(()=>({program:l,compilerOptions:l.getCompilerOptions()}),u)}var qUe=I({"src/compiler/builderPublic.ts"(){ra()}});function v7(e){return Al(e,"/node_modules/.staging")?kx(e,"/.staging"):bt(V2,t=>e.includes(t))?void 0:e}function sce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==ol&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function y7(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=sce(e,t);return t>r+1}function lce(e){return wxe(ai(e))}function kxe(e,t){if(t.length<t.length)return!1;for(let r=0;r<e.length;r++)if(t[r]!==e[r])return!1;return!0}function wxe(e){return y7(Wc(e))}function cce(e){return wxe(e)}function OJ(e,t,r,i,o,s){const l=Wc(t);e=dp(e)?ha(e):go(e,s());const u=Wc(e),p=sce(l,l.length);if(l.length<=p+1)return;const h=l.indexOf("node_modules");if(!(h!==-1&&h+1<=p+1))return kxe(o,l)?l.length>o.length+1?uce(u,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:Oxe(u,l,l.length-1,p,h,o)}function Oxe(e,t,r,i,o,s){if(o!==-1)return uce(e,t,o+1);let l=!0,u=r;for(let p=0;p<r;p++)if(t[p]!==s[p]){l=!1,u=Math.max(p+1,i+1);break}return uce(e,t,u,l)}function uce(e,t,r,i){return{dir:Ay(e,r),dirPath:Ay(t,r),nonRecursive:i}}function dce(e,t,r,i,o,s){const l=Wc(t);if(kxe(i,l))return r;e=dp(e)?ha(e):go(e,o());const u=Oxe(Wc(e),l,l.length,sce(l,l.length),l.indexOf("node_modules"),i);return u&&s(u.dirPath)?u.dirPath:void 0}function pce(e,t){const r=go(e,t());return pV(r)?r:Qb(r)}function Wxe(e){return e.split(ol).length-(Dv(e)?1:0)}function b7(e){var t;return((t=e.getCompilerHost)==null?void 0:t.call(e))||e}function fce(e,t,r,i,o){return{nameAndMode:m7,resolve:(s,l)=>JUe(i,o,s,e,r,t,l)}}function JUe(e,t,r,i,o,s,l){const u=b7(e),p=iD(r,i,o,u,t,s,l);if(!e.getGlobalCache)return p;const h=e.getGlobalCache();if(h!==void 0&&!Xc(r)&&!(p.resolvedModule&&V3(p.resolvedModule.extension))){const{resolvedModule:m,failedLookupLocations:y,affectingLocations:T,resolutionDiagnostics:A}=Dse(N.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,h,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=nD(p.failedLookupLocations,y),p.affectingLocations=nD(p.affectingLocations,T),p.resolutionDiagnostics=nD(p.resolutionDiagnostics,A),p}return p}function WJ(e,t,r){let i,o,s;const l=$p(),u=new Set,p=new Set,h=new Map,m=new Map;let y=!1,T,A,R,M,C,O=!1;const U=Sd(()=>e.getCurrentDirectory()),K=e.getCachedDirectoryStructureHost(),Q=new Map,V=rD(U(),e.getCanonicalFileName,e.getCompilationSettings()),se=new Map,G=xF(U(),e.getCanonicalFileName,e.getCompilationSettings(),V.getPackageJsonInfoCache(),V.optionsToRedirectsKey),ne=new Map,he=rD(U(),e.getCanonicalFileName,cq(e.getCompilationSettings()),V.getPackageJsonInfoCache()),ye=new Map,Y=new Map,X=pce(t,U),oe=e.toPath(X),pe=Wc(oe),Ce=new Map;return{rootDirForResolution:t,resolvedModuleNames:Q,resolvedTypeReferenceDirectives:se,resolvedLibraries:ne,resolvedFileToResolution:h,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:ye,fileWatchesOfAffectingLocations:Y,watchFailedLookupLocationsOfExternalModuleResolutions:Mn,getModuleResolutionCache:()=>V,startRecordingFilesWithChangedResolutions:Ue,finishRecordingFilesWithChangedResolutions:Ee,startCachingPerDirectoryResolution:We,finishCachingPerDirectoryResolution:Se,resolveModuleNameLiterals:$e,resolveTypeReferenceDirectiveReferences:vt,resolveLibrary:It,resolveSingleModuleNameWithoutWatching:tn,removeResolutionsFromProjectReferenceRedirects:tt,removeResolutionsOfFile:zt,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:ci,invalidateResolutionsOfFailedLookupLocations:fa,setFilesWithInvalidatedNonRelativeUnresolvedImports:yi,createHasInvalidatedResolutions:Me,isFileWithInvalidatedNonRelativeUnresolvedImports:De,updateTypeRootsWatch:ft,closeTypeRootsWatch:He,clear:ve,onChangesAffectModuleResolution:Le};function de(le){return le.resolvedModule}function ie(le){return le.resolvedTypeReferenceDirective}function ve(){ep(ye,Cf),ep(Y,Cf),l.clear(),He(),Q.clear(),se.clear(),h.clear(),u.clear(),p.clear(),R=void 0,M=void 0,C=void 0,A=void 0,T=void 0,O=!1,V.clear(),G.clear(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings()),he.clear(),m.clear(),ne.clear(),y=!1}function Le(){O=!0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings())}function Ue(){i=[]}function Ee(){const le=i;return i=void 0,le}function De(le){if(!s)return!1;const Fe=s.get(le);return!!Fe&&!!Fe.length}function Me(le,Fe){fa();const pt=o;return o=void 0,{hasInvalidatedResolutions:j=>le(j)||O||!!(pt!=null&&pt.has(j))||De(j),hasInvalidatedLibResolutions:j=>{var it;return Fe(j)||!!((it=ne==null?void 0:ne.get(j))!=null&&it.isInvalidated)}}}function We(){V.isReadonly=void 0,G.isReadonly=void 0,he.isReadonly=void 0,V.getPackageJsonInfoCache().isReadonly=void 0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),he.clearAllExceptPackageJsonInfoCache(),l.forEach(so),l.clear()}function At(le){ne.forEach((Fe,pt)=>{var j;(j=le==null?void 0:le.resolvedLibReferences)!=null&&j.has(pt)||(Ln(Fe,e.toPath(u7(e.getCompilationSettings(),U(),pt)),de),ne.delete(pt))})}function Se(le,Fe){s=void 0,O=!1,l.forEach(so),l.clear(),le!==Fe&&(At(le),le==null||le.getSourceFiles().forEach(pt=>{var j;const it=Fp(pt)?((j=pt.packageJsonLocations)==null?void 0:j.length)??0:0,Rt=m.get(pt.path)??et;for(let Ye=Rt.length;Ye<it;Ye++)Yt(pt.packageJsonLocations[Ye],!1);if(Rt.length>it)for(let Ye=it;Ye<Rt.length;Ye++)Y.get(Rt[Ye]).files--;it?m.set(pt.path,pt.packageJsonLocations):m.delete(pt.path)}),m.forEach((pt,j)=>{le!=null&&le.getSourceFileByPath(j)||(pt.forEach(it=>Y.get(it).files--),m.delete(j))})),ye.forEach(je),Y.forEach(ot),y=!1,V.isReadonly=!0,G.isReadonly=!0,he.isReadonly=!0,V.getPackageJsonInfoCache().isReadonly=!0}function je(le,Fe){le.refCount===0&&(ye.delete(Fe),le.watcher.close())}function ot(le,Fe){var pt;le.files===0&&le.resolutions===0&&!((pt=le.symlinks)!=null&&pt.size)&&(Y.delete(Fe),le.watcher.close())}function Bt({entries:le,containingFile:Fe,containingSourceFile:pt,redirectedReference:j,options:it,perFileCache:Rt,reusedNames:Ye,loader:_t,getResolutionWithResolvedFileName:Gt,deferWatchingNonRelativeResolution:yn,shouldRetryResolution:fn,logChanges:hn}){const q=e.toPath(Fe),Oe=Rt.get(q)||Rt.set(q,_I()).get(q),Lt=[],L=hn&&De(q),me=e.getCurrentProgram(),J=me&&me.getResolvedProjectReferenceToRedirect(Fe),fe=J?!j||j.sourceFile.path!==J.sourceFile.path:!!j,Be=_I();for(const Tt of le){const kt=_t.nameAndMode.getName(Tt),en=_t.nameAndMode.getMode(Tt,pt,(j==null?void 0:j.commandLine.options)||it);let En=Oe.get(kt,en);if(!Be.has(kt,en)&&(O||fe||!En||En.isInvalidated||L&&!Xc(kt)&&fn(En))){const Gn=En;En=_t.resolve(kt,en),e.onDiscoveredSymlink&&KUe(En)&&e.onDiscoveredSymlink(),Oe.set(kt,en,En),En!==Gn&&(Mn(kt,En,q,Gt,yn),Gn&&Ln(Gn,q,Gt)),hn&&i&&!ke(Gn,En)&&(i.push(q),hn=!1)}else{const Gn=b7(e);if(Vg(it,Gn)&&!Be.has(kt,en)){const qn=Gt(En);bo(Gn,Rt===Q?qn!=null&&qn.resolvedFileName?qn.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:qn!=null&&qn.resolvedFileName?qn.packageId?f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,kt,Fe,qn==null?void 0:qn.resolvedFileName,(qn==null?void 0:qn.packageId)&&ky(qn.packageId))}}N.assert(En!==void 0&&!En.isInvalidated),Be.set(kt,en,!0),Lt.push(En)}return Ye==null||Ye.forEach(Tt=>Be.set(_t.nameAndMode.getName(Tt),_t.nameAndMode.getMode(Tt,pt,(j==null?void 0:j.commandLine.options)||it),!0)),Oe.size()!==Be.size()&&Oe.forEach((Tt,kt,en)=>{Be.has(kt,en)||(Ln(Tt,q,Gt),Oe.delete(kt,en))}),Lt;function ke(Tt,kt){if(Tt===kt)return!0;if(!Tt||!kt)return!1;const en=Gt(Tt),En=Gt(kt);return en===En?!0:!en||!En?!1:en.resolvedFileName===En.resolvedFileName}}function vt(le,Fe,pt,j,it,Rt){return Bt({entries:le,containingFile:Fe,containingSourceFile:it,redirectedReference:pt,options:j,reusedNames:Rt,perFileCache:se,loader:l7(Fe,pt,j,b7(e),G),getResolutionWithResolvedFileName:ie,shouldRetryResolution:Ye=>Ye.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function $e(le,Fe,pt,j,it,Rt){return Bt({entries:le,containingFile:Fe,containingSourceFile:it,redirectedReference:pt,options:j,reusedNames:Rt,perFileCache:Q,loader:fce(Fe,pt,j,e,V),getResolutionWithResolvedFileName:de,shouldRetryResolution:Ye=>!Ye.resolvedModule||!KC(Ye.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function It(le,Fe,pt,j){const it=b7(e);let Rt=ne==null?void 0:ne.get(j);if(!Rt||Rt.isInvalidated){const Ye=Rt;Rt=RF(le,Fe,pt,it,he);const _t=e.toPath(Fe);Mn(le,Rt,_t,de,!1),ne.set(j,Rt),Ye&&Ln(Ye,_t,de)}else if(Vg(pt,it)){const Ye=de(Rt);bo(it,Ye!=null&&Ye.resolvedFileName?Ye.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,le,Fe,Ye==null?void 0:Ye.resolvedFileName,(Ye==null?void 0:Ye.packageId)&&ky(Ye.packageId))}return Rt}function tn(le,Fe){var pt,j;const it=e.toPath(Fe),Rt=Q.get(it),Ye=Rt==null?void 0:Rt.get(le,void 0);if(Ye&&!Ye.isInvalidated)return Ye;const _t=(pt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:pt.call(e,V),Gt=b7(e),yn=iD(le,Fe,e.getCompilationSettings(),Gt,V);return(j=e.afterResolveSingleModuleNameWithoutWatching)==null||j.call(e,V,le,Fe,yn,_t),yn}function rn(le){return Al(le,"/node_modules/@types")}function Mn(le,Fe,pt,j,it){var Rt;if(Fe.refCount)Fe.refCount++,N.assertIsDefined(Fe.files);else{Fe.refCount=1,N.assert(!((Rt=Fe.files)!=null&&Rt.size)),!it||Xc(le)?gn(Fe):l.add(le,Fe);const Ye=j(Fe);if(Ye&&Ye.resolvedFileName){const _t=e.toPath(Ye.resolvedFileName);let Gt=h.get(_t);Gt||h.set(_t,Gt=new Set),Gt.add(Fe)}}(Fe.files??(Fe.files=new Set)).add(pt)}function $n(le,Fe){const pt=e.toPath(le),j=OJ(le,pt,X,oe,pe,U);if(j){const{dir:it,dirPath:Rt,nonRecursive:Ye}=j;Rt===oe?(N.assert(Ye),Fe=!0):Wi(it,Rt,Ye)}return Fe}function gn(le){N.assert(!!le.refCount);const{failedLookupLocations:Fe,affectingLocations:pt,alternateResult:j}=le;if(!(Fe!=null&&Fe.length)&&!(pt!=null&&pt.length)&&!j)return;(Fe!=null&&Fe.length||j)&&u.add(le);let it=!1;if(Fe)for(const Rt of Fe)it=$n(Rt,it);j&&(it=$n(j,it)),it&&Wi(X,oe,!0),Qt(le,!(Fe!=null&&Fe.length)&&!j)}function Qt(le,Fe){N.assert(!!le.refCount);const{affectingLocations:pt}=le;if(pt!=null&&pt.length){Fe&&p.add(le);for(const j of pt)Yt(j,!0)}}function Yt(le,Fe){const pt=Y.get(le);if(pt){Fe?pt.resolutions++:pt.files++;return}let j=le,it=!1,Rt;e.realpath&&(j=e.realpath(le),le!==j&&(it=!0,Rt=Y.get(j)));const Ye=Fe?1:0,_t=Fe?0:1;if(!it||!Rt){const Gt={watcher:cce(e.toPath(j))?e.watchAffectingFileLocation(j,(yn,fn)=>{K==null||K.addOrDeleteFile(yn,e.toPath(j),fn),vi(j,V.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):hD,resolutions:it?0:Ye,files:it?0:_t,symlinks:void 0};Y.set(j,Gt),it&&(Rt=Gt)}if(it){N.assert(!!Rt);const Gt={watcher:{close:()=>{var yn;const fn=Y.get(j);(yn=fn==null?void 0:fn.symlinks)!=null&&yn.delete(le)&&!fn.symlinks.size&&!fn.resolutions&&!fn.files&&(Y.delete(j),fn.watcher.close())}},resolutions:Ye,files:_t,symlinks:void 0};Y.set(le,Gt),(Rt.symlinks??(Rt.symlinks=new Set)).add(le)}}function vi(le,Fe){var pt;const j=Y.get(le);j!=null&&j.resolutions&&(A??(A=new Set)).add(le),j!=null&&j.files&&(T??(T=new Set)).add(le),(pt=j==null?void 0:j.symlinks)==null||pt.forEach(it=>vi(it,Fe)),Fe==null||Fe.delete(e.toPath(le))}function so(le,Fe){const pt=e.getCurrentProgram();!pt||!pt.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Fe)?le.forEach(gn):le.forEach(j=>Qt(j,!0))}function Wi(le,Fe,pt){const j=ye.get(Fe);j?(N.assert(!!pt==!!j.nonRecursive),j.refCount++):ye.set(Fe,{watcher:Ar(le,Fe,pt),refCount:1,nonRecursive:pt})}function Co(le,Fe,pt){const j=e.toPath(le),it=OJ(le,j,X,oe,pe,U);if(it){const{dirPath:Rt}=it;Rt===oe?Fe=!0:Ci(Rt,pt)}return Fe}function Ln(le,Fe,pt,j){if(N.checkDefined(le.files).delete(Fe),le.refCount--,le.refCount)return;const it=pt(le);if(it&&it.resolvedFileName){const Gt=e.toPath(it.resolvedFileName),yn=h.get(Gt);yn!=null&&yn.delete(le)&&!yn.size&&h.delete(Gt)}const{failedLookupLocations:Rt,affectingLocations:Ye,alternateResult:_t}=le;if(u.delete(le)){let Gt=!1;if(Rt)for(const yn of Rt)Gt=Co(yn,Gt,j);_t&&(Gt=Co(_t,Gt,j)),Gt&&Ci(oe,j)}else Ye!=null&&Ye.length&&p.delete(le);if(Ye)for(const Gt of Ye){const yn=Y.get(Gt);yn.resolutions--,j&&ot(yn,Gt)}}function Ci(le,Fe){const pt=ye.get(le);pt.refCount--,Fe&&je(pt,le)}function Ar(le,Fe,pt){return e.watchDirectoryOfFailedLookupLocation(le,j=>{const it=e.toPath(j);K&&K.addOrDeleteFileOrDirectory(j,it),Qi(it,Fe===it)},pt?0:1)}function sn(le,Fe,pt,j){const it=le.get(Fe);it&&(it.forEach(Rt=>Ln(Rt,Fe,pt,j)),le.delete(Fe))}function tt(le){if(!Il(le,".json"))return;const Fe=e.getCurrentProgram();if(!Fe)return;const pt=Fe.getResolvedProjectReferenceByPath(le);pt&&pt.commandLine.fileNames.forEach(j=>zt(e.toPath(j)))}function zt(le,Fe){sn(Q,le,de,Fe),sn(se,le,ie,Fe)}function Dn(le,Fe){if(!le)return!1;let pt=!1;return le.forEach(j=>{if(!(j.isInvalidated||!Fe(j))){j.isInvalidated=pt=!0;for(const it of N.checkDefined(j.files))(o??(o=new Set)).add(it),y=y||Al(it,fD)}}),pt}function ci(le){zt(le);const Fe=y;Dn(h.get(le),Iv)&&y&&!Fe&&e.onChangedAutomaticTypeDirectiveNames()}function yi(le){N.assert(s===le||s===void 0),s=le}function Qi(le,Fe){if(Fe)(C||(C=new Set)).add(le);else{const pt=v7(le);if(!pt||(le=pt,e.fileIsOpen(le)))return!1;const j=ai(le);if(rn(le)||Q6(le)||rn(j)||Q6(j))(R||(R=new Set)).add(le),(M||(M=new Set)).add(le);else{if(zle(e.getCurrentProgram(),le)||Il(le,".map"))return!1;(R||(R=new Set)).add(le);const it=yw(le,!0);it&&(M||(M=new Set)).add(it)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Io(){const le=V.getPackageJsonInfoCache().getInternalMap();le&&(R||M||C)&&le.forEach((Fe,pt)=>Tn(pt)?le.delete(pt):void 0)}function fa(){var le;if(O)return T=void 0,Io(),(R||M||C||A)&&Dn(ne,ka),R=void 0,M=void 0,C=void 0,A=void 0,!0;let Fe=!1;return T&&((le=e.getCurrentProgram())==null||le.getSourceFiles().forEach(pt=>{bt(pt.packageJsonLocations,j=>T.has(j))&&((o??(o=new Set)).add(pt.path),Fe=!0)}),T=void 0),!R&&!M&&!C&&!A||(Fe=Dn(u,ka)||Fe,Io(),R=void 0,M=void 0,C=void 0,Fe=Dn(p,wn)||Fe,A=void 0),Fe}function ka(le){var Fe;return wn(le)?!0:!R&&!M&&!C?!1:((Fe=le.failedLookupLocations)==null?void 0:Fe.some(pt=>Tn(e.toPath(pt))))||!!le.alternateResult&&Tn(e.toPath(le.alternateResult))}function Tn(le){return(R==null?void 0:R.has(le))||pn((M==null?void 0:M.keys())||[],Fe=>uo(le,Fe)?!0:void 0)||pn((C==null?void 0:C.keys())||[],Fe=>le.length>Fe.length&&uo(le,Fe)&&(pV(Fe)||le[Fe.length]===ol)?!0:void 0)}function wn(le){var Fe;return!!A&&((Fe=le.affectingLocations)==null?void 0:Fe.some(pt=>A.has(pt)))}function He(){ep(Ce,Xm)}function mt(le){return Ct(le)?e.watchTypeRootsDirectory(le,Fe=>{const pt=e.toPath(Fe);K&&K.addOrDeleteFileOrDirectory(Fe,pt),y=!0,e.onChangedAutomaticTypeDirectiveNames();const j=dce(le,e.toPath(le),oe,pe,U,it=>ye.has(it));j&&Qi(pt,j===pt)},1):hD}function ft(){const le=e.getCompilationSettings();if(le.types){He();return}const Fe=LP(le,{getCurrentDirectory:U});Fe?UC(Ce,new Set(Fe),{createNewValue:mt,onDeleteValue:Xm}):He()}function Ct(le){return e.getCompilationSettings().typeRoots?!0:lce(e.toPath(le))}}function KUe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var XUe=I({"src/compiler/resolutionCache.ts"(){ra()}});function Vw(e,t){const r=e===gu&&bce?bce:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Mu(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(dJ(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(jle(i,r)+r.getNewLine()),i[0]=void 0}}function Fxe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Or(x7,t.code)?(e.clearScreen(),!0):!1}function YUe(e,t){return Or(x7,e.code)?t+t:t}function jw(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function mce(e,t){return t?(r,i,o)=>{Fxe(e,r,o);let s=`[${p1(jw(e),"\x1B[90m")}] `;s+=`${O_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";Fxe(e,r,o)||(s+=i),s+=`${jw(e)} - `,s+=`${O_(r.messageText,e.newLine)}${YUe(r,i)}`,e.write(s)}}function zxe(e,t,r,i,o,s){const l=o;l.onUnRecoverableConfigFileDiagnostic=p=>Vxe(o,s,p);const u=aw(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function E7(e){return ou(e,t=>t.category===1)}function S7(e){return mn(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=In(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){const{line:o}=ys(i.file,i.start);return{fileName:r,line:o+1}}})}function FJ(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function Bxe(e,t){const r=p1(":"+e.line,"\x1B[90m");return ZN(e.fileName)&&ZN(t)?vm(t,e.fileName,!1)+r:e.fileName+r}function _ce(e,t,r,i){if(e===0)return"";const o=t.filter(m=>m!==void 0),s=o.map(m=>`${m.fileName}:${m.line}`).filter((m,y,T)=>T.indexOf(m)===y),l=o[0]&&Bxe(o[0],i.getCurrentDirectory());let u;e===1?u=t[0]!==void 0?[f.Found_1_error_in_0,l]:[f.Found_1_error]:u=s.length===0?[f.Found_0_errors,e]:s.length===1?[f.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[f.Found_0_errors_in_1_files,e,s.length];const p=Ul(...u),h=s.length>1?$Ue(o,i):"";return`${r}${O_(p.messageText,r)}${r}${r}${h}`}function $Ue(e,t){const r=e.filter((y,T,A)=>T===A.findIndex(R=>(R==null?void 0:R.fileName)===(y==null?void 0:y.fileName)));if(r.length===0)return"";const i=y=>Math.log(y)*Math.LOG10E+1,o=r.map(y=>[y,ou(e,T=>T.fileName===y.fileName)]),s=o.reduce((y,T)=>Math.max(y,T[1]||0),0),l=f.Errors_Files.message,u=l.split(" ")[0].length,p=Math.max(u,i(s)),h=Math.max(i(s)-u,0);let m="";return m+=" ".repeat(h)+l+`
`,o.forEach(y=>{const[T,A]=y,R=Math.log(A)*Math.LOG10E+1|0,M=R<p?" ".repeat(p-R):"",C=Bxe(T,t.getCurrentDirectory());m+=`${M}${A} ${C}
`}),m}function hce(e){return!!e.getState}function zJ(e,t){const r=e.getCompilerOptions();r.explainFiles?BJ(hce(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&Xe(e.getSourceFiles(),i=>{t(i.fileName)})}function BJ(e,t){var r,i;const o=e.getFileIncludeReasons(),s=l=>eC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t(`${_D(l,s)}`),(r=o.get(l.path))==null||r.forEach(u=>t(` ${UJ(e,u,s).messageText}`)),(i=GJ(l,s))==null||i.forEach(u=>t(` ${u.messageText}`))}function GJ(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Vo(void 0,f.File_is_output_of_project_reference_source_0,_D(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Vo(void 0,f.File_redirects_to_file_0,_D(e.redirectInfo.redirectTarget,t))),Fp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(Vo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,_D(Xa(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Vo(void 0,e.packageJsonScope.contents.packageJsonContent.type?f.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:f.File_is_CommonJS_module_because_0_does_not_have_field_type,_D(Xa(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(Vo(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function VJ(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i==null?void 0:i.configFileSpecs)!=null&&r.validatedFilesSpec))return;const o=e.getCanonicalFileName(t),s=ai(go(i.fileName,e.getCurrentDirectory()));return In(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(go(l,s))===o)}function jJ(e,t){var r,i;const o=e.getCompilerOptions().configFile;if(!((r=o==null?void 0:o.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;const s=Il(t,".json"),l=ai(go(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return In((i=o==null?void 0:o.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!Al(p,".json"))return!1;const h=_oe(p,l,"files");return!!h&&By(`(${h})$`,u).test(t)})}function UJ(e,t,r){var i,o;const s=e.getCompilerOptions();if(D0(t)){const l=XP(e,t),u=dD(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`;let p;switch(N.assert(dD(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:dD(l)?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===Vy?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:f.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:f.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:N.assert(!l.packageId),p=f.Referenced_via_0_from_file_1;break;case 5:p=l.packageId?f.Type_library_referenced_via_0_from_file_1_with_packageId_2:f.Type_library_referenced_via_0_from_file_1;break;case 7:N.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:N.assertNever(t)}return Vo(void 0,p,u,_D(l.file,r),l.packageId&&ky(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Vo(void 0,f.Root_file_specified_for_compilation);const l=go(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(VJ(e,l))return Vo(void 0,f.Part_of_files_list_in_tsconfig_json);const p=jJ(e,l);return Mo(p)?Vo(void 0,f.Matched_by_include_pattern_0_in_1,p,_D(s.configFile,r)):Vo(void 0,p?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:const h=t.kind===2,m=N.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Vo(void 0,Ps(s)?h?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:h?f.Output_from_referenced_project_0_included_because_module_is_specified_as_none:f.Source_from_referenced_project_0_included_because_module_is_specified_as_none,_D(m.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{const y=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,ky(t.packageId)]:[f.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[f.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,ky(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return Vo(void 0,...y)}case 6:{if(t.index!==void 0)return Vo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);const y=zc(mw.type,(A,R)=>A===os(s)?R:void 0),T=y?[f.Default_library_for_target_0,y]:[f.Default_library];return Vo(void 0,...T)}default:N.assertNever(t)}}function _D(e,t){const r=Mo(e)?e:e.fileName;return t?t(r):r}function T7(e,t,r,i,o,s,l,u){const p=!!e.getCompilerOptions().listFilesOnly,h=e.getConfigFileParsingDiagnostics().slice(),m=h.length;qr(h,e.getSyntacticDiagnostics(void 0,s)),h.length===m&&(qr(h,e.getOptionsDiagnostics(s)),p||(qr(h,e.getGlobalDiagnostics(s)),h.length===m&&qr(h,e.getSemanticDiagnostics(void 0,s))));const y=p?{emitSkipped:!0,diagnostics:et}:e.emit(void 0,o,s,l,u),{emittedFiles:T,diagnostics:A}=y;qr(h,A);const R=Ux(h);if(R.forEach(t),r){const M=e.getCurrentDirectory();Xe(T,C=>{const O=go(C,M);r(`TSFILE: ${O}`)}),zJ(e,r)}return i&&i(E7(R),S7(R)),{emitResult:y,diagnostics:R}}function gce(e,t,r,i,o,s,l,u){const{emitResult:p,diagnostics:h}=T7(e,t,r,i,o,s,l,u);return p.emitSkipped&&h.length>0?1:h.length>0?2:0}function HJ(e=gu,t){return{onWatchStatusChange:t||mce(e),watchFile:ia(e,e.watchFile)||gD,watchDirectory:ia(e,e.watchDirectory)||gD,setTimeout:ia(e,e.setTimeout)||Ya,clearTimeout:ia(e,e.clearTimeout)||Ya}}function qJ(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):Ya,o=oJ(e,r,i);return o.writeLog=i,o}function JJ(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:lJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:ia(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:cJ((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Sd(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Mu(i),getNewLine:()=>Fv(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:ia(e,e.trace),directoryExists:ia(r,r.directoryExists),getDirectories:ia(r,r.getDirectories),realpath:ia(e,e.realpath),getEnvironmentVariable:ia(e,e.getEnvironmentVariable)||(()=>""),createHash:ia(e,e.createHash),readDirectory:ia(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function A7(e,t){if(t.match(Lq)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){const s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Hu(s)){i=o;continue}break}const l=t.substring(i,r);if(l.match(GF)){t=t.substring(0,i);break}else if(!l.match(VF))break;r=i}}return(e.createHash||QN)(t)}function I7(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=A7(e,i.text)),i}}function KJ(e,t){const r=Sd(()=>ai(ha(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Sd(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>$r(r(),Z2(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,u)=>e.readDirectory(i,o,s,l,u),realpath:ia(e,e.realpath),getEnvironmentVariable:ia(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,o,s)=>e.writeFile(i,o,s),createHash:ia(e,e.createHash),createProgram:t||wJ,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ia(e,e.now)}}function Gxe(e=gu,t,r,i){const o=l=>e.write(l+e.newLine),s=KJ(e,t);return JB(s,HJ(e,i)),s.afterProgramCreate=l=>{const u=l.getCompilerOptions(),p=Fv(u);T7(l,r,o,h=>s.onWatchStatusChange(Ul(FJ(h),h),p,u,h))},s}function Vxe(e,t,r){t(r),e.exit(1)}function vce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=l||Vw(o),h=Gxe(o,s,p,u);return h.onUnRecoverableConfigFileDiagnostic=m=>Vxe(o,p,m),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=r,h.extraFileExtensions=i,h}function yce({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=Gxe(o,s,l||Vw(o),u);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function jxe(e){const t=e.system||gu,r=e.host||(e.host=XJ(e.options,t)),i=Ece(e),o=gce(i,e.reportDiagnostic||Vw(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(_ce(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var bce,x7,hD,gD,Lc,QUe=I({"src/compiler/watch.ts"(){ra(),bce=gu?{getCurrentDirectory:()=>gu.getCurrentDirectory(),getNewLine:()=>gu.newLine,getCanonicalFileName:Mu(gu.useCaseSensitiveFileNames)}:void 0,x7=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],hD={close:Ya},gD=()=>hD,Lc={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function R7(e,t){const r=Hv(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{const o=t.readFile(r);if(!o)return;i=n7(r,o)}if(!(!i||i.version!==Re||!i.program))return ace(i,r,t)}function XJ(e,t=gu){const r=uJ(e,void 0,t);return r.createHash=ia(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,I7(r),Ww(r,i=>il(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Ece({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||XJ(t),s=s||wJ;const l=R7(t,o);return s(e,t,o,l,r,i)}function Uxe(e,t,r,i,o,s,l,u){return To(e)?yce({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):vce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function Hxe(e){let t,r,i,o,s,l,u,p,h=e.extendedConfigCache,m=!1;const y=new Map;let T,A=!1;const R=e.useCaseSensitiveFileNames(),M=e.getCurrentDirectory(),{configFileName:C,optionsToExtend:O={},watchOptionsToExtend:U,extraFileExtensions:K,createProgram:Q}=e;let{rootFiles:V,options:se,watchOptions:G,projectReferences:ne}=e,he,ye,Y=!1,X=!1;const oe=C===void 0?void 0:i7(e,M,R),pe=oe||e,Ce=f7(e,pe);let de=Mn();C&&e.configFileParsingResult&&(ka(e.configFileParsingResult),de=Mn()),Ln(f.Starting_compilation_in_watch_mode),C&&!e.configFileParsingResult&&(de=Fv(O),N.assert(!V),fa(),de=Mn()),N.assert(se),N.assert(V);const{watchFile:ie,watchDirectory:ve,writeLog:Le}=qJ(e,se),Ue=Mu(R);Le(`Current directory: ${M} CaseSensitiveFileNames: ${R}`);let Ee;C&&(Ee=ie(C,Dn,2e3,G,Lc.ConfigFile));const De=JJ(e,()=>se,pe);I7(De);const Me=De.getSourceFile;De.getSourceFile=(Ye,..._t)=>vi(Ye,$n(Ye),..._t),De.getSourceFileByPath=vi,De.getNewLine=()=>de,De.fileExists=Yt,De.onReleaseOldSourceFile=Co,De.onReleaseParsedCommandLine=He,De.toPath=$n,De.getCompilationSettings=()=>se,De.useSourceOfProjectReferenceRedirect=ia(e,e.useSourceOfProjectReferenceRedirect),De.watchDirectoryOfFailedLookupLocation=(Ye,_t,Gt)=>ve(Ye,_t,Gt,G,Lc.FailedLookupLocations),De.watchAffectingFileLocation=(Ye,_t)=>ie(Ye,_t,2e3,G,Lc.AffectingFileLocation),De.watchTypeRootsDirectory=(Ye,_t,Gt)=>ve(Ye,_t,Gt,G,Lc.TypeRoots),De.getCachedDirectoryStructureHost=()=>oe,De.scheduleInvalidateResolutionsOfFailedLookupLocations=sn,De.onInvalidatedResolution=zt,De.onChangedAutomaticTypeDirectiveNames=zt,De.fileIsOpen=qm,De.getCurrentProgram=$e,De.writeLog=Le,De.getParsedCommandLine=Tn;const We=WJ(De,C?ai(go(C,M)):M,!1);De.resolveModuleNameLiterals=ia(e,e.resolveModuleNameLiterals),De.resolveModuleNames=ia(e,e.resolveModuleNames),!De.resolveModuleNameLiterals&&!De.resolveModuleNames&&(De.resolveModuleNameLiterals=We.resolveModuleNameLiterals.bind(We)),De.resolveTypeReferenceDirectiveReferences=ia(e,e.resolveTypeReferenceDirectiveReferences),De.resolveTypeReferenceDirectives=ia(e,e.resolveTypeReferenceDirectives),!De.resolveTypeReferenceDirectiveReferences&&!De.resolveTypeReferenceDirectives&&(De.resolveTypeReferenceDirectiveReferences=We.resolveTypeReferenceDirectiveReferences.bind(We)),De.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):We.resolveLibrary.bind(We),De.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ia(e,e.getModuleResolutionCache):()=>We.getModuleResolutionCache();const Se=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ia(e,e.hasInvalidatedResolutions)||Iv:qm,je=e.resolveLibrary?ia(e,e.hasInvalidatedLibResolutions)||Iv:qm;return t=R7(se,De),It(),pt(),C&&it($n(C),se,G,Lc.ExtendedConfigFile),C?{getCurrentProgram:vt,getProgram:yi,close:ot,getResolutionCache:Bt}:{getCurrentProgram:vt,getProgram:yi,updateRootFileNames:rn,close:ot,getResolutionCache:Bt};function ot(){Ar(),We.clear(),ep(y,Ye=>{Ye&&Ye.fileWatcher&&(Ye.fileWatcher.close(),Ye.fileWatcher=void 0)}),Ee&&(Ee.close(),Ee=void 0),h==null||h.clear(),h=void 0,p&&(ep(p,Cf),p=void 0),o&&(ep(o,Cf),o=void 0),i&&(ep(i,Xm),i=void 0),u&&(ep(u,Ye=>{var _t;(_t=Ye.watcher)==null||_t.close(),Ye.watcher=void 0,Ye.watchedDirectories&&ep(Ye.watchedDirectories,Cf),Ye.watchedDirectories=void 0}),u=void 0)}function Bt(){return We}function vt(){return t}function $e(){return t&&t.getProgramOrUndefined()}function It(){Le("Synchronizing program"),N.assert(se),N.assert(V),Ar();const Ye=vt();A&&(de=Mn(),Ye&&A4(Ye.getCompilerOptions(),se)&&We.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:_t,hasInvalidatedLibResolutions:Gt}=We.createHasInvalidatedResolutions(Se,je),{originalReadFile:yn,originalFileExists:fn,originalDirectoryExists:hn,originalCreateDirectory:q,originalWriteFile:Oe,readFileWithCache:Lt}=Ww(De,$n);return bJ($e(),V,se,L=>Wi(L,Lt),L=>De.fileExists(L),_t,Gt,Ci,Tn,ne)?X&&(m&&Ln(f.File_change_detected_Starting_incremental_compilation),t=Q(void 0,void 0,De,t,ye,ne),X=!1):(m&&Ln(f.File_change_detected_Starting_incremental_compilation),tn(_t,Gt)),m=!1,e.afterProgramCreate&&Ye!==t&&e.afterProgramCreate(t),De.readFile=yn,De.fileExists=fn,De.directoryExists=hn,De.createDirectory=q,De.writeFile=Oe,t}function tn(Ye,_t){Le("CreatingProgramWith::"),Le(` roots: ${JSON.stringify(V)}`),Le(` options: ${JSON.stringify(se)}`),ne&&Le(` projectReferences: ${JSON.stringify(ne)}`);const Gt=A||!$e();A=!1,X=!1,We.startCachingPerDirectoryResolution(),De.hasInvalidatedResolutions=Ye,De.hasInvalidatedLibResolutions=_t,De.hasChangedAutomaticTypeDirectiveNames=Ci;const yn=$e();if(t=Q(V,se,De,t,ye,ne),We.finishCachingPerDirectoryResolution(t.getProgram(),yn),iJ(t.getProgram(),i||(i=new Map),le),Gt&&We.updateTypeRootsWatch(),T){for(const fn of T)i.has(fn)||y.delete(fn);T=void 0}}function rn(Ye){N.assert(!C,"Cannot update root file names with config file watch mode"),V=Ye,zt()}function Mn(){return Fv(se||O)}function $n(Ye){return il(Ye,M,Ue)}function gn(Ye){return typeof Ye=="boolean"}function Qt(Ye){return typeof Ye.version=="boolean"}function Yt(Ye){const _t=$n(Ye);return gn(y.get(_t))?!1:pe.fileExists(Ye)}function vi(Ye,_t,Gt,yn,fn){const hn=y.get(_t);if(gn(hn))return;const q=typeof Gt=="object"?Gt.impliedNodeFormat:void 0;if(hn===void 0||fn||Qt(hn)||hn.sourceFile.impliedNodeFormat!==q){const Oe=Me(Ye,Gt,yn);if(hn)Oe?(hn.sourceFile=Oe,hn.version=Oe.version,hn.fileWatcher||(hn.fileWatcher=mt(_t,Ye,ft,250,G,Lc.SourceFile))):(hn.fileWatcher&&hn.fileWatcher.close(),y.set(_t,!1));else if(Oe){const Lt=mt(_t,Ye,ft,250,G,Lc.SourceFile);y.set(_t,{sourceFile:Oe,version:Oe.version,fileWatcher:Lt})}else y.set(_t,!1);return Oe}return hn.sourceFile}function so(Ye){const _t=y.get(Ye);_t!==void 0&&(gn(_t)?y.set(Ye,{version:!1}):_t.version=!1)}function Wi(Ye,_t){const Gt=y.get(Ye);if(!Gt)return;if(Gt.version)return Gt.version;const yn=_t(Ye);return yn!==void 0?A7(De,yn):void 0}function Co(Ye,_t,Gt){const yn=y.get(Ye.resolvedPath);yn!==void 0&&(gn(yn)?(T||(T=[])).push(Ye.path):yn.sourceFile===Ye&&(yn.fileWatcher&&yn.fileWatcher.close(),y.delete(Ye.resolvedPath),Gt||We.removeResolutionsOfFile(Ye.path)))}function Ln(Ye){e.onWatchStatusChange&&e.onWatchStatusChange(Ul(Ye),de,se||O)}function Ci(){return We.hasChangedAutomaticTypeDirectiveNames()}function Ar(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function sn(){if(!e.setTimeout||!e.clearTimeout)return We.invalidateResolutionsOfFailedLookupLocations();const Ye=Ar();Le(`Scheduling invalidateFailedLookup${Ye?", Cancelled earlier one":""}`),l=e.setTimeout(tt,250,"timerToInvalidateFailedLookupResolutions")}function tt(){l=void 0,We.invalidateResolutionsOfFailedLookupLocations()&&zt()}function zt(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Le("Scheduling update"),s=e.setTimeout(ci,250,"timerToUpdateProgram"))}function Dn(){N.assert(!!C),r=2,zt()}function ci(){s=void 0,m=!0,yi()}function yi(){var Ye,_t,Gt,yn;switch(r){case 1:(Ye=id)==null||Ye.logStartUpdateProgram("PartialConfigReload"),Qi();break;case 2:(_t=id)==null||_t.logStartUpdateProgram("FullConfigReload"),Io();break;default:(Gt=id)==null||Gt.logStartUpdateProgram("SynchronizeProgram"),It();break}return(yn=id)==null||yn.logStopUpdateProgram("Done"),vt()}function Qi(){Le("Reloading new file names and options"),N.assert(se),N.assert(C),r=0,V=CP(se.configFile.configFileSpecs,go(ai(C),M),se,Ce,K),fF(V,go(C,M),se.configFile.configFileSpecs,ye,Y)&&(X=!0),It()}function Io(){N.assert(C),Le(`Reloading config file: ${C}`),r=0,oe&&oe.clearCache(),fa(),A=!0,It(),pt(),it($n(C),se,G,Lc.ExtendedConfigFile)}function fa(){N.assert(C),ka(aw(C,O,Ce,h||(h=new Map),U,K))}function ka(Ye){V=Ye.fileNames,se=Ye.options,G=Ye.watchOptions,ne=Ye.projectReferences,he=Ye.wildcardDirectories,ye=$S(Ye).slice(),Y=NP(Ye.raw),X=!0}function Tn(Ye){const _t=$n(Ye);let Gt=u==null?void 0:u.get(_t);if(Gt){if(!Gt.updateLevel)return Gt.parsedCommandLine;if(Gt.parsedCommandLine&&Gt.updateLevel===1&&!e.getParsedCommandLine){Le("Reloading new file names and options"),N.assert(se);const fn=CP(Gt.parsedCommandLine.options.configFile.configFileSpecs,go(ai(Ye),M),se,Ce);return Gt.parsedCommandLine={...Gt.parsedCommandLine,fileNames:fn},Gt.updateLevel=void 0,Gt.parsedCommandLine}}Le(`Loading config file: ${Ye}`);const yn=e.getParsedCommandLine?e.getParsedCommandLine(Ye):wn(Ye);return Gt?(Gt.parsedCommandLine=yn,Gt.updateLevel=void 0):(u||(u=new Map)).set(_t,Gt={parsedCommandLine:yn}),Rt(Ye,_t,Gt),yn}function wn(Ye){const _t=Ce.onUnRecoverableConfigFileDiagnostic;Ce.onUnRecoverableConfigFileDiagnostic=Ya;const Gt=aw(Ye,void 0,Ce,h||(h=new Map),U);return Ce.onUnRecoverableConfigFileDiagnostic=_t,Gt}function He(Ye){var _t;const Gt=$n(Ye),yn=u==null?void 0:u.get(Gt);yn&&(u.delete(Gt),yn.watchedDirectories&&ep(yn.watchedDirectories,Cf),(_t=yn.watcher)==null||_t.close(),rJ(Gt,p))}function mt(Ye,_t,Gt,yn,fn,hn){return ie(_t,(q,Oe)=>Gt(q,Oe,Ye),yn,fn,hn)}function ft(Ye,_t,Gt){Ct(Ye,Gt,_t),_t===2&&y.has(Gt)&&We.invalidateResolutionOfFile(Gt),so(Gt),zt()}function Ct(Ye,_t,Gt){oe&&oe.addOrDeleteFile(Ye,_t,Gt)}function le(Ye,_t){return u!=null&&u.has(Ye)?hD:mt(Ye,_t,Fe,500,G,Lc.MissingFile)}function Fe(Ye,_t,Gt){Ct(Ye,Gt,_t),_t===0&&i.has(Gt)&&(i.get(Gt).close(),i.delete(Gt),so(Gt),zt())}function pt(){kw(o||(o=new Map),he,j)}function j(Ye,_t){return ve(Ye,Gt=>{N.assert(C),N.assert(se);const yn=$n(Gt);oe&&oe.addOrDeleteFileOrDirectory(Gt,yn),so(yn),!ww({watchedDirPath:$n(Ye),fileOrDirectory:Gt,fileOrDirectoryPath:yn,configFileName:C,extraFileExtensions:K,options:se,program:vt()||V,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Le,toPath:$n})&&r!==2&&(r=1,zt())},_t,G,Lc.WildcardDirectory)}function it(Ye,_t,Gt,yn){o7(Ye,_t,p||(p=new Map),(fn,hn)=>ie(fn,(q,Oe)=>{var Lt;Ct(fn,hn,Oe),h&&a7(h,hn,$n);const L=(Lt=p.get(hn))==null?void 0:Lt.projects;L!=null&&L.size&&L.forEach(me=>{if(C&&$n(C)===me)r=2;else{const J=u==null?void 0:u.get(me);J&&(J.updateLevel=2),We.removeResolutionsFromProjectReferenceRedirects(me)}zt()})},2e3,Gt,yn),$n)}function Rt(Ye,_t,Gt){var yn,fn,hn,q;Gt.watcher||(Gt.watcher=ie(Ye,(Oe,Lt)=>{Ct(Ye,_t,Lt);const L=u==null?void 0:u.get(_t);L&&(L.updateLevel=2),We.removeResolutionsFromProjectReferenceRedirects(_t),zt()},2e3,((yn=Gt.parsedCommandLine)==null?void 0:yn.watchOptions)||G,Lc.ConfigFileOfReferencedProject)),kw(Gt.watchedDirectories||(Gt.watchedDirectories=new Map),(fn=Gt.parsedCommandLine)==null?void 0:fn.wildcardDirectories,(Oe,Lt)=>{var L;return ve(Oe,me=>{const J=$n(me);oe&&oe.addOrDeleteFileOrDirectory(me,J),so(J);const fe=u==null?void 0:u.get(_t);fe!=null&&fe.parsedCommandLine&&(ww({watchedDirPath:$n(Oe),fileOrDirectory:me,fileOrDirectoryPath:J,configFileName:Ye,options:fe.parsedCommandLine.options,program:fe.parsedCommandLine.fileNames,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Le,toPath:$n})||fe.updateLevel!==2&&(fe.updateLevel=1,zt()))},Lt,((L=Gt.parsedCommandLine)==null?void 0:L.watchOptions)||G,Lc.WildcardDirectoryOfReferencedProject)}),it(_t,(hn=Gt.parsedCommandLine)==null?void 0:hn.options,((q=Gt.parsedCommandLine)==null?void 0:q.watchOptions)||G,Lc.ExtendedConfigOfReferencedProject)}}var ZUe=I({"src/compiler/watchPublic.ts"(){ra()}});function YJ(e){return Il(e,".json")?e:$r(e,"tsconfig.json")}var $J,eHe=I({"src/compiler/tsbuild.ts"(){ra(),$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 tHe(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function Sce(e,t){return tHe(e,t,()=>new Map)}function Uw(e){return e.now?e.now():new Date}function bI(e){return!!e&&!!e.buildOrder}function D7(e){return bI(e)?e.buildOrder:e}function Tce(e,t){return r=>{let i=t?`[${p1(jw(e),"\x1B[90m")}] `:`${jw(e)} - `;i+=`${O_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function qxe(e,t,r,i){const o=KJ(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):Yb,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):Ya,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):Ya,o.reportDiagnostic=r||Vw(e),o.reportSolutionBuilderStatus=i||Tce(e),o.now=ia(e,e.now),o}function Jxe(e=gu,t,r,i,o){const s=qxe(e,t,r,i);return s.reportErrorSummary=o,s}function Kxe(e=gu,t,r,i,o){const s=qxe(e,t,r,i),l=HJ(e,o);return JB(s,l),s}function nHe(e){const t={};return fw.forEach(r=>{Is(e,r.name)&&(t[r.name]=e[r.name])}),t}function Xxe(e,t,r){return yRe(!1,e,t,r)}function Yxe(e,t,r,i){return yRe(!0,e,t,r,i)}function rHe(e,t,r,i,o){const s=t,l=t,u=nHe(i),p=JJ(s,()=>M.projectCompilerOptions);I7(p),p.getParsedCommandLine=C=>EI(M,C,W_(M,C)),p.resolveModuleNameLiterals=ia(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=ia(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=ia(s,s.resolveLibrary),p.resolveModuleNames=ia(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=ia(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=ia(s,s.getModuleResolutionCache);let h,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(h=rD(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(C,O,U,K,Q)=>zw(C,O,U,K,Q,s,h,hJ),p.getModuleResolutionCache=()=>h),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(m=xF(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h==null?void 0:h.getPackageJsonInfoCache(),h==null?void 0:h.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(C,O,U,K,Q)=>zw(C,O,U,K,Q,s,m,l7));let y;p.resolveLibrary||(y=rD(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h==null?void 0:h.getPackageJsonInfoCache()),p.resolveLibrary=(C,O,U)=>RF(C,O,U,s,y)),p.getBuildInfo=(C,O)=>uRe(M,C,W_(M,O),void 0);const{watchFile:T,watchDirectory:A,writeLog:R}=qJ(l,i),M={host:s,hostWithWatch:l,parseConfigFileHost:f7(s),write:ia(s,s.trace),options:i,baseCompilerOptions:u,rootNames:r,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:p,moduleResolutionCache:h,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:C=>s.readFile(C),projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:T,watchDirectory:A,writeLog:R};return M}function Pf(e,t){return il(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function W_(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const o=Pf(e,t);return r.set(t,o),o}function $xe(e){return!!e.options}function iHe(e,t){const r=e.configFileCache.get(t);return r&&$xe(r)?r:void 0}function EI(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return $xe(o)?o:void 0;rl("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:p,extendedConfigCache:h,host:m}=e;let y;return m.getParsedCommandLine?(y=m.getParsedCommandLine(t),y||(s=Ul(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=T=>s=T,y=aw(t,u,l,h,p),l.onUnRecoverableConfigFileDiagnostic=Ya),i.set(r,y||s),rl("SolutionBuilder::afterConfigFileParsing"),Qp("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function YP(e,t){return YJ(Iy(e.compilerHost.getCurrentDirectory(),t))}function Qxe(e,t){const r=new Map,i=new Map,o=[];let s,l;for(const p of t)u(p);return l?{buildOrder:s||et,circularDiagnostics:l}:s||et;function u(p,h){const m=W_(e,p);if(i.has(m))return;if(r.has(m)){h||(l||(l=[])).push(Ul(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r
`)));return}r.set(m,!0),o.push(p);const y=EI(e,p,m);if(y&&y.projectReferences)for(const T of y.projectReferences){const A=YP(e,T.path);u(A,h||T.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function N7(e){return e.buildOrder||oHe(e)}function oHe(e){const t=Qxe(e,e.rootNames.map(o=>YP(e,o)));e.resolvedConfigFilePaths.clear();const r=new Set(D7(t).map(o=>W_(e,o))),i={onDeleteValue:Ya};return rg(e.configFileCache,r,i),rg(e.projectStatus,r,i),rg(e.builderPrograms,r,i),rg(e.diagnostics,r,i),rg(e.projectPendingBuild,r,i),rg(e.projectErrorsReported,r,i),rg(e.buildInfoCache,r,i),rg(e.outputTimeStamps,r,i),rg(e.lastCachedPackageJsonLookups,r,i),e.watch&&(rg(e.allWatchedConfigFiles,r,{onDeleteValue:Xm}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),rg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Cf)}),rg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Xm)}),rg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Xm)})),e.buildOrder=t}function Zxe(e,t,r){const i=t&&YP(e,t),o=N7(e);if(bI(o))return o;if(i){const l=W_(e,i);if(mi(o,p=>W_(e,p)===l)===-1)return}const s=i?Qxe(e,[i]):o;return N.assert(!bI(s)),N.assert(!r||i!==void 0),N.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function eRe(e){e.cache&&Ace(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:h,getSourceFileWithCache:m,readFileWithCache:y}=Ww(r,T=>Pf(e,T),(...T)=>o.call(t,...T));e.readFileWithCache=y,t.getSourceFile=m,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:h,originalReadFileWithCache:i,originalGetSourceFile:o}}function Ace(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s==null||s.clear(),l==null||l.clear(),u==null||u.clear(),e.cache=void 0}function tRe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function nRe({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function rRe(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&Oce(e,f.Starting_compilation_in_watch_mode),eRe(e),D7(N7(e)).forEach(i=>e.projectPendingBuild.set(W_(e,i),0)),t&&t.throwIfCancellationRequested()}function iRe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function aHe(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{pRe(e,i,r),s=!1},done:()=>(s&&pRe(e,i,r),rl("SolutionBuilder::Timestamps only updates"),iRe(e,r))}}function oRe(e,t,r,i,o,s,l){let u=e===0?0:4,p,h,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>T(tl),getProgram:()=>T(G=>G.getProgramOrUndefined()),getSourceFile:G=>T(ne=>ne.getSourceFile(G)),getSourceFiles:()=>A(G=>G.getSourceFiles()),getOptionsDiagnostics:G=>A(ne=>ne.getOptionsDiagnostics(G)),getGlobalDiagnostics:G=>A(ne=>ne.getGlobalDiagnostics(G)),getConfigFileParsingDiagnostics:()=>A(G=>G.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(G,ne)=>A(he=>he.getSyntacticDiagnostics(G,ne)),getAllDependencies:G=>A(ne=>ne.getAllDependencies(G)),getSemanticDiagnostics:(G,ne)=>A(he=>he.getSemanticDiagnostics(G,ne)),getSemanticDiagnosticsOfNextAffectedFile:(G,ne)=>T(he=>he.getSemanticDiagnosticsOfNextAffectedFile&&he.getSemanticDiagnosticsOfNextAffectedFile(G,ne)),emit:(G,ne,he,ye,Y)=>{if(G||ye)return T(X=>{var oe,pe;return X.emit(G,ne,he,ye,Y||((pe=(oe=t.host).getCustomTransformers)==null?void 0:pe.call(oe,r)))});if(se(2,he),u===5)return K(ne,he);if(u===3)return U(ne,he,Y)},done:y}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(G,ne)=>u!==4?m:V(G,ne),done:y};function y(G,ne,he){return se(8,G,ne,he),rl(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),iRe(t,i)}function T(G){return se(0),p&&G(p)}function A(G){return T(G)||et}function R(){var G,ne,he;if(N.assert(p===void 0),t.options.dry){Rd(t,f.A_non_dry_build_would_build_project_0,r),h=1,u=7;return}if(t.options.verbose&&Rd(t,f.Building_project_0,r),s.fileNames.length===0){$P(t,i,$S(s)),h=0,u=7;return}const{host:ye,compilerHost:Y}=t;if(t.projectCompilerOptions=s.options,(G=t.moduleResolutionCache)==null||G.update(s.options),(ne=t.typeReferenceDirectiveResolutionCache)==null||ne.update(s.options),p=ye.createProgram(s.fileNames,s.options,Y,lHe(t,i,s),$S(s),s.projectReferences),t.watch){const X=(he=t.moduleResolutionCache)==null?void 0:he.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,X&&new Set(zo(X.values(),oe=>t.host.realpath&&(IF(oe)||oe.directoryExists)?t.host.realpath($r(oe.packageDirectory,"package.json")):$r(oe.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}u++}function M(G,ne,he){G.length?{buildResult:h,step:u}=Rce(t,i,p,s,G,ne,he):u++}function C(G){N.assertIsDefined(p),M([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(G),...p.getGlobalDiagnostics(G),...p.getSyntacticDiagnostics(void 0,G)],8,"Syntactic")}function O(G){M(N.checkDefined(p).getSemanticDiagnostics(void 0,G),16,"Semantic")}function U(G,ne,he){var ye,Y,X;N.assertIsDefined(p),N.assert(u===3);const oe=p.saveEmitState();let pe;const Ce=je=>(pe||(pe=[])).push(je),de=[],{emitResult:ie}=T7(p,Ce,void 0,void 0,(je,ot,Bt,vt,$e,It)=>de.push({name:je,text:ot,writeByteOrderMark:Bt,data:It}),ne,!1,he||((Y=(ye=t.host).getCustomTransformers)==null?void 0:Y.call(ye,r)));if(pe)return p.restoreEmitState(oe),{buildResult:h,step:u}=Rce(t,i,p,s,pe,32,"Declaration file"),{emitSkipped:!0,diagnostics:ie.diagnostics};const{host:ve,compilerHost:Le}=t,Ue=(X=p.hasChangedEmitSignature)!=null&&X.call(p)?0:2,Ee=ER(),De=new Map,Me=p.getCompilerOptions(),We=sP(Me);let At,Se;return de.forEach(({name:je,text:ot,writeByteOrderMark:Bt,data:vt})=>{const $e=Pf(t,je);De.set(Pf(t,je),je),vt!=null&&vt.buildInfo&&Nce(t,vt.buildInfo,i,Me,Ue);const It=vt!=null&&vt.differsOnlyInMap?gA(t.host,je):void 0;LC(G?{writeFile:G}:Le,Ee,je,ot,Bt),vt!=null&&vt.differsOnlyInMap?t.host.setModifiedTime(je,It):!We&&t.watch&&(At||(At=Dce(t,i))).set($e,Se||(Se=Uw(t.host)))}),Q(Ee,De,de.length?de[0].name:eJ(s,!ve.useCaseSensitiveFileNames()),Ue),ie}function K(G,ne){N.assertIsDefined(p),N.assert(u===5);const he=p.emitBuildInfo((ye,Y,X,oe,pe,Ce)=>{Ce!=null&&Ce.buildInfo&&Nce(t,Ce.buildInfo,i,p.getCompilerOptions(),2),G?G(ye,Y,X,oe,pe,Ce):t.compilerHost.writeFile(ye,Y,X,oe,pe,Ce)},ne);return he.diagnostics.length&&(P7(t,he.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...he.diagnostics]),h=64&h),he.emittedFiles&&t.write&&he.emittedFiles.forEach(ye=>lRe(t,s,ye)),xce(t,p,s),u=7,he}function Q(G,ne,he,ye){const Y=G.getDiagnostics();return Y.length?({buildResult:h,step:u}=Rce(t,i,p,s,Y,64,"Emit"),Y):(t.write&&ne.forEach(X=>lRe(t,s,X)),dRe(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,ne),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:he}),xce(t,p,s),u=7,h=ye,Y)}function V(G,ne){var he,ye,Y,X;if(N.assert(e===1),t.options.dry){Rd(t,f.A_non_dry_build_would_update_output_of_project_0,r),h=1,u=7;return}t.options.verbose&&Rd(t,f.Updating_output_of_project_0,r);const{compilerHost:oe}=t;t.projectCompilerOptions=s.options,(ye=(he=t.host).beforeEmitBundle)==null||ye.call(he,s);const pe=Wle(s,oe,Ue=>{const Ee=YP(t,Ue.path);return EI(t,Ee,W_(t,Ee))},ne||((X=(Y=t.host).getCustomTransformers)==null?void 0:X.call(Y,r)));if(Mo(pe))return Rd(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,lu(t,pe)),u=6,m=oRe(0,t,r,i,o,s,l);N.assert(!!pe.length);const Ce=ER(),de=new Map;let ie=2;const ve=t.buildInfoCache.get(i).buildInfo||void 0;return pe.forEach(({name:Ue,text:Ee,writeByteOrderMark:De,data:Me})=>{var We,At;de.set(Pf(t,Ue),Ue),Me!=null&&Me.buildInfo&&(((We=Me.buildInfo.program)==null?void 0:We.outSignature)!==((At=ve==null?void 0:ve.program)==null?void 0:At.outSignature)&&(ie&=-3),Nce(t,Me.buildInfo,i,s.options,ie)),LC(G?{writeFile:G}:oe,Ce,Ue,Ee,De)}),{emitSkipped:!1,diagnostics:Q(Ce,de,pe[0].name,ie)}}function se(G,ne,he,ye){for(;u<=G&&u<8;){const Y=u;switch(u){case 0:R();break;case 1:C(ne);break;case 2:O(ne);break;case 3:U(he,ne,ye);break;case 5:K(he,ne);break;case 4:V(he,ye);break;case 6:N.checkDefined(m).done(ne,he,ye),u=8;break;case 7:pHe(t,r,i,o,s,l,N.checkDefined(h)),u++;break}N.assert(u>Y)}}}function sHe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!$S(r).length||!sP(r.options)}function aRe(e,t,r){if(!e.projectPendingBuild.size||bI(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s<t.length;s++){const l=t[s],u=W_(e,l),p=e.projectPendingBuild.get(u);if(p===void 0)continue;r&&(r=!1,SRe(e,t));const h=EI(e,l,u);if(!h){bRe(e,u),o.delete(u);continue}p===2?(hRe(e,l,u,h),gRe(e,u,h),vRe(e,l,u,h),kce(e,l,u,h),wce(e,l,u,h)):p===1&&(h.fileNames=CP(h.options.configFile.configFileSpecs,ai(l),h.options,e.parseConfigFileHost),fF(h.fileNames,l,h.options.configFile.configFileSpecs,h.errors,NP(h.raw)),kce(e,l,u,h),wce(e,l,u,h));const m=Mce(e,h,u);if(!i.force){if(m.type===1){eK(e,l,m),$P(e,u,$S(h)),o.delete(u),i.dry&&Rd(e,f.Project_0_is_up_to_date,l);continue}if(m.type===2||m.type===15)return $P(e,u,$S(h)),{kind:2,status:m,project:l,projectPath:u,projectIndex:s,config:h}}if(m.type===12){eK(e,l,m),$P(e,u,$S(h)),o.delete(u),i.verbose&&Rd(e,m.upstreamProjectBlocked?f.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:f.Skipping_build_of_project_0_because_its_dependency_1_has_errors,l,m.upstreamProjectName);continue}if(m.type===16){eK(e,l,m),$P(e,u,$S(h)),o.delete(u);continue}return{kind:sHe(e,m,h)?0:1,status:m,project:l,projectPath:u,projectIndex:s,config:h}}}function sRe(e,t,r){return eK(e,t.project,t.status),t.kind!==2?oRe(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,r):aHe(e,t.project,t.projectPath,t.config,r)}function Ice(e,t,r){const i=aRe(e,t,r);return i&&sRe(e,i,t)}function lRe({write:e},t,r){e&&t.options.listEmittedFiles&&e(`TSFILE: ${r}`)}function lHe({options:e,builderPrograms:t,compilerHost:r},i,o){if(e.force)return;const s=t.get(i);return s||R7(o.options,r)}function xce(e,t,r){t?(e.write&&zJ(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function Rce(e,t,r,i,o,s,l){const u=r&&!Ps(r.getCompilerOptions());return $P(e,t,o),e.projectStatus.set(t,{type:0,reason:`${l} errors`}),u?{buildResult:s,step:5}:(xce(e,r,i),{buildResult:s,step:7})}function QJ(e){return!!e.watcher}function cRe(e,t){const r=Pf(e,t),i=e.filesWatched.get(r);if(e.watch&&i){if(!QJ(i))return i;if(i.modifiedTime)return i.modifiedTime}const o=gA(e.host,t);return e.watch&&(i?i.modifiedTime=o:e.filesWatched.set(r,o)),o}function ZJ(e,t,r,i,o,s,l){const u=Pf(e,t),p=e.filesWatched.get(u);if(p&&QJ(p))p.callbacks.push(r);else{const h=e.watchFile(t,(m,y,T)=>{const A=N.checkDefined(e.filesWatched.get(u));N.assert(QJ(A)),A.modifiedTime=T,A.callbacks.forEach(R=>R(m,y,T))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:h,modifiedTime:p})}return{close:()=>{const h=N.checkDefined(e.filesWatched.get(u));N.assert(QJ(h)),h.callbacks.length===1?(e.filesWatched.delete(u),Cf(h)):_A(h.callbacks,r)}}}function Dce(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function Nce(e,t,r,i,o){const s=Hv(i),l=Cce(e,s,r),u=Uw(e.host);l?(l.buildInfo=t,l.modifiedTime=u,o&2||(l.latestChangedDtsTime=u)):e.buildInfoCache.set(r,{path:Pf(e,s),buildInfo:t,modifiedTime:u,latestChangedDtsTime:o&2?void 0:u})}function Cce(e,t,r){const i=Pf(e,t),o=e.buildInfoCache.get(r);return(o==null?void 0:o.path)===i?o:void 0}function uRe(e,t,r,i){const o=Pf(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;const l=e.readFileWithCache(t),u=l?n7(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||wp}),u}function Pce(e,t,r,i){const o=cRe(e,t);if(r<o)return{type:6,outOfDateOutputFileName:i,newerInputFileName:t}}function cHe(e,t,r){var i,o,s;if(!t.fileNames.length&&!NP(t.raw))return{type:16};let l;const u=!!e.options.force;if(t.projectReferences){e.projectStatus.set(r,{type:13});for(const Y of t.projectReferences){const X=pD(Y),oe=W_(e,X),pe=EI(e,X,oe),Ce=Mce(e,pe,oe);if(!(Ce.type===13||Ce.type===16)){if(Ce.type===0||Ce.type===12)return{type:12,upstreamProjectName:Y.path,upstreamProjectBlocked:Ce.type===12};if(Ce.type!==1)return{type:11,upstreamProjectName:Y.path};u||(l||(l=[])).push({ref:Y,refStatus:Ce,resolvedRefPath:oe,resolvedConfig:pe})}}}if(u)return{type:17};const{host:p}=e,h=Hv(t.options);let m,y=ARe,T,A,R;if(h){const Y=Cce(e,h,r);if(T=(Y==null?void 0:Y.modifiedTime)||gA(p,h),T===wp)return Y||e.buildInfoCache.set(r,{path:Pf(e,h),buildInfo:!1,modifiedTime:T}),{type:4,missingOutputFileName:h};const X=uRe(e,h,r,T);if(!X)return{type:5,fileName:h};if((X.bundle||X.program)&&X.version!==Re)return{type:14,version:X.version};if(X.program){if((i=X.program.changeFileSet)!=null&&i.length||(t.options.noEmit?bt(X.program.semanticDiagnosticsPerFile,To):(o=X.program.affectedFilesPendingEmit)!=null&&o.length||(s=X.program.emitDiagnosticsPerFile)!=null&&s.length))return{type:8,buildInfoFile:h};if(!t.options.noEmit&&mD(t.options,X.program.options||{}))return{type:9,buildInfoFile:h};A=X.program}y=T,m=h}let M,C=TRe,O=!1;const U=new Set;for(const Y of t.fileNames){const X=cRe(e,Y);if(X===wp)return{type:0,reason:`${Y} does not exist`};if(T&&T<X){let oe,pe;if(A){R||(R=PJ(A,h,p)),oe=R.fileInfos.get(Pf(e,Y));const Ce=oe?e.readFileWithCache(Y):void 0;pe=Ce!==void 0?A7(p,Ce):void 0,oe&&oe===pe&&(O=!0)}if(!oe||oe!==pe)return{type:6,outOfDateOutputFileName:h,newerInputFileName:Y}}X>C&&(M=Y,C=X),A&&U.add(Pf(e,Y))}if(A){R||(R=PJ(A,h,p));for(const Y of R.roots)if(!U.has(Y))return{type:10,buildInfoFile:h,inputFile:Y}}if(!h){const Y=e7(t,!p.useCaseSensitiveFileNames()),X=Dce(e,r);for(const oe of Y){const pe=Pf(e,oe);let Ce=X==null?void 0:X.get(pe);if(Ce||(Ce=gA(e.host,oe),X==null||X.set(pe,Ce)),Ce===wp)return{type:4,missingOutputFileName:oe};if(Ce<C)return{type:6,outOfDateOutputFileName:oe,newerInputFileName:M};Ce<y&&(y=Ce,m=oe)}}const K=e.buildInfoCache.get(r);let Q=!1,V=!1,se;if(l)for(const{ref:Y,refStatus:X,resolvedConfig:oe,resolvedRefPath:pe}of l){if(V=V||!!Y.prepend,X.newestInputFileTime&&X.newestInputFileTime<=y)continue;if(K&&uHe(e,K,pe))return{type:7,outOfDateOutputFileName:h,newerProjectName:Y.path};const Ce=dHe(e,oe.options,pe);if(Ce&&Ce<=y){Q=!0,se=Y.path;continue}return N.assert(m!==void 0,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:m,newerProjectName:Y.path}}const G=Pce(e,t.options.configFilePath,y,m);if(G)return G;const ne=Xe(t.options.configFile.extendedSourceFiles||et,Y=>Pce(e,Y,y,m));if(ne)return ne;const he=e.lastCachedPackageJsonLookups.get(r),ye=he&&fh(he,Y=>Pce(e,Y,y,m));return ye||(V&&Q?{type:3,outOfDateOutputFileName:m,newerProjectName:se}:{type:Q?2:O?15:1,newestInputFileTime:C,newestInputFileName:M,oldestOutputFileName:m})}function uHe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Mce(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;rl("SolutionBuilder::beforeUpToDateCheck");const o=cHe(e,t,r);return rl("SolutionBuilder::afterUpToDateCheck"),Qp("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function dRe(e,t,r,i,o){if(t.options.noEmit)return;let s;const l=Hv(t.options);if(l){o!=null&&o.has(Pf(e,l))||(e.options.verbose&&Rd(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=Uw(e.host)),Cce(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:u}=e,p=e7(t,!u.useCaseSensitiveFileNames()),h=Dce(e,r),m=h?new Set:void 0;if(!o||p.length!==o.size){let y=!!e.options.verbose;for(const T of p){const A=Pf(e,T);o!=null&&o.has(A)||(y&&(y=!1,Rd(e,i,t.options.configFilePath)),u.setModifiedTime(T,s||(s=Uw(e.host))),h&&(h.set(A,s),m.add(A)))}}h==null||h.forEach((y,T)=>{!(o!=null&&o.has(T))&&!m.has(T)&&h.delete(T)})}function dHe(e,t,r){if(!t.composite)return;const i=N.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(go(i.buildInfo.program.latestChangedDtsFile,ai(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function pRe(e,t,r){if(e.options.dry)return Rd(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);dRe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:eJ(t,!e.host.useCaseSensitiveFileNames())})}function pHe(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let u=i+1;u<s.length;u++){const p=s[u],h=W_(e,p);if(e.projectPendingBuild.has(h))continue;const m=EI(e,p,h);if(!(!m||!m.projectReferences))for(const y of m.projectReferences){const T=YP(e,y.path);if(W_(e,T)!==r)continue;const A=e.projectStatus.get(h);if(A)switch(A.type){case 1:if(l&2){y.prepend?e.projectStatus.set(h,{type:3,outOfDateOutputFileName:A.oldestOutputFileName,newerProjectName:t}):A.type=2;break}case 15:case 2:case 3:l&2||e.projectStatus.set(h,{type:7,outOfDateOutputFileName:A.type===3?A.outOfDateOutputFileName:A.oldestOutputFileName,newerProjectName:t});break;case 12:W_(e,YP(e,A.upstreamProjectName))===r&&tRe(e,h);break}nRe(e,h,0);break}}}function fRe(e,t,r,i,o,s){rl("SolutionBuilder::beforeBuild");const l=fHe(e,t,r,i,o,s);return rl("SolutionBuilder::afterBuild"),Qp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),l}function fHe(e,t,r,i,o,s){const l=Zxe(e,t,s);if(!l)return 3;rRe(e,r);let u=!0,p=0;for(;;){const h=Ice(e,l,u);if(!h)break;u=!1,h.done(r,i,o==null?void 0:o(h.project)),e.diagnostics.has(h.projectPath)||p++}return Ace(e),ERe(e,l),gHe(e,l),bI(l)?4:l.some(h=>e.diagnostics.has(W_(e,h)))?p?2:1:0}function mRe(e,t,r){rl("SolutionBuilder::beforeClean");const i=mHe(e,t,r);return rl("SolutionBuilder::afterClean"),Qp("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function mHe(e,t,r){const i=Zxe(e,t,r);if(!i)return 3;if(bI(i))return P7(e,i.circularDiagnostics),4;const{options:o,host:s}=e,l=o.dry?[]:void 0;for(const u of i){const p=W_(e,u),h=EI(e,u,p);if(h===void 0){bRe(e,p);continue}const m=e7(h,!s.useCaseSensitiveFileNames());if(!m.length)continue;const y=new Set(h.fileNames.map(T=>Pf(e,T)));for(const T of m)y.has(Pf(e,T))||s.fileExists(T)&&(l?l.push(T):(s.deleteFile(T),Lce(e,p,0)))}return l&&Rd(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r
* ${u}`).join("")),0}function Lce(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,tRe(e,t),nRe(e,t,r),eRe(e)}function C7(e,t,r){e.reportFileChangeDetected=!0,Lce(e,t,r),_Re(e,250,!0)}function _Re(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(_He,t,"timerToBuildInvalidatedProject",e,r))}function _He(e,t,r){rl("SolutionBuilder::beforeBuild");const i=hHe(t,r);rl("SolutionBuilder::afterBuild"),Qp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&ERe(t,i)}function hHe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Oce(e,f.File_change_detected_Starting_incremental_compilation));let r=0;const i=N7(e),o=Ice(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=aRe(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){_Re(e,100,!1);return}sRe(e,s,i).done(),s.kind!==2&&r++}return Ace(e),i}function hRe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,ZJ(e,t,()=>C7(e,r,2),2e3,i==null?void 0:i.watchOptions,Lc.ConfigFile,t))}function gRe(e,t,r){o7(t,r==null?void 0:r.options,e.allWatchedExtendedConfigFiles,(i,o)=>ZJ(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>C7(e,l,2))},2e3,r==null?void 0:r.watchOptions,Lc.ExtendedConfigFile),i=>Pf(e,i))}function vRe(e,t,r,i){e.watch&&kw(Sce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;ww({watchedDirPath:Pf(e,o),fileOrDirectory:l,fileOrDirectoryPath:Pf(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=iHe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Pf(e,p)})||C7(e,r,1)},s,i==null?void 0:i.watchOptions,Lc.WildcardDirectory,t))}function kce(e,t,r,i){e.watch&&UC(Sce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>ZJ(e,o,()=>C7(e,r,0),250,i==null?void 0:i.watchOptions,Lc.SourceFile,t),onDeleteValue:Xm})}function wce(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||UC(Sce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>ZJ(e,o,()=>C7(e,r,0),2e3,i==null?void 0:i.watchOptions,Lc.PackageJson,t),onDeleteValue:Xm})}function gHe(e,t){if(e.watchAllProjectsPending){rl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of D7(t)){const i=W_(e,r),o=EI(e,r,i);hRe(e,r,i,o),gRe(e,i,o),o&&(vRe(e,r,i,o),kce(e,r,i,o),wce(e,r,i,o))}rl("SolutionBuilder::afterWatcherCreation"),Qp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function vHe(e){ep(e.allWatchedConfigFiles,Xm),ep(e.allWatchedExtendedConfigFiles,Cf),ep(e.allWatchedWildcardDirectories,t=>ep(t,Cf)),ep(e.allWatchedInputFiles,t=>ep(t,Xm)),ep(e.allWatchedPackageJsonFiles,t=>ep(t,Xm))}function yRe(e,t,r,i,o){const s=rHe(e,t,r,i,o);return{build:(l,u,p,h)=>fRe(s,l,u,p,h),clean:l=>mRe(s,l),buildReferences:(l,u,p,h)=>fRe(s,l,u,p,h,!0),cleanReferences:l=>mRe(s,l,!0),getNextInvalidatedProject:l=>(rRe(s,l),Ice(s,N7(s),!1)),getBuildOrder:()=>N7(s),getUpToDateStatusOfProject:l=>{const u=YP(s,l),p=W_(s,u);return Mce(s,EI(s,u,p),p)},invalidateProject:(l,u)=>Lce(s,l,u||0),close:()=>vHe(s)}}function lu(e,t){return eC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Rd(e,t,...r){e.host.reportSolutionBuilderStatus(Ul(t,...r))}function Oce(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Ul(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function P7({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function $P(e,t,r){P7(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function bRe(e,t){$P(e,t,[e.configFileCache.get(t)])}function ERe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];bI(t)?(SRe(e,t.buildOrder),P7(e,t.circularDiagnostics),r&&(o+=E7(t.circularDiagnostics)),r&&(s=[...s,...S7(t.circularDiagnostics)])):(t.forEach(l=>{const u=W_(e,l);e.projectErrorsReported.has(u)||P7(e,i.get(u)||et)}),r&&i.forEach(l=>o+=E7(l)),r&&i.forEach(l=>[...s,...S7(l)])),e.watch?Oce(e,FJ(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function SRe(e,t){e.options.verbose&&Rd(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r
* `+lu(e,r)).join(""))}function yHe(e,t,r){switch(r.type){case 6:return Rd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,lu(e,t),lu(e,r.outOfDateOutputFileName),lu(e,r.newerInputFileName));case 7:return Rd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,lu(e,t),lu(e,r.outOfDateOutputFileName),lu(e,r.newerProjectName));case 4:return Rd(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,lu(e,t),lu(e,r.missingOutputFileName));case 5:return Rd(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,lu(e,t),lu(e,r.fileName));case 8:return Rd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,lu(e,t),lu(e,r.buildInfoFile));case 9:return Rd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,lu(e,t),lu(e,r.buildInfoFile));case 10:return Rd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,lu(e,t),lu(e,r.buildInfoFile),lu(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Rd(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,lu(e,t),lu(e,r.newestInputFileName||""),lu(e,r.oldestOutputFileName||""));break;case 3:return Rd(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,lu(e,t),lu(e,r.newerProjectName));case 2:return Rd(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,lu(e,t));case 15:return Rd(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,lu(e,t));case 11:return Rd(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,lu(e,t),lu(e,r.upstreamProjectName));case 12:return Rd(e,r.upstreamProjectBlocked?f.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:f.Project_0_can_t_be_built_because_its_dependency_1_has_errors,lu(e,t),lu(e,r.upstreamProjectName));case 0:return Rd(e,f.Failed_to_parse_file_0_Colon_1,lu(e,t),r.reason);case 14:return Rd(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,lu(e,t),r.version,Re);case 17:return Rd(e,f.Project_0_is_being_forcibly_rebuilt,lu(e,t))}}function eK(e,t,r){e.options.verbose&&yHe(e,t,r)}var TRe,ARe,tK,bHe=I({"src/compiler/tsbuildPublic.ts"(){ra(),sS(),TRe=new Date(-864e13),ARe=new Date(864e13),tK=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(tK||{})}}),ra=I({"src/compiler/_namespaces/ts.ts"(){at(),Pze(),Mze(),Vze(),Hze(),qze(),r9e(),HEe(),p9e(),g9e(),v9e(),T9e(),N9e(),RBe(),DBe(),NBe(),CBe(),WBe(),FBe(),zBe(),BBe(),fGe(),mGe(),AGe(),VGe(),mVe(),bVe(),EVe(),wVe(),GVe(),XVe(),nje(),_je(),hje(),Ije(),xje(),Rje(),kje(),wje(),Oje(),Wje(),Fje(),zje(),Bje(),Gje(),Vje(),Hje(),qje(),Jje(),Kje(),Xje(),$je(),Qje(),Zje(),eUe(),tUe(),nUe(),lUe(),mUe(),AUe(),xUe(),CUe(),PUe(),MUe(),HUe(),qUe(),XUe(),QUe(),ZUe(),eHe(),bHe(),zse(),sS()}});function IRe(e){return gu.args.includes(e)}function xRe(e){const t=gu.args.indexOf(e);return t>=0&&t<gu.args.length-1?gu.args[t+1]:void 0}function RRe(){const e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`}function QP(e){return Wce+e.replace(/\n/g,Wce)}function N0(e){return QP(JSON.stringify(e,void 0,2))}var Hw,qw,Jw,M7,L7,k7,nK,ZP,rK,Wce,EHe=I({"src/jsTyping/shared.ts"(){Kw(),Hw="action::set",qw="action::invalidate",Jw="action::packageInstalled",M7="event::typesRegistry",L7="event::beginInstallTypes",k7="event::endInstallTypes",nK="event::initializationFailed",ZP="action::watchTypingLocations",(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(rK||(rK={})),Wce=`
`}}),SHe=I({"src/jsTyping/types.ts"(){}}),w7=I({"src/jsTyping/_namespaces/ts.server.ts"(){EHe(),SHe()}});function DRe(e,t){return new hm(E6(t,`ts${_e}`)||E6(t,"latest")).compareTo(e.version)<=0}function NRe(e){return Vce.has(e)?"node":e}function THe(e,t){const r=sw(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function AHe(e,t){var r;const i=sw(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function IHe(e,t,r,i,o,s,l,u,p,h){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const m=new Map;r=eo(r,Q=>{const V=ha(Q);if(UE(V))return V});const y=[];l.include&&O(l.include,"Explicitly included types");const T=l.exclude||[];if(!h.types){const Q=new Set(r.map(ai));Q.add(i),Q.forEach(V=>{U(V,"bower.json","bower_components",y),U(V,"package.json","node_modules",y)})}if(l.disableFilenameBasedTypeAcquisition||K(r),u){const Q=SE(u.map(NRe),oS,Uu);O(Q,"Inferred typings from unresolved imports")}for(const Q of T)m.delete(Q)&&t&&t(`Typing for ${Q} is in exclude list, will be ignored.`);s.forEach((Q,V)=>{const se=p.get(V);m.get(V)===!1&&se!==void 0&&DRe(Q,se)&&m.set(V,Q.typingLocation)});const A=[],R=[];m.forEach((Q,V)=>{Q?R.push(Q):A.push(V)});const M={cachedTypingPaths:R,newTypingNames:A,filesToWatch:y};return t&&t(`Finished typings discovery:${N0(M)}`),M;function C(Q){m.has(Q)||m.set(Q,!1)}function O(Q,V){t&&t(`${V}: ${JSON.stringify(Q)}`),Xe(Q,C)}function U(Q,V,se,G){const ne=$r(Q,V);let he,ye;e.fileExists(ne)&&(G.push(ne),he=sw(ne,pe=>e.readFile(pe)).config,ye=Do([he.dependencies,he.devDependencies,he.optionalDependencies,he.peerDependencies],Hh),O(ye,`Typing names in '${ne}' dependencies`));const Y=$r(Q,se);if(G.push(Y),!e.directoryExists(Y))return;const X=[],oe=ye?ye.map(pe=>$r(Y,pe,V)):e.readDirectory(Y,[".json"],void 0,void 0,3).filter(pe=>{if(ic(pe)!==V)return!1;const Ce=Wc(ha(pe)),de=Ce[Ce.length-3][0]==="@";return de&&sh(Ce[Ce.length-4])===se||!de&&sh(Ce[Ce.length-3])===se});t&&t(`Searching for typing names in ${Y}; all files: ${JSON.stringify(oe)}`);for(const pe of oe){const Ce=ha(pe),ie=sw(Ce,Le=>e.readFile(Le)).config;if(!ie.name)continue;const ve=ie.types||ie.typings;if(ve){const Le=go(ve,ai(Ce));e.fileExists(Le)?(t&&t(` Package '${ie.name}' provides its own types.`),m.set(ie.name,Le)):t&&t(` Package '${ie.name}' provides its own types but they are missing.`)}else X.push(ie.name)}O(X," Found package names")}function K(Q){const V=eo(Q,G=>{if(!UE(G))return;const ne=Ad(sh(ic(G))),he=YB(ne);return o.get(he)});V.length&&O(V,"Inferred typings from file names"),bt(Q,G=>Il(G,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),C("react"))}}function xHe(e){return Fce(e,!0)}function Fce(e,t){if(!e)return 1;if(e.length>Uce)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=Fce(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=Fce(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function RHe(e,t){return typeof e=="object"?CRe(t,e.result,e.name,e.isScopeName):CRe(t,e,t,!1)}function CRe(e,t,r,i){const o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${Uce} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return N.fail();default:N.assertNever(t)}}var zce,Bce,Gce,Vce,jce,Uce,DHe=I({"src/jsTyping/jsTyping.ts"(){Kw(),w7(),zce=["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"],Bce=zce.map(e=>`node:${e}`),Gce=[...zce,...Bce],Vce=new Set(Gce),jce=(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))(jce||{}),Uce=214}}),F_={};ee(F_,{NameValidationResult:()=>jce,discoverTypings:()=>IHe,isTypingUpToDate:()=>DRe,loadSafeList:()=>THe,loadTypesMap:()=>AHe,nodeCoreModuleList:()=>Gce,nodeCoreModules:()=>Vce,nonRelativeModuleNameForTypingCache:()=>NRe,prefixedNodeCoreModuleList:()=>Bce,renderPackageNameValidationFailure:()=>RHe,validatePackageName:()=>xHe});var NHe=I({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){DHe()}}),Kw=I({"src/jsTyping/_namespaces/ts.ts"(){ra(),NHe(),w7()}});function O7(e){return{indentSize:4,tabSize:4,newLineCharacter:e||`
`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var W7,iK,oK,aK,Mf,sK,lK,cK,uK,dK,pK,fK,Hce,Xw,mK,_K,hK,gK,vK,yK,bK,EK,SK,CHe=I({"src/services/types.ts"(){(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(W7||(W7={})),iK=(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))(iK||{}),oK=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(oK||{}),aK=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(aK||{}),Mf={},sK=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(sK||{}),lK=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(lK||{}),cK=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(cK||{}),uK=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(uK||{}),dK=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(dK||{}),pK=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(pK||{}),fK=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(fK||{}),Hce=O7(`
`),Xw=(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))(Xw||{}),mK=(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))(mK||{}),_K=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(_K||{}),hK=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(hK||{}),gK=(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))(gK||{}),vK=(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))(vK||{}),yK=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(yK||{}),bK=(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))(bK||{}),EK=(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))(EK||{}),SK=(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))(SK||{})}});function Yw(e){switch(e.kind){case 260:return lr(e)&&xV(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return ku(e)||jg(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function ZS(e){e=wK(e);const t=e.parent;return e.kind===312?1:kl(t)||Ku(t)||Sh(t)||tp(t)||bh(t)||eu(t)&&e===t.name?7:F7(e)?PHe(e):wg(e)?Yw(t):Qd(e)&&Vn(e,Jm(SP,xA,b0))?7:wHe(e)?2:MHe(e)?4:hl(t)?(N.assert(om(t.parent)),2):Jy(t)?3:1}function PHe(e){const t=e.kind===166?e:Id(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function F7(e){for(;e.parent.kind===166;)e=e.parent;return uR(e.parent)&&e.parent.moduleReference===e}function MHe(e){return LHe(e)||kHe(e)}function LHe(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function kHe(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){const i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function wHe(e){switch(zC(e)&&(e=e.parent),e.kind){case 110:return!Qh(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return $h(e.parent)}return!1}function TK(e,t=!1,r=!1){return $w(e,sa,IK,t,r)}function eM(e,t=!1,r=!1){return $w(e,$E,IK,t,r)}function AK(e,t=!1,r=!1){return $w(e,S_,IK,t,r)}function qce(e,t=!1,r=!1){return $w(e,QE,OHe,t,r)}function Jce(e,t=!1,r=!1){return $w(e,Eu,IK,t,r)}function Kce(e,t=!1,r=!1){return $w(e,ld,WHe,t,r)}function IK(e){return e.expression}function OHe(e){return e.tag}function WHe(e){return e.tagName}function $w(e,t,r,i,o){let s=i?Xce(e):z7(e);return o&&(s=$l(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function z7(e){return vD(e)?e.parent:e}function Xce(e){return vD(e)||NK(e)?e.parent:e}function B7(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function Qw(e,t){return Fr(e.expression)?e.expression.name.text===t:!1}function Zw(e){var t;return Ve(e)&&((t=ri(e.parent,cC))==null?void 0:t.label)===e}function xK(e){var t;return Ve(e)&&((t=ri(e.parent,ZE))==null?void 0:t.label)===e}function RK(e){return xK(e)||Zw(e)}function DK(e){var t;return((t=ri(e.parent,Qx))==null?void 0:t.tagName)===e}function Yce(e){var t;return((t=ri(e.parent,Id))==null?void 0:t.right)===e}function vD(e){var t;return((t=ri(e.parent,Fr))==null?void 0:t.name)===e}function NK(e){var t;return((t=ri(e.parent,$s))==null?void 0:t.argumentExpression)===e}function CK(e){var t;return((t=ri(e.parent,Xl))==null?void 0:t.name)===e}function PK(e){var t;return Ve(e)&&((t=ri(e.parent,ea))==null?void 0:t.name)===e}function G7(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Lo(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function $ce(e){return c0(e.parent.parent)&&TC(e.parent.parent)===e}function eT(e){for($f(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function f1(e){switch(e.kind){case 312:return sc(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(R_(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:r}=e;return ea(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Qr(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const i=zl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=f1(o);return l===""?"const":l;case 3:return Os(o)?"method":"property";case 4:return"property";case 5:return Os(o)?"method":"property";case 6:return"local class";default:return""}case 80:return bh(e.parent)?"alias":"";case 277:const s=f1(e.expression);return s===""?"const":s;default:return""}function t(r){return iR(r)?"const":O4(r)?"let":"var"}}function yD(e){switch(e.kind){case 110:return!0;case 80:return qj(e)&&e.parent.kind===169;default:return!1}}function am(e,t){const r=Ng(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function sf(e,t){return MK(e.pos,e.end,t)}function Qce(e,t){return tO(e,t.pos)&&tO(e,t.end)}function eO(e,t){return e.pos<=t&&t<=e.end}function tO(e,t){return e.pos<t&&t<e.end}function MK(e,t,r){return e<=r.pos&&t>=r.end}function nO(e,t,r){return e.pos<=t&&e.end>=r}function tM(e,t,r){return j7(e.pos,e.end,t,r)}function V7(e,t,r,i){return j7(e.getStart(t),e.end,r,i)}function j7(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return o<s}function LK(e,t,r){return N.assert(e.pos<=t),t<e.end||!t_(e,r)}function t_(e,t){if(e===void 0||Fl(e))return!1;switch(e.kind){case 263:case 264:case 266:case 210:case 206:case 187:case 241:case 268:case 269:case 275:case 279:return kK(e,20,t);case 299:return t_(e.block,t);case 214:if(!e.arguments)return!0;case 213:case 217:case 196:return kK(e,22,t);case 184:case 185:return t_(e.type,t);case 176:case 177:case 178:case 262:case 218:case 174:case 173:case 180:case 179:case 219:return e.body?t_(e.body,t):e.type?t_(e.type,t):rO(e,22,t);case 267:return!!e.body&&t_(e.body,t);case 245:return e.elseStatement?t_(e.elseStatement,t):t_(e.thenStatement,t);case 244:return t_(e.expression,t)||rO(e,27,t);case 209:case 207:case 212:case 167:case 189:return kK(e,24,t);case 181:return e.type?t_(e.type,t):rO(e,24,t);case 296:case 297:return!1;case 248:case 249:case 250:case 247:return t_(e.statement,t);case 246:return rO(e,117,t)?kK(e,22,t):t_(e.statement,t);case 186:return t_(e.exprName,t);case 221:case 220:case 222:case 229:case 230:return t_(e.expression,t);case 215:return t_(e.template,t);case 228:const i=el(e.templateSpans);return t_(i,t);case 239:return Kf(e.literal);case 278:case 272:return Kf(e.moduleSpecifier);case 224:return t_(e.operand,t);case 226:return t_(e.right,t);case 227:return t_(e.whenFalse,t);default:return!0}}function kK(e,t,r){const i=e.getChildren(r);if(i.length){const o=Xa(i);if(o.kind===t)return!0;if(o.kind===27&&i.length!==1)return i[i.length-2].kind===t}return!1}function Zce(e){const t=U7(e);if(!t)return;const r=t.getChildren();return{listItemIndex:tR(r,e),list:t}}function rO(e,t,r){return!!vs(e,t,r)}function vs(e,t,r){return In(e.getChildren(r),i=>i.kind===t)}function U7(e){const t=In(e.parent.getChildren(),r=>KR(r)&&sf(r,e));return N.assert(!t||Or(t.getChildren(),e)),t}function PRe(e){return e.kind===90}function FHe(e){return e.kind===86}function zHe(e){return e.kind===100}function BHe(e){if(ad(e))return e.name;if(Ac(e)){const t=e.modifiers&&In(e.modifiers,PRe);if(t)return t}if(Qc(e)){const t=In(e.getChildren(),FHe);if(t)return t}}function GHe(e){if(ad(e))return e.name;if(Tc(e)){const t=In(e.modifiers,PRe);if(t)return t}if(Os(e)){const t=In(e.getChildren(),zHe);if(t)return t}}function VHe(e){let t;return Vn(e,r=>(ji(r)&&(t=r),!Id(r.parent)&&!ji(r.parent)&&!fS(r.parent))),t}function H7(e,t){if(e.flags&16777216)return;const r=u5(e,t);if(r)return r;const i=VHe(e);return i&&t.getTypeAtLocation(i)}function jHe(e,t){if(!t)switch(e.kind){case 263:case 231:return BHe(e);case 262:case 218:return GHe(e);case 176:return e}if(ad(e))return e.name}function MRe(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(Bg(e.importClause.namedBindings)){const r=oh(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Yy(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function LRe(e,t){if(e.exportClause){if(Nf(e.exportClause))return oh(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Eh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function UHe(e){if(e.types.length===1)return e.types[0].expression}function kRe(e,t){const{parent:r}=e;if(Aa(e)&&(t||e.kind!==90)?Rm(r)&&Or(r.modifiers,e):e.kind===86?Ac(r)||Qc(e):e.kind===100?Tc(r)||Os(e):e.kind===120?md(r):e.kind===94?y0(r):e.kind===156?xm(r):e.kind===145||e.kind===144?Xl(r):e.kind===102?eu(r):e.kind===139?tf(r):e.kind===153&&vp(r)){const i=jHe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&Vc(r)&&r.declarations.length===1){const i=r.declarations[0];if(Ve(i.name))return i.name}if(e.kind===156){if(bh(r)&&r.isTypeOnly){const i=MRe(r.parent,t);if(i)return i}if(Yl(r)&&r.isTypeOnly){const i=LRe(r,t);if(i)return i}}if(e.kind===130){if(tp(r)&&r.propertyName||Ku(r)&&r.propertyName||Yy(r)||Eh(r))return r.name;if(Yl(r)&&r.exportClause&&Eh(r.exportClause))return r.exportClause.name}if(e.kind===102&&Mc(r)){const i=MRe(r,t);if(i)return i}if(e.kind===95){if(Yl(r)){const i=LRe(r,t);if(i)return i}if(kl(r))return $l(r.expression)}if(e.kind===149&&Sh(r))return r.expression;if(e.kind===161&&(Mc(r)||Yl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&nf(r)&&r.token===e.kind){const i=UHe(r);if(i)return i}if(e.kind===96){if(hl(r)&&r.constraint&&Df(r.constraint))return r.constraint.typeName;if(rI(r)&&Df(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&kS(r))return r.typeParameter.name;if(e.kind===103&&hl(r)&&GR(r.parent))return r.name;if(e.kind===143&&OS(r)&&r.operator===143&&Df(r.type))return r.type.typeName;if(e.kind===148&&OS(r)&&r.operator===148&&Vk(r.type)&&Df(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&$E(r)||e.kind===116&&iI(r)||e.kind===114&&VR(r)||e.kind===135&&Ky(r)||e.kind===127&&HW(r)||e.kind===91&&pae(r))&&r.expression)return $l(r.expression);if((e.kind===103||e.kind===104)&&mr(r)&&r.operatorToken===e)return $l(r.right);if(e.kind===130&&Uk(r)&&Df(r.type))return r.type.typeName;if(e.kind===103&&JW(r)||e.kind===165&&Hk(r))return $l(r.expression)}return e}function wK(e){return kRe(e,!1)}function q7(e){return kRe(e,!0)}function Vd(e,t){return bD(e,t,r=>x_(r)||Bd(r.kind)||qi(r))}function bD(e,t,r){return wRe(e,t,!1,r,!1)}function po(e,t){return wRe(e,t,!0,void 0,!1)}function wRe(e,t,r,i,o){let s=e,l;e:for(;;){const p=s.getChildren(e),h=pA(p,t,(m,y)=>y,(m,y)=>{const T=p[m].getEnd();if(T<t)return-1;const A=r?p[m].getFullStart():p[m].getStart(e,!0);return A>t?1:u(p[m],A,T)?p[m-1]&&u(p[m-1])?1:0:i&&A===t&&p[m-1]&&p[m-1].getEnd()===t&&u(p[m-1])?1:-1});if(l)return l;if(h>=0&&p[h]){s=p[h];continue e}return s}function u(p,h,m){if(m??(m=p.getEnd()),m<t||(h??(h=r?p.getFullStart():p.getStart(e,!0)),h>t))return!1;if(t<m||t===m&&(p.kind===1||o))return!0;if(i&&m===t){const y=Ic(t,e,p);if(y&&i(y))return l=y,!0}return!1}}function eue(e,t){let r=po(e,t);for(;K7(r);){const i=m1(r,r.parent,e);if(!i)return;r=i}return r}function J7(e,t){const r=po(e,t);return EA(r)&&t>r.getStart(e)&&t<r.getEnd()?r:Ic(t,e)}function m1(e,t,r){return i(t);function i(o){return EA(o)&&o.pos===e.end?o:Ht(o.getChildren(r),s=>(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&sue(s,r)?i(s):void 0)}}function Ic(e,t,r,i){const o=s(r||t);return N.assert(!(o&&K7(o))),o;function s(l){if(ORe(l)&&l.kind!==1)return l;const u=l.getChildren(t),p=pA(u,e,(m,y)=>y,(m,y)=>e<u[m].end?!u[m-1]||e>=u[m-1].end?0:1:-1);if(p>=0&&u[p]){const m=u[p];if(e<m.end)if(m.getStart(t,!i)>=e||!sue(m,t)||K7(m)){const A=nue(u,p,t,l.kind);return A?!i&&E4(A)&&A.getChildren(t).length?s(A):tue(A,t):void 0}else return s(m)}N.assert(r!==void 0||l.kind===312||l.kind===1||E4(l));const h=nue(u,u.length,t,l.kind);return h&&tue(h,t)}}function ORe(e){return EA(e)&&!K7(e)}function tue(e,t){if(ORe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=nue(r,r.length,t,e.kind);return i&&tue(i,t)}function nue(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(K7(s))o===0&&(i===12||i===285)&&N.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(sue(e[o],r))return e[o]}}function SI(e,t,r=Ic(t,e)){if(r&&kV(r)){const i=r.getStart(e),o=r.getEnd();if(i<t&&t<o)return!0;if(t===o)return!!r.isUnterminated}return!1}function rue(e,t){const r=po(e,t);return r?!!(r.kind===12||r.kind===30&&r.parent.kind===12||r.kind===30&&r.parent.kind===294||r&&r.kind===20&&r.parent.kind===294||r.kind===30&&r.parent.kind===287):!1}function K7(e){return KA(e)&&e.containsOnlyTriviaWhiteSpaces}function OK(e,t){const r=po(e,t);return Ny(r.kind)&&t>r.getStart(e)}function iue(e,t){const r=po(e,t);return!!(KA(r)||r.kind===19&&bP(r.parent)&&sg(r.parent.parent)||r.kind===30&&ld(r.parent)&&sg(r.parent.parent))}function X7(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(po(e,t))}function Y7(e,t,r){const i=pa(e.kind),o=pa(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)<l){const h=Ic(l+1,r);if(h&&h.kind===t)return h}const u=e.kind;let p=0;for(;;){const h=Ic(e.getFullStart(),r);if(!h)return;if(e=h,e.kind===t){if(p===0)return e;p--}else e.kind===u&&p++}}function oue(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function iO(e,t,r){const i=FK(e,t);return i!==void 0&&($h(i.called)||WK(i.called,i.nTypeArguments,r).length!==0||iO(i.called,t,r))}function WK(e,t,r){let i=r.getTypeAtLocation(e);return qu(e.parent)&&(i=oue(i,sC(e.parent),!0)),($E(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(s=>!!s.typeParameters&&s.typeParameters.length>=t)}function FK(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 30:if(r=Ic(r.getFullStart(),t),r&&r.kind===29&&(r=Ic(r.getFullStart(),t)),!r||!Ve(r))return;if(!i)return wg(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=Y7(r,19,t),!r)return;break;case 22:if(r=Y7(r,21,t),!r)return;break;case 24:if(r=Y7(r,23,t),!r)return;break;case 28:o++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(ji(r))break;return}r=Ic(r.getFullStart(),t)}}function qv(e,t,r){return kc.getRangeOfEnclosingComment(e,t,void 0,r)}function aue(e,t){const r=po(e,t);return!!Vn(r,Zm)}function sue(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function nM(e,t=0){const r=[],i=Ju(e)?SV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Rl(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function lue(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(ea(e)||e.kind===263||e.kind===264)return e.typeParameters}function $7(e){return e===2||e===3}function zK(e){return!!(e===11||e===14||Ny(e))}function WRe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function cue(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(WRe(r,t[0],t[1])||WRe(r,t[1],t[0]))}function oO(e,t,r){return Ny(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function BK(e){switch(e){case 125:case 123:case 124:return!0}return!1}function GK(e){const t=qB(e);return KH(t,e&&e.configFile),t}function Jv(e){return!!((e.kind===209||e.kind===210)&&(e.parent.kind===226&&e.parent.left===e&&e.parent.operatorToken.kind===64||e.parent.kind===250&&e.parent.initializer===e||Jv(e.parent.kind===303?e.parent.parent:e.parent)))}function uue(e,t){return FRe(e,t,!0)}function due(e,t){return FRe(e,t,!1)}function FRe(e,t,r){const i=qv(e,t,void 0);return!!i&&r===qRe.test(e.text.substring(i.pos,i.end))}function VK(e){if(e)switch(e.kind){case 11:case 15:return jK(e);default:return Dd(e)}}function Dd(e,t,r){return pc(e.getStart(t),(r||e).getEnd())}function jK(e){if(!e.isUnterminated)return pc(e.getStart()+1,e.getEnd()-1)}function UK(e,t){return Af(e.getStart(t),e.end)}function tb(e){return pc(e.pos,e.end)}function Q7(e){return Af(e.start,e.start+e.length)}function Z7(e,t,r){return aO(vu(e,t),r)}function aO(e,t){return{span:e,newText:t}}function rM(e){return Or(A5,e)}function HK(e){return e.kind===156}function e5(e){return HK(e)||Ve(e)&&e.text==="type"}function sO(e){return!!(e.flags&1536)&&e.name.charCodeAt(0)===34}function TI(){const e=[];return t=>{const r=as(t);return!e[r]&&(e[r]=!0)}}function ED(e){return e.getText(0,e.getLength())}function lO(e,t){let r="";for(let i=0;i<t;i++)r+=e;return r}function qK(e){return e.isTypeParameter()&&e.getConstraint()||e}function cO(e){return e.kind===167?ef(e.expression)?e.expression.text:void 0:qi(e)?Sr(e):Qf(e)}function pue(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function fue(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function JK(e){return!!e.module||os(e)>=2||!!e.noEmit}function tT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ia(t,t.readFile),useCaseSensitiveFileNames:ia(t,t.useCaseSensitiveFileNames),getSymlinkCache:ia(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ia(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ia(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ia(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function KK(e,t){return{...tT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function t5(e){return e===2||e>=3&&e<=99||e===100}function mue(e,t,r,i){return e||t&&t.length?Kv(e,t,r,i):void 0}function Kv(e,t,r,i,o){return w.createImportDeclaration(void 0,e||t?w.createImportClause(!!o,e,t&&t.length?w.createNamedImports(t):void 0):void 0,typeof r=="string"?AI(r,i):r,void 0)}function AI(e,t){return w.createStringLiteral(e,t===0)}function XK(e,t){return Z4(e,t)?1:0}function lf(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&In(e.imports,i=>Na(i)&&!Ys(i.parent));return r?XK(r,e):1}}function YK(e){switch(e){case 0:return"'";case 1:return'"';default:return N.assertNever(e)}}function n5(e){const t=r5(e);return t===void 0?void 0:Vi(t)}function r5(e){return e.escapedName!=="default"?e.escapedName:Ht(e.declarations,t=>{const r=Lo(t);return r&&r.kind===80?r.escapedText:void 0})}function i5(e){return ls(e)&&(Sh(e.parent)||Mc(e.parent)||Td(e.parent,!1)&&e.parent.arguments[0]===e||zp(e.parent)&&e.parent.arguments[0]===e)}function uO(e){return $a(e)&&im(e.parent)&&Ve(e.name)&&!e.propertyName}function o5(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function dO(e,t,r){if(e)for(;e.parent;){if($i(e.parent)||!HHe(r,e.parent,t))return e;e=e.parent}}function HHe(e,t,r){return EV(e,t.getStart(r))&&t.getEnd()<=Kl(e)}function SD(e,t){return Rm(e)?In(e.modifiers,r=>r.kind===t):void 0}function iM(e,t,r,i,o){const l=(To(r)?r[0]:r).kind===243?vj:gS,u=mn(t.statements,l);let p=To(r)?Cm.detectImportDeclarationSorting(r,o):3;const h=Cm.getOrganizeImportsComparer(o,p===2),m=To(r)?Sv(r,(y,T)=>Cm.compareImportsOrRequireStatements(y,T,h)):[r];if(!u.length)e.insertNodesAtTopOfFile(t,m,i);else if(u&&(p=Cm.detectImportDeclarationSorting(u,o))){const y=Cm.getOrganizeImportsComparer(o,p===2);for(const T of m){const A=Cm.getImportDeclarationInsertionIndex(u,T,y);if(A===0){const R=u[0]===t.statements[0]?{leadingTriviaOption:_r.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],T,!1,R)}else{const R=u[A-1];e.insertNodeAfter(t,R,T)}}}else{const y=el(u);y?e.insertNodesAfter(t,y,m):e.insertNodesAtTopOfFile(t,m,i)}}function $K(e,t){return N.assert(e.isTypeOnly),oa(e.getChildAt(0,t),HK)}function TD(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function QK(e,t,r){return(r?oS:$b)(e.fileName,t.fileName)&&TD(e.textSpan,t.textSpan)}function ZK(e){return(t,r)=>QK(t,r,e)}function eX(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 _ue(e,t,r){for(let i=t;i<r;i++)if(!Cg(e.charCodeAt(i)))return!1;return!0}function oM(e,t,r){const i=t.tryGetSourcePosition(e);return i&&(!r||r(ha(i.fileName))?i:void 0)}function a5(e,t,r){const{fileName:i,textSpan:o}=e,s=oM({fileName:i,pos:o.start},t,r);if(!s)return;const l=oM({fileName:i,pos:o.start+o.length},t,r),u=l?l.pos-s.pos:o.length;return{fileName:s.fileName,textSpan:{start:s.pos,length:u},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:tX(e,t,r),originalContextSpan:e.contextSpan}}function tX(e,t,r){const i=e.contextSpan&&oM({fileName:e.fileName,pos:e.contextSpan.start},t,r),o=e.contextSpan&&oM({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return i&&o?{start:i.pos,length:o.pos-i.pos}:void 0}function nX(e){const t=e.declarations?Kc(e.declarations):void 0;return!!Vn(t,r=>Ao(r)?!0:$a(r)||im(r)||YE(r)?!1:"quit")}function qHe(){const e=Sk*10;let t,r,i,o;m();const s=y=>u(y,17);return{displayParts:()=>{const y=t.length&&t[t.length-1].text;return o>e&&y&&y!=="..."&&(Cg(y.charCodeAt(y.length-1))||t.push(rp(" ",16)),t.push(rp("...",15))),t},writeKeyword:y=>u(y,5),writeOperator:y=>u(y,12),writePunctuation:y=>u(y,15),writeTrailingSemicolon:y=>u(y,15),writeSpace:y=>u(y,16),writeStringLiteral:y=>u(y,8),writeParameter:y=>u(y,13),writeProperty:y=>u(y,14),writeLiteral:y=>u(y,8),writeSymbol:p,writeLine:h,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Jo,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){const y=c3(i);y&&(o+=y.length,t.push(rp(y,16))),r=!1}}function u(y,T){o>e||(l(),o+=y.length,t.push(rp(y,T)))}function p(y,T){o>e||(l(),o+=y.length,t.push(hue(y,T)))}function h(){o>e||(o+=1,t.push(AD()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function hue(e,t){return rp(e,r(t));function r(i){const o=i.flags;return o&3?nX(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function rp(e,t){return{text:e,kind:Xw[t]}}function wl(){return rp(" ",16)}function Ep(e){return rp(pa(e),5)}function $u(e){return rp(pa(e),15)}function aM(e){return rp(pa(e),12)}function gue(e){return rp(e,13)}function vue(e){return rp(e,14)}function rX(e){const t=IE(e);return t===void 0?cf(e):Ep(t)}function cf(e){return rp(e,17)}function yue(e){return rp(e,0)}function bue(e){return rp(e,18)}function s5(e){return rp(e,24)}function Eue(e,t){return{text:e,kind:Xw[23],target:{fileName:Un(t).fileName,textSpan:Dd(t)}}}function iX(e){return rp(e,22)}function Sue(e,t){var r;const i=yae(e)?"link":bae(e)?"linkcode":"linkplain",o=[iX(`{@${i} `)];if(!e.name)e.text&&o.push(s5(e.text));else{const s=t==null?void 0:t.getSymbolAtLocation(e.name),l=s&&t?sX(s,t):void 0,u=KHe(e.text),p=fc(e.name)+e.text.slice(0,u),h=JHe(e.text.slice(u)),m=(l==null?void 0:l.valueDeclaration)||((r=l==null?void 0:l.declarations)==null?void 0:r[0]);if(m)o.push(Eue(p,m)),h&&o.push(s5(h));else{const y=u===0||e.text.charCodeAt(u)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(s5(p+y+h))}}return o.push(iX("}")),o}function JHe(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 KHe(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 Xv(e,t){var r;return(t==null?void 0:t.newLineCharacter)||((r=e.getNewLine)==null?void 0:r.call(e))||JRe}function AD(){return rp(`
`,6)}function nb(e){try{return e(AX),AX.displayParts()}finally{AX.clear()}}function pO(e,t,r,i=0){return nb(o=>{e.writeType(t,r,i|1024|16384,o)})}function sM(e,t,r,i,o=0){return nb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function oX(e,t,r,i=0){return i|=25632,nb(o=>{e.writeSignature(t,r,i,void 0,o)})}function zRe(e,t){const r=t.getSourceFile();return nb(i=>{Lw().writeNode(4,e,r,i)})}function Tue(e){return!!e.parent&&SA(e.parent)&&e.parent.propertyName===e}function aX(e,t){return z3(e,t.getScriptKind&&t.getScriptKind(e))}function sX(e,t){let r=e;for(;XHe(r)||ph(r)&&r.links.target;)ph(r)&&r.links.target?r=r.links.target:r=bu(r,t);return r}function XHe(e){return(e.flags&2097152)!==0}function Aue(e,t){return Sa(bu(e,t))}function Iue(e,t){for(;Cg(e.charCodeAt(t));)t+=1;return t}function l5(e,t){for(;t>-1&&E_(e.charCodeAt(t));)t-=1;return t+1}function ll(e,t=!0){const r=e&&BRe(e);return r&&!t&&Sp(r),r}function fO(e,t,r){let i=r(e);return i?Nr(i,e):i=BRe(e,r),i&&!t&&Sp(i),i}function BRe(e,t){const r=t?s=>fO(s,!0,t):ll,o=xn(e,r,void 0,t?s=>s&&lX(s,!0,t):s=>s&&_1(s),r);if(o===e){const s=Na(e)?Nr(w.createStringLiteralFromNode(e),e):hp(e)?Nr(w.createNumericLiteral(e.text,e.numericLiteralFlags),e):w.cloneNode(e);return dt(s,e)}return o.parent=void 0,o}function _1(e,t=!0){if(e){const r=w.createNodeArray(e.map(i=>ll(i,t)),e.hasTrailingComma);return dt(r,e),r}return e}function lX(e,t,r){return w.createNodeArray(e.map(i=>fO(i,t,r)),e.hasTrailingComma)}function Sp(e){cX(e),xue(e)}function cX(e){Rue(e,1024,$He)}function xue(e){Rue(e,2048,oU)}function nT(e,t){const r=e.getSourceFile(),i=r.text;YHe(e,i)?ID(e,t,r):_O(e,t,r),lM(e,t,r)}function YHe(e,t){const r=e.getFullStart(),i=e.getStart();for(let o=r;o<i;o++)if(t.charCodeAt(o)===10)return!0;return!1}function Rue(e,t,r){P_(e,t);const i=r(e);i&&Rue(i,t,r)}function $He(e){return e.forEachChild(t=>t)}function rT(e,t){let r=e;for(let i=1;!N4(t,r);i++)r=`${e}_${i}`;return r}function mO(e,t,r,i){let o=0,s=-1;for(const{fileName:l,textChanges:u}of e){N.assert(l===t);for(const p of u){const{span:h,newText:m}=p,y=QHe(m,tg(r));if(y!==-1&&(s=h.start+o+y,!i))return s;o+=m.length-h.length}}return N.assert(i),N.assert(s>=0),s}function ID(e,t,r,i,o){Y2(r.text,e.pos,Due(t,r,i,o,uP))}function lM(e,t,r,i,o){$2(r.text,e.end,Due(t,r,i,o,lW))}function _O(e,t,r,i,o){$2(r.text,e.pos,Due(t,r,i,o,uP))}function Due(e,t,r,i,o){return(s,l,u,p)=>{u===3?(s+=2,l-=2):s+=2,o(e,r||u,t.text.slice(s,l),i!==void 0?i:p)}}function QHe(e,t){if(uo(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 c5(e){return mr(e)&&e.operatorToken.kind===28||La(e)||(Uk(e)||lH(e))&&La(e.expression)}function u5(e,t,r){const i=kv(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{const{left:o,operatorToken:s,right:l}=i;return d5(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return dX(i,t);default:return t.getContextualType(e,r)}}function cM(e,t,r){const i=lf(e,t),o=JSON.stringify(r);return i===0?`'${Zf(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function d5(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function Nue(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function uX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function dX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function uM(e,t,r,i){const o=r.getTypeChecker();let s=!0;const l=()=>s=!1,u=o.typeToTypeNode(e,t,1,{trackSymbol:(p,h,m)=>(s=s&&o.isSymbolAccessible(p,h,m,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:KK(r,i)});return s?u:void 0}function Cue(e){return e===179||e===180||e===181||e===171||e===173}function GRe(e){return e===262||e===176||e===174||e===177||e===178}function VRe(e){return e===267}function p5(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function ZHe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Cue(e.kind)){if(r&&r.kind===28)return!1}else if(VRe(e.kind)){const u=Xa(e.getChildren(t));if(u&&L_(u))return!1}else if(GRe(e.kind)){const u=Xa(e.getChildren(t));if(u&&kE(u))return!1}else if(!p5(e.kind))return!1;if(e.kind===246)return!0;const i=Vn(e,u=>!u.parent),o=m1(e,i,t);if(!o||o.kind===20)return!0;const s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function f5(e,t,r){const i=Vn(t,o=>o.end!==e?"quit":IX(o.kind));return!!i&&ZHe(i,r)}function hO(e){let t=0,r=0;const i=5;return Uo(e,function o(s){if(p5(s.kind)){const l=s.getLastToken(e);(l==null?void 0:l.kind)===27?t++:r++}else if(Cue(s.kind)){const l=s.getLastToken(e);if((l==null?void 0:l.kind)===27)t++;else if(l&&l.kind!==28){const u=ys(e,l.getStart(e)).line,p=ys(e,_h(e,l.end).start).line;u!==p&&r++}}return t+r>=i?!0:Uo(s,o)}),t===0&&r<=1?!0:t/r>1/i}function m5(e,t){return g5(e,e.getDirectories,t)||[]}function pX(e,t,r,i,o){return g5(e,e.readDirectory,t,r,i,o)||et}function gO(e,t){return g5(e,e.fileExists,t)}function _5(e,t){return h5(()=>Km(t,e))||!1}function h5(e){try{return e()}catch{return}}function g5(e,t,...r){return h5(()=>t&&t.apply(e,r))}function fX(e,t,r){const i=[];return ym(e,o=>{if(o===r)return!0;const s=$r(o,"package.json");gO(t,s)&&i.push(s)}),i}function Pue(e,t){let r;return ym(e,i=>{if(i==="node_modules"||(r=Ble(i,o=>gO(t,o),"package.json"),r))return!0}),r}function Mue(e,t){if(!t.fileExists)return[];const r=[];return ym(ai(e),i=>{const o=$r(i,"package.json");if(t.fileExists(o)){const s=mX(o,t);s&&r.push(s)}}),r}function mX(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=S3(i),s={};if(o)for(const p of r){const h=o[p];if(!h)continue;const m=new Map;for(const y in h)m.set(y,h[y]);s[p]=m}const l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:u,has(p,h){return!!u(p,h)}};function u(p,h=15){for(const[m,y]of l)if(y&&h&m){const T=y.get(p);if(T!==void 0)return T}}}function dM(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Mue(e.fileName,r)).filter(R=>R.parseable);let o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:h,allowsImportingSpecifier:m};function u(R){const M=A(R);for(const C of i)if(C.has(M)||C.has(CF(M)))return!0;return!1}function p(R,M){if(!i.length||!R.valueDeclaration)return!0;if(!s)s=new Map;else{const Q=s.get(R);if(Q!==void 0)return Q}const C=Zf(R.getName());if(y(C))return s.set(R,!0),!0;const O=R.valueDeclaration.getSourceFile(),U=T(O.fileName,M);if(typeof U>"u")return s.set(R,!0),!0;const K=u(U)||u(C);return s.set(R,K),K}function h(R,M){if(!i.length)return!0;if(!l)l=new Map;else{const U=l.get(R);if(U!==void 0)return U}const C=T(R.fileName,M);if(!C)return l.set(R,!0),!0;const O=u(C);return l.set(R,O),O}function m(R){return!i.length||y(R)||Op(R)||dp(R)?!0:u(R)}function y(R){return!!(cd(e)&&F_.nodeCoreModules.has(R)&&(o===void 0&&(o=v5(e)),o))}function T(R,M){if(!R.includes("node_modules"))return;const C=l1.getNodeModulesPackageName(r.getCompilationSettings(),e,R,M,t);if(C&&!Op(C)&&!dp(C))return A(C)}function A(R){const M=Wc(wP(R)).slice(1);return uo(M[0],"@")?`${M[0]}/${M[1]}`:M[0]}}function v5(e){return bt(e.imports,({text:t})=>F_.nodeCoreModules.has(t))}function vO(e){return Or(Wc(e),"node_modules")}function _X(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Lue(e,t){const r=Dd(e),i=pA(t,r,tl,A6);if(i>=0){const o=t[i];return N.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),oa(o,_X)}}function kue(e,t){var r;let i=pA(t,e.start,l=>l.start,nl);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=Kl(e);for(;;){const l=ri(t[i],_X);if(!l||l.start>s)break;Wne(e,l)&&o.push(l),i++}return o}function II({startPosition:e,endPosition:t}){return pc(e,t===void 0?e:t)}function hX(e,t){const r=po(e,t.start);return Vn(r,o=>o.getStart(e)<t.start||o.getEnd()>Kl(t)?"quit":yt(o)&&TD(t,Dd(o,e)))}function gX(e,t,r=tl){return e?To(e)?r(Wt(e,t)):t(e,0):void 0}function vX(e){return To(e)?Ua(e):e}function wue(e,t){if(jRe(e)){const r=URe(e);if(r)return r;const i=Fu.moduleSymbolToValidIdentifier(Oue(e),t,!1),o=Fu.moduleSymbolToValidIdentifier(Oue(e),t,!0);return i===o?i:[i,o]}return e.name}function y5(e,t,r){return jRe(e)?URe(e)||Fu.moduleSymbolToValidIdentifier(Oue(e),t,!!r):e.name}function jRe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function URe(e){return Ht(e.declarations,t=>{var r,i,o;return kl(t)?(r=ri($l(t.expression),Ve))==null?void 0:r.text:Ku(t)&&t.symbol.flags===2097152?(i=ri(t.propertyName,Ve))==null?void 0:i.text:(o=ri(Lo(t),Ve))==null?void 0:o.text})}function Oue(e){var t;return N.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${N.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=N.formatSyntaxKind(r.kind),o=lr(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${N.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Wue(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let o=0;o<i;o++)if(t.charCodeAt(o)!==e.charCodeAt(o+r))return!1;return!0}function yX(e){return e.charCodeAt(0)===95}function HRe(e){return!Fue(e)}function Fue(e){const t=e.getSourceFile();return!t.externalModuleIndicator&&!t.commonJsModuleIndicator?!1:lr(e)||!Vn(e,r=>Xl(r)&&A_(r))}function b5(e){return!!(SV(e)&65536)}function E5(e,t){return Ht(e.imports,i=>{if(F_.nodeCoreModules.has(i.text))return uo(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function yO(e){return e===`
`?1:0}function iT(e){return To(e)?ig(Wo(e[0]),e.slice(1)):Wo(e)}function S5({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!hO(t);return{...e,semicolons:i?"remove":"ignore"}}function bX(e){return e===2||e===3}function xD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function T5(e,t){const r=new Set,i=new Set,o=new Set;for(const u of t)if(!EP(u)){const p=hs(u.expression);if(DE(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:const h=Soe(Al(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(HE(h));break}else{const h=e.getSymbolAtLocation(u.expression);if(h&&h.valueDeclaration&&i1(h.valueDeclaration)){const m=e.getConstantValue(h.valueDeclaration);m!==void 0&&s(m)}}}return{addValue:s,hasValue:l};function s(u){switch(typeof u){case"string":r.add(u);break;case"number":i.add(u)}}function l(u){switch(typeof u){case"string":return r.has(u);case"number":return i.has(u);case"object":return o.has(HE(u))}}}function EX(e,t,r,i){var o;const s=typeof e=="string"?e:e.fileName;if(!UE(s))return!1;const l=t.getCompilerOptions(),u=wu(l),p=typeof e=="string"?Bw(il(e,r.getCurrentDirectory(),wv(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l):e.impliedNodeFormat;if(p===99)return!1;if(p===1||l.verbatimModuleSyntax&&u===1)return!0;if(l.verbatimModuleSyntax&&C3(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var Qu,SX,qRe,A5,TX,AX,JRe,I5,IX,eqe=I({"src/services/utilities.ts"(){si(),Qu=Nv(99,!0),SX=(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))(SX||{}),qRe=/^\/\/\/\s*</,A5=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159],TX=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(TX||{}),AX=qHe(),JRe=`
`,I5="anonymous function",IX=Jm(Cue,GRe,VRe,p5)}});function xX(e){let t=1;const r=$p(),i=new Map,o=new Map;let s;const l={isUsableByFile:A=>A===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(A,R,M,C,O,U,K,Q)=>{A!==s&&(l.clear(),s=A);let V;if(O){const de=J3(O.fileName);if(de){const{topLevelNodeModulesIndex:ie,topLevelPackageNameIndex:ve,packageRootIndex:Le}=de;if(V=Aw(wP(O.fileName.substring(ve+1,Le))),uo(A,O.path.substring(0,ie))){const Ue=o.get(V),Ee=O.fileName.substring(0,ve+1);if(Ue){const De=Ue.indexOf(Ah);ie>De&&o.set(V,Ee)}else o.set(V,Ee)}}}const G=U===1&&xR(R)||R,ne=U===0||sO(G)?Vi(M):wue(G,void 0),he=typeof ne=="string"?ne:ne[0],ye=typeof ne=="string"?void 0:ne[1],Y=Zf(C.name),X=t++,oe=bu(R,Q),pe=R.flags&33554432?void 0:R,Ce=C.flags&33554432?void 0:C;(!pe||!Ce)&&i.set(X,[R,C]),r.add(p(he,R,Xc(Y)?void 0:Y,Q),{id:X,symbolTableKey:M,symbolName:he,capitalizedSymbolName:ye,moduleName:Y,moduleFile:O,moduleFileName:O==null?void 0:O.fileName,packageName:V,exportKind:U,targetFlags:oe.flags,isFromPackageJson:K,symbol:pe,moduleSymbol:Ce})},get:(A,R)=>{if(A!==s)return;const M=r.get(R);return M==null?void 0:M.map(u)},search:(A,R,M,C)=>{if(A===s)return zc(r,(O,U)=>{const{symbolName:K,ambientModuleName:Q}=h(U),V=R&&O[0].capitalizedSymbolName||K;if(M(V,O[0].targetFlags)){const G=O.map(u).filter((ne,he)=>T(ne,O[he].packageName));if(G.length){const ne=C(G,V,!!Q,U);if(ne!==void 0)return ne}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(A,R,M)=>m(A)&&m(R)?!1:s&&s!==R.path||M&&v5(A)!==v5(R)||!Hm(A.moduleAugmentations,R.moduleAugmentations)||!y(A,R)?(l.clear(),!0):(s=R.path,!1)};return N.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function u(A){if(A.symbol&&A.moduleSymbol)return A;const{id:R,exportKind:M,targetFlags:C,isFromPackageJson:O,moduleFileName:U}=A,[K,Q]=i.get(R)||et;if(K&&Q)return{symbol:K,moduleSymbol:Q,moduleFileName:U,exportKind:M,targetFlags:C,isFromPackageJson:O};const V=(O?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),se=A.moduleSymbol||Q||N.checkDefined(A.moduleFile?V.getMergedSymbol(A.moduleFile.symbol):V.tryFindAmbientModule(A.moduleName)),G=A.symbol||K||N.checkDefined(M===2?V.resolveExternalModuleSymbol(se):V.tryGetMemberInModuleExportsAndProperties(Vi(A.symbolTableKey),se),`Could not find symbol '${A.symbolName}' by key '${A.symbolTableKey}' in module ${se.name}`);return i.set(R,[G,se]),{symbol:G,moduleSymbol:se,moduleFileName:U,exportKind:M,targetFlags:C,isFromPackageJson:O}}function p(A,R,M,C){const O=M||"";return`${A.length} ${Sa(bu(R,C))} ${A} ${O}`}function h(A){const R=A.indexOf(" "),M=A.indexOf(" ",R+1),C=parseInt(A.substring(0,R),10),O=A.substring(M+1),U=O.substring(0,C),K=O.substring(C+1);return{symbolName:U,ambientModuleName:K===""?void 0:K}}function m(A){return!A.commonJsModuleIndicator&&!A.externalModuleIndicator&&!A.moduleAugmentations&&!A.ambientModuleNames}function y(A,R){if(!Hm(A.ambientModuleNames,R.ambientModuleNames))return!1;let M=-1,C=-1;for(const O of R.ambientModuleNames){const U=K=>ej(K)&&K.name.text===O;if(M=mi(A.statements,U,M+1),C=mi(R.statements,U,C+1),A.statements[M]!==R.statements[C])return!1}return!0}function T(A,R){if(!R||!A.moduleFileName)return!0;const M=e.getGlobalTypingsCacheLocation();if(M&&uo(A.moduleFileName,M))return!0;const C=o.get(R);return!C||uo(A.moduleFileName,C)}}function RX(e,t,r,i,o,s,l){var u;if(t===r)return!1;const p=l==null?void 0:l.get(t.path,r.path,i,{});if((p==null?void 0:p.isBlockedByPackageJsonDependencies)!==void 0)return!p.isBlockedByPackageJsonDependencies;const h=wv(s),m=(u=s.getGlobalTypingsCacheLocation)==null?void 0:u.call(s),y=!!l1.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,T=>{const A=e.getSourceFile(T);return(A===r||!A)&&tqe(t.fileName,T,h,m)});if(o){const T=y&&o.allowsImportingSourceFile(r,s);return l==null||l.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!T),T}return y}function tqe(e,t,r,i){const o=ym(t,l=>ic(l)==="node_modules"?l:void 0),s=o&&ai(r(o));return s===void 0||uo(r(e),s)||!!i&&uo(r(i),s)}function DX(e,t,r,i,o){var s,l;const u=AR(t),p=r.autoImportFileExcludePatterns&&eo(r.autoImportFileExcludePatterns,m=>{const y=W3(m,"","exclude");return y?By(y,u):void 0});KRe(e.getTypeChecker(),e.getSourceFiles(),p,t,(m,y)=>o(m,y,e,!1));const h=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(h){const m=Xs(),y=e.getTypeChecker();KRe(h.getTypeChecker(),h.getSourceFiles(),p,t,(T,A)=>{(A&&!e.getSourceFile(A.fileName)||!A&&!y.resolveName(T.name,void 0,1536,!1))&&o(T,A,h,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Xs()-m}`)}}function KRe(e,t,r,i,o){var s,l;const u=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:h,path:m})=>{if(r.some(y=>y.test(h)))return!0;if(u!=null&&u.size&&x0(h)){let y=ai(h);return ym(ai(m),T=>{const A=u.get(Fc(T));if(A)return A.some(R=>r.some(M=>M.test(h.replace(y,R))));y=ai(y)})??!1}return!1});for(const h of e.getAmbientModules())!h.name.includes("*")&&!(r&&((l=h.declarations)!=null&&l.every(m=>p(m.getSourceFile()))))&&o(h,void 0);for(const h of t)Fp(h)&&!(p!=null&&p(h))&&o(e.getMergedSymbol(h.symbol),h)}function bO(e,t,r,i,o){var s,l,u,p,h;const m=Xs();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||xX({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var R;return(R=t.getPackageJsonAutoImportProvider)==null?void 0:R.call(t)},getGlobalTypingsCacheLocation:()=>{var R;return(R=t.getGlobalTypingsCacheLocation)==null?void 0:R.call(t)}});if(y.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),y;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const T=r.getCompilerOptions();let A=0;try{DX(r,t,i,!0,(R,M,C,O)=>{++A%100===0&&(o==null||o.throwIfCancellationRequested());const U=new Map,K=C.getTypeChecker(),Q=x5(R,K,T);Q&&XRe(Q.symbol,K)&&y.add(e.path,Q.symbol,Q.exportKind===1?"default":"export=",R,M,Q.exportKind,O,K),K.forEachExportAndPropertyOfModule(R,(V,se)=>{V!==(Q==null?void 0:Q.symbol)&&XRe(V,K)&&Am(U,se)&&y.add(e.path,V,se,R,M,0,O,K)})})}catch(R){throw y.clear(),R}return(h=t.log)==null||h.call(t,`getExportInfoMap: done in ${Xs()-m} ms`),y}function x5(e,t,r){const i=nqe(e,t);if(!i)return;const{symbol:o,exportKind:s}=i,l=R5(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function XRe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!tk(e)&&!Eie(e)}function nqe(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 R5(e,t,r){const i=xR(e);if(i)return{resolvedSymbol:i,name:i.name};const o=rqe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){const s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return R5(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:y5(e,r.target)}}function rqe(e){return e.declarations&&Ht(e.declarations,t=>{var r;if(kl(t))return(r=ri($l(t.expression),Ve))==null?void 0:r.text;if(Ku(t))return N.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var NX,CX,iqe=I({"src/services/exportInfoMap.ts"(){si(),NX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(NX||{}),CX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(CX||{})}});function YRe(){const e=Nv(99,!1);function t(i,o,s){return sqe(r(i,o,s),i)}function r(i,o,s){let l=0,u=0;const p=[],{prefix:h,pushTemplate:m}=uqe(o);i=h+i;const y=h.length;m&&p.push(16),e.setText(i);let T=0;const A=[];let R=0;do{l=e.scan(),yR(l)||(M(),u=l);const C=e.getTokenEnd();if(aqe(e.getTokenStart(),C,y,fqe(l),A),C>=i.length){const O=oqe(e,l,el(p));O!==void 0&&(T=O)}}while(l!==1);function M(){switch(l){case 44:case 69:!eDe[u]&&e.reScanSlashToken()===14&&(l=14);break;case 30:u===80&&R++;break;case 32:R>0&&R--;break;case 133:case 154:case 150:case 136:case 155:R>0&&!s&&(l=80);break;case 16:p.push(l);break;case 19:p.length>0&&p.push(l);break;case 20:if(p.length>0){const C=el(p);C===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():N.assertEqual(l,17,"Should have been a template middle.")):(N.assertEqual(C,19,"Should have been an open brace"),p.pop())}break;default:if(!Bd(l))break;(u===25||Bd(u)&&Bd(l)&&!cqe(u,l))&&(l=80)}}return{endOfLineState:T,spans:A}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function oqe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),o=i.length-1;let s=0;for(;i.charCodeAt(o-s)===92;)s++;return s&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(Ny(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return N.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function aqe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);const s=t-e;s>0&&o.push(e-r,s,i)}function sqe(e,t){const r=[],i=e.spans;let o=0;for(let l=0;l<i.length;l+=3){const u=i[l],p=i[l+1],h=i[l+2];if(o>=0){const m=u-o;m>0&&r.push({length:m,classification:4})}r.push({length:p,classification:lqe(h)}),o=u+p}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function lqe(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 cqe(e,t){if(!BK(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function uqe(e){switch(e){case 3:return{prefix:`"\\
`};case 2:return{prefix:`'\\
`};case 1:return{prefix:`/*
`};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return N.assertNever(e)}}function dqe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function pqe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function fqe(e){if(Bd(e))return 3;if(dqe(e)||pqe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Ny(e)?6:2}}function zue(e,t,r,i,o){return ZRe(PX(e,t,r,i,o))}function $Re(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function PX(e,t,r,i,o){const s=[];return r.forEachChild(function u(p){if(!(!p||!o4(o,p.pos,p.getFullWidth()))){if($Re(t,p.kind),Ve(p)&&!Fl(p)&&i.has(p.escapedText)){const h=e.getSymbolAtLocation(p),m=h&&QRe(h,ZS(p),e);m&&l(p.getStart(r),p.getEnd(),m)}p.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,p,h){const m=p-u;N.assert(m>0,`Classification had non-positive length of ${m}`),s.push(u),s.push(m),s.push(h)}}function QRe(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&&mqe(e)?14:void 0:i&2097152?QRe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function mqe(e){return bt(e.declarations,t=>Xl(t)&&jg(t)===1)}function _qe(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 ZRe(e){N.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:vu(t[i],t[i+1]),classificationType:_qe(t[i+2])});return r}function Bue(e,t,r){return ZRe(MX(e,t,r))}function MX(e,t,r){const i=r.start,o=r.length,s=Nv(99,!1,t.languageVariant,t.text),l=Nv(99,!1,t.languageVariant,t.text),u=[];return Q(t),{spans:u,endOfLineState:0};function p(V,se,G){u.push(V),u.push(se),u.push(G)}function h(V){for(s.resetTokenState(V.pos);;){const se=s.getTokenEnd();if(!Mne(t.text,se))return se;const G=s.scan(),ne=s.getTokenEnd(),he=ne-se;if(!yR(G))return se;switch(G){case 4:case 5:continue;case 2:case 3:m(V,G,se,he),s.resetTokenState(ne);continue;case 7:const ye=t.text,Y=ye.charCodeAt(se);if(Y===60||Y===62){p(se,he,1);continue}N.assert(Y===124||Y===61),M(ye,se,ne);break;case 6:break;default:N.assertNever(G)}}}function m(V,se,G,ne){if(se===3){const he=Jae(t.text,G,ne);if(he&&he.jsDoc){Ha(he.jsDoc,V),T(he.jsDoc);return}}else if(se===2&&A(G,ne))return;y(G,ne)}function y(V,se){p(V,se,1)}function T(V){var se,G,ne,he,ye,Y,X,oe;let pe=V.pos;if(V.tags)for(const de of V.tags){de.pos!==pe&&y(pe,de.pos-pe),p(de.pos,1,10),p(de.tagName.pos,de.tagName.end-de.tagName.pos,18),pe=de.tagName.end;let ie=de.tagName.end;switch(de.kind){case 348:const ve=de;Ce(ve),ie=ve.isNameFirst&&((se=ve.typeExpression)==null?void 0:se.end)||ve.name.end;break;case 355:const Le=de;ie=Le.isNameFirst&&((G=Le.typeExpression)==null?void 0:G.end)||Le.name.end;break;case 352:R(de),pe=de.end,ie=de.typeParameters.end;break;case 353:const Ue=de;ie=((ne=Ue.typeExpression)==null?void 0:ne.kind)===316&&((he=Ue.fullName)==null?void 0:he.end)||((ye=Ue.typeExpression)==null?void 0:ye.end)||ie;break;case 345:ie=de.typeExpression.end;break;case 351:Q(de.typeExpression),pe=de.end,ie=de.typeExpression.end;break;case 350:case 347:ie=de.typeExpression.end;break;case 349:Q(de.typeExpression),pe=de.end,ie=((Y=de.typeExpression)==null?void 0:Y.end)||ie;break;case 354:ie=((X=de.name)==null?void 0:X.end)||ie;break;case 335:case 336:ie=de.class.end;break;case 356:Q(de.typeExpression),pe=de.end,ie=((oe=de.typeExpression)==null?void 0:oe.end)||ie;break}typeof de.comment=="object"?y(de.comment.pos,de.comment.end-de.comment.pos):typeof de.comment=="string"&&y(ie,de.end-ie)}pe!==V.end&&y(pe,V.end-pe);return;function Ce(de){de.isNameFirst&&(y(pe,de.name.pos-pe),p(de.name.pos,de.name.end-de.name.pos,17),pe=de.name.end),de.typeExpression&&(y(pe,de.typeExpression.pos-pe),Q(de.typeExpression),pe=de.typeExpression.end),de.isNameFirst||(y(pe,de.name.pos-pe),p(de.name.pos,de.name.end-de.name.pos,17),pe=de.name.end)}}function A(V,se){const G=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,ne=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,he=t.text.substr(V,se),ye=G.exec(he);if(!ye||!ye[3]||!(ye[3]in z2))return!1;let Y=V;y(Y,ye[1].length),Y+=ye[1].length,p(Y,ye[2].length,10),Y+=ye[2].length,p(Y,ye[3].length,21),Y+=ye[3].length;const X=ye[4];let oe=Y;for(;;){const Ce=ne.exec(X);if(!Ce)break;const de=Y+Ce.index+Ce[1].length;de>oe&&(y(oe,de-oe),oe=de),p(oe,Ce[2].length,22),oe+=Ce[2].length,Ce[3].length&&(y(oe,Ce[3].length),oe+=Ce[3].length),p(oe,Ce[4].length,5),oe+=Ce[4].length,Ce[5].length&&(y(oe,Ce[5].length),oe+=Ce[5].length),p(oe,Ce[6].length,24),oe+=Ce[6].length}Y+=ye[4].length,Y>oe&&y(oe,Y-oe),ye[5]&&(p(Y,ye[5].length,10),Y+=ye[5].length);const pe=V+se;return Y<pe&&y(Y,pe-Y),!0}function R(V){for(const se of V.getChildren())Q(se)}function M(V,se,G){let ne;for(ne=se;ne<G&&!Hu(V.charCodeAt(ne));ne++);for(p(se,ne-se,1),l.resetTokenState(ne);l.getTokenEnd()<G;)C()}function C(){const V=l.getTokenEnd(),se=l.scan(),G=l.getTokenEnd(),ne=K(se);ne&&p(V,G-V,ne)}function O(V){if(Zm(V)||Fl(V))return!0;const se=U(V);if(!EA(V)&&V.kind!==12&&se===void 0)return!1;const G=V.kind===12?V.pos:h(V),ne=V.end-G;if(N.assert(ne>=0),ne>0){const he=se||K(V.kind,V);he&&p(G,ne,he)}return!0}function U(V){switch(V.parent&&V.parent.kind){case 286:if(V.parent.tagName===V)return 19;break;case 287:if(V.parent.tagName===V)return 20;break;case 285:if(V.parent.tagName===V)return 21;break;case 291:if(V.parent.name===V)return 22;break}}function K(V,se){if(Bd(V))return 3;if((V===30||V===32)&&se&&lue(se.parent))return 10;if(Cj(V)){if(se){const G=se.parent;if(V===64&&(G.kind===260||G.kind===172||G.kind===169||G.kind===291)||G.kind===226||G.kind===224||G.kind===225||G.kind===227)return 5}return 10}else{if(V===9)return 4;if(V===10)return 25;if(V===11)return se&&se.parent.kind===291?24:6;if(V===14)return 6;if(Ny(V))return 6;if(V===12)return 23;if(V===80){if(se){switch(se.parent.kind){case 263:return se.parent.name===se?11:void 0;case 168:return se.parent.name===se?15:void 0;case 264:return se.parent.name===se?13:void 0;case 266:return se.parent.name===se?12:void 0;case 267:return se.parent.name===se?14:void 0;case 169:return se.parent.name===se?VE(se)?3:17:void 0}if(Pg(se.parent))return 3}return 2}}}function Q(V){if(V&&tL(i,o,V.pos,V.getFullWidth())){$Re(e,V.kind);for(const se of V.getChildren(t))O(se)||Q(se)}}}var eDe,tDe=I({"src/services/classifier.ts"(){si(),eDe=Zte([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),D5,hqe=I({"src/services/documentHighlights.ts"(){si(),(e=>{function t(Y,X,oe,pe,Ce){const de=Vd(oe,pe);if(de.parent&&(k_(de.parent)&&de.parent.tagName===de||e1(de.parent))){const{openingElement:ie,closingElement:ve}=de.parent.parent,Le=[ie,ve].map(({tagName:Ue})=>r(Ue,oe));return[{fileName:oe.fileName,highlightSpans:Le}]}return i(pe,de,Y,X,Ce)||o(de,oe)}e.getDocumentHighlights=t;function r(Y,X){return{fileName:X.fileName,textSpan:Dd(Y,X),kind:"none"}}function i(Y,X,oe,pe,Ce){const de=new Set(Ce.map(Ue=>Ue.fileName)),ie=Ws.getReferenceEntriesForNode(Y,X,oe,Ce,pe,void 0,de);if(!ie)return;const ve=P2(ie.map(Ws.toHighlightSpan),Ue=>Ue.fileName,Ue=>Ue.span),Le=Mu(oe.useCaseSensitiveFileNames());return zo(Kb(ve.entries(),([Ue,Ee])=>{if(!de.has(Ue)){if(!oe.redirectTargetsMap.has(il(Ue,oe.getCurrentDirectory(),Le)))return;const De=oe.getSourceFile(Ue);Ue=In(Ce,We=>!!We.redirectInfo&&We.redirectInfo.redirectTarget===De).fileName,N.assert(de.has(Ue))}return{fileName:Ue,highlightSpans:Ee}}))}function o(Y,X){const oe=s(Y,X);return oe&&[{fileName:X.fileName,highlightSpans:oe}]}function s(Y,X){switch(Y.kind){case 101:case 93:return FS(Y.parent)?ne(Y.parent,X):void 0;case 107:return pe(Y.parent,Im,Q);case 111:return pe(Y.parent,uH,K);case 113:case 85:case 98:const de=Y.kind===85?Y.parent.parent:Y.parent;return pe(de,BS,U);case 109:return pe(Y.parent,vP,O);case 84:case 90:return EP(Y.parent)||UR(Y.parent)?pe(Y.parent.parent.parent,vP,O):void 0;case 83:case 88:return pe(Y.parent,cC,C);case 99:case 117:case 92:return pe(Y.parent,ie=>Py(ie,!0),M);case 137:return oe(Ml,[137]);case 139:case 153:return oe(Cy,[139,153]);case 135:return pe(Y.parent,Ky,V);case 134:return Ce(V(Y));case 127:return Ce(se(Y));case 103:case 147:return;default:return Pv(Y.kind)&&(Ju(Y.parent)||Ll(Y.parent))?Ce(T(Y.kind,Y.parent)):void 0}function oe(de,ie){return pe(Y.parent,de,ve=>{var Le;return eo((Le=ri(ve,T_))==null?void 0:Le.symbol.declarations,Ue=>de(Ue)?In(Ue.getChildren(X),Ee=>Or(ie,Ee.kind)):void 0)})}function pe(de,ie,ve){return ie(de)?Ce(ve(de,X)):void 0}function Ce(de){return de&&de.map(ie=>r(ie,X))}}function l(Y){return uH(Y)?[Y]:BS(Y)?So(Y.catchClause?l(Y.catchClause):Y.tryBlock&&l(Y.tryBlock),Y.finallyBlock&&l(Y.finallyBlock)):ea(Y)?void 0:h(Y,l)}function u(Y){let X=Y;for(;X.parent;){const oe=X.parent;if(kE(oe)||oe.kind===312)return oe;if(BS(oe)&&oe.tryBlock===X&&oe.catchClause)return X;X=oe}}function p(Y){return cC(Y)?[Y]:ea(Y)?void 0:h(Y,p)}function h(Y,X){const oe=[];return Y.forEachChild(pe=>{const Ce=X(pe);Ce!==void 0&&oe.push(...mA(Ce))}),oe}function m(Y,X){const oe=y(X);return!!oe&&oe===Y}function y(Y){return Vn(Y,X=>{switch(X.kind){case 255:if(Y.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!Y.label||ye(X,Y.label.escapedText);default:return ea(X)&&"quit"}})}function T(Y,X){return eo(A(X,OA(Y)),oe=>SD(oe,Y))}function A(Y,X){const oe=Y.parent;switch(oe.kind){case 268:case 312:case 241:case 296:case 297:return X&64&&Ac(Y)?[...Y.members,Y]:oe.statements;case 176:case 174:case 262:return[...oe.parameters,...di(oe.parent)?oe.parent.members:[]];case 263:case 231:case 264:case 187:const pe=oe.members;if(X&15){const Ce=In(oe.members,Ml);if(Ce)return[...pe,...Ce.parameters]}else if(X&64)return[...pe,oe];return pe;case 210:return;default:N.assertNever(oe,"Invalid container kind.")}}function R(Y,X,...oe){return X&&Or(oe,X.kind)?(Y.push(X),!0):!1}function M(Y){const X=[];if(R(X,Y.getFirstToken(),99,117,92)&&Y.kind===246){const oe=Y.getChildren();for(let pe=oe.length-1;pe>=0&&!R(X,oe[pe],117);pe--);}return Xe(p(Y.statement),oe=>{m(Y,oe)&&R(X,oe.getFirstToken(),83,88)}),X}function C(Y){const X=y(Y);if(X)switch(X.kind){case 248:case 249:case 250:case 246:case 247:return M(X);case 255:return O(X)}}function O(Y){const X=[];return R(X,Y.getFirstToken(),109),Xe(Y.caseBlock.clauses,oe=>{R(X,oe.getFirstToken(),84,90),Xe(p(oe),pe=>{m(Y,pe)&&R(X,pe.getFirstToken(),83)})}),X}function U(Y,X){const oe=[];if(R(oe,Y.getFirstToken(),113),Y.catchClause&&R(oe,Y.catchClause.getFirstToken(),85),Y.finallyBlock){const pe=vs(Y,98,X);R(oe,pe,98)}return oe}function K(Y,X){const oe=u(Y);if(!oe)return;const pe=[];return Xe(l(oe),Ce=>{pe.push(vs(Ce,111,X))}),kE(oe)&&LE(oe,Ce=>{pe.push(vs(Ce,107,X))}),pe}function Q(Y,X){const oe=Bp(Y);if(!oe)return;const pe=[];return LE(oa(oe.body,Ko),Ce=>{pe.push(vs(Ce,107,X))}),Xe(l(oe.body),Ce=>{pe.push(vs(Ce,111,X))}),pe}function V(Y){const X=Bp(Y);if(!X)return;const oe=[];return X.modifiers&&X.modifiers.forEach(pe=>{R(oe,pe,134)}),Uo(X,pe=>{G(pe,Ce=>{Ky(Ce)&&R(oe,Ce.getFirstToken(),135)})}),oe}function se(Y){const X=Bp(Y);if(!X)return;const oe=[];return Uo(X,pe=>{G(pe,Ce=>{HW(Ce)&&R(oe,Ce.getFirstToken(),127)})}),oe}function G(Y,X){X(Y),!ea(Y)&&!di(Y)&&!md(Y)&&!Xl(Y)&&!xm(Y)&&!ji(Y)&&Uo(Y,oe=>G(oe,X))}function ne(Y,X){const oe=he(Y,X),pe=[];for(let Ce=0;Ce<oe.length;Ce++){if(oe[Ce].kind===93&&Ce<oe.length-1){const de=oe[Ce],ie=oe[Ce+1];let ve=!0;for(let Le=ie.getStart(X)-1;Le>=de.end;Le--)if(!E_(X.text.charCodeAt(Le))){ve=!1;break}if(ve){pe.push({fileName:X.fileName,textSpan:pc(de.getStart(),ie.end),kind:"reference"}),Ce++;continue}}pe.push(r(oe[Ce],X))}return pe}function he(Y,X){const oe=[];for(;FS(Y.parent)&&Y.parent.elseStatement===Y;)Y=Y.parent;for(;;){const pe=Y.getChildren(X);R(oe,pe[0],101);for(let Ce=pe.length-1;Ce>=0&&!R(oe,pe[Ce],93);Ce--);if(!Y.elseStatement||!FS(Y.elseStatement))break;Y=Y.elseStatement}return oe}function ye(Y,X){return!!Vn(Y.parent,oe=>ZE(oe)?oe.label.escapedText===X:"quit")}})(D5||(D5={}))}});function EO(e){return!!e.sourceFile}function Gue(e,t,r){return LX(e,t,r)}function LX(e,t="",r,i){const o=new Map,s=Mu(!!e);function l(){const C=zo(o.keys()).filter(O=>O&&O.charAt(0)==="_").map(O=>{const U=o.get(O),K=[];return U.forEach((Q,V)=>{EO(Q)?K.push({name:V,scriptKind:Q.sourceFile.scriptKind,refCount:Q.languageServiceRefCount}):Q.forEach((se,G)=>K.push({name:V,scriptKind:G,refCount:se.languageServiceRefCount}))}),K.sort((Q,V)=>V.refCount-Q.refCount),{bucket:O,sourceFiles:K}});return JSON.stringify(C,void 0,2)}function u(C){return typeof C.getCompilationSettings=="function"?C.getCompilationSettings():C}function p(C,O,U,K,Q,V){const se=il(C,t,s),G=kX(u(O));return h(C,se,O,G,U,K,Q,V)}function h(C,O,U,K,Q,V,se,G){return A(C,O,U,K,Q,V,!0,se,G)}function m(C,O,U,K,Q,V){const se=il(C,t,s),G=kX(u(O));return y(C,se,O,G,U,K,Q,V)}function y(C,O,U,K,Q,V,se,G){return A(C,O,u(U),K,Q,V,!1,se,G)}function T(C,O){const U=EO(C)?C:C.get(N.checkDefined(O,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return N.assert(O===void 0||!U||U.sourceFile.scriptKind===O,`Script kind should match provided ScriptKind:${O} and sourceFile.scriptKind: ${U==null?void 0:U.sourceFile.scriptKind}, !entry: ${!U}`),U}function A(C,O,U,K,Q,V,se,G,ne){var he,ye,Y,X;G=z3(C,G);const oe=u(U),pe=U===oe?void 0:U,Ce=G===6?100:os(oe),de=typeof ne=="object"?ne:{languageVersion:Ce,impliedNodeFormat:pe&&Bw(O,(X=(Y=(ye=(he=pe.getCompilerHost)==null?void 0:he.call(pe))==null?void 0:ye.getModuleResolutionCache)==null?void 0:Y.call(ye))==null?void 0:X.getPackageJsonInfoCache(),pe,oe),setExternalModuleIndicator:fk(oe),jsDocParsingMode:r};de.languageVersion=Ce,N.assertEqual(r,de.jsDocParsingMode);const ie=o.size,ve=Vue(K,de.impliedNodeFormat),Le=dA(o,ve,()=>new Map);if(sr){o.size>ie&&sr.instant(sr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:oe.configFilePath,key:ve});const Me=!Su(O)&&zc(o,(We,At)=>At!==ve&&We.has(O)&&At);Me&&sr.instant(sr.Phase.Session,"documentRegistryBucketOverlap",{path:O,key1:Me,key2:ve})}const Ue=Le.get(O);let Ee=Ue&&T(Ue,G);if(!Ee&&i){const Me=i.getDocument(ve,O);Me&&(N.assert(se),Ee={sourceFile:Me,languageServiceRefCount:0},De())}if(Ee)Ee.sourceFile.version!==V&&(Ee.sourceFile=SY(Ee.sourceFile,Q,V,Q.getChangeRange(Ee.sourceFile.scriptSnapshot)),i&&i.setDocument(ve,O,Ee.sourceFile)),se&&Ee.languageServiceRefCount++;else{const Me=Z5(C,Q,de,V,!1,G);i&&i.setDocument(ve,O,Me),Ee={sourceFile:Me,languageServiceRefCount:1},De()}return N.assert(Ee.languageServiceRefCount!==0),Ee.sourceFile;function De(){if(!Ue)Le.set(O,Ee);else if(EO(Ue)){const Me=new Map;Me.set(Ue.sourceFile.scriptKind,Ue),Me.set(G,Ee),Le.set(O,Me)}else Ue.set(G,Ee)}}function R(C,O,U,K){const Q=il(C,t,s),V=kX(O);return M(Q,V,U,K)}function M(C,O,U,K){const Q=N.checkDefined(o.get(Vue(O,K))),V=Q.get(C),se=T(V,U);se.languageServiceRefCount--,N.assert(se.languageServiceRefCount>=0),se.languageServiceRefCount===0&&(EO(V)?Q.delete(C):(V.delete(U),V.size===1&&Q.set(C,pn(V.values(),tl))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:m,updateDocumentWithKey:y,releaseDocument:R,releaseDocumentWithKey:M,getKeyForCompilationSettings:kX,getDocumentRegistryBucketKeyWithMode:Vue,reportStats:l,getBuckets:()=>o}}function kX(e){return sq(e,gF)}function Vue(e,t){return t?`${e}|${t}`:e}var gqe=I({"src/services/documentRegistry.ts"(){si()}});function jue(e,t,r,i,o,s,l){const u=AR(i),p=Mu(u),h=wX(t,r,p,l),m=wX(r,t,p,l);return _r.ChangeTracker.with({host:i,formatContext:o,preferences:s},y=>{yqe(e,y,h,t,r,i.getCurrentDirectory(),u),bqe(e,y,h,m,i,p)})}function wX(e,t,r,i){const o=r(e);return l=>{const u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(u?u.fileName:l);return u?p===void 0?void 0:vqe(u.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;const u=pU(l,o,r);return u===void 0?void 0:t+"/"+u}}function vqe(e,t,r,i){const o=H2(e,t,i);return Uue(ai(r),o)}function yqe(e,t,r,i,o,s,l){const{configFile:u}=e.getCompilerOptions();if(!u)return;const p=ai(u.fileName),h=EC(u);if(!h)return;Hue(h,(A,R)=>{switch(R){case"files":case"include":case"exclude":{if(m(A)||R!=="include"||!fd(A.initializer))return;const C=eo(A.initializer.elements,U=>Na(U)?U.text:void 0);if(C.length===0)return;const O=F3(p,[],C,l,s);By(N.checkDefined(O.includeFilePattern),l).test(i)&&!By(N.checkDefined(O.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,Xa(A.initializer.elements),w.createStringLiteral(T(o)));return}case"compilerOptions":Hue(A.initializer,(M,C)=>{const O=VH(C);N.assert((O==null?void 0:O.type)!=="listOrElement"),O&&(O.isFilePath||O.type==="list"&&O.element.isFilePath)?m(M):C==="paths"&&Hue(M.initializer,U=>{if(fd(U.initializer))for(const K of U.initializer.elements)y(K)})});return}});function m(A){const R=fd(A.initializer)?A.initializer.elements:[A.initializer];let M=!1;for(const C of R)M=y(C)||M;return M}function y(A){if(!Na(A))return!1;const R=Uue(p,A.text),M=r(R);return M!==void 0?(t.replaceRangeWithText(u,rDe(A,u),T(M)),!0):!1}function T(A){return vm(p,A,!l)}}function bqe(e,t,r,i,o,s){const l=e.getSourceFiles();for(const u of l){const p=r(u.fileName),h=p??u.fileName,m=ai(h),y=i(u.fileName),T=y||u.fileName,A=ai(T),R=p!==void 0||y!==void 0;Tqe(u,t,M=>{if(!Op(M))return;const C=Uue(A,M),O=r(C);return O===void 0?void 0:AE(vm(m,O,s))},M=>{const C=e.getTypeChecker().getSymbolAtLocation(M);if(C!=null&&C.declarations&&C.declarations.some(U=>ku(U)))return;const O=y!==void 0?nDe(M,iD(M.text,T,e.getCompilerOptions(),o),r,l):Sqe(C,M,u,e,o,r);return O!==void 0&&(O.updated||R&&Op(M.text))?l1.updateModuleSpecifier(e.getCompilerOptions(),u,h,O.newFileName,tT(e,o),M.text):void 0})}}function Eqe(e,t){return ha($r(e,t))}function Uue(e,t){return AE(Eqe(e,t))}function Sqe(e,t,r,i,o,s){if(e){const l=In(e.declarations,$i).fileName,u=s(l);return u===void 0?{newFileName:l,updated:!1}:{newFileName:u,updated:!0}}else{const l=i.getModeForUsageLocation(r,t),u=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return nDe(t,u,s,i.getSourceFiles())}}function nDe(e,t,r,i){if(!t)return;if(t.resolvedModule){const p=u(t.resolvedModule.resolvedFileName);if(p)return p}const o=Xe(t.failedLookupLocations,s)||Op(e.text)&&Xe(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){const h=r(p);return h&&In(i,m=>m.fileName===h)?l(p):void 0}function l(p){return Al(p,"/package.json")?void 0:u(p)}function u(p){const h=r(p);return h&&{newFileName:h,updated:!0}}}function Tqe(e,t,r,i){for(const o of e.referencedFiles||et){const s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(const o of e.imports){const s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,rDe(o,e),s)}}function rDe(e,t){return Af(e.getStart(t)+1,e.end-1)}function Hue(e,t){if(La(e))for(const r of e.properties)hc(r)&&Na(r.name)&&t(r,r.name.text)}var Aqe=I({"src/services/getEditsForFileRename.ts"(){si()}});function pM(e,t){return{kind:e,isCaseSensitive:t}}function que(e){const t=new Map,r=e.trim().split(".").map(i=>Dqe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>pM(2,!0),getFullMatch:()=>pM(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>Iqe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Jue(i,Xa(r),t),patternContainsDots:r.length>1}}function Iqe(e,t,r,i){if(!Jue(t,Xa(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,u=e.length-1;l>=0;l-=1,u-=1)s=aDe(s,Jue(e[u],r[l],i));return s}function iDe(e,t){let r=t.get(e);return r||t.set(e,r=Zue(e)),r}function oDe(e,t,r){const i=Nqe(e,t.textLowerCase);if(i===0)return pM(t.text.length===e.length?0:1,uo(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=iDe(e,r);for(const s of o)if(Kue(e,s,t.text,!0))return pM(2,Kue(e,s,t.text,!1));if(t.text.length<e.length&&RD(e.charCodeAt(i)))return pM(2,!1)}else{if(e.indexOf(t.text)>0)return pM(2,!0);if(t.characterSpans.length>0){const o=iDe(e,r),s=sDe(e,o,t,!1)?!0:sDe(e,o,t,!0)?!1:void 0;if(s!==void 0)return pM(3,s)}}}function Jue(e,t,r){if(OX(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=oDe(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=aDe(o,oDe(e,s,r));return o}function aDe(e,t){return XB([e,t],xqe)}function xqe(e,t){return e===void 0?1:t===void 0?-1:nl(e.kind,t.kind)||Ey(!e.isCaseSensitive,!t.isCaseSensitive)}function Kue(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&dDe(0,o.length,s=>Rqe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function Rqe(e,t,r){return r?Xue(e)===Xue(t):e===t}function sDe(e,t,r,i){const o=r.characterSpans;let s=0,l=0;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let u=t[s],p=!1;for(;l<o.length;l++){const h=o[l];if(p&&(!RD(r.text.charCodeAt(o[l-1].start))||!RD(r.text.charCodeAt(o[l].start)))||!Kue(e,u,r.text,i,h))break;p=!0,u=vu(u.start+h.length,u.length-h.length)}s++}}function Dqe(e){return{totalTextChunk:$ue(e),subWordTextChunks:Pqe(e)}}function RD(e){if(e>=65&&e<=90)return!0;if(e<127||!e4(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function lDe(e){if(e>=97&&e<=122)return!0;if(e<127||!e4(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function Nqe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(OX(t,(o,s)=>Xue(e.charCodeAt(s+i))===o))return i;return-1}function Xue(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Yue(e){return e>=48&&e<=57}function Cqe(e){return RD(e)||lDe(e)||Yue(e)||e===95||e===36}function Pqe(e){const t=[];let r=0,i=0;for(let o=0;o<e.length;o++){const s=e.charCodeAt(o);Cqe(s)?(i===0&&(r=o),i++):i>0&&(t.push($ue(e.substr(r,i))),i=0)}return i>0&&t.push($ue(e.substr(r,i))),t}function $ue(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Que(e)}}function Que(e){return cDe(e,!1)}function Zue(e){return cDe(e,!0)}function cDe(e,t){const r=[];let i=0;for(let o=1;o<e.length;o++){const s=Yue(e.charCodeAt(o-1)),l=Yue(e.charCodeAt(o)),u=Lqe(e,t,o),p=t&&Mqe(e,o,i);(ede(e.charCodeAt(o-1))||ede(e.charCodeAt(o))||s!==l||u||p)&&(uDe(e,i,o)||r.push(vu(i,o-i)),i=o)}return uDe(e,i,e.length)||r.push(vu(i,e.length-i)),r}function ede(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 uDe(e,t,r){return OX(e,i=>ede(i)&&i!==95,t,r)}function Mqe(e,t,r){return t!==r&&t+1<e.length&&RD(e.charCodeAt(t))&&lDe(e.charCodeAt(t+1))&&OX(e,RD,r,t)}function Lqe(e,t,r){const i=RD(e.charCodeAt(r-1));return RD(e.charCodeAt(r))&&(!t||!i)}function dDe(e,t,r){for(let i=e;i<t;i++)if(!r(i))return!1;return!0}function OX(e,t,r=0,i=e.length){return dDe(r,i,o=>t(e.charCodeAt(o),o))}var N5,kqe=I({"src/services/patternMatcher.ts"(){si(),N5=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(N5||{})}});function pDe(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},o=[];let s,l,u,p=0,h=!1;function m(){return l=u,u=Qu.scan(),u===19?p++:u===20&&p--,u}function y(){const V=Qu.getTokenValue(),se=Qu.getTokenStart();return{fileName:V,pos:se,end:se+V.length}}function T(){s||(s=[]),s.push({ref:y(),depth:p})}function A(){o.push(y()),R()}function R(){p===0&&(h=!0)}function M(){let V=Qu.getToken();return V===138?(V=m(),V===144&&(V=m(),V===11&&T()),!0):!1}function C(){if(l===25)return!1;let V=Qu.getToken();if(V===102){if(V=m(),V===21){if(V=m(),V===11||V===15)return A(),!0}else{if(V===11)return A(),!0;if(V===156&&Qu.lookAhead(()=>{const G=Qu.scan();return G!==161&&(G===42||G===19||G===80||Bd(G))})&&(V=m()),V===80||Bd(V))if(V=m(),V===161){if(V=m(),V===11)return A(),!0}else if(V===64){if(U(!0))return!0}else if(V===28)V=m();else return!0;if(V===19){for(V=m();V!==20&&V!==1;)V=m();V===20&&(V=m(),V===161&&(V=m(),V===11&&A()))}else V===42&&(V=m(),V===130&&(V=m(),(V===80||Bd(V))&&(V=m(),V===161&&(V=m(),V===11&&A()))))}return!0}return!1}function O(){let V=Qu.getToken();if(V===95){if(R(),V=m(),V===156&&Qu.lookAhead(()=>{const G=Qu.scan();return G===42||G===19})&&(V=m()),V===19){for(V=m();V!==20&&V!==1;)V=m();V===20&&(V=m(),V===161&&(V=m(),V===11&&A()))}else if(V===42)V=m(),V===161&&(V=m(),V===11&&A());else if(V===102&&(V=m(),V===156&&Qu.lookAhead(()=>{const G=Qu.scan();return G===80||Bd(G)})&&(V=m()),(V===80||Bd(V))&&(V=m(),V===64&&U(!0))))return!0;return!0}return!1}function U(V,se=!1){let G=V?m():Qu.getToken();return G===149?(G=m(),G===21&&(G=m(),(G===11||se&&G===15)&&A()),!0):!1}function K(){let V=Qu.getToken();if(V===80&&Qu.getTokenValue()==="define"){if(V=m(),V!==21)return!0;if(V=m(),V===11||V===15)if(V=m(),V===28)V=m();else return!0;if(V!==23)return!0;for(V=m();V!==24&&V!==1;)(V===11||V===15)&&A(),V=m();return!0}return!1}function Q(){for(Qu.setText(e),m();Qu.getToken()!==1;){if(Qu.getToken()===16){const V=[Qu.getToken()];e:for(;Ne(V);){const se=Qu.scan();switch(se){case 1:break e;case 102:C();break;case 16:V.push(se);break;case 19:Ne(V)&&V.push(se);break;case 20:Ne(V)&&(el(V)===16?Qu.reScanTemplateToken(!1)===18&&V.pop():V.pop());break}}m()}M()||C()||O()||r&&(U(!1,!0)||K())||m()}Qu.setText(void 0)}if(t&&Q(),OH(i,e),WH(i,Ya),h){if(s)for(const V of s)o.push(V.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let V;if(s)for(const se of s)se.depth===0?(V||(V=[]),V.push(se.ref.fileName)):o.push(se.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:V}}}var wqe=I({"src/services/preProcess.ts"(){si()}});function tde(e){const t=Mu(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:p,toLineColumnOffset:T,clearCache:A};function s(R){return il(R,r,t)}function l(R,M){const C=s(R),O=o.get(C);if(O)return O;let U;if(e.getDocumentPositionMapper)U=e.getDocumentPositionMapper(R,M);else if(e.readFile){const K=y(R);U=K&&WX({getSourceFileLike:y,getCanonicalFileName:t,log:Q=>e.log(Q)},R,Cq(K.text,Ng(K)),Q=>!e.fileExists||e.fileExists(Q)?e.readFile(Q):void 0)}return o.set(C,U||jF),U||jF}function u(R){if(!Su(R.fileName)||!h(R.fileName))return;const C=l(R.fileName).getSourcePosition(R);return!C||C===R?void 0:u(C)||C}function p(R){if(Su(R.fileName))return;const M=h(R.fileName);if(!M)return;const C=e.getProgram();if(C.isSourceOfProjectReferenceRedirect(M.fileName))return;const O=C.getCompilerOptions(),U=Ps(O),K=U?Ad(U)+".d.ts":d3(R.fileName,C.getCompilerOptions(),r,C.getCommonSourceDirectory(),t);if(K===void 0)return;const Q=l(K,R.fileName).getGeneratedPosition(R);return Q===R?void 0:Q}function h(R){const M=e.getProgram();if(!M)return;const C=s(R),O=M.getSourceFileByPath(C);return O&&O.resolvedPath===C?O:void 0}function m(R){const M=s(R),C=i.get(M);if(C!==void 0)return C||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(M,!1);return}const O=e.readFile(R),U=O?Oqe(O):!1;return i.set(M,U),U||void 0}function y(R){return e.getSourceFileLike?e.getSourceFileLike(R):h(R)||m(R)}function T(R,M){return y(R).getLineAndCharacterOfPosition(M)}function A(){i.clear(),o.clear()}}function WX(e,t,r,i){let o=Jse(r);if(o){const u=mDe.exec(o);if(u){if(u[1]){const p=u[1];return fDe(e,Jie(gu,p),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const l=o&&go(o,ai(t));for(const u of s){const p=go(u,ai(t)),h=i(p,l);if(Mo(h))return fDe(e,h,p);if(h!==void 0)return h||void 0}}function fDe(e,t,r){const i=Pq(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Mo)))return Yse(e,i,r)}function Oqe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return Vx(Ng(this),r)}}}var mDe,Wqe=I({"src/services/sourcemaps.ts"(){si(),mDe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function FX(e,t,r){var i;t.getSemanticDiagnostics(e,r);const o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||Sc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(fue(t)||JK(t.getCompilerOptions()))&&Fqe(e)&&o.push(kr(Vqe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=cd(e);if(VX.clear(),p(e),MS(t.getCompilerOptions()))for(const h of e.imports){const m=IC(h),y=zqe(m);if(!y)continue;const T=(i=t.getResolvedModuleFromModuleSpecifier(h))==null?void 0:i.resolvedModule,A=T&&t.getSourceFile(T.resolvedFileName);A&&A.externalModuleIndicator&&A.externalModuleIndicator!==!0&&kl(A.externalModuleIndicator)&&A.externalModuleIndicator.isExportEquals&&o.push(kr(y,f.Import_may_be_converted_to_a_default_import))}return qr(o,e.bindSuggestionDiagnostics),qr(o,t.getSuggestionDiagnostics(e,r)),o.sort((h,m)=>h.start-m.start);function p(h){if(u)Uqe(h,s)&&o.push(kr(Oi(h.parent)?h.parent.name:h,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Ll(h)&&h.parent===e&&h.declarationList.flags&2&&h.declarationList.declarations.length===1){const y=h.declarationList.declarations[0].initializer;y&&Td(y,!0)&&o.push(kr(y,f.require_call_may_be_converted_to_an_import))}const m=Fu.getJSDocTypedefNodes(h);for(const y of m)o.push(kr(y,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));Fu.parameterShouldGetTypeFromJSDoc(h)&&o.push(kr(h.name||h,f.JSDoc_types_may_be_moved_to_TypeScript_types))}GX(h)&&Bqe(h,s,o),h.forEachChild(p)}}function Fqe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Td(_De(r.initializer),!0));case 244:{const{expression:r}=t;if(!mr(r))return Td(r,!0);const i=zl(r);return i===1||i===2}default:return!1}})}function _De(e){return Fr(e)?_De(e.expression):e}function zqe(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Na(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function Bqe(e,t,r){Gqe(e,t)&&!VX.has(yDe(e))&&r.push(kr(!e.name&&Oi(e.parent)&&Ve(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function Gqe(e,t){return!NC(e)&&e.body&&Ko(e.body)&&jqe(e.body,t)&&zX(e,t)}function zX(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function Vqe(e){return mr(e)?e.left:e}function jqe(e,t){return!!LE(e,r=>C5(r,t))}function C5(e,t){return Im(e)&&!!e.expression&&BX(e.expression,t)}function BX(e,t){if(!hDe(e)||!gDe(e)||!e.arguments.every(i=>vDe(i,t)))return!1;let r=e.expression.expression;for(;hDe(r)||Fr(r);)if(sa(r)){if(!gDe(r)||!r.arguments.every(i=>vDe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function hDe(e){return sa(e)&&(Qw(e,"then")||Qw(e,"catch")||Qw(e,"finally"))}function gDe(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||bt(e.arguments,i=>i.kind===106||Ve(i)&&i.text==="undefined")}function vDe(e,t){switch(e.kind){case 262:case 218:if(Bc(e)&1)return!1;case 219:VX.set(yDe(e),!0);case 106:return!0;case 80:case 211:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||bt(bu(i,t).declarations,o=>ea(o)||Ly(o)&&!!o.initializer&&ea(o.initializer)):!1}default:return!1}}function yDe(e){return`${e.pos.toString()}:${e.end.toString()}`}function Uqe(e,t){var r,i,o,s;if(Os(e)){if(Oi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;const l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return Tc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function GX(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var VX,Hqe=I({"src/services/suggestionDiagnostics.ts"(){si(),VX=new Map}});function nde(e,t){const r=[],i=t.compilerOptions?jX(t.compilerOptions,r):{},o=Q5();for(const T in o)Is(o,T)&&i[T]===void 0&&(i[T]=o[T]);for(const T of nq)i.verbatimModuleSyntax&&EDe.has(T.name)||(i[T.name]=T.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const s=Fv(i),l={getSourceFile:T=>T===ha(u)?p:void 0,writeFile:(T,A)=>{Il(T,".map")?(N.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",T),m=A):(N.assertEqual(h,void 0,"Unexpected multiple outputs, file:",T),h=A)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:T=>T,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:T=>T===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=iw(u,e,{languageVersion:os(i),impliedNodeFormat:Bw(il(u,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:fk(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,m;const y=d7([u],i,l);return t.reportDiagnostics&&(qr(r,y.getSyntacticDiagnostics(p)),qr(r,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),h===void 0?N.fail("Output generation failed"):{outputText:h,diagnostics:r,sourceMapText:m}}function bDe(e,t,r,i,o){const s=nde(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return qr(i,s.diagnostics),s.outputText}function jX(e,t){rde=rde||mn(lg,r=>typeof r.type=="object"&&!zc(r.type,i=>typeof i!="number")),e=GK(e);for(const r of rde){if(!Is(e,r.name))continue;const i=e[r.name];Mo(i)?e[r.name]=uF(r,i,t):zc(r.type,o=>o===i)||t.push(Kae(r))}return e}var EDe,rde,qqe=I({"src/services/transpile.ts"(){si(),EDe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function SDe(e,t,r,i,o,s,l){const u=que(i);if(!u)return et;const p=[],h=e.length===1?e[0]:void 0;for(const m of e)r.throwIfCancellationRequested(),!(s&&m.isDeclarationFile)&&(TDe(m,!!l,h)||m.getNamedDeclarations().forEach((y,T)=>{Jqe(u,T,y,t,m.fileName,!!l,h,p)}));return p.sort($qe),(o===void 0?p:p.slice(0,o)).map(Qqe)}function TDe(e,t,r){return e!==r&&t&&(vO(e.path)||e.hasNoDefaultLib)}function Jqe(e,t,r,i,o,s,l,u){const p=e.getMatchForLastSegmentOfPattern(t);if(p){for(const h of r)if(Kqe(h,i,s,l))if(e.patternContainsDots){const m=e.getFullMatch(Yqe(h),t);m&&u.push({name:t,fileName:o,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:h})}else u.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:h})}}function Kqe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:const s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(u=>TDe(u.getSourceFile(),r,i)));default:return!0}}function Xqe(e,t){const r=Lo(e);return!!r&&(ADe(r,t)||r.kind===167&&ide(r.expression,t))}function ide(e,t){return ADe(e,t)||Fr(e)&&(t.push(e.name.text),!0)&&ide(e.expression,t)}function ADe(e,t){return x_(e)&&(t.push(Qf(e)),!0)}function Yqe(e){const t=[],r=Lo(e);if(r&&r.kind===167&&!ide(r.expression,t))return et;t.shift();let i=eT(e);for(;i;){if(!Xqe(i,t))return et;i=eT(i)}return t.reverse()}function $qe(e,t){return nl(e.matchKind,t.matchKind)||L2(e.name,t.name)}function Qqe(e){const t=e.declaration,r=eT(t),i=r&&Lo(r);return{name:e.name,kind:f1(t),kindModifiers:nM(t),matchKind:N5[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Dd(t),containerName:i?i.text:"",containerKind:i?f1(r):""}}var Zqe=I({"src/services/navigateTo.ts"(){si()}}),ode={};ee(ode,{getNavigateToItems:()=>SDe});var IDe=I({"src/services/_namespaces/ts.NavigateTo.ts"(){Zqe()}});function xDe(e,t){JX=t,SO=e;try{return Wt(iJe(CDe(e)),oJe)}finally{DDe()}}function RDe(e,t){JX=t,SO=e;try{return zDe(CDe(e))}finally{DDe()}}function DDe(){SO=void 0,JX=void 0,TO=[],Yv=void 0,KX=[]}function P5(e){return fM(e.getText(SO))}function UX(e){return e.node.kind}function NDe(e,t){e.children?e.children.push(t):e.children=[t]}function CDe(e){N.assert(!TO.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Yv=t;for(const r of e.statements)xI(r);return C0(),N.assert(!Yv&&!TO.length),t}function h1(e,t){NDe(Yv,ade(e,t))}function ade(e,t){return{node:e,name:t||(Ju(e)||yt(e)?Lo(e):void 0),additionalNodes:void 0,parent:Yv,children:void 0,indent:Yv.indent+1}}function PDe(e){DD||(DD=new Map),DD.set(e,!0)}function MDe(e){for(let t=0;t<e;t++)C0()}function LDe(e,t){const r=[];for(;!x_(t);){const i=BL(t),o=kg(t);t=t.expression,!(o==="prototype"||qi(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){const o=r[i];g1(e,o)}return[r.length-1,r[0]]}function g1(e,t){const r=ade(e,t);NDe(Yv,r),TO.push(Yv),mde.push(DD),DD=void 0,Yv=r}function C0(){Yv.children&&(HX(Yv.children,Yv),cde(Yv.children)),Yv=TO.pop(),DD=mde.pop()}function P0(e,t,r){g1(e,r),xI(t),C0()}function kDe(e){e.initializer&&sJe(e.initializer)?(g1(e),Uo(e.initializer,xI),C0()):P0(e,e.initializer)}function sde(e){const t=Lo(e);if(t===void 0)return!1;if(Za(t)){const r=t.expression;return Bl(r)||hp(r)||ef(r)}return!!t}function xI(e){if(JX.throwIfCancellationRequested(),!(!e||EA(e)))switch(e.kind){case 176:const t=e;P0(t,t.body);for(const l of t.parameters)pp(l,t)&&h1(l);break;case 174:case 177:case 178:case 173:sde(e)&&P0(e,e.body);break;case 172:sde(e)&&kDe(e);break;case 171:sde(e)&&h1(e);break;case 273:const r=e;r.name&&h1(r.name);const{namedBindings:i}=r;if(i)if(i.kind===274)h1(i);else for(const l of i.elements)h1(l);break;case 304:P0(e,e.name);break;case 305:const{expression:o}=e;Ve(o)?h1(e,o):h1(e);break;case 208:case 303:case 260:{const l=e;ta(l.name)?xI(l.name):kDe(l);break}case 262:const s=e.name;s&&Ve(s)&&PDe(s.text),P0(e,e.body);break;case 219:case 218:P0(e,e.body);break;case 266:g1(e);for(const l of e.members)aJe(l)||h1(l);C0();break;case 263:case 231:case 264:g1(e);for(const l of e.members)xI(l);C0();break;case 267:P0(e,GDe(e).body);break;case 277:{const l=e.expression,u=La(l)||sa(l)?l:Gs(l)||Os(l)?l.body:void 0;u?(g1(e),xI(u),C0()):h1(e);break}case 281:case 271:case 181:case 179:case 180:case 265:h1(e);break;case 213:case 226:{const l=zl(e);switch(l){case 1:case 2:P0(e,e.right);return;case 6:case 3:{const u=e,p=u.left,h=l===3?p.expression:p;let m=0,y;Ve(h.expression)?(PDe(h.expression.text),y=h.expression):[m,y]=LDe(u,h.expression),l===6?La(u.right)&&u.right.properties.length>0&&(g1(u,y),Uo(u.right,xI),C0()):Os(u.right)||Gs(u.right)?P0(e,u.right,y):(g1(u,y),P0(e,u.right,p.name),C0()),MDe(m);return}case 7:case 9:{const u=e,p=l===7?u.arguments[0]:u.arguments[0].expression,h=u.arguments[1],[m,y]=LDe(e,p);g1(e,y),g1(e,dt(w.createIdentifier(h.text),h)),xI(e.arguments[2]),C0(),C0(),MDe(m);return}case 5:{const u=e,p=u.left,h=p.expression;if(Ve(h)&&kg(p)!=="prototype"&&DD&&DD.has(h.text)){Os(u.right)||Gs(u.right)?P0(e,u.right,h):OE(p)&&(g1(u,h),P0(u.left,u.right,BL(p)),C0());return}break}case 4:case 0:case 8:break;default:N.assertNever(l)}}default:Wp(e)&&Xe(e.jsDoc,l=>{Xe(l.tags,u=>{$f(u)&&h1(u)})}),Uo(e,xI)}}function HX(e,t){const r=new Map;li(e,(i,o)=>{const s=i.name||Lo(i.node),l=s&&P5(s);if(!l)return!0;const u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(const p of u)if(wDe(p,i,o,t))return!1;return u.push(i),!0}else{const p=u;return wDe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function eJe(e,t,r,i){function o(u){return Os(u)||Tc(u)||Oi(u)}const s=mr(t.node)||sa(t.node)?zl(t.node):0,l=mr(e.node)||sa(e.node)?zl(e.node):0;if(mM[s]&&mM[l]||o(e.node)&&mM[s]||o(t.node)&&mM[l]||Ac(e.node)&&lde(e.node)&&mM[s]||Ac(t.node)&&mM[l]||Ac(e.node)&&lde(e.node)&&o(t.node)||Ac(t.node)&&o(e.node)&&lde(e.node)){let u=e.additionalNodes&&el(e.additionalNodes)||e.node;if(!Ac(e.node)&&!Ac(t.node)||o(e.node)||o(t.node)){const h=o(e.node)?e.node:o(t.node)?t.node:void 0;if(h!==void 0){const m=dt(w.createConstructorDeclaration(void 0,[],void 0),h),y=ade(m);y.indent=e.indent+1,y.children=e.node===h?e.children:t.children,e.children=e.node===h?So([y],t.children||[t]):So(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=So(e.children||[{...e}],t.children||[t]),e.children&&(HX(e.children,e),cde(e.children)));u=e.node=dt(w.createClassDeclaration(void 0,e.name||w.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=So(e.children,t.children),e.children&&HX(e.children,e);const p=t.node;return i.children[r-1].node.end===u.end?dt(u,{pos:u.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(dt(w.createClassDeclaration(void 0,e.name||w.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function wDe(e,t,r,i){return eJe(e,t,r,i)?!0:tJe(e.node,t.node,i)?(nJe(e,t),!0):!1}function tJe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(ODe(e,r)&&ODe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return aa(e)===aa(t);case 267:return WDe(e,t)&&pde(e)===pde(t);default:return!0}}function lde(e){return!!(e.flags&16)}function ODe(e,t){const r=L_(e.parent)?e.parent.parent:e.parent;return r===t.node||Or(t.additionalNodes,r)}function WDe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||WDe(e.body,t.body))}function nJe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=So(e.children,t.children),e.children&&(HX(e.children,e),cde(e.children))}function cde(e){e.sort(rJe)}function rJe(e,t){return L2(FDe(e.node),FDe(t.node))||nl(UX(e),UX(t))}function FDe(e){if(e.kind===267)return BDe(e);const t=Lo(e);if(t&&oc(t)){const r=IS(t);return r&&Vi(r)}switch(e.kind){case 218:case 219:case 231:return jDe(e);default:return}}function ude(e,t){if(e.kind===267)return fM(BDe(e));if(t){const r=Ve(t)?t.text:$s(t)?`[${P5(t.argumentExpression)}]`:P5(t);if(r.length>0)return fM(r)}switch(e.kind){case 312:const r=e;return sc(r)?`"${tg(ic(Ad(ha(r.fileName))))}"`:"<global>";case 277:return kl(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Fy(e)&2048?"default":jDe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return"<unknown>"}}function iJe(e){const t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(const s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(UX(o)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(UX(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function zDe(e){return{text:ude(e.node,e.name),kind:f1(e.node),kindModifiers:VDe(e.node),spans:dde(e),nameSpan:e.name&&fde(e.name),childItems:Wt(e.children,zDe)}}function oJe(e){return{text:ude(e.node,e.name),kind:f1(e.node),kindModifiers:VDe(e.node),spans:dde(e),childItems:Wt(e.children,t)||KX,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:ude(r.node,r.name),kind:f1(r.node),kindModifiers:nM(r.node),spans:dde(r),childItems:KX,indent:0,bolded:!1,grayed:!1}}}function dde(e){const t=[fde(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(fde(r));return t}function BDe(e){return ku(e)?fc(e.name):pde(e)}function pde(e){const t=[Qf(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Qf(e.name));return t.join(".")}function GDe(e){return e.body&&Xl(e.body)?GDe(e.body):e}function aJe(e){return!e.name||e.name.kind===167}function fde(e){return e.kind===312?tb(e):Dd(e,SO)}function VDe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),nM(e)}function jDe(e){const{parent:t}=e;if(e.name&&yL(e.name)>0)return fM(xs(e.name));if(Oi(t))return fM(xs(t.name));if(mr(t)&&t.operatorToken.kind===64)return P5(t.left).replace(HDe,"");if(hc(t))return P5(t.name);if(Fy(e)&2048)return"default";if(di(e))return"<class>";if(sa(t)){let r=UDe(t.expression);if(r!==void 0){if(r=fM(r),r.length>qX)return`${r} callback`;const i=fM(eo(t.arguments,o=>ls(o)||IA(o)?o.getText(SO):void 0).join(", "));return`${r}(${i}) callback`}}return"<function>"}function UDe(e){if(Ve(e))return e.text;if(Fr(e)){const t=UDe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function sJe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function fM(e){return e=e.length>qX?e.substring(0,qX)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var HDe,qX,JX,SO,TO,Yv,mde,DD,KX,mM,lJe=I({"src/services/navigationBar.ts"(){si(),HDe=/\s+/g,qX=150,TO=[],mde=[],KX=[],mM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),_de={};ee(_de,{getNavigationBarItems:()=>xDe,getNavigationTree:()=>RDe});var qDe=I({"src/services/_namespaces/ts.NavigationBar.ts"(){lJe()}});function cg(e,t){XX.set(e,t)}function cJe(e,t){return zo(EE(XX.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>M0(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function uJe(e,t,r,i){const o=XX.get(t);return o&&o.getEditsForAction(e,r,i)}var XX,JDe=I({"src/services/refactorProvider.ts"(){si(),xh(),XX=new Map}});function KDe(e,t=!0){const{file:r,program:i}=e,o=II(e),s=po(r,o.start),l=s.parent&&Fy(s.parent)&32&&t?s.parent:dO(s,r,o);if(!l||!$i(l.parent)&&!(L_(l.parent)&&ku(l.parent.parent)))return{error:Wo(f.Could_not_find_export_statement)};const u=i.getTypeChecker(),p=hJe(l.parent,u),h=Fy(l)||(kl(l)&&!l.isExportEquals?2080:0),m=!!(h&2048);if(!(h&32)||!m&&p.exports.has("default"))return{error:Wo(f.This_file_already_has_a_default_export)};const y=T=>Ve(T)&&u.getSymbolAtLocation(T)?void 0:{error:Wo(f.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const T=l;return T.name?y(T.name)||{exportNode:T,exportName:T.name,wasDefault:m,exportingModuleSymbol:p}:void 0}case 243:{const T=l;if(!(T.declarationList.flags&2)||T.declarationList.declarations.length!==1)return;const A=Ua(T.declarationList.declarations);return A.initializer?(N.assert(!m,"Can't have a default flag here"),y(A.name)||{exportNode:T,exportName:A.name,wasDefault:m,exportingModuleSymbol:p}):void 0}case 277:{const T=l;return T.isExportEquals?void 0:y(T.expression)||{exportNode:T,exportName:T.expression,wasDefault:m,exportingModuleSymbol:p}}default:return}}function dJe(e,t,r,i,o){pJe(e,r,i,t.getTypeChecker()),fJe(t,r,i,o)}function pJe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(kl(r)&&!r.isExportEquals){const l=r.expression,u=XDe(l.text,l.text);o.replaceNode(e,r,w.createExportDeclaration(void 0,!1,w.createNamedExports([u])))}else o.delete(e,N.checkDefined(SD(r,90),"Should find a default keyword in modifier list"));else{const l=N.checkDefined(SD(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,w.createToken(90));break;case 243:const u=Ua(r.declarationList.declarations);if(!Ws.Core.isSymbolReferencedInFile(i,s,e)&&!u.type){o.replaceNode(e,r,w.createExportDefault(N.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,l),o.insertNodeAfter(e,r,w.createExportDefault(w.createIdentifier(i.text)));break;default:N.fail(`Unexpected exportNode kind ${r.kind}`)}}}function fJe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){const l=e.getTypeChecker(),u=N.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Ws.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,p=>{if(r===p)return;const h=p.getSourceFile();t?mJe(h,p,o,r.text):_Je(h,p,o)})}function mJe(e,t,r,i){const{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,w.createIdentifier(i));break;case 276:case 281:{const l=o;r.replaceNode(e,l,hde(i,l.name.text));break}case 273:{const l=o;N.assert(l.name===t,"Import clause name should match provided ref");const u=hde(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,w.createNamedImports([u]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});const h=Na(l.parent.moduleSpecifier)?XK(l.parent.moduleSpecifier,e):1,m=Kv(void 0,[hde(i,t.text)],l.parent.moduleSpecifier,h);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,u);break}case 205:const s=o;r.replaceNode(e,o,w.createImportTypeNode(s.argument,s.attributes,w.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:N.failBadSyntaxKind(o)}}function _Je(e,t,r){const i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,w.createIdentifier("default"));break;case 276:{const o=w.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 281:{r.replaceNode(e,i,XDe("default",i.name.text));break}default:N.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function hde(e,t){return w.createImportSpecifier(!1,e===t?void 0:w.createIdentifier(e),w.createIdentifier(t))}function XDe(e,t){return w.createExportSpecifier(!1,e===t?void 0:w.createIdentifier(e),w.createIdentifier(t))}function hJe(e,t){if($i(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&PE(r.valueDeclaration)?t.getMergedSymbol(r):r}var YX,M5,L5,gJe=I({"src/services/refactors/convertExport.ts"(){si(),xh(),YX="Convert export",M5={name:"Convert default export to named export",description:Wo(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},L5={name:"Convert named export to default export",description:Wo(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},cg(YX,{kinds:[M5.kind,L5.kind],getAvailableActions:function(t){const r=KDe(t,t.triggerReason==="invoked");if(!r)return et;if(!Ug(r)){const i=r.wasDefault?M5:L5;return[{name:YX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:YX,description:Wo(f.Convert_default_export_to_named_export),actions:[{...M5,notApplicableReason:r.error},{...L5,notApplicableReason:r.error}]}]:et},getEditsForAction:function(t,r){N.assert(r===M5.name||r===L5.name,"Unexpected action name");const i=KDe(t);return N.assert(i&&!Ug(i),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(t,s=>dJe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function YDe(e,t=!0){const{file:r}=e,i=II(e),o=po(r,i.start),s=t?Vn(o,Mc):dO(o,r,i);if(!s||!Mc(s))return{error:"Selection is not an import declaration."};const l=i.start+i.length,u=m1(s,s.parent,r);if(u&&l>u.getStart())return;const{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:$De(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:Wo(f.Could_not_find_namespace_import_or_named_imports)}:{error:Wo(f.Could_not_find_import_clause)}}function $De(e,t){return MS(e.getCompilerOptions())&&EJe(t.parent.moduleSpecifier,e.getTypeChecker())}function vJe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?yJe(e,o,r,i.import,MS(t.getCompilerOptions())):ZDe(e,t,r,i.import,i.convertTo===1)}function yJe(e,t,r,i,o){let s=!1;const l=[],u=new Map;Ws.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!mre(y.parent))s=!0;else{const T=QDe(y.parent).text;t.resolveName(T,y,-1,!0)&&u.set(T,!0),N.assert(bJe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});const p=new Map;for(const y of l){const T=QDe(y).text;let A=p.get(T);A===void 0&&p.set(T,A=u.has(T)?rT(T,e):T),r.replaceNode(e,y,w.createIdentifier(A))}const h=[];p.forEach((y,T)=>{h.push(w.createImportSpecifier(!1,y===T?void 0:w.createIdentifier(T),w.createIdentifier(y)))});const m=i.parent.parent;s&&!o?r.insertNodeAfter(e,m,gde(m,void 0,h)):r.replaceNode(e,m,gde(m,s?w.createIdentifier(i.name.text):void 0,h))}function QDe(e){return Fr(e)?e.name:e.right}function bJe(e){return Fr(e)?e.expression:e.left}function ZDe(e,t,r,i,o=$De(t,i.parent)){const s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,p=new Set;i.elements.forEach(R=>{const M=s.getSymbolAtLocation(R.name);M&&p.add(M)});const h=u&&Na(u)?Fu.moduleSpecifierToValidIdentifier(u.text,99):"module";function m(R){return!!Ws.Core.eachSymbolReferenceInFile(R.name,s,e,M=>{const C=s.resolveName(h,M,-1,!0);return C?p.has(C)?Ku(M.parent):!0:!1})}const T=i.elements.some(m)?rT(h,e):h,A=new Set;for(const R of i.elements){const M=(R.propertyName||R.name).text;Ws.Core.eachSymbolReferenceInFile(R.name,s,e,C=>{const O=w.createPropertyAccessExpression(w.createIdentifier(T),M);np(C.parent)?r.replaceNode(e,C.parent,w.createPropertyAssignment(C.text,O)):Ku(C.parent)?A.add(R):r.replaceNode(e,C,O)})}if(r.replaceNode(e,i,o?w.createIdentifier(T):w.createNamespaceImport(w.createIdentifier(T))),A.size){const R=zo(A.values(),M=>w.createImportSpecifier(M.isTypeOnly,M.propertyName&&w.createIdentifier(M.propertyName.text),w.createIdentifier(M.name.text)));r.insertNodeAfter(e,i.parent.parent,gde(l,void 0,R))}}function EJe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function gde(e,t,r){return w.createImportDeclaration(void 0,w.createImportClause(!1,t,r&&r.length?w.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var $X,k5,SJe=I({"src/services/refactors/convertImport.ts"(){si(),xh(),$X="Convert import",k5={0:{name:"Convert namespace import to named imports",description:Wo(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Wo(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Wo(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},cg($X,{kinds:fA(k5).map(e=>e.kind),getAvailableActions:function(t){const r=YDe(t,t.triggerReason==="invoked");if(!r)return et;if(!Ug(r)){const i=k5[r.convertTo];return[{name:$X,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?fA(k5).map(i=>({name:$X,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):et},getEditsForAction:function(t,r){N.assert(bt(fA(k5),s=>s.name===r),"Unexpected action name");const i=YDe(t);return N.assert(i&&!Ug(i),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(t,s=>vJe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function eNe(e,t=!0){const{file:r,startPosition:i}=e,o=cd(r),s=Q7(II(e)),l=s.pos===s.end&&t,u=TJe(r,i,s,l);if(!u||!ji(u))return{error:Wo(f.Selection_is_not_a_valid_type_node)};const p=e.program.getTypeChecker(),h=DJe(u,o);if(h===void 0)return{error:Wo(f.No_type_could_be_extracted_from_this_type_node)};const m=NJe(u,h);if(!ji(m))return{error:Wo(f.Selection_is_not_a_valid_type_node)};const y=[];(qy(m.parent)||nI(m.parent))&&s.end>u.end&&qr(y,m.parent.types.filter(M=>V7(M,r,s.pos,s.end)));const T=y.length>1?y:m,A=AJe(p,T,h,r);if(!A)return{error:Wo(f.No_type_could_be_extracted_from_this_type_node)};const R=QX(p,T);return{isJS:o,selection:T,enclosingNode:h,typeParameters:A,typeElements:R}}function TJe(e,t,r,i){const o=[()=>po(e,t),()=>bD(e,t,()=>!0)];for(const s of o){const l=s(),u=V7(l,e,r.pos,r.end),p=Vn(l,h=>h.parent&&ji(h)&&!v1(r,h.parent,e)&&(i||u));if(p)return p}}function QX(e,t){if(t){if(To(t)){const r=[];for(const i of t){const o=QX(e,i);if(!o)return;qr(r,o)}return r}if(nI(t)){const r=[],i=new Map;for(const o of t.types){const s=QX(e,o);if(!s||!s.every(l=>l.name&&Am(i,cO(l.name))))return;qr(r,s)}return r}else{if(wS(t))return QX(e,t.type);if(yp(t))return t.members}}}function v1(e,t,r){return nO(e,Pa(r.text,t.pos),t.end)}function AJe(e,t,r,i){const o=[],s=mA(t),l={pos:s[0].pos,end:s[s.length-1].end};for(const p of s)if(u(p))return;return o;function u(p){if(Df(p)){if(Ve(p.typeName)){const h=p.typeName,m=e.resolveName(h.text,h,262144,!0);for(const y of(m==null?void 0:m.declarations)||et)if(hl(y)&&y.getSourceFile()===i){if(y.name.escapedText===h.escapedText&&v1(y,l,i))return!0;if(v1(r,y,i)&&!v1(l,y,i)){Ef(o,y);break}}}}else if(kS(p)){const h=Vn(p,m=>rI(m)&&v1(m.extendsType,p,i));if(!h||!v1(l,h,i))return!0}else if(Gk(p)||jk(p)){const h=Vn(p.parent,ea);if(h&&h.type&&v1(h.type,p,i)&&!v1(l,h,i))return!0}else if(eI(p)){if(Ve(p.exprName)){const h=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(h!=null&&h.valueDeclaration&&v1(r,h.valueDeclaration,i)&&!v1(l,h.valueDeclaration,i))return!0}else if(VE(p.exprName.left)&&!v1(l,p.parent,i))return!0}return i&&tI(p)&&ys(i,p.pos).line===ys(i,p.end).line&&pr(p,1),Uo(p,u)}}function IJe(e,t,r,i){const{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:p}=vde(i),h=w.createTypeAliasDeclaration(void 0,r,s.map(m=>w.updateTypeParameterDeclaration(m,m.modifiers,m.name,m.constraint,void 0)),p);e.insertNodeBefore(t,o,$U(h),!0),e.replaceNodeRange(t,l,u,w.createTypeReferenceNode(r,s.map(m=>w.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.ExcludeWhitespace})}function xJe(e,t,r,i){var o;const{enclosingNode:s,typeParameters:l,typeElements:u}=i,p=w.createInterfaceDeclaration(void 0,r,l,void 0,u);dt(p,(o=u[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,$U(p),!0);const{firstTypeNode:h,lastTypeNode:m}=vde(i);e.replaceNodeRange(t,h,m,w.createTypeReferenceNode(r,l.map(y=>w.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.ExcludeWhitespace})}function RJe(e,t,r,i,o){var s;mA(o.selection).forEach(R=>{pr(R,7168)});const{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:p,lastTypeNode:h,newTypeNode:m}=vde(o),y=w.createJSDocTypedefTag(w.createIdentifier("typedef"),w.createJSDocTypeExpression(m),w.createIdentifier(i)),T=[];Xe(u,R=>{const M=Jx(R),C=w.createTypeParameterDeclaration(void 0,R.name),O=w.createJSDocTemplateTag(w.createIdentifier("template"),M&&oa(M,o1),[C]);T.push(O)});const A=w.createJSDocComment(void 0,w.createNodeArray(So(T,[y])));if(Zm(l)){const R=l.getStart(r),M=Xv(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),A,{suffix:M+M+r.text.slice(l5(r.text,R-1),R)})}else e.insertNodeBefore(r,l,A,!0);e.replaceNodeRange(r,p,h,w.createTypeReferenceNode(i,u.map(R=>w.createTypeReferenceNode(R.name,void 0))))}function vde(e){return To(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:qy(e.selection[0].parent)?w.createUnionTypeNode(e.selection):w.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function DJe(e,t){return Vn(e,Hi)||(t?Vn(e,Zm):void 0)}function NJe(e,t){return Vn(e,r=>r===t?"quit":!!(qy(r.parent)||nI(r.parent)))??e}var ZX,w5,O5,W5,CJe=I({"src/services/refactors/extractType.ts"(){si(),xh(),ZX="Extract type",w5={name:"Extract to type alias",description:Wo(f.Extract_to_type_alias),kind:"refactor.extract.type"},O5={name:"Extract to interface",description:Wo(f.Extract_to_interface),kind:"refactor.extract.interface"},W5={name:"Extract to typedef",description:Wo(f.Extract_to_typedef),kind:"refactor.extract.typedef"},cg(ZX,{kinds:[w5.kind,O5.kind,W5.kind],getAvailableActions:function(t){const r=eNe(t,t.triggerReason==="invoked");return r?Ug(r)?t.preferences.provideRefactorNotApplicableReason?[{name:ZX,description:Wo(f.Extract_type),actions:[{...W5,notApplicableReason:r.error},{...w5,notApplicableReason:r.error},{...O5,notApplicableReason:r.error}]}]:et:[{name:ZX,description:Wo(f.Extract_type),actions:r.isJS?[W5]:Rn([w5],r.typeElements&&O5)}]:et},getEditsForAction:function(t,r){const{file:i}=t,o=eNe(t);N.assert(o&&!Ug(o),"Expected to find a range to extract");const s=rT("NewType",i),l=_r.ChangeTracker.with(t,h=>{switch(r){case w5.name:return N.assert(!o.isJS,"Invalid actionName/JS combo"),IJe(h,i,s,o);case W5.name:return N.assert(o.isJS,"Invalid actionName/JS combo"),RJe(h,t,i,s,o);case O5.name:return N.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),xJe(h,i,s,o);default:N.fail("Unexpected action name")}}),u=i.fileName,p=mO(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:p}}})}});function Ug(e){return e.error!==void 0}function M0(e,t){return t?e.substr(0,t.length)===t:!0}var PJe=I({"src/services/refactors/helpers.ts"(){}});function tNe(e,t,r,i){var o,s;const l=i.getTypeChecker(),u=Vd(e,t),p=u.parent;if(Ve(u)){if(dk(p)&&bC(p)&&Ve(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:Wo(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(nNe(p))return;const h=rNe(p,l,e);return h&&{references:h,declaration:p,replacement:p.initializer}}if(r){let h=l.resolveName(u.text,u,111551,!1);if(h=h&&l.getMergedSymbol(h),((s=h==null?void 0:h.declarations)==null?void 0:s.length)!==1)return{error:Wo(f.Variables_with_multiple_declarations_cannot_be_inlined)};const m=h.declarations[0];if(!dk(m)||!bC(m)||!Ve(m.name)||nNe(m))return;const y=rNe(m,l,e);return y&&{references:y,declaration:m,replacement:m.initializer}}return{error:Wo(f.Could_not_find_variable_to_inline)}}}function nNe(e){const t=oa(e.parent.parent,Ll);return bt(t.modifiers,$A)}function rNe(e,t,r){const i=[],o=Ws.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Ws.isWriteAccessForReference(s)&&!np(s.parent)||Ku(s.parent)||kl(s.parent)||eI(s.parent)||eL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function MJe(e,t){t=ll(t);const{parent:r}=e;return yt(r)&&(MC(t)<MC(r)||c5(r))||ea(t)&&(NE(r)||Fr(r))||Fr(r)&&(hp(t)||La(t))?w.createParenthesizedExpression(t):Ve(e)&&np(r)?w.createPropertyAssignment(e,t):t}var AO,eY,tY,LJe=I({"src/services/refactors/inlineVariable.ts"(){si(),xh(),AO="Inline variable",eY=Wo(f.Inline_variable),tY={name:AO,description:eY,kind:"refactor.inline.variable"},cg(AO,{kinds:[tY.kind],getAvailableActions(e){const{file:t,program:r,preferences:i,startPosition:o,triggerReason:s}=e,l=tNe(t,o,s==="invoked",r);return l?RI.isRefactorErrorInfo(l)?i.provideRefactorNotApplicableReason?[{name:AO,description:eY,actions:[{...tY,notApplicableReason:l.error}]}]:et:[{name:AO,description:eY,actions:[tY]}]:et},getEditsForAction(e,t){N.assert(t===AO,"Unexpected refactor invoked");const{file:r,program:i,startPosition:o}=e,s=tNe(r,o,!0,i);if(!s||RI.isRefactorErrorInfo(s))return;const{references:l,declaration:u,replacement:p}=s;return{edits:_r.ChangeTracker.with(e,m=>{for(const y of l)m.replaceNode(r,y,MJe(y,p));m.delete(r,u)})}}})}});function kJe(e,t,r,i,o,s){const l=t.getTypeChecker(),u=B5(e,r.all,l),p=Nde(e,t,o,r);i.createNewFile(e,p,wJe(e,u,i,r,t,o,p,s)),yde(t,i,e.fileName,p,wv(o))}function wJe(e,t,r,i,o,s,l,u){const p=o.getTypeChecker(),h=C6(e.statements,Sm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return F5(e,i.ranges,r),[...h,...i.all];const m=!EX(l,o,s,!!e.commonJsModuleIndicator),y=lf(e,u),T=Tde(e,t.oldFileImportsFromTargetFile,l,o,s,m,y);T&&iM(r,e,T,!0,u),bde(e,i.all,r,t.unusedImportsFromOldFile,p),F5(e,i.ranges,r),Ede(r,o,s,e,t.movedSymbols,l,y);const A=OJe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,y),R=Ade(e,i.all,t.oldFileImportsFromTargetFile,m);return A.length&&R.length?[...h,...A,4,...R]:[...h,...A,...R]}function OJe(e,t,r,i,o,s,l,u,p){const h=[];for(const A of e.statements)RO(A,R=>{Rn(h,DO(R,xO(R),M=>t.has(o.getSymbolAtLocation(M))))});let m;const y=[],T=TI();return r.forEach(A=>{if(A.declarations)for(const R of A.declarations){if(!G5(R))continue;const M=Rde(R);if(!M)continue;const C=iY(R);T(C)&&Dde(e,C,M,i,u),Qr(R,2048)?m=M:y.push(M.text)}}),Rn(h,z5(e,m,y,ic(e.fileName),s,l,u,p)),h}var IO,nY,rY,WJe=I({"src/services/refactors/moveToNewFile.ts"(){si(),xh(),IO="Move to a new file",nY=Wo(f.Move_to_a_new_file),rY={name:IO,description:nY,kind:"refactor.move.newFile"},cg(IO,{kinds:[rY.kind],getAvailableActions:function(t){const r=NO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:IO,description:nY,actions:[rY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:IO,description:nY,actions:[{...rY,notApplicableReason:Wo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et},getEditsForAction:function(t,r){N.assert(r===IO,"Wrong refactor invoked");const i=N.checkDefined(NO(t));return{edits:_r.ChangeTracker.with(t,s=>kJe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function iNe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function FJe(e,t,r,i,o,s,l,u){const p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,oNe(t,r,B5(t,o.all,p),s,o,i,l,u)),yde(i,s,t.fileName,r,wv(l));else{const h=N.checkDefined(i.getSourceFile(r)),m=Fu.createImportAdder(h,e.program,e.preferences,e.host);oNe(t,h,B5(t,o.all,p,rKe(h,o.all,p)),s,o,i,l,u,m)}}function oNe(e,t,r,i,o,s,l,u,p){const h=s.getTypeChecker(),m=C6(e.statements,Sm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return F5(e,o.ranges,i),[...m,...o.all];const y=typeof t=="string"?t:t.fileName,T=!EX(y,s,l,!!e.commonJsModuleIndicator),A=lf(e,u),R=Tde(e,r.oldFileImportsFromTargetFile,y,s,l,T,A);R&&iM(i,e,R,!0,u),bde(e,o.all,i,r.unusedImportsFromOldFile,h),F5(e,o.ranges,i),Ede(i,s,l,e,r.movedSymbols,y,A);const M=zJe(e,y,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,h,s,l,T,A,p),C=Ade(e,o.all,r.oldFileImportsFromTargetFile,T);return typeof t!="string"&&(t.statements.length>0?nKe(i,s,C,t,o):i.insertNodesAtEndOfFile(t,C,!1),M.length>0&&iM(i,t,M,!0,u)),p&&p.writeFixes(i,A),M.length&&C.length?[...m,...M,4,...C]:[...m,...M,...C]}function zJe(e,t,r,i,o,s,l,u,p,h,m){const y=[];if(m)r.forEach((C,O)=>{try{m.addImportFromExportedSymbol(bu(O,s),C)}catch{for(const U of e.statements)RO(U,K=>{Rn(y,DO(K,w.createStringLiteral(xO(K).text),Q=>r.has(s.getSymbolAtLocation(Q))))})}});else{const C=l.getSourceFile(t);for(const O of e.statements)RO(O,U=>{var K;const Q=xO(U),V=l.getCompilerOptions(),se=l.getResolvedModuleFromModuleSpecifier(Q),G=(K=se==null?void 0:se.resolvedModule)==null?void 0:K.resolvedFileName;if(G&&C){const ne=MF(V,C,C.fileName,G,tT(l,u));Rn(y,DO(U,AI(ne,h),he=>r.has(s.getSymbolAtLocation(he))))}else Rn(y,DO(U,w.createStringLiteral(xO(U).text),ne=>r.has(s.getSymbolAtLocation(ne))))})}const T=l.getSourceFile(t);let A;const R=[],M=TI();return i.forEach(C=>{if(C.declarations)for(const O of C.declarations){if(!G5(O))continue;const U=Rde(O);if(!U)continue;const K=iY(O);M(K)&&Dde(e,K,U,o,p),m&&s.isUnknownSymbol(C)?m.addImportFromExportedSymbol(bu(C,s)):Qr(O,2048)?A=U:R.push(U.text)}}),T?Rn(y,z5(T,A,R,e.fileName,l,u,p,h)):Rn(y,z5(e,A,R,e.fileName,l,u,p,h))}function yde(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const l=ha($r(r,"..",i)),u=H2(s.fileName,l,o),p=s.statements[0]&&ri(s.statements[0].expression,La),h=p&&In(p.properties,m=>hc(m)&&Na(m.name)&&m.name.text==="files");h&&fd(h.initializer)&&t.insertNodeInListAfter(s,Xa(h.initializer.elements),w.createStringLiteral(u),h.initializer.elements)}function F5(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function bde(e,t,r,i,o){for(const s of e.statements)Or(t,s)||RO(s,l=>Ide(e,l,r,u=>i.has(o.getSymbolAtLocation(u))))}function Ede(e,t,r,i,o,s,l){const u=t.getTypeChecker();for(const p of t.getSourceFiles())if(p!==i)for(const h of p.statements)RO(h,m=>{if(u.getSymbolAtLocation(xO(m))!==i.symbol)return;const y=C=>{const O=$a(C.parent)?o5(u,C.parent):bu(u.getSymbolAtLocation(C),u);return!!O&&o.has(O)};Ide(p,m,e,y);const T=Iy(ai(i.path),s),A=MF(t.getCompilerOptions(),p,p.fileName,T,tT(t,r)),R=DO(m,AI(A,l),y);R&&e.insertNodeAfter(p,h,R);const M=BJe(m);M&&GJe(e,p,u,o,A,M,m,l)})}function BJe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return ri(e.name,Ve);default:return N.assertNever(e,`Unexpected node kind ${e.kind}`)}}function GJe(e,t,r,i,o,s,l,u){const p=Fu.moduleSpecifierToValidIdentifier(o,99);let h=!1;const m=[];if(Ws.Core.eachSymbolReferenceInFile(s,r,t,y=>{Fr(y.parent)&&(h=h||!!r.resolveName(p,y,-1,!0),i.has(r.getSymbolAtLocation(y.parent.name))&&m.push(y))}),m.length){const y=h?rT(p,t):p;for(const T of m)e.replaceNode(t,T,w.createIdentifier(y));e.insertNodeAfter(t,l,VJe(l,p,o,u))}}function VJe(e,t,r,i){const o=w.createIdentifier(t),s=AI(r,i);switch(e.kind){case 272:return w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamespaceImport(o)),s,void 0);case 271:return w.createImportEqualsDeclaration(void 0,!1,o,w.createExternalModuleReference(s));case 260:return w.createVariableDeclaration(o,void 0,void 0,Sde(s));default:return N.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Sde(e){return w.createCallExpression(w.createIdentifier("require"),void 0,[e])}function xO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function RO(e,t){if(Mc(e))Na(e.moduleSpecifier)&&t(e);else if(eu(e))Sh(e.moduleReference)&&ls(e.moduleReference.expression)&&t(e);else if(Ll(e))for(const r of e.declarationList.declarations)r.initializer&&Td(r.initializer,!0)&&t(r)}function Tde(e,t,r,i,o,s,l){let u;const p=[];return t.forEach(h=>{h.escapedName==="default"?u=w.createIdentifier(n5(h)):p.push(h.name)}),z5(e,u,p,r,i,o,s,l)}function z5(e,t,r,i,o,s,l,u){const p=Iy(ai(e.path),i),h=MF(o.getCompilerOptions(),e,e.fileName,p,tT(o,s));if(l){const m=r.map(y=>w.createImportSpecifier(!1,void 0,w.createIdentifier(y)));return mue(t,m,h,u)}else{N.assert(!t,"No default import should exist");const m=r.map(y=>w.createBindingElement(void 0,void 0,y));return m.length?aNe(w.createObjectBindingPattern(m),void 0,Sde(AI(h,u))):void 0}}function aNe(e,t,r,i=2){return w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(e,void 0,t,r)],i))}function Ade(e,t,r,i){return Do(t,o=>{if(lNe(o)&&!sNe(e,o,i)&&Mde(o,s=>{var l;return r.has(N.checkDefined((l=ri(s,T_))==null?void 0:l.symbol))})){const s=HJe(ll(o),i);if(s)return s}return ll(o)})}function sNe(e,t,r,i){var o;return r?!Zc(t)&&Qr(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&xde(t).some(s=>e.symbol.exports.has(_l(s)))}function Ide(e,t,r,i){switch(t.kind){case 272:jJe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:UJe(e,t,r,i);break;default:N.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function jJe(e,t,r,i){if(!t.importClause)return;const{name:o,namedBindings:s}=t.importClause,l=!o||i(o),u=!s||(s.kind===274?i(s.name):s.elements.length!==0&&s.elements.every(p=>i(p.name)));if(l&&u)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(u)r.replaceNode(e,t.importClause,w.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(const p of s.elements)i(p.name)&&r.delete(e,p)}}function UJe(e,t,r,i){const{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Td(t.initializer,!0)?r.delete(e,Vc(t.parent)&&Ne(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 207:break;case 206:if(o.elements.every(s=>Ve(s.name)&&i(s.name)))r.delete(e,Vc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const s of o.elements)Ve(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function lNe(e){return N.assert($i(e.parent),"Node parent should be a SourceFile"),fNe(e)||Ll(e)}function HJe(e,t){return t?[qJe(e)]:JJe(e)}function qJe(e){const t=Rm(e)?So([w.createModifier(95)],xE(e)):void 0;switch(e.kind){case 262:return w.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const r=qS(e)?Ry(e):void 0;return w.updateClassDeclaration(e,So(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return w.updateVariableStatement(e,t,e.declarationList);case 267:return w.updateModuleDeclaration(e,t,e.name,e.body);case 266:return w.updateEnumDeclaration(e,t,e.name,e.members);case 265:return w.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return w.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return w.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return N.fail();default:return N.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function JJe(e){return[e,...xde(e).map(cNe)]}function cNe(e){return w.createExpressionStatement(w.createBinaryExpression(w.createPropertyAccessExpression(w.createIdentifier("exports"),w.createIdentifier(e)),64,w.createIdentifier(e)))}function xde(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return eo(e.declarationList.declarations,t=>Ve(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return et;case 244:return N.fail("Can't export an ExpressionStatement");default:return N.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function DO(e,t,r){switch(e.kind){case 272:{const i=e.importClause;if(!i)return;const o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&KJe(i.namedBindings,r);return o||s?w.createImportDeclaration(void 0,w.createImportClause(i.isTypeOnly,o,s),ll(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{const i=XJe(e.name,r);return i?aNe(i,e.type,Sde(t),e.parent.flags):void 0}default:return N.assertNever(e,`Unexpected import kind ${e.kind}`)}}function KJe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?w.createNamedImports(r):void 0}}function XJe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const r=e.elements.filter(i=>i.propertyName||!Ve(i.name)||t(i.name));return r.length?w.createObjectBindingPattern(r):void 0}}}function Rde(e){return Zc(e)?ri(e.expression.left.name,Ve):ri(e.name,Ve)}function iY(e){switch(e.kind){case 260:return e.parent.parent;case 208:return iY(oa(e.parent.parent,t=>Oi(t)||$a(t)));default:return e}}function Dde(e,t,r,i,o){if(!sNe(e,t,o,r))if(o)Zc(t)||i.insertExportModifier(e,t);else{const s=xde(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(cNe))}}function Nde(e,t,r,i){const o=t.getTypeChecker();if(i){const s=B5(e,i.all,o),l=ai(e.fileName),u=XC(e.fileName);return $r(l,ZJe(eKe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function YJe(e){const{file:t}=e,r=Q7(II(e)),{statements:i}=t;let o=mi(i,h=>h.end>r.pos);if(o===-1)return;const s=i[o],l=mNe(t,s);l&&(o=l.start);let u=mi(i,h=>h.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;const p=mNe(t,i[u]);return p&&(u=p.end),{toMove:i.slice(o,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function NO(e){const t=YJe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return zB(o,$Je,(l,u)=>{for(let p=l;p<u;p++)r.push(o[p]);i.push({first:o[l],afterLast:s})}),r.length===0?void 0:{all:r,ranges:i}}function Cde(e){return In(e,t=>!!(t.transformFlags&2))}function $Je(e){return!QJe(e)&&!Sm(e)}function QJe(e){switch(e.kind){case 272:return!0;case 271:return!Qr(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Td(t.initializer,!0));default:return!1}}function B5(e,t,r,i=new Set){const o=new Set,s=new Map,l=new Set,u=m(Cde(t));u&&s.set(u,!1);for(const y of t)Mde(y,T=>{o.add(N.checkDefined(Zc(T)?r.getSymbolAtLocation(T.expression.left):T.symbol,"Need a symbol here"))});const p=new Set;for(const y of t)Pde(y,r,(T,A)=>{if(T.declarations){if(i.has(bu(T,r))){p.add(T);return}for(const R of T.declarations)if(uNe(R)){const M=s.get(T);s.set(T,(M===void 0||M)&&A)}else G5(R)&&tKe(R)===e&&!o.has(T)&&l.add(T)}});for(const y of s.keys())p.add(y);const h=new Set;for(const y of e.statements)Or(t,y)||(u&&y.transformFlags&2&&p.delete(u),Pde(y,r,T=>{o.has(T)&&h.add(T),p.delete(T)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function m(y){if(y===void 0)return;const T=r.getJsxNamespace(y),A=r.resolveName(T,y,1920,!0);return A&&bt(A.declarations,uNe)?A:void 0}}function ZJe(e,t,r,i){let o=e;for(let s=1;;s++){const l=$r(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function eKe(e,t){return fh(e,n5)||fh(t,n5)||"newFile"}function Pde(e,t,r){e.forEachChild(function i(o){if(Ve(o)&&!wg(o)){const s=t.getSymbolAtLocation(o);s&&r(s,h0(o))}else o.forEachChild(i)})}function Mde(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return Ht(e.declarationList.declarations,r=>pNe(r.name,t));case 244:{const{expression:r}=e;return mr(r)&&zl(r)===1?t(e):void 0}}}function uNe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return dNe(e);case 208:return Oi(e.parent.parent)&&dNe(e.parent.parent);default:return!1}}function dNe(e){return $i(e.parent.parent.parent)&&!!e.initializer&&Td(e.initializer,!0)}function G5(e){return fNe(e)&&$i(e.parent)||Oi(e)&&$i(e.parent.parent.parent)}function tKe(e){return Oi(e)?e.parent.parent.parent:e.parent}function pNe(e,t){switch(e.kind){case 80:return t(oa(e.parent,r=>Oi(r)||$a(r)));case 207:case 206:return Ht(e.elements,r=>Gc(r)?void 0:pNe(r.name,t));default:return N.assertNever(e,`Unexpected name kind ${e.kind}`)}}function fNe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function nKe(e,t,r,i,o){var s;const l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){const h=t.getTypeChecker(),m=new Map;for(const y of o.all)lNe(y)&&Qr(y,32)&&Mde(y,T=>{var A;const R=T_(T)?(A=u.get(T.symbol.escapedName))==null?void 0:A.declarations:void 0,M=Ht(R,C=>Yl(C)?C:Ku(C)?ri(C.parent.parent,Yl):void 0);M&&M.moduleSpecifier&&m.set(M,(m.get(M)||new Set).add(T))});for(const[y,T]of zo(m))if(y.exportClause&&Nf(y.exportClause)&&Ne(y.exportClause.elements)){const A=y.exportClause.elements,R=mn(A,M=>In(bu(M.symbol,h).declarations,C=>G5(C)&&T.has(C))===void 0);if(Ne(R)===0){e.deleteNode(i,y),l.add(y);continue}Ne(R)<Ne(A)&&e.replaceNode(i,y,w.updateExportDeclaration(y,y.modifiers,y.isTypeOnly,w.updateNamedExports(y.exportClause,w.createNodeArray(R,A.hasTrailingComma)),y.moduleSpecifier,y.attributes))}}const p=oi(i.statements,h=>Yl(h)&&!!h.moduleSpecifier&&!l.has(h));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function mNe(e,t){if(Bs(t)){const r=t.symbol.declarations;if(r===void 0||Ne(r)<=1||!Or(r,t))return;const i=r[0],o=r[Ne(r)-1],s=eo(r,p=>Un(p)===e&&Hi(p)?p:void 0),l=mi(e.statements,p=>p.end>=o.end),u=mi(e.statements,p=>p.end>=i.end);return{toMove:s,start:u,end:l}}}function rKe(e,t,r){const i=new Set;for(const o of e.imports){const s=IC(o);if(Mc(s)&&s.importClause&&s.importClause.namedBindings&&Bg(s.importClause.namedBindings))for(const l of s.importClause.namedBindings.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(bu(u,r))}if(Q4(s.parent)&&im(s.parent.name))for(const l of s.parent.name.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(bu(u,r))}}for(const o of t)Pde(o,r,s=>{const l=bu(s,r);l.valueDeclaration&&Un(l.valueDeclaration)===e&&i.add(l)});return i}var V5,oY,aY,iKe=I({"src/services/refactors/moveToFile.ts"(){Fse(),si(),JDe(),V5="Move to file",oY=Wo(f.Move_to_file),aY={name:"Move to file",description:oY,kind:"refactor.move.file"},cg(V5,{kinds:[aY.kind],getAvailableActions:function(t,r){const i=NO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:V5,description:oY,actions:[aY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:V5,description:oY,actions:[{...aY,notApplicableReason:Wo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et:et},getEditsForAction:function(t,r,i){N.assert(r===V5,"Wrong refactor invoked");const o=N.checkDefined(NO(t)),{host:s,program:l}=t;N.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return UE(u)||GA(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?iNe(Wo(f.Cannot_move_statements_to_the_selected_file)):{edits:_r.ChangeTracker.with(t,h=>FJe(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:iNe(Wo(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function oKe(e){const{file:t,startPosition:r,program:i}=e;return hNe(t,r,i)?[{name:sY,description:Lde,actions:[kde]}]:et}function aKe(e){const{file:t,startPosition:r,program:i}=e,o=hNe(t,r,i);if(!o)return;const s=i.getTypeChecker(),l=o[o.length-1];let u=l;switch(l.kind){case 173:{u=w.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,h(o),l.type);break}case 174:{u=w.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,h(o),l.type,l.body);break}case 179:{u=w.updateCallSignature(l,l.typeParameters,h(o),l.type);break}case 176:{u=w.updateConstructorDeclaration(l,l.modifiers,h(o),l.body);break}case 180:{u=w.updateConstructSignature(l,l.typeParameters,h(o),l.type);break}case 262:{u=w.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,h(o),l.type,l.body);break}default:return N.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,T=>{T.replaceNodeRange(t,o[0],o[o.length-1],u)})};function h(T){const A=T[T.length-1];return Bs(A)&&A.body&&(T=T.slice(0,T.length-1)),w.createNodeArray([w.createParameterDeclaration(void 0,w.createToken(26),"args",void 0,w.createUnionTypeNode(Wt(T,m)))])}function m(T){const A=Wt(T.parameters,y);return pr(w.createTupleTypeNode(A),bt(A,R=>!!Ne(WR(R)))?0:1)}function y(T){N.assert(Ve(T.name));const A=dt(w.createNamedTupleMember(T.dotDotDotToken,T.name,T.questionToken,T.type||w.createKeywordTypeNode(133)),T),R=T.symbol&&T.symbol.getDocumentationComment(s);if(R){const M=OO(R);M.length&&v0(A,[{text:`*
${M.split(`
`).map(C=>` * ${C}`).join(`
`)}
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return A}}function _Ne(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function hNe(e,t,r){const i=po(e,t),o=Vn(i,_Ne);if(!o||Bs(o)&&o.body&&eO(o.body,t))return;const s=r.getTypeChecker(),l=o.symbol;if(!l)return;const u=l.declarations;if(Ne(u)<=1||!Jn(u,T=>Un(T)===e)||!_Ne(u[0]))return;const p=u[0].kind;if(!Jn(u,T=>T.kind===p))return;const h=u;if(bt(h,T=>!!T.typeParameters||bt(T.parameters,A=>!!A.modifiers||!Ve(A.name))))return;const m=eo(h,T=>s.getSignatureFromDeclaration(T));if(Ne(m)!==Ne(u))return;const y=s.getReturnTypeOfSignature(m[0]);if(Jn(m,T=>s.getReturnTypeOfSignature(T)===y))return h}var sY,Lde,kde,sKe=I({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){si(),xh(),sY="Convert overload list to single signature",Lde=Wo(f.Convert_overload_list_to_single_signature),kde={name:sY,description:Lde,kind:"refactor.rewrite.function.overloadList"},cg(sY,{kinds:[kde.kind],getEditsForAction:aKe,getAvailableActions:oKe})}});function lKe(e){const{file:t,startPosition:r,triggerReason:i}=e,o=gNe(t,r,i==="invoked");return o?Ug(o)?e.preferences.provideRefactorNotApplicableReason?[{name:lY,description:wde,actions:[{...j5,notApplicableReason:o.error},{...CO,notApplicableReason:o.error}]}]:et:[{name:lY,description:wde,actions:[o.addBraces?j5:CO]}]:et}function cKe(e,t){const{file:r,startPosition:i}=e,o=gNe(r,i);N.assert(o&&!Ug(o),"Expected applicable refactor info");const{expression:s,returnStatement:l,func:u}=o;let p;if(t===j5.name){const m=w.createReturnStatement(s);p=w.createBlock([m],!0),ID(s,m,r,3,!0)}else if(t===CO.name&&l){const m=s||w.createVoidZero();p=c5(m)?w.createParenthesizedExpression(m):m,_O(l,p,r,3,!1),ID(l,p,r,3,!1),lM(l,p,r,3,!1)}else N.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,m=>{m.replaceNode(r,u.body,p)})}}function gNe(e,t,r=!0,i){const o=po(e,t),s=Bp(o);if(!s)return{error:Wo(f.Could_not_find_a_containing_arrow_function)};if(!Gs(s))return{error:Wo(f.Containing_function_is_not_an_arrow_function)};if(!(!sf(s,o)||sf(s.body,o)&&!r)){if(M0(j5.kind,i)&&yt(s.body))return{func:s,addBraces:!0,expression:s.body};if(M0(CO.kind,i)&&Ko(s.body)&&s.body.statements.length===1){const l=Ua(s.body.statements);if(Im(l)){const u=l.expression&&La(NR(l.expression,!1))?w.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var lY,wde,j5,CO,uKe=I({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){si(),xh(),lY="Add or remove braces in an arrow function",wde=Wo(f.Add_or_remove_braces_in_an_arrow_function),j5={name:"Add braces to arrow function",description:Wo(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},CO={name:"Remove braces from arrow function",description:Wo(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},cg(lY,{kinds:[CO.kind],getEditsForAction:cKe,getAvailableActions:lKe})}}),dKe={},pKe=I({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){sKe(),uKe()}});function fKe(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=yNe(t,r,i);if(!s)return et;const{selectedVariableDeclaration:l,func:u}=s,p=[],h=[];if(M0(MO.kind,o)){const m=l||Gs(u)&&Oi(u.parent)?void 0:Wo(f.Could_not_convert_to_named_function);m?h.push({...MO,notApplicableReason:m}):p.push(MO)}if(M0(PO.kind,o)){const m=!l&&Gs(u)?void 0:Wo(f.Could_not_convert_to_anonymous_function);m?h.push({...PO,notApplicableReason:m}):p.push(PO)}if(M0(LO.kind,o)){const m=Os(u)?void 0:Wo(f.Could_not_convert_to_arrow_function);m?h.push({...LO,notApplicableReason:m}):p.push(LO)}return[{name:Ode,description:SNe,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function mKe(e,t){const{file:r,startPosition:i,program:o}=e,s=yNe(r,i,o);if(!s)return;const{func:l}=s,u=[];switch(t){case PO.name:u.push(...vKe(e,l));break;case MO.name:const p=gKe(l);if(!p)return;u.push(...yKe(e,l,p));break;case LO.name:if(!Os(l))return;u.push(...bKe(e,l));break;default:return N.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function vNe(e){let t=!1;return e.forEachChild(function r(i){if(yD(i)){t=!0;return}!di(i)&&!Tc(i)&&!Os(i)&&Uo(i,r)}),t}function yNe(e,t,r){const i=po(e,t),o=r.getTypeChecker(),s=hKe(e,o,i.parent);if(s&&!vNe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const l=Bp(i);if(l&&(Os(l)||Gs(l))&&!sf(l.body,i)&&!vNe(l.body)&&!o.containsArgumentsReference(l))return Os(l)&&ENe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function _Ke(e){return Oi(e)||Vc(e)&&e.declarations.length===1}function hKe(e,t,r){if(!_Ke(r))return;const o=(Oi(r)?r:Ua(r.declarations)).initializer;if(o&&(Gs(o)||Os(o)&&!ENe(e,t,o)))return o}function bNe(e){if(yt(e)){const t=w.createReturnStatement(e),r=e.getSourceFile();return dt(t,e),Sp(t),_O(e,t,r,void 0,!0),w.createBlock([t],!0)}else return e}function gKe(e){const t=e.parent;if(!Oi(t)||!bC(t))return;const r=t.parent,i=r.parent;if(!(!Vc(r)||!Ll(i)||!Ve(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function vKe(e,t){const{file:r}=e,i=bNe(t.body),o=w.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return _r.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function yKe(e,t,r){const{file:i}=e,o=bNe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:p}=r;cX(u);const h=n0(s)&32|ud(t),m=w.createModifiersFromModifierFlags(h),y=w.createFunctionDeclaration(Ne(m)?m:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?_r.ChangeTracker.with(e,T=>T.replaceNode(i,u,y)):_r.ChangeTracker.with(e,T=>{T.delete(i,s),T.insertNodeAfter(i,u,y)})}function bKe(e,t){const{file:r}=e,o=t.body.statements[0];let s;EKe(t.body,o)?(s=o.expression,Sp(s),nT(o,s)):s=t.body;const l=w.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,w.createToken(39),s);return _r.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function EKe(e,t){return e.statements.length===1&&Im(t)&&!!t.expression}function ENe(e,t,r){return!!r.name&&Ws.Core.isSymbolReferencedInFile(r.name,t,e)}var Ode,SNe,PO,MO,LO,SKe=I({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){si(),xh(),Ode="Convert arrow function or function expression",SNe=Wo(f.Convert_arrow_function_or_function_expression),PO={name:"Convert to anonymous function",description:Wo(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},MO={name:"Convert to named function",description:Wo(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},LO={name:"Convert to arrow function",description:Wo(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},cg(Ode,{kinds:[PO.kind,MO.kind,LO.kind],getEditsForAction:mKe,getAvailableActions:fKe})}}),TKe={},AKe=I({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){SKe()}});function IKe(e){const{file:t,startPosition:r}=e;return cd(t)||!INe(t,r,e.program.getTypeChecker())?et:[{name:H5,description:Bde,actions:[Gde]}]}function xKe(e,t){N.assert(t===H5,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=INe(r,i,o.getTypeChecker());if(!u||!s)return;const p=DKe(u,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,m=>RKe(r,o,l,m,u,p))}:{edits:[]}}function RKe(e,t,r,i,o,s){const l=s.signature,u=Wt(NNe(o,t,r),m=>ll(m));if(l){const m=Wt(NNe(l,t,r),y=>ll(y));h(l,m)}h(o,u);const p=HN(s.functionCalls,(m,y)=>nl(m.pos,y.pos));for(const m of p)if(m.arguments&&m.arguments.length){const y=ll(FKe(o,m.arguments),!0);i.replaceNodeRange(Un(m),Ua(m.arguments),Xa(m.arguments),y,{leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include})}function h(m,y){i.replaceNodeRangeWithNodes(e,Ua(m.parameters),Xa(m.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include})}}function DKe(e,t,r){const i=BKe(e),o=Ml(e)?zKe(e):[],s=SE([...i,...o],xv),l=t.getTypeChecker(),u=Do(s,y=>Ws.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),p=h(u);return Jn(p.declarations,y=>Or(s,y))||(p.valid=!1),p;function h(y){const T={accessExpressions:[],typeUsages:[]},A={functionCalls:[],declarations:[],classReferences:T,valid:!0},R=Wt(i,m),M=Wt(o,m),C=Ml(e),O=Wt(i,U=>Wde(U,l));for(const U of y){if(U.kind===Ws.EntryKind.Span){A.valid=!1;continue}if(Or(O,m(U.node))){if(MKe(U.node.parent)){A.signature=U.node.parent;continue}const Q=ANe(U);if(Q){A.functionCalls.push(Q);continue}}const K=Wde(U.node,l);if(K&&Or(O,K)){const Q=Fde(U);if(Q){A.declarations.push(Q);continue}}if(Or(R,m(U.node))||eM(U.node)){if(TNe(U))continue;const V=Fde(U);if(V){A.declarations.push(V);continue}const se=ANe(U);if(se){A.functionCalls.push(se);continue}}if(C&&Or(M,m(U.node))){if(TNe(U))continue;const V=Fde(U);if(V){A.declarations.push(V);continue}const se=NKe(U);if(se){T.accessExpressions.push(se);continue}if(Ac(e.parent)){const G=CKe(U);if(G){T.typeUsages.push(G);continue}}}A.valid=!1}return A}function m(y){const T=l.getSymbolAtLocation(y);return T&&sX(T,l)}}function Wde(e,t){const r=WO(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i==null?void 0:i.getSymbol();if(o&&!(xl(o)&6))return o}}function TNe(e){const t=e.node;if(tp(t.parent)||bh(t.parent)||eu(t.parent)||Yy(t.parent)||Ku(t.parent)||kl(t.parent))return t}function Fde(e){if(Ju(e.node.parent))return e.node}function ANe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 213:case 214:const i=ri(r,S_);if(i&&i.expression===t)return i;break;case 211:const o=ri(r,Fr);if(o&&o.parent&&o.name===t){const l=ri(o.parent,S_);if(l&&l.expression===o)return l}break;case 212:const s=ri(r,$s);if(s&&s.parent&&s.argumentExpression===t){const l=ri(s.parent,S_);if(l&&l.expression===s)return l}break}}}function NKe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 211:const i=ri(r,Fr);if(i&&i.expression===t)return i;break;case 212:const o=ri(r,$s);if(o&&o.expression===t)return o;break}}}function CKe(e){const t=e.node;if(ZS(t)===2||y3(t.parent))return t}function INe(e,t,r){const i=bD(e,t),o=iie(i);if(!PKe(i)&&o&&LKe(o,r)&&sf(o,i)&&!(o.body&&sf(o.body,i)))return o}function PKe(e){const t=Vn(e,$x);if(t){const r=Vn(t,i=>!$x(i));return!!r&&Bs(r)}return!1}function MKe(e){return vh(e)&&(md(e.parent)||yp(e.parent))}function LKe(e,t){var r;if(!kKe(e.parameters,t))return!1;switch(e.kind){case 262:return xNe(e)&&U5(e,t);case 174:if(La(e.parent)){const i=Wde(e.name,t);return((r=i==null?void 0:i.declarations)==null?void 0:r.length)===1&&U5(e,t)}return U5(e,t);case 176:return Ac(e.parent)?xNe(e.parent)&&U5(e,t):RNe(e.parent.parent)&&U5(e,t);case 218:case 219:return RNe(e.parent)}return!1}function U5(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function xNe(e){return e.name?!0:!!SD(e,90)}function kKe(e,t){return OKe(e)>=CNe&&Jn(e,r=>wKe(r,t))}function wKe(e,t){if(Xh(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Ve(e.name)}function RNe(e){return Oi(e)&&iR(e)&&Ve(e.name)&&!e.type}function zde(e){return e.length>0&&yD(e[0].name)}function OKe(e){return zde(e)?e.length-1:e.length}function DNe(e){return zde(e)&&(e=w.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function WKe(e,t){return Ve(t)&&Qf(t)===e?w.createShorthandPropertyAssignment(e):w.createPropertyAssignment(e,t)}function FKe(e,t){const r=DNe(e.parameters),i=Xh(Xa(r)),o=i?t.slice(0,r.length-1):t,s=Wt(o,(u,p)=>{const h=cY(r[p]),m=WKe(h,u);return Sp(m.name),hc(m)&&Sp(m.initializer),nT(u,m),m});if(i&&t.length>=r.length){const u=t.slice(r.length-1),p=w.createPropertyAssignment(cY(Xa(r)),w.createArrayLiteralExpression(u));s.push(p)}return w.createObjectLiteralExpression(s,!1)}function NNe(e,t,r){const i=t.getTypeChecker(),o=DNe(e.parameters),s=Wt(o,m),l=w.createObjectBindingPattern(s),u=y(o);let p;Jn(o,R)&&(p=w.createObjectLiteralExpression());const h=w.createParameterDeclaration(void 0,void 0,l,void 0,u,p);if(zde(e.parameters)){const M=e.parameters[0],C=w.createParameterDeclaration(void 0,void 0,M.name,void 0,M.type);return Sp(C.name),nT(M.name,C.name),M.type&&(Sp(C.type),nT(M.type,C.type)),w.createNodeArray([C,h])}return w.createNodeArray([h]);function m(M){const C=w.createBindingElement(void 0,void 0,cY(M),Xh(M)&&R(M)?w.createArrayLiteralExpression():M.initializer);return Sp(C),M.initializer&&C.initializer&&nT(M.initializer,C.initializer),C}function y(M){const C=Wt(M,T);return P_(w.createTypeLiteralNode(C),1)}function T(M){let C=M.type;!C&&(M.initializer||Xh(M))&&(C=A(M));const O=w.createPropertySignature(void 0,cY(M),R(M)?w.createToken(58):M.questionToken,C);return Sp(O),nT(M.name,O.name),M.type&&O.type&&nT(M.type,O.type),O}function A(M){const C=i.getTypeAtLocation(M);return uM(C,M,t,r)}function R(M){if(Xh(M)){const C=i.getTypeAtLocation(M);return!i.isTupleType(C)}return i.isOptionalParameter(M)}}function cY(e){return Qf(e.name)}function zKe(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[N.checkDefined(SD(t,90),"Nameless class declaration should be a default export")];case 231:const i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function BKe(e){switch(e.kind){case 262:return e.name?[e.name]:[N.checkDefined(SD(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const r=N.checkDefined(vs(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return N.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var H5,CNe,Bde,Gde,GKe=I({"src/services/refactors/convertParamsToDestructuredObject.ts"(){si(),xh(),H5="Convert parameters to destructured object",CNe=1,Bde=Wo(f.Convert_parameters_to_destructured_object),Gde={name:H5,description:Bde,kind:"refactor.rewrite.parameters.toDestructured"},cg(H5,{kinds:[Gde.kind],getEditsForAction:xKe,getAvailableActions:IKe})}}),VKe={},jKe=I({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){GKe()}});function UKe(e){const{file:t,startPosition:r}=e,i=PNe(t,r),o=Vde(i),s=Na(o),l={name:uY,description:dY,actions:[]};return s&&e.triggerReason!=="invoked"?et:Qh(o)&&(s||mr(o)&&jde(o).isValidConcatenation)?(l.actions.push(pY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...pY,notApplicableReason:Wo(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):et}function PNe(e,t){const r=po(e,t),i=Vde(r);return!jde(i).isValidConcatenation&&Gd(i.parent)&&mr(i.parent.parent)?i.parent.parent:r}function HKe(e,t){const{file:r,startPosition:i}=e,o=PNe(r,i);switch(t){case dY:return{edits:qKe(e,o)};default:return N.fail("invalid action")}}function qKe(e,t){const r=Vde(t),i=e.file,o=XKe(jde(r),i),s=Zb(i.text,r.end);if(s){const l=s[s.length-1],u={pos:s[0].pos,end:l.end};return _r.ChangeTracker.with(e,p=>{p.deleteRange(i,u),p.replaceNode(i,r,o)})}else return _r.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function JKe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Vde(e){return Vn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(mr(r.parent)&&JKe(r.parent));default:return"quit"}})||e}function jde(e){const t=l=>{if(!mr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Na(l)||XA(l)};const{nodes:u,operators:p,hasString:h,validOperators:m}=t(l.left);if(!(h||Na(l.right)||UW(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};const y=l.operatorToken.kind===40,T=m&&y;return u.push(l.right),p.push(l.operatorToken),{nodes:u,operators:p,hasString:!0,validOperators:T}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function KKe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function MNe(e){const t=YA(e)||nH(e)?-2:-1;return fc(e).slice(1,t)}function LNe(e,t){const r=[];let i="",o="";for(;e<t.length;){const s=t[e];if(ls(s))i+=s.text,o+=KKe(fc(s).slice(1,-1)),r.push(e),e++;else if(UW(s)){i+=s.head.text,o+=MNe(s.head);break}else break}return[e,i,o,r]}function XKe({nodes:e,operators:t},r){const i=wNe(t,r),o=ONe(e,r,i),[s,l,u,p]=LNe(0,e);if(s===e.length){const y=w.createNoSubstitutionTemplateLiteral(l,u);return o(p,y),y}const h=[],m=w.createTemplateHead(l,u);o(p,m);for(let y=s;y<e.length;y++){const T=YKe(e[y]);i(y,T);const[A,R,M,C]=LNe(y+1,e);y=A-1;const O=y===e.length-1;if(UW(T)){const U=Wt(T.templateSpans,(K,Q)=>{kNe(K);const V=Q===T.templateSpans.length-1,se=K.literal.text+(V?R:""),G=MNe(K.literal)+(V?M:"");return w.createTemplateSpan(K.expression,O&&V?w.createTemplateTail(se,G):w.createTemplateMiddle(se,G))});h.push(...U)}else{const U=O?w.createTemplateTail(R,M):w.createTemplateMiddle(R,M);o(C,U),h.push(w.createTemplateSpan(T,U))}}return w.createTemplateExpression(m,h)}function kNe(e){const t=e.getSourceFile();lM(e,e.expression,t,3,!1),_O(e.expression,e.expression,t,3,!1)}function YKe(e){return Gd(e)&&(kNe(e),e=e.expression),e}var uY,dY,pY,wNe,ONe,$Ke=I({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){si(),xh(),uY="Convert to template string",dY=Wo(f.Convert_to_template_string),pY={name:uY,description:dY,kind:"refactor.rewrite.string"},cg(uY,{kinds:[pY.kind],getEditsForAction:HKe,getAvailableActions:UKe}),wNe=(e,t)=>(r,i)=>{r<e.length&&lM(e[r],i,t,3,!1)},ONe=(e,t,r)=>(i,o)=>{for(;i.length>0;){const s=i.shift();lM(e[s],o,t,3,!1),r(s,o)}}}}),QKe={},ZKe=I({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){$Ke()}});function eXe(e){const t=WNe(e,e.triggerReason==="invoked");return t?Ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:q5,description:_Y,actions:[{...hY,notApplicableReason:t.error}]}]:et:[{name:q5,description:_Y,actions:[hY]}]:et}function tXe(e,t){const r=WNe(e);return N.assert(r&&!Ug(r),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(e,o=>cXe(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function fY(e){return mr(e)||jR(e)}function nXe(e){return Zc(e)||Im(e)||Ll(e)}function mY(e){return fY(e)||nXe(e)}function WNe(e,t=!0){const{file:r,program:i}=e,o=II(e),s=o.length===0;if(s&&!t)return;const l=po(r,o.start),u=J7(r,o.start+o.length),p=pc(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),h=s?sXe(l):aXe(l,p),m=h&&mY(h)?lXe(h):void 0;if(!m)return{error:Wo(f.Could_not_find_convertible_access_expression)};const y=i.getTypeChecker();return jR(m)?rXe(m,y):iXe(m)}function rXe(e,t){const r=e.condition,i=Hde(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Wo(f.Could_not_find_convertible_access_expression)};if((Fr(r)||Ve(r))&&Ude(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(mr(r)){const o=FNe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Wo(f.Could_not_find_matching_access_expressions)}}}function iXe(e){if(e.operatorToken.kind!==56)return{error:Wo(f.Can_only_convert_logical_AND_access_chains)};const t=Hde(e.right);if(!t)return{error:Wo(f.Could_not_find_convertible_access_expression)};const r=FNe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Wo(f.Could_not_find_matching_access_expressions)}}function FNe(e,t){const r=[];for(;mr(t)&&t.operatorToken.kind===56;){const o=Ude(hs(e),hs(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=Ude(e,t);return i&&r.push(i),r.length>0?r:void 0}function Ude(e,t){if(!(!Ve(t)&&!Fr(t)&&!$s(t)))return oXe(e,t)?t:void 0}function oXe(e,t){for(;(sa(e)||Fr(e)||$s(e))&&kO(e)!==kO(t);)e=e.expression;for(;Fr(e)&&Fr(t)||$s(e)&&$s(t);){if(kO(e)!==kO(t))return!1;e=e.expression,t=t.expression}return Ve(e)&&Ve(t)&&e.getText()===t.getText()}function kO(e){if(Ve(e)||ef(e))return e.getText();if(Fr(e))return kO(e.name);if($s(e))return kO(e.argumentExpression)}function aXe(e,t){for(;e.parent;){if(mY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function sXe(e){for(;e.parent;){if(mY(e)&&!mY(e.parent))return e;e=e.parent}}function lXe(e){if(fY(e))return e;if(Ll(e)){const t=PA(e),r=t==null?void 0:t.initializer;return r&&fY(r)?r:void 0}return e.expression&&fY(e.expression)?e.expression:void 0}function Hde(e){if(e=hs(e),mr(e))return Hde(e.left);if((Fr(e)||$s(e)||sa(e))&&!qu(e))return e}function zNe(e,t,r){if(Fr(t)||$s(t)||sa(t)){const i=zNe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=(o==null?void 0:o.getText())===t.expression.getText();if(s&&r.pop(),sa(t))return s?w.createCallChain(i,w.createToken(29),t.typeArguments,t.arguments):w.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Fr(t))return s?w.createPropertyAccessChain(i,w.createToken(29),t.name):w.createPropertyAccessChain(i,t.questionDotToken,t.name);if($s(t))return s?w.createElementAccessChain(i,w.createToken(29),t.argumentExpression):w.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function cXe(e,t,r,i,o){const{finalExpression:s,occurrences:l,expression:u}=i,p=l[l.length-1],h=zNe(t,s,l);h&&(Fr(h)||$s(h)||sa(h))&&(mr(u)?r.replaceNodeRange(e,p,s,h):jR(u)&&r.replaceNode(e,u,w.createBinaryExpression(h,w.createToken(61),u.whenFalse)))}var q5,_Y,hY,uXe=I({"src/services/refactors/convertToOptionalChainExpression.ts"(){si(),xh(),q5="Convert to optional chain expression",_Y=Wo(f.Convert_to_optional_chain_expression),hY={name:q5,description:_Y,kind:"refactor.rewrite.expression.optionalChain"},cg(q5,{kinds:[hY.kind],getEditsForAction:tXe,getAvailableActions:eXe})}}),dXe={},pXe=I({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){uXe()}});function BNe(e){const t=e.kind,r=qde(e.file,II(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return et;const R=[];return M0(PD.kind,t)&&R.push({name:ND,description:PD.description,actions:[{...PD,notApplicableReason:A(r.errors)}]}),M0(CD.kind,t)&&R.push({name:ND,description:CD.description,actions:[{...CD,notApplicableReason:A(r.errors)}]}),R}const o=vXe(i,e);if(o===void 0)return et;const s=[],l=new Map;let u;const p=[],h=new Map;let m,y=0;for(const{functionExtraction:R,constantExtraction:M}of o){if(M0(PD.kind,t)){const C=R.description;R.errors.length===0?l.has(C)||(l.set(C,!0),s.push({description:C,name:`function_scope_${y}`,kind:PD.kind})):u||(u={description:C,name:`function_scope_${y}`,notApplicableReason:A(R.errors),kind:PD.kind})}if(M0(CD.kind,t)){const C=M.description;M.errors.length===0?h.has(C)||(h.set(C,!0),p.push({description:C,name:`constant_scope_${y}`,kind:CD.kind})):m||(m={description:C,name:`constant_scope_${y}`,notApplicableReason:A(M.errors),kind:CD.kind})}y++}const T=[];return s.length?T.push({name:ND,description:Wo(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&u&&T.push({name:ND,description:Wo(f.Extract_function),actions:[u]}),p.length?T.push({name:ND,description:Wo(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&T.push({name:ND,description:Wo(f.Extract_constant),actions:[m]}),T.length?T:et;function A(R){let M=R[0].messageText;return typeof M!="string"&&(M=M.messageText),M}}function GNe(e,t){const i=qde(e.file,II(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){const l=+o[1];return N.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),hXe(i,e,l)}const s=/^constant_scope_(\d+)$/.exec(t);if(s){const l=+s[1];return N.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),gXe(i,e,l)}N.fail("Unrecognized action name")}function qde(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[$c(e,t.start,i,Tu.cannotExtractEmpty)]};const o=i===0&&r,s=eue(e,t.start),l=J7(e,Kl(t)),u=s&&l&&r?fXe(s,l,e):t,p=o?FXe(s):dO(s,e,u),h=o?p:dO(l,e,u);let m=0,y;if(!p||!h)return{errors:[$c(e,t.start,i,Tu.cannotExtractRange)]};if(p.flags&16777216)return{errors:[$c(e,t.start,i,Tu.cannotExtractJSDoc)]};if(p.parent!==h.parent)return{errors:[$c(e,t.start,i,Tu.cannotExtractRange)]};if(p!==h){if(!jNe(p.parent))return{errors:[$c(e,t.start,i,Tu.cannotExtractRange)]};const U=[];for(const K of p.parent.statements){if(K===p||U.length){const Q=O(K);if(Q)return{errors:Q};U.push(K)}if(K===h)break}return U.length?{targetRange:{range:U,facts:m,thisNode:y}}:{errors:[$c(e,t.start,i,Tu.cannotExtractRange)]}}if(Im(p)&&!p.expression)return{errors:[$c(e,t.start,i,Tu.cannotExtractRange)]};const T=R(p),A=M(T)||O(T);if(A)return{errors:A};return{targetRange:{range:mXe(T),facts:m,thisNode:y}};function R(U){if(Im(U)){if(U.expression)return U.expression}else if(Ll(U)||Vc(U)){const K=Ll(U)?U.declarationList.declarations:U.declarations;let Q=0,V;for(const se of K)se.initializer&&(Q++,V=se.initializer);if(Q===1)return V}else if(Oi(U)&&U.initializer)return U.initializer;return U}function M(U){if(Ve(Zc(U)?U.expression:U))return[kr(U,Tu.cannotExtractIdentifier)]}function C(U,K){let Q=U;for(;Q!==K;){if(Q.kind===172){aa(Q)&&(m|=32);break}else if(Q.kind===169){Bp(Q).kind===176&&(m|=32);break}else Q.kind===174&&aa(Q)&&(m|=32);Q=Q.parent}}function O(U){let K;if((he=>{he[he.None=0]="None",he[he.Break=1]="Break",he[he.Continue=2]="Continue",he[he.Return=4]="Return"})(K||(K={})),N.assert(U.pos<=U.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),N.assert(!Ym(U.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Hi(U)&&!(Qh(U)&&VNe(U))&&!$de(U))return[kr(U,Tu.statementOrExpressionExpected)];if(U.flags&33554432)return[kr(U,Tu.cannotExtractAmbientBlock)];const Q=au(U);Q&&C(U,Q);let V,se=4,G;if(ne(U),m&8){const he=Fd(U,!1,!1);(he.kind===262||he.kind===174&&he.parent.kind===210||he.kind===218)&&(m|=16)}return V;function ne(he){if(V)return!0;if(Ju(he)){const Y=he.kind===260?he.parent.parent:he;if(Qr(Y,32))return(V||(V=[])).push(kr(he,Tu.cannotExtractExportedEntity)),!0}switch(he.kind){case 272:return(V||(V=[])).push(kr(he,Tu.cannotExtractImport)),!0;case 277:return(V||(V=[])).push(kr(he,Tu.cannotExtractExportedEntity)),!0;case 108:if(he.parent.kind===213){const Y=au(he);if(Y===void 0||Y.pos<t.start||Y.end>=t.start+t.length)return(V||(V=[])).push(kr(he,Tu.cannotExtractSuper)),!0}else m|=8,y=he;break;case 219:Uo(he,function Y(X){if(yD(X))m|=8,y=he;else{if(di(X)||ea(X)&&!Gs(X))return!1;Uo(X,Y)}});case 263:case 262:$i(he.parent)&&he.parent.externalModuleIndicator===void 0&&(V||(V=[])).push(kr(he,Tu.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const ye=se;switch(he.kind){case 245:se&=-5;break;case 258:se=0;break;case 241:he.parent&&he.parent.kind===258&&he.parent.finallyBlock===he&&(se=4);break;case 297:case 296:se|=1;break;default:Py(he,!1)&&(se|=3);break}switch(he.kind){case 197:case 110:m|=8,y=he;break;case 256:{const Y=he.label;(G||(G=[])).push(Y.escapedText),Uo(he,ne),G.pop();break}case 252:case 251:{const Y=he.label;Y?Or(G,Y.escapedText)||(V||(V=[])).push(kr(he,Tu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):se&(he.kind===252?1:2)||(V||(V=[])).push(kr(he,Tu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:se&4?m|=1:(V||(V=[])).push(kr(he,Tu.cannotExtractRangeContainingConditionalReturnStatement));break;default:Uo(he,ne);break}se=ye}}}function fXe(e,t,r){const i=e.getStart(r);let o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function mXe(e){if(Hi(e))return[e];if(Qh(e))return Zc(e.parent)?[e.parent]:e;if($de(e))return e}function Jde(e){return Gs(e)?GV(e.body):Bs(e)||$i(e)||L_(e)||di(e)}function _Xe(e){let t=$v(e.range)?Ua(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=au(t);if(i){const o=Vn(t,Bs);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===169&&(t=Vn(t,i=>Bs(i)).parent),Jde(t)&&(r.push(t),t.kind===312))return r}function hXe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=Kde(e,t);return N.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),AXe(o,i[r],s[r],u,e,t)}function gXe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=Kde(e,t);N.assert(!l[r].length,"The extraction went missing? How?"),N.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const p=yt(o)?o:o.statements[0].expression;return IXe(p,i[r],s[r],e.facts,t)}function vXe(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=Kde(e,t);return r.map((l,u)=>{const p=yXe(l),h=bXe(l),m=Bs(l)?EXe(l):di(l)?SXe(l):TXe(l);let y,T;return m===1?(y=ig(Wo(f.Extract_to_0_in_1_scope),[p,"global"]),T=ig(Wo(f.Extract_to_0_in_1_scope),[h,"global"])):m===0?(y=ig(Wo(f.Extract_to_0_in_1_scope),[p,"module"]),T=ig(Wo(f.Extract_to_0_in_1_scope),[h,"module"])):(y=ig(Wo(f.Extract_to_0_in_1),[p,m]),T=ig(Wo(f.Extract_to_0_in_1),[h,m])),u===0&&!di(l)&&(T=ig(Wo(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:y,errors:i[u]},constantExtraction:{description:T,errors:o[u]}}})}function Kde(e,t){const{file:r}=t,i=_Xe(e),o=OXe(e,r),s=WXe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function yXe(e){return Bs(e)?"inner function":di(e)?"method":"function"}function bXe(e){return di(e)?"readonly field":"constant"}function EXe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:I5;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:N.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function SXe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function TXe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function AXe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){const p=u.program.getTypeChecker(),h=os(u.program.getCompilerOptions()),m=Fu.createImportAdder(u.file,u.program,u.preferences,u.host),y=t.getSourceFile(),T=rT(di(t)?"newMethod":"newFunction",y),A=lr(t),R=w.createIdentifier(T);let M;const C=[],O=[];let U;r.forEach((De,Me)=>{let We;if(!A){let Se=p.getTypeOfSymbolAtLocation(De.symbol,De.node);Se=p.getBaseTypeOfLiteralType(Se),We=Fu.typeToAutoImportableTypeNode(p,m,Se,t,h,1)}const At=w.createParameterDeclaration(void 0,void 0,Me,void 0,We);C.push(At),De.usage===2&&(U||(U=[])).push(De),O.push(w.createIdentifier(Me))});const Q=zo(i.values(),De=>({type:De,declaration:RXe(De,u.startPosition)})).sort(DXe),V=Q.length===0?void 0:eo(Q,({declaration:De})=>De),se=V!==void 0?V.map(De=>w.createTypeReferenceNode(De.name,void 0)):void 0;if(yt(e)&&!A){const De=p.getContextualType(e);M=p.typeToTypeNode(De,t,1)}const{body:G,returnValueProperty:ne}=CXe(e,s,U,o,!!(l.facts&1));Sp(G);let he;const ye=!!(l.facts&16);if(di(t)){const De=A?[]:[w.createModifier(123)];l.facts&32&&De.push(w.createModifier(126)),l.facts&4&&De.push(w.createModifier(134)),he=w.createMethodDeclaration(De.length?De:void 0,l.facts&2?w.createToken(42):void 0,R,void 0,V,C,M,G)}else ye&&C.unshift(w.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),he=w.createFunctionDeclaration(l.facts&4?[w.createToken(134)]:void 0,l.facts&2?w.createToken(42):void 0,R,V,C,M,G);const Y=_r.ChangeTracker.fromContext(u),X=($v(l.range)?Xa(l.range):l.range).end,oe=LXe(X,t);oe?Y.insertNodeBefore(u.file,oe,he,!0):Y.insertNodeAtEndOfScope(u.file,t,he),m.writeFixes(Y);const pe=[],Ce=NXe(t,l,T);ye&&O.unshift(w.createIdentifier("this"));let de=w.createCallExpression(ye?w.createPropertyAccessExpression(Ce,"call"):Ce,se,O);if(l.facts&2&&(de=w.createYieldExpression(w.createToken(42),de)),l.facts&4&&(de=w.createAwaitExpression(de)),Yde(e)&&(de=w.createJsxExpression(void 0,de)),s.length&&!U)if(N.assert(!ne,"Expected no returnValueProperty"),N.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){const De=s[0];pe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ll(De.name),void 0,ll(De.type),de)],De.parent.flags)))}else{const De=[],Me=[];let We=s[0].parent.flags,At=!1;for(const je of s){De.push(w.createBindingElement(void 0,void 0,ll(je.name)));const ot=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(je)),t,1);Me.push(w.createPropertySignature(void 0,je.symbol.name,void 0,ot)),At=At||je.type!==void 0,We=We&je.parent.flags}const Se=At?w.createTypeLiteralNode(Me):void 0;Se&&pr(Se,1),pe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(w.createObjectBindingPattern(De),void 0,Se,de)],We)))}else if(s.length||U){if(s.length)for(const Me of s){let We=Me.parent.flags;We&2&&(We=We&-3|1),pe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(Me.symbol.name,void 0,Ee(Me.type))],We)))}ne&&pe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ne,void 0,Ee(M))],1)));const De=Xde(s,U);ne&&De.unshift(w.createShorthandPropertyAssignment(ne)),De.length===1?(N.assert(!ne,"Shouldn't have returnValueProperty here"),pe.push(w.createExpressionStatement(w.createAssignment(De[0].name,de))),l.facts&1&&pe.push(w.createReturnStatement())):(pe.push(w.createExpressionStatement(w.createAssignment(w.createObjectLiteralExpression(De),de))),ne&&pe.push(w.createReturnStatement(w.createIdentifier(ne))))}else l.facts&1?pe.push(w.createReturnStatement(de)):$v(l.range)?pe.push(w.createExpressionStatement(de)):pe.push(de);$v(l.range)?Y.replaceNodeRangeWithNodes(u.file,Ua(l.range),Xa(l.range),pe):Y.replaceNodeWithNodes(u.file,l.range,pe);const ie=Y.getChanges(),Le=($v(l.range)?Ua(l.range):l.range).getSourceFile().fileName,Ue=mO(ie,Le,T,!1);return{renameFilename:Le,renameLocation:Ue,edits:ie};function Ee(De){if(De===void 0)return;const Me=ll(De);let We=Me;for(;wS(We);)We=We.type;return qy(We)&&In(We.types,At=>At.kind===157)?Me:w.createUnionTypeNode([Me,w.createKeywordTypeNode(157)])}}function IXe(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),l=t.getSourceFile(),u=Fr(e)&&!di(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!qi(e.name)&&!r0(e.name)?e.name.text:rT(di(t)?"newProperty":"newLocal",l),p=lr(t);let h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=PXe(hs(e),r);({variableType:h,initializer:m}=M(h,m)),Sp(m);const y=_r.ChangeTracker.fromContext(o);if(di(t)){N.assert(!p,"Cannot extract to a JS class");const C=[];C.push(w.createModifier(123)),i&32&&C.push(w.createModifier(126)),C.push(w.createModifier(148));const O=w.createPropertyDeclaration(C,u,void 0,h,m);let U=w.createPropertyAccessExpression(i&32?w.createIdentifier(t.name.getText()):w.createThis(),w.createIdentifier(u));Yde(e)&&(U=w.createJsxExpression(void 0,U));const K=e.pos,Q=kXe(K,t);y.insertNodeBefore(o.file,Q,O,!0),y.replaceNode(o.file,e,U)}else{const C=w.createVariableDeclaration(u,void 0,h,m),O=xXe(e,t);if(O){y.insertNodeBefore(o.file,O,C);const U=w.createIdentifier(u);y.replaceNode(o.file,e,U)}else if(e.parent.kind===244&&t===Vn(e,Jde)){const U=w.createVariableStatement(void 0,w.createVariableDeclarationList([C],2));y.replaceNode(o.file,e.parent,U)}else{const U=w.createVariableStatement(void 0,w.createVariableDeclarationList([C],2)),K=wXe(e,t);if(K.pos===0?y.insertNodeAtTopOfFile(o.file,U,!1):y.insertNodeBefore(o.file,K,U,!1),e.parent.kind===244)y.delete(o.file,e.parent);else{let Q=w.createIdentifier(u);Yde(e)&&(Q=w.createJsxExpression(void 0,Q)),y.replaceNode(o.file,e,Q)}}}const T=y.getChanges(),A=e.getSourceFile().fileName,R=mO(T,A,u,!0);return{renameFilename:A,renameLocation:R,edits:T};function M(C,O){if(C===void 0)return{variableType:C,initializer:O};if(!Os(O)&&!Gs(O)||O.typeParameters)return{variableType:C,initializer:O};const U=s.getTypeAtLocation(e),K=oh(s.getSignaturesOfType(U,0));if(!K)return{variableType:C,initializer:O};if(K.getTypeParameters())return{variableType:C,initializer:O};const Q=[];let V=!1;for(const se of O.parameters)if(se.type)Q.push(se);else{const G=s.getTypeAtLocation(se);G===s.getAnyType()&&(V=!0),Q.push(w.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,se.questionToken,se.type||s.typeToTypeNode(G,t,1),se.initializer))}if(V)return{variableType:C,initializer:O};if(C=void 0,Gs(O))O=w.updateArrowFunction(O,Rm(e)?xE(e):void 0,O.typeParameters,Q,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.equalsGreaterThanToken,O.body);else{if(K&&K.thisParameter){const se=Kc(Q);if(!se||Ve(se.name)&&se.name.escapedText!=="this"){const G=s.getTypeOfSymbolAtLocation(K.thisParameter,e);Q.splice(0,0,w.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(G,t,1)))}}O=w.updateFunctionExpression(O,Rm(e)?xE(e):void 0,O.asteriskToken,O.name,O.typeParameters,Q,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.body)}return{variableType:C,initializer:O}}}function xXe(e,t){let r;for(;e!==void 0&&e!==t;){if(Oi(e)&&e.initializer===r&&Vc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function RXe(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const o of i.declarations)(r===void 0||o.pos<r.pos)&&o.pos<t&&(r=o);return r}function DXe({type:e,declaration:t},{type:r,declaration:i}){return one(t,i,"pos",nl)||Uu(e.symbol?e.symbol.getName():"",r.symbol?r.symbol.getName():"")||nl(e.id,r.id)}function NXe(e,t,r){const i=w.createIdentifier(r);if(di(e)){const o=t.facts&32?w.createIdentifier(e.name.text):w.createThis();return w.createPropertyAccessExpression(o,i)}else return i}function CXe(e,t,r,i,o){const s=r!==void 0||t.length>0;if(Ko(e)&&!s&&i.size===0)return{body:w.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1;const p=w.createNodeArray(Ko(e)?e.statements.slice(0):[Hi(e)?e:w.createReturnStatement(hs(e))]);if(s||i.size){const m=jn(p,h,Hi).slice();if(s&&!o&&Hi(e)){const y=Xde(t,r);y.length===1?m.push(w.createReturnStatement(y[0].name)):m.push(w.createReturnStatement(w.createObjectLiteralExpression(y)))}return{body:w.createBlock(m,!0),returnValueProperty:l}}else return{body:w.createBlock(p,!0),returnValueProperty:void 0};function h(m){if(!u&&Im(m)&&s){const y=Xde(t,r);return m.expression&&(l||(l="__return"),y.unshift(w.createPropertyAssignment(l,nt(m.expression,h,yt)))),y.length===1?w.createReturnStatement(y[0].name):w.createReturnStatement(w.createObjectLiteralExpression(y))}else{const y=u;u=u||Bs(m)||di(m);const T=i.get(as(m).toString()),A=T?ll(T):xn(m,h,void 0);return u=y,A}}}function PXe(e,t){return t.size?r(e):e;function r(i){const o=t.get(as(i).toString());return o?ll(o):xn(i,r,void 0)}}function MXe(e){if(Bs(e)){const t=e.body;if(Ko(t))return t.statements}else{if(L_(e)||$i(e))return e.statements;if(di(e))return e.members}return et}function LXe(e,t){return In(MXe(t),r=>r.pos>=e&&Bs(r)&&!Ml(r))}function kXe(e,t){const r=t.members;N.assert(r.length>0,"Found no members");let i,o=!0;for(const s of r){if(s.pos>e)return i||r[0];if(o&&!qo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?N.fail():i}function wXe(e,t){N.assert(!di(t));let r;for(let i=e;i!==t;i=i.parent)Jde(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(jNe(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&UR(i)?(N.assert(vP(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):N.checkDefined(o,"prevStatement failed to get set")}N.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Xde(e,t){const r=Wt(e,o=>w.createShorthandPropertyAssignment(o.symbol.name)),i=Wt(t,o=>w.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function $v(e){return To(e)}function OXe(e,t){return $v(e.range)?{pos:Ua(e.range).getStart(t),end:Xa(e.range).getEnd()}:e.range}function WXe(e,t,r,i,o,s){const l=new Map,u=[],p=[],h=[],m=[],y=[],T=new Map,A=[];let R;const M=$v(e.range)?e.range.length===1&&Zc(e.range[0])?e.range[0].expression:void 0:e.range;let C;if(M===void 0){const oe=e.range,pe=Ua(oe).getStart(),Ce=Xa(oe).end;C=$c(i,pe,Ce-pe,Tu.expressionExpected)}else o.getTypeAtLocation(M).flags&147456&&(C=kr(M,Tu.uselessConstantType));for(const oe of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),h.push([]);const pe=[];C&&pe.push(C),di(oe)&&lr(oe)&&pe.push(kr(oe,Tu.cannotExtractToJSClass)),Gs(oe)&&!Ko(oe.body)&&pe.push(kr(oe,Tu.cannotExtractToExpressionArrowFunction)),m.push(pe)}const O=new Map,U=$v(e.range)?w.createBlock(e.range):e.range,K=$v(e.range)?Ua(e.range):e.range,Q=V(K);if(G(U),Q&&!$v(e.range)&&!w_(e.range)){const oe=o.getContextualType(e.range);se(oe)}if(l.size>0){const oe=new Map;let pe=0;for(let Ce=K;Ce!==void 0&&pe<t.length;Ce=Ce.parent)if(Ce===t[pe]&&(oe.forEach((de,ie)=>{u[pe].typeParameterUsages.set(ie,de)}),pe++),aj(Ce))for(const de of Dy(Ce)){const ie=o.getTypeAtLocation(de);l.has(ie.id.toString())&&oe.set(ie.id.toString(),ie)}N.assert(pe===t.length,"Should have iterated all scopes")}if(y.length){const oe=oj(t[0],t[0].parent)?t[0]:mh(t[0]);Uo(oe,ye)}for(let oe=0;oe<t.length;oe++){const pe=u[oe];if(oe>0&&(pe.usages.size>0||pe.typeParameterUsages.size>0)){const ie=$v(e.range)?e.range[0]:e.range;m[oe].push(kr(ie,Tu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&di(t[oe])&&h[oe].push(kr(e.thisNode,Tu.cannotExtractFunctionsContainingThisToMethod));let Ce=!1,de;if(u[oe].usages.forEach(ie=>{ie.usage===2&&(Ce=!0,ie.symbol.flags&106500&&ie.symbol.valueDeclaration&&_p(ie.symbol.valueDeclaration,8)&&(de=ie.symbol.valueDeclaration))}),N.assert($v(e.range)||A.length===0,"No variable declarations expected if something was extracted"),Ce&&!$v(e.range)){const ie=kr(e.range,Tu.cannotWriteInExpression);h[oe].push(ie),m[oe].push(ie)}else if(de&&oe>0){const ie=kr(de,Tu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[oe].push(ie),m[oe].push(ie)}else if(R){const ie=kr(R,Tu.cannotExtractExportedEntity);h[oe].push(ie),m[oe].push(ie)}}return{target:U,usagesPerScope:u,functionErrorsPerScope:h,constantErrorsPerScope:m,exposedVariableDeclarations:A};function V(oe){return!!Vn(oe,pe=>aj(pe)&&Dy(pe).length!==0)}function se(oe){const pe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:Ce}=pe.walkType(oe);for(const de of Ce)de.isTypeParameter()&&l.set(de.id.toString(),de)}function G(oe,pe=1){if(Q){const Ce=o.getTypeAtLocation(oe);se(Ce)}if(Ju(oe)&&oe.symbol&&y.push(oe),Pc(oe))G(oe.left,2),G(oe.right);else if(_re(oe))G(oe.operand,2);else if(Fr(oe)||$s(oe))Uo(oe,G);else if(Ve(oe)){if(!oe.parent||Id(oe.parent)&&oe!==oe.parent.left||Fr(oe.parent)&&oe!==oe.parent.expression)return;ne(oe,pe,$h(oe))}else Uo(oe,G)}function ne(oe,pe,Ce){const de=he(oe,pe,Ce);if(de)for(let ie=0;ie<t.length;ie++){const ve=p[ie].get(de);ve&&u[ie].substitutions.set(as(oe).toString(),ve)}}function he(oe,pe,Ce){const de=Y(oe);if(!de)return;const ie=Sa(de).toString(),ve=O.get(ie);if(ve&&ve>=pe)return ie;if(O.set(ie,pe),ve){for(const Ee of u)Ee.usages.get(oe.text)&&Ee.usages.set(oe.text,{usage:pe,symbol:de,node:oe});return ie}const Le=de.getDeclarations(),Ue=Le&&In(Le,Ee=>Ee.getSourceFile()===i);if(Ue&&!nO(r,Ue.getStart(),Ue.end)){if(e.facts&2&&pe===2){const Ee=kr(oe,Tu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const De of h)De.push(Ee);for(const De of m)De.push(Ee)}for(let Ee=0;Ee<t.length;Ee++){const De=t[Ee];if(o.resolveName(de.name,De,de.flags,!1)!==de&&!p[Ee].has(ie)){const We=X(de.exportSymbol||de,De,Ce);if(We)p[Ee].set(ie,We);else if(Ce){if(!(de.flags&262144)){const At=kr(oe,Tu.typeWillNotBeVisibleInTheNewScope);h[Ee].push(At),m[Ee].push(At)}}else u[Ee].usages.set(oe.text,{usage:pe,symbol:de,node:oe})}}return ie}}function ye(oe){if(oe===e.range||$v(e.range)&&e.range.includes(oe))return;const pe=Ve(oe)?Y(oe):o.getSymbolAtLocation(oe);if(pe){const Ce=In(y,de=>de.symbol===pe);if(Ce)if(Oi(Ce)){const de=Ce.symbol.id.toString();T.has(de)||(A.push(Ce),T.set(de,!0))}else R=R||Ce}Uo(oe,ye)}function Y(oe){return oe.parent&&np(oe.parent)&&oe.parent.name===oe?o.getShorthandAssignmentValueSymbol(oe.parent):o.getSymbolAtLocation(oe)}function X(oe,pe,Ce){if(!oe)return;const de=oe.getDeclarations();if(de&&de.some(ve=>ve.parent===pe))return w.createIdentifier(oe.name);const ie=X(oe.parent,pe,Ce);if(ie!==void 0)return Ce?w.createQualifiedName(ie,w.createIdentifier(oe.name)):w.createPropertyAccessExpression(ie,oe.name)}}function FXe(e){return Vn(e,t=>t.parent&&VNe(t)&&!mr(t.parent))}function VNe(e){const{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function jNe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function Yde(e){return $de(e)||(sg(e)||GS(e)||t1(e))&&(sg(e.parent)||t1(e.parent))}function $de(e){return Na(e)&&e.parent&&w_(e.parent)}var ND,CD,PD,Tu,Qde,zXe=I({"src/services/refactors/extractSymbol.ts"(){si(),xh(),ND="Extract Symbol",CD={name:"Extract Constant",description:Wo(f.Extract_constant),kind:"refactor.extract.constant"},PD={name:"Extract Function",description:Wo(f.Extract_function),kind:"refactor.extract.function"},cg(ND,{kinds:[CD.kind,PD.kind],getEditsForAction:GNe,getAvailableActions:BNe}),(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")})(Tu||(Tu={})),Qde=(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))(Qde||{})}}),UNe={};ee(UNe,{Messages:()=>Tu,RangeFacts:()=>Qde,getRangeToExtract:()=>qde,getRefactorActionsToExtractSymbol:()=>BNe,getRefactorEditsToExtractSymbol:()=>GNe});var BXe=I({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){zXe()}}),J5,gY,vY,GXe=I({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){si(),xh(),J5="Generate 'get' and 'set' accessors",gY=Wo(f.Generate_get_and_set_accessors),vY={name:J5,description:gY,kind:"refactor.rewrite.property.generateAccessors"},cg(J5,{kinds:[vY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=Fu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);N.assert(i&&!Ug(i),"Expected applicable refactor info");const o=Fu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;const s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(Ve(l)?0:-1)+mO(o,s,l.text,Ao(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return et;const t=Fu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:J5,description:gY,actions:[{...vY,notApplicableReason:t.error}]}]:et:[{name:J5,description:gY,actions:[vY]}]:et}})}}),VXe={},jXe=I({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){GXe()}});function UXe(e){const t=HNe(e);if(t&&!Ug(t))return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,i=>qXe(e.file,i,t.declaration,t.returnTypeNode))}}function HXe(e){const t=HNe(e);return t?Ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:K5,description:yY,actions:[{...X5,notApplicableReason:t.error}]}]:et:[{name:K5,description:yY,actions:[X5]}]:et}function qXe(e,t,r,i){const o=vs(r,22,e),s=Gs(r)&&o===void 0,l=s?Ua(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,w.createToken(21)),t.insertNodeAfter(e,l,w.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function HNe(e){if(lr(e.file)||!M0(X5.kind,e.kind))return;const t=Vd(e.file,e.startPosition),r=Vn(t,l=>Ko(l)||l.parent&&Gs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":JXe(l));if(!r||!r.body||r.type)return{error:Wo(f.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),o=KXe(i,r);if(!o)return{error:Wo(f.Could_not_determine_function_return_type)};const s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function JXe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function KXe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(eo(i,o=>o.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var K5,yY,X5,XXe=I({"src/services/refactors/inferFunctionReturnType.ts"(){si(),xh(),K5="Infer function return type",yY=Wo(f.Infer_function_return_type),X5={name:K5,description:yY,kind:"refactor.rewrite.function.returnType"},cg(K5,{kinds:[X5.kind],getEditsForAction:UXe,getAvailableActions:HXe})}}),YXe={},$Xe=I({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){XXe()}}),RI={};ee(RI,{addExportToChanges:()=>Dde,addExports:()=>Ade,addNewFileToTsconfig:()=>yde,addOrRemoveBracesToArrowFunction:()=>dKe,containsJsx:()=>Cde,convertArrowFunctionOrFunctionExpression:()=>TKe,convertParamsToDestructuredObject:()=>VKe,convertStringOrTemplateLiteral:()=>QKe,convertToOptionalChainExpression:()=>dXe,createNewFileName:()=>Nde,createOldFileImportsFromTargetFile:()=>Tde,deleteMovedStatements:()=>F5,deleteUnusedImports:()=>Ide,deleteUnusedOldImports:()=>bde,doChangeNamedToNamespaceOrDefault:()=>ZDe,extractSymbol:()=>UNe,filterImport:()=>DO,forEachImportInStatement:()=>RO,generateGetAccessorAndSetAccessor:()=>VXe,getApplicableRefactors:()=>cJe,getEditsForRefactor:()=>uJe,getStatementsToMove:()=>NO,getTopLevelDeclarationStatement:()=>iY,getUsageInfo:()=>B5,inferFunctionReturnType:()=>YXe,isRefactorErrorInfo:()=>Ug,isTopLevelDeclaration:()=>G5,makeImportOrRequire:()=>z5,moduleSpecifierFromImport:()=>xO,nameOfTopLevelDeclaration:()=>Rde,refactorKindBeginsWith:()=>M0,registerRefactor:()=>cg,updateImportsInOtherFiles:()=>Ede});var xh=I({"src/services/_namespaces/ts.refactor.ts"(){JDe(),gJe(),SJe(),CJe(),PJe(),LJe(),WJe(),iKe(),pKe(),AKe(),jKe(),ZKe(),pXe(),BXe(),jXe(),$Xe()}});function qNe(e,t,r,i){const o=Zde(e,t,r,i);N.assert(o.spans.length%3===0);const s=o.spans,l=[];for(let u=0;u<s.length;u+=3)l.push({textSpan:vu(s[u],s[u+1]),classificationType:s[u+2]});return l}function Zde(e,t,r,i){return{spans:QXe(e,r,i,t),endOfLineState:0}}function QXe(e,t,r,i){const o=[];return e&&t&&ZXe(e,t,r,(l,u,p)=>{o.push(l.getStart(t),l.getWidth(t),(u+1<<8)+p)},i),o}function ZXe(e,t,r,i,o){const s=e.getTypeChecker();let l=!1;function u(p){switch(p.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!p||!o4(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;const h=l;if((sg(p)||GS(p))&&(l=!0),bP(p)&&(l=!1),Ve(p)&&!l&&!rYe(p)&&!tP(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let y=eYe(m,ZS(p));if(y!==void 0){let T=0;p.parent&&($a(p.parent)||rpe.get(p.parent.kind)===y)&&p.parent.name===p&&(T=1),y===6&&KNe(p)&&(y=9),y=tYe(s,p,y);const A=m.valueDeclaration;if(A){const R=n0(A),M=Cv(A);R&256&&(T|=2),R&1024&&(T|=4),y!==0&&y!==2&&(R&8||M&2||m.getFlags()&8)&&(T|=8),(y===7||y===10)&&nYe(A,t)&&(T|=32),e.isSourceFileDefaultLibrary(A.getSourceFile())&&(T|=16)}else m.declarations&&m.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(T|=16);i(p,y,T)}}}Uo(p,u),l=h}u(t)}function eYe(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&&$a(i)&&(i=JNe(i)),i&&rpe.get(i.kind)}function tYe(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||iYe(t))return r===9?11:10}}return r}function nYe(e,t){return $a(e)&&(e=JNe(e)),Oi(e)?(!$i(e.parent.parent.parent)||r1(e.parent))&&e.getSourceFile()===t:Tc(e)?!$i(e.parent)&&e.getSourceFile()===t:!1}function JNe(e){for(;;)if($a(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function rYe(e){const t=e.parent;return t&&(bh(t)||tp(t)||Yy(t))}function iYe(e){for(;KNe(e);)e=e.parent;return sa(e.parent)&&e.parent.expression===e}function KNe(e){return Id(e.parent)&&e.parent.right===e||Fr(e.parent)&&e.parent.name===e}var epe,tpe,npe,rpe,XNe=I({"src/services/classifier2020.ts"(){si(),epe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(epe||{}),tpe=(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))(tpe||{}),npe=(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))(npe||{}),rpe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function YNe(e,t,r,i){const o=sL(e)?new AY(e,t,r):e===80?new xY(80,t,r):e===81?new RY(81,t,r):new spe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function oYe(e,t){if(!sL(e.kind))return et;const r=[];if(E4(e))return e.forEachChild(l=>{r.push(l)}),r;Qu.setText((t||e.getSourceFile()).text);let i=e.pos;const o=l=>{Y5(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{Y5(r,i,l.pos,e),r.push(aYe(l,e)),i=l.end};return Xe(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),Y5(r,i,e.end,e),Qu.setText(void 0),r}function Y5(e,t,r,i){for(Qu.resetTokenState(t);t<r;){const o=Qu.scan(),s=Qu.getTokenEnd();if(s<=r){if(o===80){if(Noe(i))continue;N.fail(`Did not expect ${N.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(YNe(o,t,s,i))}if(t=s,o===1)break}}function aYe(e,t){const r=YNe(358,e.pos,e.end,t);r._children=[];let i=e.pos;for(const o of e)Y5(r._children,i,o.pos,t),r._children.push(o),i=o.end;return Y5(r._children,i,e.end,t),r}function $Ne(e){return a0(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function bY(e,t){if(!e)return et;let r=k0.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some($Ne))){const i=new Set;for(const o of e){const s=QNe(t,o,l=>{var u;if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualJsDocTags(o,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function $5(e,t){if(!e)return et;let r=k0.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some($Ne))){const i=new Set;for(const o of e){const s=QNe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(AD(),r))}}return r}function QNe(e,t,r){var i;const o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;const s=mc(t);return Ht(RC(o),l=>{const u=e.getTypeAtLocation(l),p=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,h=e.getPropertyOfType(p,t.symbol.name);return h?r(h):void 0})}function sYe(){return{getNodeConstructor:()=>AY,getTokenConstructor:()=>spe,getIdentifierConstructor:()=>xY,getPrivateIdentifierConstructor:()=>RY,getSourceFileConstructor:()=>iCe,getSymbolConstructor:()=>tCe,getTypeConstructor:()=>nCe,getSignatureConstructor:()=>rCe,getSourceMapSourceConstructor:()=>oCe}}function wO(e){let t=!0;for(const i in e)if(Is(e,i)&&!ZNe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Is(e,i)){const o=ZNe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function ZNe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function OO(e){return e?Wt(e,t=>t.text).join(""):""}function Q5(){return{target:1,jsx:1}}function EY(){return Fu.getSupportedErrorCodes()}function eCe(e,t,r){e.version=r,e.scriptSnapshot=t}function Z5(e,t,r,i,o,s){const l=iw(e,ED(t),r,o,s);return eCe(l,t,i),l}function SY(e,t,r,i,o){if(i&&r!==e.version){let l;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",p=Kl(i.span)!==e.text.length?e.text.substr(Kl(i.span)):"";if(i.newLength===0)l=u&&p?u+p:u||p;else{const m=t.getText(i.span.start,i.span.start+i.newLength);l=u&&p?u+m+p:u?u+m:m+p}const h=kH(e,l,i,o);return eCe(h,t,r),h.nameTable=void 0,e!==h&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),h}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return Z5(e.fileName,t,s,r,!0,e.scriptKind)}function ipe(e,t=Gue(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;const s=new aCe(e);let l,u,p=0;const h=e.getCancellationToken?new lCe(e.getCancellationToken()):sCe,m=e.getCurrentDirectory();soe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(L){e.log&&e.log(L)}const T=AR(e),A=Mu(T),R=tde({useCaseSensitiveFileNames:()=>T,getCurrentDirectory:()=>m,getProgram:U,fileExists:ia(e,e.fileExists),readFile:ia(e,e.readFile),getDocumentPositionMapper:ia(e,e.getDocumentPositionMapper),getSourceFileLike:ia(e,e.getSourceFileLike),log:y});function M(L){const me=l.getSourceFile(L);if(!me){const J=new Error(`Could not find source file: '${L}'.`);throw J.ProgramFiles=l.getSourceFiles().map(fe=>fe.fileName),J}return me}function C(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():O()}function O(){var L,me,J;if(N.assert(o!==2),e.getProjectVersion){const ko=e.getProjectVersion();if(ko){if(u===ko&&!((L=e.hasChangedAutomaticTypeDirectiveNames)!=null&&L.call(e)))return;u=ko}}const fe=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==fe&&(y("TypeRoots version has changed; provide new program"),l=void 0,p=fe);const Be=e.getScriptFileNames().slice(),ke=e.getCompilationSettings()||Q5(),Tt=e.hasInvalidatedResolutions||qm,kt=ia(e,e.hasInvalidatedLibResolutions)||qm,en=ia(e,e.hasChangedAutomaticTypeDirectiveNames),En=(me=e.getProjectReferences)==null?void 0:me.call(e);let Gn,qn={getSourceFile:Fs,getSourceFileByPath:Ql,getCancellationToken:()=>h,getCanonicalFileName:A,useCaseSensitiveFileNames:()=>T,getNewLine:()=>Fv(ke),getDefaultLibFileName:ko=>e.getDefaultLibFileName(ko),writeFile:Ya,getCurrentDirectory:()=>m,fileExists:ko=>e.fileExists(ko),readFile:ko=>e.readFile&&e.readFile(ko),getSymlinkCache:ia(e,e.getSymlinkCache),realpath:ia(e,e.realpath),directoryExists:ko=>Km(ko,e),getDirectories:ko=>e.getDirectories?e.getDirectories(ko):[],readDirectory:(ko,cs,Vs,gl,cu)=>(N.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(ko,cs,Vs,gl,cu)),onReleaseOldSourceFile:Nn,onReleaseParsedCommandLine:xo,hasInvalidatedResolutions:Tt,hasInvalidatedLibResolutions:kt,hasChangedAutomaticTypeDirectiveNames:en,trace:ia(e,e.trace),resolveModuleNames:ia(e,e.resolveModuleNames),getModuleResolutionCache:ia(e,e.getModuleResolutionCache),createHash:ia(e,e.createHash),resolveTypeReferenceDirectives:ia(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ia(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ia(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:ia(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:ia(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ri,jsDocParsingMode:e.jsDocParsingMode};const Pi=qn.getSourceFile,{getSourceFileWithCache:xi}=Ww(qn,ko=>il(ko,m,A),(...ko)=>Pi.call(qn,...ko));qn.getSourceFile=xi,(J=e.setCompilerHost)==null||J.call(e,qn);const ir={useCaseSensitiveFileNames:T,fileExists:ko=>qn.fileExists(ko),readFile:ko=>qn.readFile(ko),directoryExists:ko=>qn.directoryExists(ko),getDirectories:ko=>qn.getDirectories(ko),realpath:qn.realpath,readDirectory:(...ko)=>qn.readDirectory(...ko),trace:qn.trace,getCurrentDirectory:qn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Ya},Vr=t.getKeyForCompilationSettings(ke);let vo=new Set;if(bJ(l,Be,ke,(ko,cs)=>e.getScriptVersion(cs),ko=>qn.fileExists(ko),Tt,kt,en,Ri,En)){qn=void 0,Gn=void 0,vo=void 0;return}l=d7({rootNames:Be,options:ke,host:qn,oldProgram:l,projectReferences:En}),qn=void 0,Gn=void 0,vo=void 0,R.clearCache(),l.getTypeChecker();return;function Ri(ko){const cs=il(ko,m,A),Vs=Gn==null?void 0:Gn.get(cs);if(Vs!==void 0)return Vs||void 0;const gl=e.getParsedCommandLine?e.getParsedCommandLine(ko):Jr(ko);return(Gn||(Gn=new Map)).set(cs,gl||!1),gl}function Jr(ko){const cs=Fs(ko,100);if(cs)return cs.path=il(ko,m,A),cs.resolvedPath=cs.path,cs.originalFileName=cs.fileName,cw(cs,ir,go(ai(ko),m),void 0,go(ko,m))}function xo(ko,cs,Vs){var gl;e.getParsedCommandLine?(gl=e.onReleaseParsedCommandLine)==null||gl.call(e,ko,cs,Vs):cs&&Nn(cs.sourceFile,Vs)}function Nn(ko,cs){const Vs=t.getKeyForCompilationSettings(cs);t.releaseDocumentWithKey(ko.resolvedPath,Vs,ko.scriptKind,ko.impliedNodeFormat)}function Fs(ko,cs,Vs,gl){return Ql(ko,il(ko,m,A),cs,Vs,gl)}function Ql(ko,cs,Vs,gl,cu){N.assert(qn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const ho=e.getScriptSnapshot(ko);if(!ho)return;const da=aX(ko,e),uu=e.getScriptVersion(ko);if(!cu){const Ts=l&&l.getSourceFileByPath(cs);if(Ts){if(da===Ts.scriptKind||vo.has(Ts.resolvedPath))return t.updateDocumentWithKey(ko,cs,e,Vr,ho,uu,da,Vs);t.releaseDocumentWithKey(Ts.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Ts.scriptKind,Ts.impliedNodeFormat),vo.add(Ts.resolvedPath)}}return t.acquireDocumentWithKey(ko,cs,e,Vr,ho,uu,da,Vs)}}function U(){if(o===2){N.assert(l===void 0);return}return C(),l}function K(){var L;return(L=e.getPackageJsonAutoImportProvider)==null?void 0:L.call(e)}function Q(L,me){const J=l.getTypeChecker(),fe=Be();if(!fe)return!1;for(const Tt of L)for(const kt of Tt.references){const en=ke(kt);if(N.assertIsDefined(en),me.has(kt)||Ws.isDeclarationOfSymbol(en,fe)){me.add(kt),kt.isDefinition=!0;const En=a5(kt,R,ia(e,e.fileExists));En&&me.add(En)}else kt.isDefinition=!1}return!0;function Be(){for(const Tt of L)for(const kt of Tt.references){if(me.has(kt)){const En=ke(kt);return N.assertIsDefined(En),J.getSymbolAtLocation(En)}const en=a5(kt,R,ia(e,e.fileExists));if(en&&me.has(en)){const En=ke(en);if(En)return J.getSymbolAtLocation(En)}}}function ke(Tt){const kt=l.getSourceFile(Tt.fileName);if(!kt)return;const en=Vd(kt,Tt.textSpan.start);return Ws.Core.getAdjustedNode(en,{use:Ws.FindReferencesUse.References})}}function V(){if(l){const L=t.getKeyForCompilationSettings(l.getCompilerOptions());Xe(l.getSourceFiles(),me=>t.releaseDocumentWithKey(me.resolvedPath,L,me.scriptKind,me.impliedNodeFormat)),l=void 0}}function se(){V(),e=void 0}function G(L){return C(),l.getSyntacticDiagnostics(M(L),h).slice()}function ne(L){C();const me=M(L),J=l.getSemanticDiagnostics(me,h);if(!Rf(l.getCompilerOptions()))return J.slice();const fe=l.getDeclarationDiagnostics(me,h);return[...J,...fe]}function he(L){return C(),FX(M(L),l,h)}function ye(){return C(),[...l.getOptionsDiagnostics(h),...l.getGlobalDiagnostics(h)]}function Y(L,me,J=Mf,fe){const Be={...J,includeCompletionsForModuleExports:J.includeCompletionsForModuleExports||J.includeExternalModuleExports,includeCompletionsWithInsertText:J.includeCompletionsWithInsertText||J.includeInsertTextCompletions};return C(),LI.getCompletionsAtPosition(e,l,y,M(L),me,Be,J.triggerCharacter,J.triggerKind,h,fe&&kc.getFormatContext(fe,e),J.includeSymbol)}function X(L,me,J,fe,Be,ke=Mf,Tt){return C(),LI.getCompletionEntryDetails(l,y,M(L),me,{name:J,source:Be,data:Tt},e,fe&&kc.getFormatContext(fe,e),ke,h)}function oe(L,me,J,fe,Be=Mf){return C(),LI.getCompletionEntrySymbol(l,y,M(L),me,{name:J,source:fe},e,Be)}function pe(L,me){C();const J=M(L),fe=Vd(J,me);if(fe===J)return;const Be=l.getTypeChecker(),ke=Ce(fe),Tt=dYe(ke,Be);if(!Tt||Be.isUnknownSymbol(Tt)){const qn=de(J,ke,me)?Be.getTypeAtLocation(ke):void 0;return qn&&{kind:"",kindModifiers:"",textSpan:Dd(ke,J),displayParts:Be.runWithCancellationToken(h,Pi=>pO(Pi,qn,eT(ke))),documentation:qn.symbol?qn.symbol.getDocumentationComment(Be):void 0,tags:qn.symbol?qn.symbol.getJsDocTags(Be):void 0}}const{symbolKind:kt,displayParts:en,documentation:En,tags:Gn}=Be.runWithCancellationToken(h,qn=>Qv.getSymbolDisplayPartsDocumentationAndSymbolKind(qn,Tt,J,eT(ke),ke));return{kind:kt,kindModifiers:Qv.getSymbolModifiers(Be,Tt),textSpan:Dd(ke,J),displayParts:en,documentation:En,tags:Gn}}function Ce(L){return $E(L.parent)&&L.pos===L.parent.pos?L.parent.expression:BR(L.parent)&&L.pos===L.parent.pos||oR(L.parent)&&L.parent.name===L||Qm(L.parent)?L.parent:L}function de(L,me,J){switch(me.kind){case 80:return!RK(me)&&!DK(me)&&!Pg(me.parent);case 211:case 166:return!qv(L,J);case 110:case 197:case 108:case 202:return!0;case 236:return oR(me);default:return!1}}function ie(L,me,J,fe){return C(),FD.getDefinitionAtPosition(l,M(L),me,J,fe)}function ve(L,me){return C(),FD.getDefinitionAndBoundSpan(l,M(L),me)}function Le(L,me){return C(),FD.getTypeDefinitionAtPosition(l.getTypeChecker(),M(L),me)}function Ue(L,me){return C(),Ws.getImplementationsAtPosition(l,h,l.getSourceFiles(),M(L),me)}function Ee(L,me,J){const fe=ha(L);N.assert(J.some(Tt=>ha(Tt)===fe)),C();const Be=eo(J,Tt=>l.getSourceFile(Tt)),ke=M(L);return D5.getDocumentHighlights(l,h,ke,me,Be)}function De(L,me,J,fe,Be){C();const ke=M(L),Tt=q7(Vd(ke,me));if(xz.nodeIsEligibleForRename(Tt))if(Ve(Tt)&&(k_(Tt.parent)||e1(Tt.parent))&&SR(Tt.escapedText)){const{openingElement:kt,closingElement:en}=Tt.parent.parent;return[kt,en].map(En=>{const Gn=Dd(En.tagName,ke);return{fileName:ke.fileName,textSpan:Gn,...Ws.toContextSpan(Gn,ke,En.parent)}})}else{const kt=lf(ke,Be??Mf),en=typeof Be=="boolean"?Be:Be==null?void 0:Be.providePrefixAndSuffixTextForRename;return We(Tt,me,{findInStrings:J,findInComments:fe,providePrefixAndSuffixTextForRename:en,use:Ws.FindReferencesUse.Rename},(En,Gn,qn)=>Ws.toRenameLocation(En,Gn,qn,en||!1,kt))}}function Me(L,me){return C(),We(Vd(M(L),me),me,{use:Ws.FindReferencesUse.References},Ws.toReferenceEntry)}function We(L,me,J,fe){C();const Be=J&&J.use===Ws.FindReferencesUse.Rename?l.getSourceFiles().filter(ke=>!l.isSourceFileDefaultLibrary(ke)):l.getSourceFiles();return Ws.findReferenceOrRenameEntries(l,h,Be,L,me,J,fe)}function At(L,me){return C(),Ws.findReferencedSymbols(l,h,l.getSourceFiles(),M(L),me)}function Se(L){return C(),Ws.Core.getReferencesForFileName(L,l,l.getSourceFiles()).map(Ws.toReferenceEntry)}function je(L,me,J,fe=!1,Be=!1){C();const ke=J?[M(J)]:l.getSourceFiles();return SDe(ke,l.getTypeChecker(),h,L,me,fe,Be)}function ot(L,me,J){C();const fe=M(L),Be=e.getCustomTransformers&&e.getCustomTransformers();return Yle(l,fe,!!me,h,Be,J)}function Bt(L,me,{triggerReason:J}=Mf){C();const fe=M(L);return QO.getSignatureHelpItems(l,fe,me,J,h)}function vt(L){return s.getCurrentSourceFile(L)}function $e(L,me,J){const fe=s.getCurrentSourceFile(L),Be=Vd(fe,me);if(Be===fe)return;switch(Be.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let ke=Be;for(;;)if(vD(ke)||Yce(ke))ke=ke.parent;else if(CK(ke))if(ke.parent.parent.kind===267&&ke.parent.parent.body===ke.parent)ke=ke.parent.parent.name;else break;else break;return pc(ke.getStart(),Be.getEnd())}function It(L,me){const J=s.getCurrentSourceFile(L);return NY.spanInSourceFileAtLocation(J,me)}function tn(L){return xDe(s.getCurrentSourceFile(L),h)}function rn(L){return RDe(s.getCurrentSourceFile(L),h)}function Mn(L,me,J){return C(),(J||"original")==="2020"?qNe(l,h,M(L),me):zue(l.getTypeChecker(),h,M(L),l.getClassifiableNames(),me)}function $n(L,me,J){return C(),(J||"original")==="original"?PX(l.getTypeChecker(),h,M(L),l.getClassifiableNames(),me):Zde(l,h,M(L),me)}function gn(L,me){return Bue(h,s.getCurrentSourceFile(L),me)}function Qt(L,me){return MX(h,s.getCurrentSourceFile(L),me)}function Yt(L){const me=s.getCurrentSourceFile(L);return IQ.collectElements(me,h)}const vi=new Map(Object.entries({19:20,21:22,23:24,32:30}));vi.forEach((L,me)=>vi.set(L.toString(),Number(me)));function so(L,me){const J=s.getCurrentSourceFile(L),fe=bD(J,me),Be=fe.getStart(J)===me?vi.get(fe.kind.toString()):void 0,ke=Be&&vs(fe.parent,Be,J);return ke?[Dd(fe,J),Dd(ke,J)].sort((Tt,kt)=>Tt.start-kt.start):et}function Wi(L,me,J){let fe=Xs();const Be=wO(J),ke=s.getCurrentSourceFile(L);y("getIndentationAtPosition: getCurrentSourceFile: "+(Xs()-fe)),fe=Xs();const Tt=kc.SmartIndenter.getIndentation(me,ke,Be);return y("getIndentationAtPosition: computeIndentation : "+(Xs()-fe)),Tt}function Co(L,me,J,fe){const Be=s.getCurrentSourceFile(L);return kc.formatSelection(me,J,Be,kc.getFormatContext(wO(fe),e))}function Ln(L,me){return kc.formatDocument(s.getCurrentSourceFile(L),kc.getFormatContext(wO(me),e))}function Ci(L,me,J,fe){const Be=s.getCurrentSourceFile(L),ke=kc.getFormatContext(wO(fe),e);if(!qv(Be,me))switch(J){case"{":return kc.formatOnOpeningCurly(me,Be,ke);case"}":return kc.formatOnClosingCurly(me,Be,ke);case";":return kc.formatOnSemicolon(me,Be,ke);case`
`:return kc.formatOnEnter(me,Be,ke)}return[]}function Ar(L,me,J,fe,Be,ke=Mf){C();const Tt=M(L),kt=pc(me,J),en=kc.getFormatContext(Be,e);return Do(SE(fe,xv,nl),En=>(h.throwIfCancellationRequested(),Fu.getFixes({errorCode:En,sourceFile:Tt,span:kt,program:l,host:e,cancellationToken:h,formatContext:en,preferences:ke})))}function sn(L,me,J,fe=Mf){C(),N.assert(L.type==="file");const Be=M(L.fileName),ke=kc.getFormatContext(J,e);return Fu.getAllFixes({fixId:me,sourceFile:Be,program:l,host:e,cancellationToken:h,formatContext:ke,preferences:fe})}function tt(L,me,J=Mf){C(),N.assert(L.type==="file");const fe=M(L.fileName),Be=kc.getFormatContext(me,e),ke=L.mode??(L.skipDestructiveCodeActions?"SortAndCombine":"All");return Cm.organizeImports(fe,Be,e,l,J,ke)}function zt(L,me,J,fe=Mf){return jue(U(),L,me,e,kc.getFormatContext(J,e),fe,R)}function Dn(L,me){const J=typeof L=="string"?me:L;return To(J)?Promise.all(J.map(fe=>ci(fe))):ci(J)}function ci(L){const me=J=>il(J,m,A);return N.assertEqual(L.type,"install package"),e.installPackage?e.installPackage({fileName:me(L.file),packageName:L.packageName}):Promise.reject("Host does not implement `installPackage`")}function yi(L,me,J,fe){const Be=fe?kc.getFormatContext(fe,e).options:void 0;return k0.getDocCommentTemplateAtPosition(Xv(e,Be),s.getCurrentSourceFile(L),me,J)}function Qi(L,me,J){if(J===60)return!1;const fe=s.getCurrentSourceFile(L);if(SI(fe,me))return!1;if(rue(fe,me))return J===123;if(OK(fe,me))return!1;switch(J){case 39:case 34:case 96:return!qv(fe,me)}return!0}function Io(L,me){const J=s.getCurrentSourceFile(L),fe=Ic(me,J);if(!fe)return;const Be=fe.kind===32&&k_(fe.parent)?fe.parent.parent:KA(fe)&&sg(fe.parent)?fe.parent:void 0;if(Be&&ft(Be))return{newText:`</${Be.openingElement.tagName.getText(J)}>`};const ke=fe.kind===32&&lI(fe.parent)?fe.parent.parent:KA(fe)&&t1(fe.parent)?fe.parent:void 0;if(ke&&Ct(ke))return{newText:"</>"}}function fa(L,me){const J=s.getCurrentSourceFile(L),fe=Ic(me,J);if(!fe||fe.parent.kind===312)return;const Be="[a-zA-Z0-9:\\-\\._$]*";if(t1(fe.parent.parent)){const ke=fe.parent.parent.openingFragment,Tt=fe.parent.parent.closingFragment;if(eR(ke)||eR(Tt))return;const kt=ke.getStart(J)+1,en=Tt.getStart(J)+2;return me!==kt&&me!==en?void 0:{ranges:[{start:kt,length:0},{start:en,length:0}],wordPattern:Be}}else{const ke=Vn(fe.parent,xi=>!!(k_(xi)||e1(xi)));if(!ke)return;N.assert(k_(ke)||e1(ke),"tag should be opening or closing element");const Tt=ke.parent.openingElement,kt=ke.parent.closingElement,en=Tt.tagName.getStart(J),En=Tt.tagName.end,Gn=kt.tagName.getStart(J),qn=kt.tagName.end;return en===Tt.getStart(J)||Gn===kt.getStart(J)||En===Tt.getEnd()||qn===kt.getEnd()||!(en<=me&&me<=En||Gn<=me&&me<=qn)||Tt.tagName.getText(J)!==kt.tagName.getText(J)?void 0:{ranges:[{start:en,length:En-en},{start:Gn,length:qn-Gn}],wordPattern:Be}}}function ka(L,me){return{lineStarts:L.getLineStarts(),firstLine:L.getLineAndCharacterOfPosition(me.pos).line,lastLine:L.getLineAndCharacterOfPosition(me.end).line}}function Tn(L,me,J){const fe=s.getCurrentSourceFile(L),Be=[],{lineStarts:ke,firstLine:Tt,lastLine:kt}=ka(fe,me);let en=J||!1,En=Number.MAX_VALUE;const Gn=new Map,qn=new RegExp(/\S/),Pi=X7(fe,ke[Tt]),xi=Pi?"{/*":"//";for(let ir=Tt;ir<=kt;ir++){const Vr=fe.text.substring(ke[ir],fe.getLineEndOfPosition(ke[ir])),vo=qn.exec(Vr);vo&&(En=Math.min(En,vo.index),Gn.set(ir.toString(),vo.index),Vr.substr(vo.index,xi.length)!==xi&&(en=J===void 0||J))}for(let ir=Tt;ir<=kt;ir++){if(Tt!==kt&&ke[ir]===me.end)continue;const Vr=Gn.get(ir.toString());Vr!==void 0&&(Pi?Be.push(...wn(L,{pos:ke[ir]+En,end:fe.getLineEndOfPosition(ke[ir])},en,Pi)):en?Be.push({newText:xi,span:{length:0,start:ke[ir]+En}}):fe.text.substr(ke[ir]+Vr,xi.length)===xi&&Be.push({newText:"",span:{length:xi.length,start:ke[ir]+Vr}}))}return Be}function wn(L,me,J,fe){var Be;const ke=s.getCurrentSourceFile(L),Tt=[],{text:kt}=ke;let en=!1,En=J||!1;const Gn=[];let{pos:qn}=me;const Pi=fe!==void 0?fe:X7(ke,qn),xi=Pi?"{/*":"/*",ir=Pi?"*/}":"*/",Vr=Pi?"\\{\\/\\*":"\\/\\*",vo=Pi?"\\*\\/\\}":"\\*\\/";for(;qn<=me.end;){const Mi=kt.substr(qn,xi.length)===xi?xi.length:0,Ri=qv(ke,qn+Mi);if(Ri)Pi&&(Ri.pos--,Ri.end++),Gn.push(Ri.pos),Ri.kind===3&&Gn.push(Ri.end),en=!0,qn=Ri.end+1;else{const Jr=kt.substring(qn,me.end).search(`(${Vr})|(${vo})`);En=J!==void 0?J:En||!_ue(kt,qn,Jr===-1?me.end:qn+Jr),qn=Jr===-1?me.end+1:qn+Jr+ir.length}}if(En||!en){((Be=qv(ke,me.pos))==null?void 0:Be.kind)!==2&&by(Gn,me.pos,nl),by(Gn,me.end,nl);const Mi=Gn[0];kt.substr(Mi,xi.length)!==xi&&Tt.push({newText:xi,span:{length:0,start:Mi}});for(let Ri=1;Ri<Gn.length-1;Ri++)kt.substr(Gn[Ri]-ir.length,ir.length)!==ir&&Tt.push({newText:ir,span:{length:0,start:Gn[Ri]}}),kt.substr(Gn[Ri],xi.length)!==xi&&Tt.push({newText:xi,span:{length:0,start:Gn[Ri]}});Tt.length%2!==0&&Tt.push({newText:ir,span:{length:0,start:Gn[Gn.length-1]}})}else for(const Mi of Gn){const Ri=Mi-ir.length>0?Mi-ir.length:0,Jr=kt.substr(Ri,ir.length)===ir?ir.length:0;Tt.push({newText:"",span:{length:xi.length,start:Mi-Jr}})}return Tt}function He(L,me){const J=s.getCurrentSourceFile(L),{firstLine:fe,lastLine:Be}=ka(J,me);return fe===Be&&me.pos!==me.end?wn(L,me,!0):Tn(L,me,!0)}function mt(L,me){const J=s.getCurrentSourceFile(L),fe=[],{pos:Be}=me;let{end:ke}=me;Be===ke&&(ke+=X7(J,Be)?2:1);for(let Tt=Be;Tt<=ke;Tt++){const kt=qv(J,Tt);if(kt){switch(kt.kind){case 2:fe.push(...Tn(L,{end:kt.end,pos:kt.pos+1},!1));break;case 3:fe.push(...wn(L,{end:kt.end,pos:kt.pos+1},!1))}Tt=kt.end+1}}return fe}function ft({openingElement:L,closingElement:me,parent:J}){return!T0(L.tagName,me.tagName)||sg(J)&&T0(L.tagName,J.openingElement.tagName)&&ft(J)}function Ct({closingFragment:L,parent:me}){return!!(L.flags&262144)||t1(me)&&Ct(me)}function le(L,me,J){const fe=s.getCurrentSourceFile(L),Be=kc.getRangeOfEnclosingComment(fe,me);return Be&&(!J||Be.kind===3)?tb(Be):void 0}function Fe(L,me){C();const J=M(L);h.throwIfCancellationRequested();const fe=J.text,Be=[];if(me.length>0&&!en(J.fileName)){const En=Tt();let Gn;for(;Gn=En.exec(fe);){h.throwIfCancellationRequested();const qn=3;N.assert(Gn.length===me.length+qn);const Pi=Gn[1],xi=Gn.index+Pi.length;if(!qv(J,xi))continue;let ir;for(let vo=0;vo<me.length;vo++)Gn[vo+qn]&&(ir=me[vo]);if(ir===void 0)return N.fail();if(kt(fe.charCodeAt(xi+ir.text.length)))continue;const Vr=Gn[2];Be.push({descriptor:ir,message:Vr,position:xi})}}return Be;function ke(En){return En.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Tt(){const En=/(?:\/\/+\s*)/.source,Gn=/(?:\/\*+\s*)/.source,Pi="("+/(?:^(?:\s|\*)*)/.source+"|"+En+"|"+Gn+")",xi="(?:"+Wt(me,Ri=>"("+ke(Ri.text)+")").join("|")+")",ir=/(?:$|\*\/)/.source,Vr=/(?:.*?)/.source,vo="("+xi+Vr+")",Mi=Pi+vo+ir;return new RegExp(Mi,"gim")}function kt(En){return En>=97&&En<=122||En>=65&&En<=90||En>=48&&En<=57}function en(En){return En.includes("/node_modules/")}}function pt(L,me,J){return C(),xz.getRenameInfo(l,M(L),me,J||{})}function j(L,me,J,fe,Be,ke){const[Tt,kt]=typeof me=="number"?[me,void 0]:[me.pos,me.end];return{file:L,startPosition:Tt,endPosition:kt,program:U(),host:e,formatContext:kc.getFormatContext(fe,e),cancellationToken:h,preferences:J,triggerReason:Be,kind:ke}}function it(L,me,J){return{file:L,program:U(),host:e,span:me,preferences:J,cancellationToken:h}}function Rt(L,me){return DQ.getSmartSelectionRange(me,s.getCurrentSourceFile(L))}function Ye(L,me,J=Mf,fe,Be,ke){C();const Tt=M(L);return RI.getApplicableRefactors(j(Tt,me,J,Mf,fe,Be),ke)}function _t(L,me,J=Mf){C();const fe=M(L),Be=N.checkDefined(l.getSourceFiles()),ke=XC(L),Tt=NO(j(fe,me,J,Mf)),kt=Cde(Tt==null?void 0:Tt.all),en=eo(Be,En=>{const Gn=XC(En.fileName);return!(l!=null&&l.isSourceFileFromExternalLibrary(fe))&&!(fe===M(En.fileName)||ke===".ts"&&Gn===".d.ts"||ke===".d.ts"&&uo(ic(En.fileName),"lib.")&&Gn===".d.ts")&&(ke===Gn||(ke===".tsx"&&Gn===".ts"||ke===".jsx"&&Gn===".js")&&!kt)?En.fileName:void 0});return{newFileName:Nde(fe,l,e,Tt),files:en}}function Gt(L,me,J,fe,Be,ke=Mf,Tt){C();const kt=M(L);return RI.getEditsForRefactor(j(kt,J,ke,me),fe,Be,Tt)}function yn(L,me){return me===0?{line:0,character:0}:R.toLineColumnOffset(L,me)}function fn(L,me){C();const J=DI.resolveCallHierarchyDeclaration(l,Vd(M(L),me));return J&&gX(J,fe=>DI.createCallHierarchyItem(l,fe))}function hn(L,me){C();const J=M(L),fe=vX(DI.resolveCallHierarchyDeclaration(l,me===0?J:Vd(J,me)));return fe?DI.getIncomingCalls(l,fe,h):[]}function q(L,me){C();const J=M(L),fe=vX(DI.resolveCallHierarchyDeclaration(l,me===0?J:Vd(J,me)));return fe?DI.getOutgoingCalls(l,fe):[]}function Oe(L,me,J=Mf){C();const fe=M(L);return EQ.provideInlayHints(it(fe,me,J))}const Lt={dispose:se,cleanupSemanticCache:V,getSyntacticDiagnostics:G,getSemanticDiagnostics:ne,getSuggestionDiagnostics:he,getCompilerOptionsDiagnostics:ye,getSyntacticClassifications:gn,getSemanticClassifications:Mn,getEncodedSyntacticClassifications:Qt,getEncodedSemanticClassifications:$n,getCompletionsAtPosition:Y,getCompletionEntryDetails:X,getCompletionEntrySymbol:oe,getSignatureHelpItems:Bt,getQuickInfoAtPosition:pe,getDefinitionAtPosition:ie,getDefinitionAndBoundSpan:ve,getImplementationAtPosition:Ue,getTypeDefinitionAtPosition:Le,getReferencesAtPosition:Me,findReferences:At,getFileReferences:Se,getDocumentHighlights:Ee,getNameOrDottedNameSpan:$e,getBreakpointStatementAtPosition:It,getNavigateToItems:je,getRenameInfo:pt,getSmartSelectionRange:Rt,findRenameLocations:De,getNavigationBarItems:tn,getNavigationTree:rn,getOutliningSpans:Yt,getTodoComments:Fe,getBraceMatchingAtPosition:so,getIndentationAtPosition:Wi,getFormattingEditsForRange:Co,getFormattingEditsForDocument:Ln,getFormattingEditsAfterKeystroke:Ci,getDocCommentTemplateAtPosition:yi,isValidBraceCompletionAtPosition:Qi,getJsxClosingTagAtPosition:Io,getLinkedEditingRangeAtPosition:fa,getSpanOfEnclosingComment:le,getCodeFixesAtPosition:Ar,getCombinedCodeFix:sn,applyCodeActionCommand:Dn,organizeImports:tt,getEditsForFileRename:zt,getEmitOutput:ot,getNonBoundSourceFile:vt,getProgram:U,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:Q,getApplicableRefactors:Ye,getEditsForRefactor:Gt,getMoveToRefactoringFileSuggestions:_t,toLineColumnOffset:yn,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:fn,provideCallHierarchyIncomingCalls:hn,provideCallHierarchyOutgoingCalls:q,toggleLineComment:Tn,toggleMultilineComment:wn,commentSelection:He,uncommentSelection:mt,provideInlayHints:Oe,getSupportedCodeFixes:EY};switch(o){case 0:break;case 1:lpe.forEach(L=>Lt[L]=()=>{throw new Error(`LanguageService Operation: ${L} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:cCe.forEach(L=>Lt[L]=()=>{throw new Error(`LanguageService Operation: ${L} not allowed in LanguageServiceMode.Syntactic`)});break;default:N.assertNever(o)}return Lt}function TY(e){return e.nameTable||lYe(e),e.nameTable}function lYe(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(Ve(i)&&!DK(i)&&i.escapedText||ef(i)&&cYe(i)){const o=CC(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(qi(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Uo(i,r),Wp(i))for(const o of i.jsDoc)Uo(o,r)})}function cYe(e){return wg(e)||e.parent.kind===283||pYe(e)||$L(e)}function WO(e){const t=uYe(e);return t&&(La(t.parent)||n1(t.parent))?t:void 0}function uYe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return jV(e.parent.parent)?e.parent.parent:void 0;case 80:return jV(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function dYe(e,t){const r=WO(e);if(r){const i=t.getContextualType(r.parent),o=i&&ez(r,t,i,!1);if(o&&o.length===1)return Ua(o)}return t.getSymbolAtLocation(e)}function ez(e,t,r,i){const o=cO(e.name);if(!o)return et;if(!r.isUnion()){const u=r.getProperty(o);return u?[u]:et}const s=La(e.parent)||n1(e.parent)?mn(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=eo(s,u=>u.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){const u=r.getProperty(o);if(u)return[u]}return!s.length&&!l.length?eo(r.types,u=>u.getProperty(o)):SE(l,xv)}function pYe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function ope(e){if(gu)return $r(ai(ha(gu.getExecutingFilePath())),Z2(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var ape,AY,IY,tCe,spe,xY,RY,nCe,rCe,iCe,oCe,aCe,sCe,lCe,DY,lpe,cCe,fYe=I({"src/services/services.ts"(){si(),IDe(),qDe(),xh(),tDe(),XNe(),ape="0.8",AY=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){N.assert(!Ym(this.pos)&&!Ym(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Un(this)}getStart(e,t){return this.assertHasRealPosition(),l0(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=oYe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=In(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=el(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Uo(this,e,t)}},IY=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 Un(this)}getStart(e,t){return l0(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||et}getFirstToken(){}getLastToken(){}forEachChild(){}},tCe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return El(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=et,!this.declarations&&ph(this)&&this.links.target&&ph(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=$5([t],e)}else this.documentationComment=$5(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(My(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=$5(mn(this.declarations,My),t)),Ne(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Mv(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=$5(mn(this.declarations,Mv),t)),Ne(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=bY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(My(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=bY(mn(this.declarations,My),t)),Ne(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Mv(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=bY(mn(this.declarations,Mv),t)),Ne(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},spe=class extends IY{constructor(e,t,r){super(t,r),this.kind=e}},xY=class extends IY{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Sr(this)}},xY.prototype.kind=80,RY=class extends IY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return Sr(this)}},RY.prototype.kind=81,nCe=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!!(Wr(this)&3)}isClass(){return!!(Wr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Wr(this)&4)return this.checker.getTypeArguments(this)}},rCe=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()&&nP(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=$5(hA(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=bY(hA(this.declaration),this.checker))}},iCe=class extends AY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return kH(this,e,t)}getLineAndCharacterOfPosition(e){return ys(this,e)}getLineStarts(){return Ng(this)}getPositionOfLineAndCharacter(e,t,r){return t4(Ng(this),e,t,this.text,r)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts();let i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);const o=this.getFullText();return o[i]===`
`&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=$p();return this.forEachChild(o),e;function t(s){const l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){const l=a4(s);return l&&(Za(l)&&Fr(l.expression)?l.expression.name.text:oc(l)?cO(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:const l=s,u=i(l);if(u){const m=r(u),y=el(m);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(m[m.length-1]=l):m.push(l)}Uo(s,o);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(s),Uo(s,o);break;case 169:if(!Qr(s,31))break;case 260:case 208:{const m=s;if(ta(m.name)){Uo(m.name,o);break}m.initializer&&o(m.initializer)}case 306:case 172:case 171:t(s);break;case 278:const p=s;p.exportClause&&(Nf(p.exportClause)?Xe(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:const h=s.importClause;h&&(h.name&&t(h.name),h.namedBindings&&(h.namedBindings.kind===274?t(h.namedBindings):Xe(h.namedBindings.elements,o)));break;case 226:zl(s)!==0&&t(s);default:Uo(s,o)}}}},oCe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return ys(this,e)}},aCe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,p;const h=this.host.getScriptSnapshot(e);if(!h)throw new Error("Could not find file: '"+e+"'.");const m=aX(e,this.host),y=this.host.getScriptVersion(e);let T;if(this.currentFileName!==e){const A={languageVersion:99,impliedNodeFormat:Bw(il(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||wv(this.host)),(p=(u=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:u.call(l))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:fk(this.host.getCompilationSettings()),jsDocParsingMode:0};T=Z5(e,h,A,y,!0,m)}else if(this.currentFileVersion!==y){const A=h.getChangeRange(this.currentFileScriptSnapshot);T=SY(this.currentSourceFile,h,y,A)}return T&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=h,this.currentSourceFile=T),this.currentSourceFile}},sCe={isCancellationRequested:qm,throwIfCancellationRequested:Ya},lCe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=sr)==null||e.instant(sr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new zx}},DY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Xs();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=sr)==null||e.instant(sr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new zx}},lpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],cCe=[...lpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],ooe(sYe())}});function uCe(e,t,r){const i=[];r=jX(r,i);const o=To(e)?e:[e],s=Pw(void 0,void 0,w,r,o,t,!0);return s.diagnostics=So(s.diagnostics,i),s}var mYe=I({"src/services/transform.ts"(){si()}});function _Ye(e,t){if(e.isDeclarationFile)return;let r=po(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const y=Ic(r.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;r=y}if(r.flags&33554432)return;return m(r);function o(y,T){const A=qS(y)?oi(y.modifiers,Eu):void 0,R=A?Pa(e.text,A.end):y.getStart(e);return pc(R,(T||y).getEnd())}function s(y,T){return o(y,m1(T,T.parent,e))}function l(y,T){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?m(y):m(T)}function u(y,T,A){if(y){const R=y.indexOf(T);if(R>=0){let M=R,C=R+1;for(;M>0&&A(y[M-1]);)M--;for(;C<y.length&&A(y[C]);)C++;return pc(Pa(e.text,y[M].pos),y[C-1].end)}}return o(T)}function p(y){return m(Ic(y.pos,e))}function h(y){return m(m1(y,y.parent,e))}function m(y){if(y){const{parent:ie}=y;switch(y.kind){case 243:return A(y.declarationList.declarations[0]);case 260:case 172:case 171:return A(y);case 169:return M(y);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return O(y);case 241:if(kE(y))return U(y);case 268:return K(y);case 299:return K(y.block);case 244:return o(y.expression);case 253:return o(y.getChildAt(0),y.expression);case 247:return s(y,y.expression);case 246:return m(y.statement);case 259:return o(y.getChildAt(0));case 245:return s(y,y.expression);case 256:return m(y.statement);case 252:case 251:return o(y.getChildAt(0),y.label);case 248:return V(y);case 249:return s(y,y.expression);case 250:return Q(y);case 255:return s(y,y.expression);case 296:case 297:return m(y.statements[0]);case 258:return K(y.tryBlock);case 257:return o(y,y.expression);case 277:return o(y,y.expression);case 271:return o(y,y.moduleReference);case 272:return o(y,y.moduleSpecifier);case 278:return o(y,y.moduleSpecifier);case 267:if(jg(y)!==1)return;case 263:case 266:case 306:case 208:return o(y);case 254:return m(y.statement);case 170:return u(ie.modifiers,y,Eu);case 206:case 207:return se(y);case 264:case 265:return;case 27:case 1:return l(Ic(y.pos,e));case 28:return p(y);case 19:return ne(y);case 20:return he(y);case 24:return ye(y);case 21:return Y(y);case 22:return X(y);case 59:return oe(y);case 32:case 30:return pe(y);case 117:return Ce(y);case 93:case 85:case 98:return h(y);case 165:return de(y);default:if(Jv(y))return G(y);if((y.kind===80||y.kind===230||y.kind===303||y.kind===304)&&Jv(ie))return o(y);if(y.kind===226){const{left:ve,operatorToken:Le}=y;if(Jv(ve))return G(ve);if(Le.kind===64&&Jv(y.parent))return o(y);if(Le.kind===28)return m(ve)}if(Qh(y))switch(ie.kind){case 246:return p(y);case 170:return m(y.parent);case 248:case 250:return o(y);case 226:if(y.parent.operatorToken.kind===28)return o(y);break;case 219:if(y.parent.body===y)return o(y);break}switch(y.parent.kind){case 303:if(y.parent.name===y&&!Jv(y.parent.parent))return m(y.parent.initializer);break;case 216:if(y.parent.type===y)return h(y.parent.type);break;case 260:case 169:{const{initializer:ve,type:Le}=y.parent;if(ve===y||Le===y||Ov(y.kind))return p(y);break}case 226:{const{left:ve}=y.parent;if(Jv(ve)&&y!==ve)return p(y);break}default:if(ea(y.parent)&&y.parent.type===y)return p(y)}return m(y.parent)}}function T(ie){return Vc(ie.parent)&&ie.parent.declarations[0]===ie?o(Ic(ie.pos,e,ie.parent),ie):o(ie)}function A(ie){if(ie.parent.parent.kind===249)return m(ie.parent.parent);const ve=ie.parent;if(ta(ie.name))return se(ie.name);if(_S(ie)&&ie.initializer||Qr(ie,32)||ve.parent.kind===250)return T(ie);if(Vc(ie.parent)&&ie.parent.declarations[0]!==ie)return m(Ic(ie.pos,e,ie.parent))}function R(ie){return!!ie.initializer||ie.dotDotDotToken!==void 0||Qr(ie,3)}function M(ie){if(ta(ie.name))return se(ie.name);if(R(ie))return o(ie);{const ve=ie.parent,Le=ve.parameters.indexOf(ie);return N.assert(Le!==-1),Le!==0?M(ve.parameters[Le-1]):m(ve.body)}}function C(ie){return Qr(ie,32)||ie.parent.kind===263&&ie.kind!==176}function O(ie){if(ie.body)return C(ie)?o(ie):m(ie.body)}function U(ie){const ve=ie.statements.length?ie.statements[0]:ie.getLastToken();return C(ie.parent)?l(ie.parent,ve):m(ve)}function K(ie){switch(ie.parent.kind){case 267:if(jg(ie.parent)!==1)return;case 247:case 245:case 249:return l(ie.parent,ie.statements[0]);case 248:case 250:return l(Ic(ie.pos,e,ie.parent),ie.statements[0])}return m(ie.statements[0])}function Q(ie){if(ie.initializer.kind===261){const ve=ie.initializer;if(ve.declarations.length>0)return m(ve.declarations[0])}else return m(ie.initializer)}function V(ie){if(ie.initializer)return Q(ie);if(ie.condition)return o(ie.condition);if(ie.incrementor)return o(ie.incrementor)}function se(ie){const ve=Xe(ie.elements,Le=>Le.kind!==232?Le:void 0);return ve?m(ve):ie.parent.kind===208?o(ie.parent):T(ie.parent)}function G(ie){N.assert(ie.kind!==207&&ie.kind!==206);const ve=ie.kind===209?ie.elements:ie.properties,Le=Xe(ve,Ue=>Ue.kind!==232?Ue:void 0);return Le?m(Le):o(ie.parent.kind===226?ie.parent:ie)}function ne(ie){switch(ie.parent.kind){case 266:const ve=ie.parent;return l(Ic(ie.pos,e,ie.parent),ve.members.length?ve.members[0]:ve.getLastToken(e));case 263:const Le=ie.parent;return l(Ic(ie.pos,e,ie.parent),Le.members.length?Le.members[0]:Le.getLastToken(e));case 269:return l(ie.parent.parent,ie.parent.clauses[0])}return m(ie.parent)}function he(ie){switch(ie.parent.kind){case 268:if(jg(ie.parent.parent)!==1)return;case 266:case 263:return o(ie);case 241:if(kE(ie.parent))return o(ie);case 299:return m(el(ie.parent.statements));case 269:const ve=ie.parent,Le=el(ve.clauses);return Le?m(el(Le.statements)):void 0;case 206:const Ue=ie.parent;return m(el(Ue.elements)||Ue);default:if(Jv(ie.parent)){const Ee=ie.parent;return o(el(Ee.properties)||Ee)}return m(ie.parent)}}function ye(ie){switch(ie.parent.kind){case 207:const ve=ie.parent;return o(el(ve.elements)||ve);default:if(Jv(ie.parent)){const Le=ie.parent;return o(el(Le.elements)||Le)}return m(ie.parent)}}function Y(ie){return ie.parent.kind===246||ie.parent.kind===213||ie.parent.kind===214?p(ie):ie.parent.kind===217?h(ie):m(ie.parent)}function X(ie){switch(ie.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return p(ie);default:return m(ie.parent)}}function oe(ie){return ea(ie.parent)||ie.parent.kind===303||ie.parent.kind===169?p(ie):m(ie.parent)}function pe(ie){return ie.parent.kind===216?h(ie):m(ie.parent)}function Ce(ie){return ie.parent.kind===246?s(ie,ie.parent.expression):m(ie.parent)}function de(ie){return ie.parent.kind===250?h(ie):m(ie.parent)}}}var hYe=I({"src/services/breakpoints.ts"(){si()}}),NY={};ee(NY,{spanInSourceFileAtLocation:()=>_Ye});var gYe=I({"src/services/_namespaces/ts.BreakpointResolver.ts"(){hYe()}});function vYe(e){return(Os(e)||Qc(e))&&ad(e)}function dCe(e){return qo(e)||Oi(e)}function FO(e){return(Os(e)||Gs(e)||Qc(e))&&dCe(e.parent)&&e===e.parent.initializer&&Ve(e.parent.name)&&(!!(Cv(e.parent)&2)||qo(e.parent))}function pCe(e){return $i(e)||Xl(e)||Tc(e)||Os(e)||Ac(e)||Qc(e)||Rl(e)||Hl(e)||vh(e)||tf(e)||vp(e)}function MD(e){return $i(e)||Xl(e)&&Ve(e.name)||Tc(e)||Ac(e)||Rl(e)||Hl(e)||vh(e)||tf(e)||vp(e)||vYe(e)||FO(e)}function fCe(e){return $i(e)?e:ad(e)?e.name:FO(e)?e.parent.name:N.checkDefined(e.modifiers&&In(e.modifiers,mCe))}function mCe(e){return e.kind===90}function _Ce(e,t){const r=fCe(t);return r&&e.getSymbolAtLocation(r)}function yYe(e,t){if($i(t))return{text:t.fileName,pos:0,end:0};if((Tc(t)||Ac(t))&&!ad(t)){const o=t.modifiers&&In(t.modifiers,mCe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Rl(t)){const o=t.getSourceFile(),s=Pa(o.text,C_(t).pos),l=s+6,u=e.getTypeChecker(),p=u.getSymbolAtLocation(t.parent);return{text:`${p?`${u.symbolToString(p,t.parent)} `:""}static {}`,pos:s,end:l}}const r=FO(t)?t.parent.name:N.checkDefined(Lo(t),"Expected call hierarchy item to have a name");let i=Ve(r)?Sr(r):ef(r)?r.text:Za(r)&&ef(r.expression)?r.expression.text:void 0;if(i===void 0){const o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){const o=Lw();i=hC(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function bYe(e){var t,r,i,o;if(FO(e))return qo(e.parent)&&di(e.parent.parent)?Qc(e.parent.parent)?(t=s4(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():L_(e.parent.parent.parent.parent)&&Ve(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=s4(e.parent))==null?void 0:i.getText():(o=Lo(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(L_(e.parent)&&Ve(e.parent.parent.name))return e.parent.parent.name.getText()}}function hCe(e,t){if(t.body)return t;if(Ml(t))return ng(t.parent);if(Tc(t)||Hl(t)){const r=_Ce(e,t);return r&&r.valueDeclaration&&Bs(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function gCe(e,t){const r=_Ce(e,t);let i;if(r&&r.declarations){const o=N2(r.declarations),s=Wt(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,h)=>Uu(s[p].file,s[h].file)||s[p].pos-s[h].pos);const l=Wt(o,p=>r.declarations[p]);let u;for(const p of l)MD(p)&&((!u||u.parent!==p.parent||u.end!==p.pos)&&(i=Rn(i,p)),u=p)}return i}function CY(e,t){return Rl(t)?t:Bs(t)?hCe(e,t)??gCe(e,t)??t:gCe(e,t)??t}function vCe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(MD(t))return CY(r,t);if(pCe(t)){const o=Vn(t,MD);return o&&CY(r,o)}if(wg(t)){if(MD(t.parent))return CY(r,t.parent);if(pCe(t.parent)){const o=Vn(t.parent,MD);return o&&CY(r,o)}return dCe(t.parent)&&t.parent.initializer&&FO(t.parent.initializer)?t.parent.initializer:void 0}if(Ml(t))return MD(t.parent)?t.parent:void 0;if(t.kind===126&&Rl(t.parent)){t=t.parent;continue}if(Oi(t)&&t.initializer&&FO(t.initializer))return t.initializer;if(!i){let o=r.getSymbolAtLocation(t);if(o&&(o.flags&2097152&&(o=r.getAliasedSymbol(o)),o.valueDeclaration)){i=!0,t=o.valueDeclaration;continue}}return}}function cpe(e,t){const r=t.getSourceFile(),i=yYe(e,t),o=bYe(t),s=f1(t),l=nM(t),u=pc(Pa(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=pc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:p}}function EYe(e){return e!==void 0}function SYe(e){if(e.kind===Ws.EntryKind.Node){const{node:t}=e;if(AK(t,!0,!0)||qce(t,!0,!0)||Jce(t,!0,!0)||Kce(t,!0,!0)||vD(t)||NK(t)){const r=t.getSourceFile();return{declaration:Vn(t,MD)||r,range:UK(t,r)}}}}function yCe(e){return as(e.declaration)}function TYe(e,t){return{from:e,fromSpans:t}}function AYe(e,t){return TYe(cpe(e,t[0].declaration),Wt(t,r=>tb(r.range)))}function IYe(e,t,r){if($i(t)||Xl(t)||Rl(t))return[];const i=fCe(t),o=mn(Ws.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Ws.FindReferencesUse.References},SYe),EYe);return o?JN(o,yCe,s=>AYe(e,s)):[]}function xYe(e,t){function r(o){const s=QE(o)?o.tag:ld(o)?o.tagName:ws(o)||Rl(o)?o:o.expression,l=vCe(e,s);if(l){const u=UK(s,o.getSourceFile());if(To(l))for(const p of l)t.push({declaration:p,range:u});else t.push({declaration:l,range:u})}}function i(o){if(o&&!(o.flags&33554432)){if(MD(o)){if(di(o))for(const s of o.members)s.name&&Za(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(o);return;case 216:case 234:i(o.expression);return;case 260:case 169:i(o.name),i(o.initializer);return;case 213:r(o),i(o.expression),Xe(o.arguments,i);return;case 214:r(o),i(o.expression),Xe(o.arguments,i);return;case 215:r(o),i(o.tag),i(o.template);return;case 286:case 285:r(o),i(o.tagName),i(o.attributes);return;case 170:r(o),i(o.expression);return;case 211:case 212:r(o),Uo(o,i);break;case 238:i(o.expression);return}$h(o)||Uo(o,i)}}return i}function RYe(e,t){Xe(e.statements,t)}function DYe(e,t){!Qr(e,128)&&e.body&&L_(e.body)&&Xe(e.body.statements,t)}function NYe(e,t,r){const i=hCe(e,t);i&&(Xe(i.parameters,r),r(i.body))}function CYe(e,t){t(e.body)}function PYe(e,t){Xe(e.modifiers,t);const r=FE(e);r&&t(r.expression);for(const i of e.members)Rm(i)&&Xe(i.modifiers,t),qo(i)?t(i.initializer):Ml(i)&&i.body?(Xe(i.parameters,t),t(i.body)):Rl(i)&&t(i)}function MYe(e,t){const r=[],i=xYe(e,r);switch(t.kind){case 312:RYe(t,i);break;case 267:DYe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:NYe(e.getTypeChecker(),t,i);break;case 263:case 231:PYe(t,i);break;case 175:CYe(t,i);break;default:N.assertNever(t)}return r}function LYe(e,t){return{to:e,fromSpans:t}}function kYe(e,t){return LYe(cpe(e,t[0].declaration),Wt(t,r=>tb(r.range)))}function wYe(e,t){return t.flags&33554432||vh(t)?[]:JN(MYe(e,t),yCe,r=>kYe(e,r))}var OYe=I({"src/services/callHierarchy.ts"(){si()}}),DI={};ee(DI,{createCallHierarchyItem:()=>cpe,getIncomingCalls:()=>IYe,getOutgoingCalls:()=>wYe,resolveCallHierarchyDeclaration:()=>vCe});var WYe=I({"src/services/_namespaces/ts.CallHierarchy.ts"(){OYe()}}),bCe={};ee(bCe,{TokenEncodingConsts:()=>epe,TokenModifier:()=>npe,TokenType:()=>tpe,getEncodedSemanticClassifications:()=>Zde,getSemanticClassifications:()=>qNe});var FYe=I({"src/services/_namespaces/ts.classifier.v2020.ts"(){XNe()}}),upe={};ee(upe,{v2020:()=>bCe});var zYe=I({"src/services/_namespaces/ts.classifier.ts"(){FYe()}});function n_(e,t,r){return ppe(e,iT(r),t,void 0,void 0)}function la(e,t,r,i,o,s){return ppe(e,iT(r),t,i,iT(o),s)}function dpe(e,t,r,i,o,s){return ppe(e,iT(r),t,i,o&&iT(o),s)}function ppe(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function Ta(e){for(const t of e.errorCodes)fpe=void 0,PY.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)N.assert(!MY.has(t)),MY.set(t,e)}function BYe(){return fpe??(fpe=zo(PY.keys()))}function GYe(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(Or(r,s.code)&&i++,i>1)break;const o=i<2;return({fixId:s,fixAllDescription:l,...u})=>o?u:{...u,fixId:s,fixAllDescription:l}}function VYe(e){const t=SCe(e),r=PY.get(String(e.errorCode));return Do(r,i=>Wt(i.getCodeActions(e),GYe(i,t)))}function jYe(e){return MY.get(oa(e.fixId,Mo)).getAllCodeActions(e)}function LD(e,t){return{changes:e,commands:t}}function ECe(e,t){return{fileName:e,textChanges:t}}function bs(e,t,r){const i=[],o=_r.ChangeTracker.with(e,s=>kD(e,t,l=>r(s,l,i)));return LD(o,i.length===0?void 0:i)}function kD(e,t,r){for(const i of SCe(e))Or(t,i.code)&&r(i)}function SCe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...FX(t,e,r)]}var PY,MY,fpe,UYe=I({"src/services/codeFixProvider.ts"(){si(),PY=$p(),MY=new Map}});function TCe(e,t,r){const i=Uk(r)?w.createAsExpression(r.expression,w.createKeywordTypeNode(159)):w.createTypeAssertion(w.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function ACe(e,t){if(!lr(e))return Vn(po(e,t),r=>Uk(r)||dae(r))}var LY,mpe,HYe=I({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){si(),Ia(),LY="addConvertToUnknownForNonOverlappingTypes",mpe=[f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],Ta({errorCodes:mpe,getCodeActions:function(t){const r=ACe(t.sourceFile,t.span.start);if(r===void 0)return;const i=_r.ChangeTracker.with(t,o=>TCe(o,t.sourceFile,r));return[la(LY,i,f.Add_unknown_conversion_for_non_overlapping_types,LY,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[LY],getAllCodeActions:e=>bs(e,mpe,(t,r)=>{const i=ACe(r.file,r.start);i&&TCe(t,r.file,i)})})}}),qYe=I({"src/services/codefixes/addEmptyExportDeclaration.ts"(){si(),Ia(),Ta({errorCodes:[f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){const{sourceFile:r}=t,i=_r.ChangeTracker.with(t,o=>{const s=w.createExportDeclaration(void 0,!1,w.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[n_("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function ICe(e,t,r,i){const o=r(s=>JYe(s,e.sourceFile,t,i));return la(kY,o,f.Add_async_modifier_to_containing_function,kY,f.Add_all_missing_async_modifiers)}function JYe(e,t,r,i){if(i&&i.has(as(r)))return;i==null||i.add(as(r));const o=w.replaceModifiers(ll(r,!0),w.createNodeArray(w.createModifiersFromModifierFlags(Fy(r)|1024)));e.replaceNode(t,r,o)}function xCe(e,t){if(!t)return;const r=po(e,t.start);return Vn(r,o=>o.getStart(e)<t.start||o.getEnd()>Kl(t)?"quit":(Gs(o)||Hl(o)||Os(o)||Tc(o))&&TD(t,Dd(o,e)))}function KYe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Av(r)&&Av(i)&&TD({start:r,length:i},e)&&s===t&&!!o&&bt(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var kY,_pe,XYe=I({"src/services/codefixes/addMissingAsync.ts"(){si(),Ia(),kY="addMissingAsync",_pe=[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_comparable_to_type_1.code],Ta({fixIds:[kY],errorCodes:_pe,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=In(s.getTypeChecker().getDiagnostics(r,o),KYe(l,i)),p=u&&u.relatedInformation&&In(u.relatedInformation,y=>y.code===f.Did_you_mean_to_mark_this_function_as_async.code),h=xCe(r,p);return h?[ICe(t,h,y=>_r.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return bs(e,_pe,(i,o)=>{const s=o.relatedInformation&&In(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=xCe(t,s);return l?ICe(e,l,p=>(p(i),[]),r):void 0})}})}});function RCe(e,t,r,i,o){const s=hX(e,r);return s&&YYe(e,t,r,i,o)&&CCe(s)?s:void 0}function DCe(e,t,r,i,o,s){const{sourceFile:l,program:u,cancellationToken:p}=e,h=$Ye(t,l,p,u,i);if(h){const m=o(y=>{Xe(h.initializers,({expression:T})=>hpe(y,r,l,i,T,s)),s&&h.needsSecondPassForFixAll&&hpe(y,r,l,i,t,s)});return n_("addMissingAwaitToInitializer",m,h.initializers.length===1?[f.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function NCe(e,t,r,i,o,s){const l=o(u=>hpe(u,r,e.sourceFile,i,t,s));return la(wY,l,f.Add_await,wY,f.Fix_all_expressions_possibly_missing_await)}function YYe(e,t,r,i,o){const l=o.getTypeChecker().getDiagnostics(e,i);return bt(l,({start:u,length:p,relatedInformation:h,code:m})=>Av(u)&&Av(p)&&TD({start:u,length:p},r)&&m===t&&!!h&&bt(h,y=>y.code===f.Did_you_forget_to_use_await.code))}function $Ye(e,t,r,i,o){const s=QYe(e,o);if(!s)return;let l=s.isCompleteFix,u;for(const p of s.identifiers){const h=o.getSymbolAtLocation(p);if(!h)continue;const m=ri(h.valueDeclaration,Oi),y=m&&ri(m.name,Ve),T=f0(m,243);if(!m||!T||m.type||!m.initializer||T.getSourceFile()!==t||Qr(T,32)||!y||!CCe(m.initializer)){l=!1;continue}const A=i.getSemanticDiagnostics(t,r);if(Ws.Core.eachSymbolReferenceInFile(y,o,t,M=>p!==M&&!ZYe(M,A,t,o))){l=!1;continue}(u||(u=[])).push({expression:m.initializer,declarationSymbol:h})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function QYe(e,t){if(Fr(e.parent)&&Ve(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Ve(e))return{identifiers:[e],isCompleteFix:!0};if(mr(e)){let r,i=!0;for(const o of[e.left,e.right]){const s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Ve(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function ZYe(e,t,r,i){const o=Fr(e.parent)?e.parent.name:mr(e.parent)?e.parent:e,s=In(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&Or(OY,s.code)||i.getTypeAtLocation(o).flags&1}function CCe(e){return e.flags&65536||!!Vn(e,t=>t.parent&&Gs(t.parent)&&t.parent.body===t||Ko(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function hpe(e,t,r,i,o,s){if(Hk(o.parent)&&!o.parent.awaitModifier){const l=i.getTypeAtLocation(o),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){const p=o.parent;e.replaceNode(r,p,w.updateForOfStatement(p,w.createToken(135),p.initializer,p.expression,p.statement));return}}if(mr(o))for(const l of[o.left,o.right]){if(s&&Ve(l)){const h=i.getSymbolAtLocation(l);if(h&&s.has(Sa(h)))continue}const u=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(u)?w.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===gpe&&Fr(o.parent)){if(s&&Ve(o.parent.expression)){const l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(Sa(l)))return}e.replaceNode(r,o.parent.expression,w.createParenthesizedExpression(w.createAwaitExpression(o.parent.expression))),PCe(e,o.parent.expression,r)}else if(Or(vpe,t)&&S_(o.parent)){if(s&&Ve(o)){const l=i.getSymbolAtLocation(o);if(l&&s.has(Sa(l)))return}e.replaceNode(r,o,w.createParenthesizedExpression(w.createAwaitExpression(o))),PCe(e,o,r)}else{if(s&&Oi(o.parent)&&Ve(o.parent.name)){const l=i.getSymbolAtLocation(o.parent.name);if(l&&!Xb(s,Sa(l)))return}e.replaceNode(r,o,w.createAwaitExpression(o))}}function PCe(e,t,r){const i=Ic(t.pos,r);i&&f5(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var wY,gpe,vpe,OY,e$e=I({"src/services/codefixes/addMissingAwait.ts"(){si(),Ia(),wY="addMissingAwait",gpe=f.Property_0_does_not_exist_on_type_1.code,vpe=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],OY=[f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.Operator_0_cannot_be_applied_to_type_1.code,f.Operator_0_cannot_be_applied_to_types_1_and_2.code,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,f.This_condition_will_always_return_true_since_this_0_is_always_defined.code,f.Type_0_is_not_an_array_type.code,f.Type_0_is_not_an_array_type_or_a_string_type.code,f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,gpe,...vpe],Ta({fixIds:[wY],errorCodes:OY,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=RCe(r,i,o,s,l);if(!u)return;const p=t.program.getTypeChecker(),h=m=>_r.ChangeTracker.with(t,m);return C2([DCe(t,u,i,p,h),NCe(t,u,i,p,h)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return bs(e,OY,(l,u)=>{const p=RCe(t,u.code,u,i,r);if(!p)return;const h=m=>(m(l),[]);return DCe(e,p,u.code,o,h,s)||NCe(e,p,u.code,o,h,s)})}})}});function MCe(e,t,r,i,o){const s=po(t,r),l=Vn(s,h=>Yx(h.parent)?h.parent.initializer===h:t$e(h)?!1:"quit");if(l)return WY(e,l,t,o);const u=s.parent;if(mr(u)&&u.operatorToken.kind===64&&Zc(u.parent))return WY(e,s,t,o);if(fd(u)){const h=i.getTypeChecker();return Jn(u.elements,m=>n$e(m,h))?WY(e,u,t,o):void 0}const p=Vn(s,h=>Zc(h.parent)?!0:r$e(h)?!1:"quit");if(p){const h=i.getTypeChecker();return LCe(p,h)?WY(e,p,t,o):void 0}}function WY(e,t,r,i){(!i||Xb(i,t))&&e.insertModifierBefore(r,87,t)}function t$e(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function n$e(e,t){const r=Ve(e)?e:Pc(e,!0)&&Ve(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function r$e(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function LCe(e,t){return mr(e)?e.operatorToken.kind===28?Jn([e.left,e.right],r=>LCe(r,t)):e.operatorToken.kind===64&&Ve(e.left)&&!t.getSymbolAtLocation(e.left):!1}var FY,ype,i$e=I({"src/services/codefixes/addMissingConst.ts"(){si(),Ia(),FY="addMissingConst",ype=[f.Cannot_find_name_0.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Ta({errorCodes:ype,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>MCe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[la(FY,r,f.Add_const_to_unresolved_variable,FY,f.Add_const_to_all_unresolved_variables)]},fixIds:[FY],getAllCodeActions:e=>{const t=new Set;return bs(e,ype,(r,i)=>MCe(r,i.file,i.start,e.program,t))}})}});function kCe(e,t,r,i){const o=po(t,r);if(!Ve(o))return;const s=o.parent;s.kind===172&&(!i||Xb(i,s))&&e.insertModifierBefore(t,138,s)}var zY,bpe,o$e=I({"src/services/codefixes/addMissingDeclareProperty.ts"(){si(),Ia(),zY="addMissingDeclareProperty",bpe=[f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],Ta({errorCodes:bpe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>kCe(i,t.sourceFile,t.span.start));if(r.length>0)return[la(zY,r,f.Prefix_with_declare,zY,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[zY],getAllCodeActions:e=>{const t=new Set;return bs(e,bpe,(r,i)=>kCe(r,i.file,i.start,t))}})}});function wCe(e,t,r){const i=po(t,r),o=Vn(i,Eu);N.assert(!!o,"Expected position to be owned by a decorator.");const s=w.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var BY,Epe,a$e=I({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){si(),Ia(),BY="addMissingInvocationForDecorator",Epe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Ta({errorCodes:Epe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>wCe(i,t.sourceFile,t.span.start));return[la(BY,r,f.Call_decorator_expression,BY,f.Add_to_all_uncalled_decorators)]},fixIds:[BY],getAllCodeActions:e=>bs(e,Epe,(t,r)=>wCe(t,r.file,r.start))})}});function OCe(e,t,r){const i=po(t,r),o=i.parent;if(!Ao(o))return N.fail("Tried to add a parameter name to a non-parameter: "+N.formatSyntaxKind(i.kind));const s=o.parent.parameters.indexOf(o);N.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),N.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),u=w.createTypeReferenceNode(o.name,void 0),p=WCe(t,o);for(;p;)u=w.createArrayTypeNode(u),l=p.getEnd(),p=WCe(t,p);const h=w.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!Vk(u)?w.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,Af(o.getStart(t),l),h)}function WCe(e,t){const r=m1(t.name,t.parent,e);if(r&&r.kind===23&&YE(r.parent)&&Ao(r.parent.parent))return r.parent.parent}var GY,Spe,s$e=I({"src/services/codefixes/addNameToNamelessParameter.ts"(){si(),Ia(),GY="addNameToNamelessParameter",Spe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Ta({errorCodes:Spe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>OCe(i,t.sourceFile,t.span.start));return[la(GY,r,f.Add_parameter_name,GY,f.Add_names_to_all_parameters_without_names)]},fixIds:[GY],getAllCodeActions:e=>bs(e,Spe,(t,r)=>OCe(t,r.file,r.start))})}});function l$e(e,t,r){var i,o;const s=FCe(hX(e,t),r);if(!s)return et;const{source:l,target:u}=s,p=c$e(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(h=>Un(h).fileName.match(/\.d\.ts$/))?et:r.getExactOptionalProperties(p)}function c$e(e,t,r){return Fr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function FCe(e,t){var r;if(e){if(mr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Oi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(sa(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!TA(i.valueDeclaration.kind)||!yt(e))return;const o=e.parent.arguments.indexOf(e);if(o===-1)return;const s=i.valueDeclaration.parameters[o].name;if(Ve(s))return{source:e,target:s}}else if(hc(e.parent)&&Ve(e.parent.name)||np(e.parent)){const i=FCe(e.parent.parent,t);if(!i)return;const o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o==null?void 0:o.declarations)==null?void 0:r[0];return s?{source:hc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function u$e(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(gp(i)||qo(i))&&i.type){const o=w.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],w.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var Tpe,zCe,d$e=I({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){si(),Ia(),Tpe="addOptionalPropertyUndefined",zCe=[f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],Ta({errorCodes:zCe,getCodeActions(e){const t=e.program.getTypeChecker(),r=l$e(e.sourceFile,e.span,t);if(!r.length)return;const i=_r.ChangeTracker.with(e,o=>u$e(o,r));return[n_(Tpe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[Tpe]})}});function BCe(e,t){const r=po(e,t);return ri(Ao(r.parent)?r.parent.parent:r.parent,GCe)}function GCe(e){return p$e(e)&&VCe(e)}function VCe(e){return Bs(e)?e.parameters.some(VCe)||!e.type&&!!iL(e):!e.type&&!!o0(e)}function jCe(e,t,r){if(Bs(r)&&(iL(r)||r.parameters.some(i=>!!o0(i)))){if(!r.typeParameters){const o=h3(r);o.length&&e.insertTypeParameters(t,r,o)}const i=Gs(r)&&!vs(r,21,t);i&&e.insertNodeBefore(t,Ua(r.parameters),w.createToken(21));for(const o of r.parameters)if(!o.type){const s=o0(o);s&&e.tryInsertTypeAnnotation(t,o,nt(s,y1,ji))}if(i&&e.insertNodeAfter(t,Xa(r.parameters),w.createToken(22)),!r.type){const o=iL(r);o&&e.tryInsertTypeAnnotation(t,r,nt(o,y1,ji))}}else{const i=N.checkDefined(o0(r),"A JSDocType for this declaration should exist");N.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,nt(i,y1,ji))}}function p$e(e){return Bs(e)||e.kind===260||e.kind===171||e.kind===172}function y1(e){switch(e.kind){case 319:case 320:return w.createTypeReferenceNode("any",et);case 323:return m$e(e);case 322:return y1(e.type);case 321:return _$e(e);case 325:return h$e(e);case 324:return g$e(e);case 183:return y$e(e);case 329:return f$e(e);default:const t=xn(e,y1,void 0);return pr(t,1),t}}function f$e(e){const t=w.createTypeLiteralNode(Wt(e.jsDocPropertyTags,r=>w.createPropertySignature(void 0,Ve(r.name)?r.name:r.name.right,yk(r)?w.createToken(58):void 0,r.typeExpression&&nt(r.typeExpression.type,y1,ji)||w.createKeywordTypeNode(133))));return pr(t,1),t}function m$e(e){return w.createUnionTypeNode([nt(e.type,y1,ji),w.createTypeReferenceNode("undefined",et)])}function _$e(e){return w.createUnionTypeNode([nt(e.type,y1,ji),w.createTypeReferenceNode("null",et)])}function h$e(e){return w.createArrayTypeNode(nt(e.type,y1,ji))}function g$e(e){return w.createFunctionTypeNode(et,e.parameters.map(v$e),e.type??w.createKeywordTypeNode(133))}function v$e(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?w.createToken(26):e.dotDotDotToken;return w.createParameterDeclaration(e.modifiers,o,i,e.questionToken,nt(e.type,y1,ji),e.initializer)}function y$e(e){let t=e.typeName,r=e.typeArguments;if(Ve(e.typeName)){if($4(e))return b$e(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=w.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=w.createNodeArray([w.createTypeReferenceNode("any",et)]):r=jn(e.typeArguments,y1,ji)}return w.createTypeReferenceNode(t,r)}function b$e(e){const t=w.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,w.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=w.createTypeLiteralNode([w.createIndexSignature(void 0,[t],e.typeArguments[1])]);return pr(r,1),r}var VY,Ape,E$e=I({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){si(),Ia(),VY="annotateWithTypeFromJSDoc",Ape=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],Ta({errorCodes:Ape,getCodeActions(e){const t=BCe(e.sourceFile,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,i=>jCe(i,e.sourceFile,t));return[la(VY,r,f.Annotate_with_type_from_JSDoc,VY,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[VY],getAllCodeActions:e=>bs(e,Ape,(t,r)=>{const i=BCe(r.file,r.start);i&&jCe(t,r.file,i)})})}});function UCe(e,t,r,i,o,s){const l=i.getSymbolAtLocation(po(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;const u=l.valueDeclaration;if(Tc(u)||Os(u))e.replaceNode(t,u,m(u));else if(Oi(u)){const y=h(u);if(!y)return;const T=u.parent.parent;Vc(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,T,y)):e.replaceNode(t,T,y)}function p(y){const T=[];return y.exports&&y.exports.forEach(M=>{if(M.name==="prototype"&&M.declarations){const C=M.declarations[0];if(M.declarations.length===1&&Fr(C)&&mr(C.parent)&&C.parent.operatorToken.kind===64&&La(C.parent.right)){const O=C.parent.right;R(O.symbol,void 0,T)}}else R(M,[w.createToken(126)],T)}),y.members&&y.members.forEach((M,C)=>{var O,U,K,Q;if(C==="constructor"&&M.valueDeclaration){const V=(Q=(K=(U=(O=y.exports)==null?void 0:O.get("prototype"))==null?void 0:U.declarations)==null?void 0:K[0])==null?void 0:Q.parent;V&&mr(V)&&La(V.right)&&bt(V.right.properties,UY)||e.delete(t,M.valueDeclaration.parent);return}R(M,void 0,T)}),T;function A(M,C){return ws(M)?Fr(M)&&UY(M)?!0:ea(C):Jn(M.properties,O=>!!(Hl(O)||u4(O)||hc(O)&&Os(O.initializer)&&O.name||UY(O)))}function R(M,C,O){if(!(M.flags&8192)&&!(M.flags&4096))return;const U=M.valueDeclaration,K=U.parent,Q=K.right;if(!A(U,Q)||bt(O,he=>{const ye=Lo(he);return!!(ye&&Ve(ye)&&Sr(ye)===El(M))}))return;const V=K.parent&&K.parent.kind===244?K.parent:K;if(e.delete(t,V),!Q){O.push(w.createPropertyDeclaration(C,M.name,void 0,void 0,void 0));return}if(ws(U)&&(Os(Q)||Gs(Q))){const he=lf(t,o),ye=S$e(U,s,he);ye&&se(O,Q,ye);return}else if(La(Q)){Xe(Q.properties,he=>{(Hl(he)||u4(he))&&O.push(he),hc(he)&&Os(he.initializer)&&se(O,he.initializer,he.name),UY(he)});return}else{if(cd(t)||!Fr(U))return;const he=w.createPropertyDeclaration(C,U.name,void 0,void 0,Q);ID(K.parent,he,t),O.push(he);return}function se(he,ye,Y){return Os(ye)?G(he,ye,Y):ne(he,ye,Y)}function G(he,ye,Y){const X=So(C,jY(ye,134)),oe=w.createMethodDeclaration(X,void 0,Y,void 0,void 0,ye.parameters,void 0,ye.body);ID(K,oe,t),he.push(oe)}function ne(he,ye,Y){const X=ye.body;let oe;X.kind===241?oe=X:oe=w.createBlock([w.createReturnStatement(X)]);const pe=So(C,jY(ye,134)),Ce=w.createMethodDeclaration(pe,void 0,Y,void 0,void 0,ye.parameters,void 0,oe);ID(K,Ce,t),he.push(Ce)}}}function h(y){const T=y.initializer;if(!T||!Os(T)||!Ve(y.name))return;const A=p(y.symbol);T.body&&A.unshift(w.createConstructorDeclaration(void 0,T.parameters,T.body));const R=jY(y.parent.parent,95);return w.createClassDeclaration(R,y.name,void 0,void 0,A)}function m(y){const T=p(l);y.body&&T.unshift(w.createConstructorDeclaration(void 0,y.parameters,y.body));const A=jY(y,95);return w.createClassDeclaration(A,y.name,void 0,void 0,T)}}function jY(e,t){return Rm(e)?mn(e.modifiers,r=>r.kind===t):void 0}function UY(e){return e.name?!!(Ve(e.name)&&e.name.text==="constructor"):!1}function S$e(e,t,r){if(Fr(e))return e.name;const i=e.argumentExpression;if(hp(i))return i;if(ls(i))return Zp(i.text,os(t))?w.createIdentifier(i.text):XA(i)?w.createStringLiteral(i.text,r===0):i}var HY,Ipe,T$e=I({"src/services/codefixes/convertFunctionToEs6Class.ts"(){si(),Ia(),HY="convertFunctionToEs6Class",Ipe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],Ta({errorCodes:Ipe,getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>UCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[la(HY,t,f.Convert_function_to_an_ES2015_class,HY,f.Convert_all_constructor_functions_to_classes)]},fixIds:[HY],getAllCodeActions:e=>bs(e,Ipe,(t,r)=>UCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function HCe(e,t,r,i){const o=po(t,r);let s;if(Ve(o)&&Oi(o.parent)&&o.parent.initializer&&Bs(o.parent.initializer)?s=o.parent.initializer:s=ri(Bp(po(t,r)),GX),!s)return;const l=new Map,u=lr(s),p=I$e(s,i),h=x$e(s,i,l);if(!zX(h,i))return;const m=h.body&&Ko(h.body)?A$e(h.body,i):et,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:u};if(!m.length)return;const T=Pa(t.text,C_(s).pos);e.insertModifierAt(t,T,134,{suffix:" "});for(const A of m)if(Uo(A,function R(M){if(sa(M)){const C=wD(M,M,y,!1);if(NI())return!0;e.replaceNodeWithNodes(t,A,C)}else if(!ea(M)&&(Uo(M,R),NI()))return!0}),NI())return}function A$e(e,t){const r=[];return LE(e,i=>{C5(i,t)&&r.push(i)}),r}function I$e(e,t){if(!e.body)return new Set;const r=new Set;return Uo(e.body,function i(o){zO(o,t,"then")?(r.add(as(o)),Xe(o.arguments,i)):zO(o,t,"catch")||zO(o,t,"finally")?(r.add(as(o)),Uo(o,i)):JCe(o,t)?r.add(as(o)):Uo(o,i)}),r}function zO(e,t,r){if(!sa(e))return!1;const o=Qw(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function qCe(e,t){return(Wr(e)&4)!==0&&e.target===t}function qY(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(qCe(i,r.getPromiseType())||qCe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Rv(e.arguments,0))return Rv(e.typeArguments,0);if(t===Rv(e.arguments,1))return Rv(e.typeArguments,1)}else return Rv(e.typeArguments,0)}function JCe(e,t){return yt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function x$e(e,t,r){const i=new Map,o=$p();return Uo(e,function s(l){if(!Ve(l)){Uo(l,s);return}const u=t.getSymbolAtLocation(l);if(u){const p=t.getTypeAtLocation(l),h=ZCe(p,t),m=Sa(u).toString();if(h&&!Ao(l.parent)&&!Bs(l.parent)&&!r.has(m)){const y=Kc(h.parameters),T=(y==null?void 0:y.valueDeclaration)&&Ao(y.valueDeclaration)&&ri(y.valueDeclaration.name,Ve)||w.createUniqueName("result",16),A=KCe(T,o);r.set(m,A),o.add(T.text,u)}else if(l.parent&&(Ao(l.parent)||Oi(l.parent)||$a(l.parent))){const y=l.text,T=o.get(y);if(T&&T.some(A=>A!==u)){const A=KCe(l,o);i.set(m,A.identifier),r.set(m,A),o.add(y,u)}else{const A=ll(l);r.set(m,_M(A)),o.add(y,u)}}}}),fO(e,!0,s=>{if($a(s)&&Ve(s.name)&&im(s.parent)){const l=t.getSymbolAtLocation(s.name),u=l&&i.get(String(Sa(l)));if(u&&u.text!==(s.name||s.propertyName).getText())return w.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,u,s.initializer)}else if(Ve(s)){const l=t.getSymbolAtLocation(s),u=l&&i.get(String(Sa(l)));if(u)return w.createIdentifier(u.text)}})}function KCe(e,t){const r=(t.get(e.text)||et).length,i=r===0?e:w.createIdentifier(e.text+"_"+r);return _M(i)}function NI(){return!nz}function L0(){return nz=!1,et}function wD(e,t,r,i,o){if(zO(t,r.checker,"then"))return N$e(t,Rv(t.arguments,0),Rv(t.arguments,1),r,i,o);if(zO(t,r.checker,"catch"))return $Ce(t,Rv(t.arguments,0),r,i,o);if(zO(t,r.checker,"finally"))return D$e(t,Rv(t.arguments,0),r,i,o);if(Fr(t))return wD(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(N.assertNode(Pl(t).parent,Fr),C$e(e,t,r,i,o)):L0()}function JY({checker:e},t){if(t.kind===106)return!0;if(Ve(t)&&!al(t)&&Sr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function R$e(e){const t=w.createUniqueName(e.identifier.text,16);return _M(t)}function XCe(e,t,r){let i;return r&&!GO(e,t)&&(BO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const l=R$e(r);t.synthNamesMap.set(s,l)}})):i=_M(w.createUniqueName("result",16),r.types),Npe(i)),i}function YCe(e,t,r,i,o){const s=[];let l;if(i&&!GO(e,t)){l=ll(Npe(i));const u=i.types,p=t.checker.getUnionType(u,2),h=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),m=[w.createVariableDeclaration(l,void 0,h)],y=w.createVariableStatement(void 0,w.createVariableDeclarationList(m,1));s.push(y)}return s.push(r),o&&l&&L$e(o)&&s.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ll(rPe(o)),void 0,void 0,l)],2))),s}function D$e(e,t,r,i,o){if(!t||JY(r,t))return wD(e,e.expression.expression,r,i,o);const s=XCe(e,r,o),l=wD(e,e.expression.expression,r,!0,s);if(NI())return L0();const u=Rpe(t,i,void 0,void 0,e,r);if(NI())return L0();const p=w.createBlock(l),h=w.createBlock(u),m=w.createTryStatement(p,void 0,h);return YCe(e,r,m,s,o)}function $Ce(e,t,r,i,o){if(!t||JY(r,t))return wD(e,e.expression.expression,r,i,o);const s=tPe(t,r),l=XCe(e,r,o),u=wD(e,e.expression.expression,r,!0,l);if(NI())return L0();const p=Rpe(t,i,l,s,e,r);if(NI())return L0();const h=w.createBlock(u),m=w.createCatchClause(s&&ll(tz(s)),w.createBlock(p)),y=w.createTryStatement(h,m,void 0);return YCe(e,r,y,l,o)}function N$e(e,t,r,i,o,s){if(!t||JY(i,t))return $Ce(e,r,i,o,s);if(r&&!JY(i,r))return L0();const l=tPe(t,i),u=wD(e.expression.expression,e.expression.expression,i,!0,l);if(NI())return L0();const p=Rpe(t,o,s,l,e,i);return NI()?L0():So(u,p)}function C$e(e,t,r,i,o){if(GO(e,r)){let s=ll(t);return i&&(s=w.createAwaitExpression(s)),[w.createReturnStatement(s)]}return KY(o,w.createAwaitExpression(t),void 0)}function KY(e,t,r){return!e||nPe(e)?[w.createExpressionStatement(t)]:BO(e)&&e.hasBeenDeclared?[w.createExpressionStatement(w.createAssignment(ll(Dpe(e)),t))]:[w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ll(tz(e)),void 0,r,t)],2))]}function xpe(e,t){if(t&&e){const r=w.createUniqueName("result",16);return[...KY(_M(r),e,t),w.createReturnStatement(r)]}return[w.createReturnStatement(e)]}function Rpe(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const u=w.createCallExpression(ll(e),void 0,BO(i)?[Dpe(i)]:[]);if(GO(o,s))return xpe(u,qY(o,e,s.checker));const p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return L0();const m=h[0].getReturnType(),y=KY(r,w.createAwaitExpression(u),qY(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(m)||m),y;case 218:case 219:{const T=e.body,A=(l=ZCe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Ko(T)){let R=[],M=!1;for(const C of T.statements)if(Im(C))if(M=!0,C5(C,s.checker))R=R.concat(ePe(s,C,t,r));else{const O=A&&C.expression?QCe(s.checker,A,C.expression):C.expression;R.push(...xpe(O,qY(o,e,s.checker)))}else{if(t&&LE(C,Iv))return L0();R.push(C)}return GO(o,s)?R.map(C=>ll(C)):P$e(R,r,s,M)}else{const R=BX(T,s.checker)?ePe(s,w.createReturnStatement(T),t,r):et;if(R.length>0)return R;if(A){const M=QCe(s.checker,A,T);if(GO(o,s))return xpe(M,qY(o,e,s.checker));{const C=KY(r,M,void 0);return r&&r.types.push(s.checker.getAwaitedType(A)||A),C}}else return L0()}}default:return L0()}return et}function QCe(e,t,r){const i=ll(r);return e.getPromisedTypeOfPromise(t)?w.createAwaitExpression(i):i}function ZCe(e,t){const r=t.getSignaturesOfType(e,0);return el(r)}function P$e(e,t,r,i){const o=[];for(const s of e)if(Im(s)){if(s.expression){const l=JCe(s.expression,r.checker)?w.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(w.createExpressionStatement(l)):BO(t)&&t.hasBeenDeclared?o.push(w.createExpressionStatement(w.createAssignment(Dpe(t),l))):o.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(tz(t),void 0,void 0,l)],2)))}}else o.push(ll(s));return!i&&t!==void 0&&o.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(tz(t),void 0,void 0,w.createIdentifier("undefined"))],2))),o}function ePe(e,t,r,i){let o=[];return Uo(t,function s(l){if(sa(l)){const u=wD(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else ea(l)||Uo(l,s)}),o}function tPe(e,t){const r=[];let i;if(Bs(e)){if(e.parameters.length>0){const p=e.parameters[0].name;i=o(p)}}else Ve(e)?i=s(e):Fr(e)&&Ve(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(p){if(Ve(p))return s(p);const h=Do(p.elements,m=>Gc(m)?[]:[o(m.name)]);return M$e(p,h)}function s(p){const h=u(p),m=l(h);return m&&t.synthNamesMap.get(Sa(m).toString())||_M(p,r)}function l(p){var h;return((h=ri(p,T_))==null?void 0:h.symbol)??t.checker.getSymbolAtLocation(p)}function u(p){return p.original?p.original:p}}function nPe(e){return e?BO(e)?!e.identifier.text:Jn(e.elements,nPe):!0}function _M(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function M$e(e,t=et,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Dpe(e){return e.hasBeenReferenced=!0,e.identifier}function tz(e){return BO(e)?Npe(e):rPe(e)}function rPe(e){for(const t of e.elements)tz(t);return e.bindingPattern}function Npe(e){return e.hasBeenDeclared=!0,e.identifier}function BO(e){return e.kind===0}function L$e(e){return e.kind===1}function GO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(as(e.original))}var XY,Cpe,nz,k$e=I({"src/services/codefixes/convertToAsyncFunction.ts"(){si(),Ia(),XY="convertToAsyncFunction",Cpe=[f.This_may_be_converted_to_an_async_function.code],nz=!0,Ta({errorCodes:Cpe,getCodeActions(e){nz=!0;const t=_r.ChangeTracker.with(e,r=>HCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return nz?[la(XY,t,f.Convert_to_async_function,XY,f.Convert_all_to_async_functions)]:[]},fixIds:[XY],getAllCodeActions:e=>bs(e,Cpe,(t,r)=>HCe(t,r.file,r.start,e.program.getTypeChecker()))})}});function w$e(e,t,r,i,o){var s;for(const l of e.imports){const u=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;const p=IC(l);switch(p.kind){case 271:i.replaceNode(e,p,Kv(p.name,void 0,l,o));break;case 213:Td(p,!1)&&i.replaceNode(e,p,w.createPropertyAccessExpression(ll(p),"default"));break}}}function O$e(e,t,r,i,o){const s={original:X$e(e),additional:new Set},l=W$e(e,t,s);F$e(e,l,r);let u=!1,p;for(const h of mn(e.statements,Ll)){const m=oPe(e,h,r,t,s,i,o);m&&I4(m,p??(p=new Map))}for(const h of mn(e.statements,m=>!Ll(m))){const m=z$e(e,h,t,r,s,i,l,p,o);u=u||m}return p==null||p.forEach((h,m)=>{r.replaceNode(e,m,h)}),u}function W$e(e,t,r){const i=new Map;return iPe(e,o=>{const{text:s}=o.name;!i.has(s)&&(Mj(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,YY(`_${s}`,r))}),i}function F$e(e,t,r){iPe(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,w.createIdentifier(t.get(s)||s))})}function iPe(e,t){e.forEachChild(function r(i){if(Fr(i)&&s1(e,i.expression)&&Ve(i.name)){const{parent:o}=i;t(i,mr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function z$e(e,t,r,i,o,s,l,u,p){switch(t.kind){case 243:return oPe(e,t,i,r,o,s,p),!1;case 244:{const{expression:h}=t;switch(h.kind){case 213:return Td(h,!0)&&i.replaceNode(e,t,Kv(void 0,void 0,h.arguments[0],p)),!1;case 226:{const{operatorToken:m}=h;return m.kind===64&&G$e(e,r,h,i,l,u)}}}default:return!1}}function oPe(e,t,r,i,o,s,l){const{declarationList:u}=t;let p=!1;const h=Wt(u.declarations,m=>{const{name:y,initializer:T}=m;if(T){if(s1(e,T))return p=!0,hM([]);if(Td(T,!0))return p=!0,J$e(y,T.arguments[0],i,o,s,l);if(Fr(T)&&Td(T.expression,!0))return p=!0,B$e(y,T.name.text,T.expression.arguments[0],o,l)}return hM([w.createVariableStatement(void 0,w.createVariableDeclarationList([m],u.flags))])});if(p){r.replaceNodeWithNodes(e,t,Do(h,y=>y.newImports));let m;return Xe(h,y=>{y.useSitesToUnqualify&&I4(y.useSitesToUnqualify,m??(m=new Map))}),m}}function B$e(e,t,r,i,o){switch(e.kind){case 206:case 207:{const s=YY(t,i);return hM([cPe(s,t,r,o),$Y(void 0,e,w.createIdentifier(s))])}case 80:return hM([cPe(e.text,t,r,o)]);default:return N.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function G$e(e,t,r,i,o,s){const{left:l,right:u}=r;if(!Fr(l))return!1;if(s1(e,l))if(s1(e,u))i.delete(e,r.parent);else{const p=La(u)?V$e(u,s):Td(u,!0)?U$e(u.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,Af(l.getStart(e),u.pos),"export default"),!0)}else s1(e,l.expression)&&j$e(e,r,i,o);return!1}function V$e(e,t){const r=Jb(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Ve(i.name)?q$e(i.name.text,i.initializer,t):void 0;case 174:return Ve(i.name)?lPe(i.name.text,[w.createToken(95)],i,t):void 0;default:N.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function j$e(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const l=[$Y(void 0,s,t.right),Lpe([w.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else H$e(t,e,r)}function U$e(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:P6;return o.has("export=")?[[Ppe(r)],!0]:o.has("default")?o.size>1?[[aPe(r),Ppe(r)],!0]:[[Ppe(r)],!0]:[[aPe(r)],!1]}function aPe(e){return Lpe(void 0,e)}function Ppe(e){return Lpe([w.createExportSpecifier(!1,void 0,"default")],e)}function H$e({left:e,right:t,parent:r},i,o){const s=e.name.text;if((Os(t)||Gs(t)||Qc(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},w.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);const l=vs(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,vs(e,25,i),[w.createToken(95),w.createToken(87)],{joiner:" ",suffix:" "})}function q$e(e,t,r){const i=[w.createToken(95)];switch(t.kind){case 218:{const{name:s}=t;if(s&&s.text!==e)return o()}case 219:return lPe(e,i,t,r);case 231:return $$e(e,i,t,r);default:return o()}function o(){return $Y(i,w.createIdentifier(e),Mpe(t,r))}}function Mpe(e,t){if(!t||!bt(zo(t.keys()),i=>sf(e,i)))return e;return To(e)?lX(e,!0,r):fO(e,!0,r);function r(i){if(i.kind===211){const o=t.get(i);return t.delete(i),o}}}function J$e(e,t,r,i,o,s){switch(e.kind){case 206:{const l=Jb(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Ve(u.propertyName)||!Ve(u.name)?void 0:uPe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return hM([Kv(void 0,l,t,s)])}case 207:{const l=YY(qpe(t.text,o),i);return hM([Kv(w.createIdentifier(l),void 0,t,s),$Y(void 0,ll(e),w.createIdentifier(l))])}case 80:return K$e(e,t,r,i,s);default:return N.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function K$e(e,t,r,i,o){const s=r.getSymbolAtLocation(e),l=new Map;let u=!1,p;for(const m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==s||m===e)continue;const{parent:y}=m;if(Fr(y)){const{name:{text:T}}=y;if(T==="default"){u=!0;const A=m.getText();(p??(p=new Map)).set(y,w.createIdentifier(A))}else{N.assert(y.expression===m,"Didn't expect expression === use");let A=l.get(T);A===void 0&&(A=YY(T,i),l.set(T,A)),(p??(p=new Map)).set(y,w.createIdentifier(A))}}else u=!0}const h=l.size===0?void 0:zo(Qa(l.entries(),([m,y])=>w.createImportSpecifier(!1,m===y?void 0:w.createIdentifier(m),w.createIdentifier(y))));return h||(u=!0),hM([Kv(u?ll(e):void 0,h,t,o)],p)}function YY(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function X$e(e){const t=$p();return sPe(e,r=>t.add(r.text,r)),t}function sPe(e,t){Ve(e)&&Y$e(e)&&t(e),e.forEachChild(r=>sPe(r,t))}function Y$e(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function lPe(e,t,r,i){return w.createFunctionDeclaration(So(t,_1(r.modifiers)),ll(r.asteriskToken),e,_1(r.typeParameters),_1(r.parameters),ll(r.type),w.converters.convertToFunctionBlock(Mpe(r.body,i)))}function $$e(e,t,r,i){return w.createClassDeclaration(So(t,_1(r.modifiers)),e,_1(r.typeParameters),_1(r.heritageClauses),Mpe(r.members,i))}function cPe(e,t,r,i){return t==="default"?Kv(w.createIdentifier(e),void 0,r,i):Kv(void 0,[uPe(t,e)],r,i)}function uPe(e,t){return w.createImportSpecifier(!1,e!==void 0&&e!==t?w.createIdentifier(e):void 0,w.createIdentifier(t))}function $Y(e,t,r){return w.createVariableStatement(e,w.createVariableDeclarationList([w.createVariableDeclaration(t,void 0,void 0,r)],2))}function Lpe(e,t){return w.createExportDeclaration(void 0,!1,e&&w.createNamedExports(e),t===void 0?void 0:w.createStringLiteral(t))}function hM(e,t){return{newImports:e,useSitesToUnqualify:t}}var Q$e=I({"src/services/codefixes/convertToEsModule.ts"(){si(),Ia(),Ta({errorCodes:[f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,o=_r.ChangeTracker.with(e,s=>{if(O$e(t,r.getTypeChecker(),s,os(r.getCompilerOptions()),lf(t,i)))for(const u of r.getSourceFiles())w$e(u,t,r,s,lf(u,i))});return[n_("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function dPe(e,t){const r=Vn(po(e,t),Id);return N.assert(!!r,"Expected position to be owned by a qualified name."),Ve(r.left)?r:void 0}function pPe(e,t,r){const i=r.right.text,o=w.createIndexedAccessTypeNode(w.createTypeReferenceNode(r.left,void 0),w.createLiteralTypeNode(w.createStringLiteral(i)));e.replaceNode(t,r,o)}var QY,kpe,Z$e=I({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){si(),Ia(),QY="correctQualifiedNameToIndexedAccessType",kpe=[f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],Ta({errorCodes:kpe,getCodeActions(e){const t=dPe(e.sourceFile,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,o=>pPe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[la(QY,r,[f.Rewrite_as_the_indexed_access_type_0,i],QY,f.Rewrite_all_as_indexed_access_types)]},fixIds:[QY],getAllCodeActions:e=>bs(e,kpe,(t,r)=>{const i=dPe(r.file,r.start);i&&pPe(t,r.file,i)})})}});function fPe(e,t){return ri(po(t,e.start).parent,Ku)}function mPe(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=eQe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{const l=w.updateExportDeclaration(o,o.modifiers,!1,w.updateNamedExports(i,mn(i.elements,p=>!Or(s,p))),o.moduleSpecifier,void 0),u=w.createExportDeclaration(void 0,!0,w.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,u)}}function eQe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=kue(Dd(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return mn(r.elements,o=>{var s;return o===e||((s=Lue(o,i))==null?void 0:s.code)===ZY[0]})}var ZY,e$,tQe=I({"src/services/codefixes/convertToTypeOnlyExport.ts"(){si(),Ia(),ZY=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],e$="convertToTypeOnlyExport",Ta({errorCodes:ZY,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>mPe(i,fPe(t.span,t.sourceFile),t));if(r.length)return[la(e$,r,f.Convert_to_type_only_export,e$,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[e$],getAllCodeActions:function(t){const r=new Map;return bs(t,ZY,(i,o)=>{const s=fPe(o,t.sourceFile);s&&Am(r,as(s.parent.parent))&&mPe(i,s,t)})}})}});function _Pe(e,t){const{parent:r}=po(e,t);return tp(r)||Mc(r)&&r.importClause?r:void 0}function hPe(e,t,r){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;const o=r.getTypeChecker();for(const s of i)if(Ws.Core.eachSymbolReferenceInFile(s.name,o,t,u=>!h0(u)))return!1;return!0}function rz(e,t,r){var i;if(tp(r))e.replaceNode(t,r,w.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[w.createImportDeclaration(_1(r.modifiers,!0),w.createImportClause(!0,ll(o.name,!0),void 0),ll(r.moduleSpecifier,!0),ll(r.attributes,!0)),w.createImportDeclaration(_1(r.modifiers,!0),w.createImportClause(!0,void 0,ll(o.namedBindings,!0)),ll(r.moduleSpecifier,!0),ll(r.attributes,!0))]);else{const s=((i=o.namedBindings)==null?void 0:i.kind)===275?w.updateNamedImports(o.namedBindings,Zo(o.namedBindings.elements,u=>w.updateImportSpecifier(u,!1,u.propertyName,u.name))):o.namedBindings,l=w.updateImportDeclaration(r,r.modifiers,w.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var wpe,iz,nQe=I({"src/services/codefixes/convertToTypeOnlyImport.ts"(){si(),Ia(),wpe=[f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],iz="convertToTypeOnlyImport",Ta({errorCodes:wpe,getCodeActions:function(t){var r;const i=_Pe(t.sourceFile,t.span.start);if(i){const o=_r.ChangeTracker.with(t,u=>rz(u,t.sourceFile,i)),s=i.kind===276&&hPe(i,t.sourceFile,t.program)?_r.ChangeTracker.with(t,u=>rz(u,t.sourceFile,i.parent.parent.parent)):void 0,l=la(iz,o,i.kind===276?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,iz,f.Fix_all_with_type_only_imports);return bt(s)?[n_(iz,s,f.Use_import_type),l]:[l]}},fixIds:[iz],getAllCodeActions:function(t){const r=new Set;return bs(t,wpe,(i,o)=>{const s=_Pe(o.file,o.start);(s==null?void 0:s.kind)===272&&!r.has(s)?(rz(i,o.file,s),r.add(s)):(s==null?void 0:s.kind)===276&&!r.has(s.parent.parent.parent)&&hPe(s,o.file,t.program)?(rz(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):(s==null?void 0:s.kind)===276&&rz(i,o.file,s)})}})}});function gPe(e,t,r,i,o=!1){if(!US(t))return;const s=iQe(t);if(!s)return;const l=t.parent,{leftSibling:u,rightSibling:p}=rQe(t);let h=l.getStart(),m="";!u&&l.comment&&(h=vPe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),u&&(o&&US(u)?(h=t.getStart(),m=""):(h=vPe(l,u.getStart(),t.getStart()),m=`${i} */${i}`));let y=l.getEnd(),T="";p&&(o&&US(p)?(y=p.getStart(),T=`${i}${i}`):(y=p.getStart(),T=`${i}/**${i} * `)),e.replaceRange(r,{pos:h,end:y},s,{prefix:m,suffix:T})}function rQe(e){const t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),o=i>0?t.getChildAt(i-1):void 0,s=i<r?t.getChildAt(i+1):void 0;return{leftSibling:o,rightSibling:s}}function vPe(e,t,r){const i=e.getText().substring(t-e.getStart(),r-e.getStart());for(let o=i.length;o>0;o--)if(!/[*/\s]/g.test(i.substring(o-1,o)))return t+o;return r}function iQe(e){var t;const{typeExpression:r}=e;if(!r)return;const i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return oQe(i,r);if(r.kind===316)return aQe(i,r)}}function oQe(e,t){const r=yPe(t);if(bt(r))return w.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function aQe(e,t){const r=ll(t.type);if(r)return w.createTypeAliasDeclaration(void 0,w.createIdentifier(e),void 0,r)}function yPe(e){const t=e.jsDocPropertyTags;return bt(t)?eo(t,i=>{var o;const s=sQe(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed;let p;if(l&&jS(l)){const h=yPe(l);p=w.createTypeLiteralNode(h)}else l&&(p=ll(l));if(p&&s){const h=u?w.createToken(58):void 0;return w.createPropertySignature(void 0,s,h,p)}}):void 0}function sQe(e){return e.name.kind===80?e.name.text:e.name.right.text}function lQe(e){return Wp(e)?Do(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>US(i))}):[]}var t$,Ope,cQe=I({"src/services/codefixes/convertTypedefToType.ts"(){si(),Ia(),t$="convertTypedefToType",Ope=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Ta({fixIds:[t$],errorCodes:Ope,getCodeActions(e){const t=Xv(e.host,e.formatContext.options),r=po(e.sourceFile,e.span.start);if(!r)return;const i=_r.ChangeTracker.with(e,o=>gPe(o,r,e.sourceFile,t));if(i.length>0)return[la(t$,i,f.Convert_typedef_to_TypeScript_type,t$,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>bs(e,Ope,(t,r)=>{const i=Xv(e.host,e.formatContext.options),o=po(r.file,r.start);o&&gPe(t,o,r.file,i,!0)})})}});function bPe(e,t){const r=po(e,t);if(Ve(r)){const i=oa(r.parent.parent,gp),o=r.getText(e);return{container:oa(i.parent,yp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function EPe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,w.createMappedTypeNode(void 0,w.createTypeParameterDeclaration(void 0,s,w.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var n$,Wpe,uQe=I({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){si(),Ia(),n$="convertLiteralTypeToMappedType",Wpe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Ta({errorCodes:Wpe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=bPe(r,i.start);if(!o)return;const{name:s,constraint:l}=o,u=_r.ChangeTracker.with(t,p=>EPe(p,r,o));return[la(n$,u,[f.Convert_0_to_1_in_0,l,s],n$,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[n$],getAllCodeActions:e=>bs(e,Wpe,(t,r)=>{const i=bPe(r.file,r.start);i&&EPe(t,r.file,i)})})}});function SPe(e,t){return N.checkDefined(au(po(e,t)),"There should be a containing class")}function TPe(e){return!e.valueDeclaration||!(ud(e.valueDeclaration)&2)}function APe(e,t,r,i,o,s){const l=e.program.getTypeChecker(),u=dQe(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(R6(TPe,C=>!u.has(C.escapedName))),y=l.getTypeAtLocation(i),T=In(i.members,C=>Ml(C));y.getNumberIndexType()||R(p,1),y.getStringIndexType()||R(p,0);const A=CI(r,e.program,s,e.host);Hfe(i,m,r,e,s,A,C=>M(r,i,C)),A.writeFixes(o);function R(C,O){const U=l.getIndexInfoOfType(C,O);U&&M(r,i,l.indexInfoToIndexSignatureDeclaration(U,i,void 0,OD(e)))}function M(C,O,U){T?o.insertNodeAfter(C,T,U):o.insertMemberAtStart(C,O,U)}}function dQe(e,t){const r=I_(e);if(!r)return ca();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return ca(o.filter(TPe))}var Fpe,r$,pQe=I({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){si(),Ia(),Fpe=[f.Class_0_incorrectly_implements_interface_1.code,f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],r$="fixClassIncorrectlyImplementsInterface",Ta({errorCodes:Fpe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=SPe(t,r.start);return eo(vR(i),o=>{const s=_r.ChangeTracker.with(e,l=>APe(e,o,t,i,l,e.preferences));return s.length===0?void 0:la(r$,s,[f.Implement_interface_0,o.getText(t)],r$,f.Implement_all_unimplemented_interfaces)})},fixIds:[r$],getAllCodeActions(e){const t=new Map;return bs(e,Fpe,(r,i)=>{const o=SPe(i.file,i.start);if(Am(t,as(o)))for(const s of vR(o))APe(e,s,i.file,o,r,e.preferences)})}})}});function CI(e,t,r,i,o){return IPe(e,t,!1,r,i,o)}function IPe(e,t,r,i,o,s){const l=t.getCompilerOptions(),u=[],p=[],h=new Map,m=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:T,writeFixes:R,hasFixes:M};function y(C,O){const U=PPe(O,C.code,C.start,r);!U||!U.length||A(Ua(U))}function T(C,O){const U=N.checkDefined(C.parent),K=y5(C,os(l)),Q=t.getTypeChecker(),V=Q.getMergedSymbol(bu(C,Q)),se=DPe(e,V,K,U,!1,t,o,i,s),G=o$(e,t),ne=xPe(e,N.checkDefined(se),t,void 0,!!O,G,o,i);ne&&A({fix:ne,symbolName:K,errorIdentifierText:void 0})}function A(C){var O,U;const{fix:K,symbolName:Q}=C;switch(K.kind){case 0:u.push(K);break;case 1:p.push(K);break;case 2:{const{importClauseOrBindingPattern:ne,importKind:he,addAsTypeOnly:ye}=K,Y=String(as(ne));let X=h.get(Y);if(X||h.set(Y,X={importClauseOrBindingPattern:ne,defaultImport:void 0,namedImports:new Map}),he===0){const oe=X==null?void 0:X.namedImports.get(Q);X.namedImports.set(Q,V(oe,ye))}else N.assert(X.defaultImport===void 0||X.defaultImport.name===Q,"(Add to Existing) Default import should be missing or match symbolName"),X.defaultImport={name:Q,addAsTypeOnly:V((O=X.defaultImport)==null?void 0:O.addAsTypeOnly,ye)};break}case 3:{const{moduleSpecifier:ne,importKind:he,useRequire:ye,addAsTypeOnly:Y}=K,X=se(ne,he,ye,Y);switch(N.assert(X.useRequire===ye,"(Add new) Tried to add an `import` and a `require` for the same module"),he){case 1:N.assert(X.defaultImport===void 0||X.defaultImport.name===Q,"(Add new) Default import should be missing or match symbolName"),X.defaultImport={name:Q,addAsTypeOnly:V((U=X.defaultImport)==null?void 0:U.addAsTypeOnly,Y)};break;case 0:const oe=(X.namedImports||(X.namedImports=new Map)).get(Q);X.namedImports.set(Q,V(oe,Y));break;case 3:case 2:N.assert(X.namespaceLikeImport===void 0||X.namespaceLikeImport.name===Q,"Namespacelike import shoudl be missing or match symbolName"),X.namespaceLikeImport={importKind:he,name:Q,addAsTypeOnly:Y};break}break}case 4:break;default:N.assertNever(K,`fix wasn't never - got kind ${K.kind}`)}function V(ne,he){return Math.max(ne??0,he)}function se(ne,he,ye,Y){const X=G(ne,!0),oe=G(ne,!1),pe=m.get(X),Ce=m.get(oe),de={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ye};return he===1&&Y===2?pe||(m.set(X,de),de):Y===1&&(pe||Ce)?pe||Ce:Ce||(m.set(oe,de),de)}function G(ne,he){return`${he?1:0}|${ne}`}}function R(C,O){let U;e.imports.length===0&&O!==void 0?U=O:U=lf(e,i);for(const Q of u)jpe(C,e,Q);for(const Q of p)FPe(C,e,Q,U);h.forEach(({importClauseOrBindingPattern:Q,defaultImport:V,namedImports:se})=>{WPe(C,e,Q,V,zo(se.entries(),([G,ne])=>({addAsTypeOnly:ne,name:G})),i)});let K;m.forEach(({useRequire:Q,defaultImport:V,namedImports:se,namespaceLikeImport:G},ne)=>{const he=ne.slice(2),Y=(Q?GPe:BPe)(he,U,V,se&&zo(se.entries(),([X,oe])=>({addAsTypeOnly:oe,name:X})),G,l,i);K=Px(K,Y)}),K&&iM(C,e,K,!0,i)}function M(){return u.length>0||p.length>0||h.size>0||m.size>0}}function fQe(e,t,r,i){const o=dM(e,i,r),s=NPe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(u,p,h,m){const{fixes:y,computedWithoutCacheCount:T}=i$(u,p,h,!1,t,e,r,i,s,m),A=MPe(y,e,t,o,r);return A&&{...A,computedWithoutCacheCount:T}}}function mQe(e,t,r,i,o,s,l,u,p,h,m,y){let T;r?(T=bO(i,l,u,m,y).get(i.path,r),N.assertIsDefined(T,"Some exportInfo should match the specified exportMapKey")):(T=fV(Zf(t.name))?[hQe(e,o,t,u,l)]:DPe(i,e,o,t,s,u,l,m,y),N.assertIsDefined(T,"Some exportInfo should match the specified symbol / moduleSymbol"));const A=o$(i,u),R=h0(po(i,h)),M=N.checkDefined(xPe(i,T,u,h,R,A,l,m));return{moduleSpecifier:M.moduleSpecifier,codeAction:RPe(Vpe({host:l,formatContext:p,preferences:m},i,o,M,!1,u,m))}}function _Qe(e,t,r,i,o,s){const l=r.getCompilerOptions(),u=UB(Gpe(e,r.getTypeChecker(),t,l)),p=wPe(e,t,u,r),h=u!==t.text;return p&&RPe(Vpe({host:i,formatContext:o,preferences:s},e,u,p,h,r,s))}function xPe(e,t,r,i,o,s,l,u){const p=dM(e,u,l);return MPe(i$(t,i,o,s,r,e,l,u).fixes,e,r,p,l)}function RPe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function DPe(e,t,r,i,o,s,l,u,p){const h=CPe(s,l);return bO(e,l,s,u,p).search(e.path,o,m=>m===r,m=>{if(bu(m[0].symbol,h(m[0].isFromPackageJson))===t&&m.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return m})}function hQe(e,t,r,i,o){var s,l;const u=i.getCompilerOptions(),p=m(i.getTypeChecker(),!1);if(p)return p;const h=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return N.checkDefined(h&&m(h,!0),"Could not find symbol in specified module for code actions");function m(y,T){const A=x5(r,y,u);if(A&&bu(A.symbol,y)===e)return{symbol:A.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:A.exportKind,targetFlags:bu(e,y).flags,isFromPackageJson:T};const R=y.tryGetMemberInModuleExportsAndProperties(t,r);if(R&&bu(R,y)===e)return{symbol:R,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:bu(e,y).flags,isFromPackageJson:T}}}function i$(e,t,r,i,o,s,l,u,p=NPe(o.getTypeChecker(),s,o.getCompilerOptions()),h){const m=o.getTypeChecker(),y=Do(e,p.getImportsForExportInfo),T=t!==void 0&&gQe(y,t),A=yQe(y,r,m,o.getCompilerOptions());if(A)return{computedWithoutCacheCount:0,fixes:[...T?[T]:et,A]};const{fixes:R,computedWithoutCacheCount:M=0}=EQe(e,y,o,s,t,r,i,l,u,h);return{computedWithoutCacheCount:M,fixes:[...T?[T]:et,...R]}}function gQe(e,t){return Ht(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=vQe(r),l=s&&((o=pR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function vQe(e){var t,r,i;switch(e.kind){case 260:return(t=ri(e.name,Ve))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=ri((r=e.importClause)==null?void 0:r.namedBindings,Yy))==null?void 0:i.name.text;default:return N.assertNever(e)}}function zpe(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||cU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function yQe(e,t,r,i){let o;for(const l of e){const u=s(l);if(!u)continue;const p=lL(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&p||u.addAsTypeOnly===4&&!p)return u;o??(o=u)}return o;function s({declaration:l,importKind:u,symbol:p,targetFlags:h}){if(u===3||u===2||l.kind===271)return;if(l.kind===260)return(u===0||u===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:m}=l;if(!m||!ls(l.moduleSpecifier))return;const{name:y,namedBindings:T}=m;if(m.isTypeOnly&&!(u===0&&T))return;const A=zpe(t,!1,p,h,r,i);if(!(u===1&&(y||A===2&&T))&&!(u===0&&(T==null?void 0:T.kind)===274))return{kind:2,importClauseOrBindingPattern:m,importKind:u,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:A}}}function NPe(e,t,r){let i;for(const o of t.imports){const s=IC(o);if(Q4(s.parent)){const l=e.resolveExternalModuleName(o);l&&(i||(i=$p())).add(Sa(l),s.parent)}else if(s.kind===272||s.kind===271){const l=e.getSymbolAtLocation(o);l&&(i||(i=$p())).add(Sa(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{if(!(l&111551)&&cd(t))return et;const p=i==null?void 0:i.get(Sa(o));if(!p)return et;const h=Bpe(t,s,r);return p.map(m=>({declaration:m,importKind:h,symbol:u,targetFlags:l}))}}}function o$(e,t){if(!cd(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 wu(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!cd(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function CPe(e,t){return lh(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function bQe(e,t,r,i,o,s,l,u,p){const h=cd(t),m=e.getCompilerOptions(),y=tT(e,l),T=CPe(e,l),A=pd(m),R=t5(A),M=p?U=>({moduleSpecifiers:l1.tryGetModuleSpecifiersFromCache(U,t,y,u),computedWithoutCache:!1}):(U,K)=>l1.getModuleSpecifiersWithCacheInfo(U,K,m,t,y,u,void 0,!0);let C=0;const O=Do(s,(U,K)=>{const Q=T(U.isFromPackageJson),{computedWithoutCache:V,moduleSpecifiers:se}=M(U.moduleSymbol,Q),G=!!(U.targetFlags&111551),ne=zpe(i,!0,U.symbol,U.targetFlags,Q,m);return C+=V?1:0,eo(se,he=>{var ye;if(R&&x0(he))return;if(!G&&h&&r!==void 0)return{kind:1,moduleSpecifier:he,usagePosition:r,exportInfo:U,isReExport:K>0};const Y=Bpe(t,U.exportKind,m);let X;if(r!==void 0&&Y===3&&U.exportKind===0){const oe=Q.resolveExternalModuleSymbol(U.moduleSymbol);let pe;oe!==U.moduleSymbol&&(pe=(ye=R5(oe,Q,m))==null?void 0:ye.name),pe||(pe=Hpe(U.moduleSymbol,os(m),!1)),X={namespacePrefix:pe,usagePosition:r}}return{kind:3,moduleSpecifier:he,importKind:Y,useRequire:o,addAsTypeOnly:ne,exportInfo:U,isReExport:K>0,qualification:X}})});return{computedWithoutCacheCount:C,fixes:O}}function EQe(e,t,r,i,o,s,l,u,p,h){const m=Ht(t,y=>SQe(y,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:bQe(r,i,o,s,l,e,u,p,h)}function SQe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var p;const h=(p=pR(e))==null?void 0:p.text;if(h){const m=s?4:zpe(o,!0,r,i,l,u);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:m,useRequire:s}}}function PPe(e,t,r,i){const o=po(e.sourceFile,r);let s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=xQe(e,o);else if(Ve(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=UB(Gpe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=wPe(e.sourceFile,o,u,e.program);return p&&[{fix:p,symbolName:u,errorIdentifierText:o.text}]}else s=NQe(e,o,i);else return;const l=dM(e.sourceFile,e.preferences,e.host);return s&&TQe(s,e.sourceFile,e.program,l,e.host)}function TQe(e,t,r,i,o){const s=l=>il(l,o.getCurrentDirectory(),wv(o));return iS(e,(l,u)=>Ey(!!l.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||nl(l.fix.kind,u.fix.kind)||LPe(l.fix,u.fix,t,r,i.allowsImportingSpecifier,s))}function MPe(e,t,r,i,o){if(bt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>LPe(l,s,t,r,i.allowsImportingSpecifier,u=>il(u,o.getCurrentDirectory(),wv(o)))===-1?l:s)}function LPe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Ey(o(t.moduleSpecifier),o(e.moduleSpecifier))||IQe(e.moduleSpecifier,t.moduleSpecifier,r,i)||Ey(kPe(e,r,i.getCompilerOptions(),s),kPe(t,r,i.getCompilerOptions(),s))||_k(e.moduleSpecifier,t.moduleSpecifier):0}function kPe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&AQe(e.exportInfo.moduleFileName)){const s=i(ai(e.exportInfo.moduleFileName));return uo(t.path,s)}return!1}function AQe(e){return ic(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function IQe(e,t,r,i){return uo(e,"node:")&&!uo(t,"node:")?E5(r,i)?-1:1:uo(t,"node:")&&!uo(e,"node:")?E5(r,i)?1:-1:0}function xQe({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),l=RQe(o,s);if(!l)return;const u=s.getAliasedSymbol(l),p=l.name,h=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],m=o$(e,t);return i$(h,void 0,!1,m,t,e,r,i).fixes.map(T=>{var A;return{fix:T,symbolName:p,errorIdentifierText:(A=ri(o,Ve))==null?void 0:A.text}})}function RQe(e,t){const r=Ve(e)?t.getSymbolAtLocation(e):void 0;if(x3(r))return r;const{parent:i}=e;if(ld(i)&&i.tagName===e||lI(i)){const o=t.resolveName(t.getJsxNamespace(i),ld(i)?e:i,111551,!1);if(x3(o))return o}}function Bpe(e,t,r,i){if(r.verbatimModuleSyntax&&(wu(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return MQe(e,r,!!i);case 3:return DQe(e,r,!!i);default:return N.assertNever(t)}}function DQe(e,t,r){if(MS(t))return 1;const i=wu(t);switch(i){case 2:case 1:case 3:return lr(e)&&(sc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return N.assertNever(i,`Unexpected moduleKind ${i}`)}}function NQe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){const u=t.getTypeChecker(),p=t.getCompilerOptions();return Do(Gpe(e,u,s,p),h=>{if(h==="default")return;const m=h0(s),y=o$(e,t),T=PQe(h,cR(s),ZS(s),r,e,t,l,i,o);return zo(EE(T.values(),A=>i$(A,s.getStart(e),m,y,t,e,i,o).fixes),A=>({fix:A,symbolName:h,errorIdentifierText:s.text,isJsxNamespaceFix:h!==s.text}))})}function wPe(e,t,r,i){const o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;const l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||Un(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function Gpe(e,t,r,i){const o=r.parent;if((ld(o)||e1(o))&&o.tagName===r&&bX(i.jsx)){const s=t.getJsxNamespace(e);if(CQe(s,r,t))return!SR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function CQe(e,t,r){if(SR(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||bt(i.declarations,s0)&&!(i.flags&111551)}function PQe(e,t,r,i,o,s,l,u,p){var h;const m=$p(),y=dM(o,p,u),T=(h=u.getModuleSpecifierCache)==null?void 0:h.call(u),A=lh(M=>tT(M?u.getPackageJsonAutoImportProvider():s,u));function R(M,C,O,U,K,Q){const V=A(Q);if(C&&RX(K,o,C,p,y,V,T)||!C&&y.allowsImportingAmbientModule(M,V)){const se=K.getTypeChecker();m.add(Aue(O,se).toString(),{symbol:O,moduleSymbol:M,moduleFileName:C==null?void 0:C.fileName,exportKind:U,targetFlags:bu(O,se).flags,isFromPackageJson:Q})}}return DX(s,u,p,l,(M,C,O,U)=>{const K=O.getTypeChecker();i.throwIfCancellationRequested();const Q=O.getCompilerOptions(),V=x5(M,K,Q);V&&(V.name===e||Hpe(M,os(Q),t)===e)&&jPe(V.resolvedSymbol,r)&&R(M,C,V.symbol,V.exportKind,O,U);const se=K.tryGetMemberInModuleExportsAndProperties(e,M);se&&jPe(se,r)&&R(M,C,se,0,O,U)}),m}function MQe(e,t,r){const i=MS(t),o=lr(e);if(!o&&wu(t)>=5)return i?1:2;if(o)return sc(e)||r?i?1:2:3;for(const s of e.statements)if(eu(s)&&!Fl(s.moduleReference))return 3;return i?1:3}function Vpe(e,t,r,i,o,s,l){let u;const p=_r.ChangeTracker.with(e,h=>{u=LQe(h,t,r,i,o,s,l)});return la(Jpe,p,u,Kpe,f.Add_all_missing_imports)}function LQe(e,t,r,i,o,s,l){const u=lf(t,l);switch(i.kind){case 0:return jpe(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return FPe(e,t,i,u),[f.Change_0_to_1,r,zPe(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:m,moduleSpecifier:y}=i;WPe(e,t,p,h===1?{name:r,addAsTypeOnly:m}:void 0,h===0?[{name:r,addAsTypeOnly:m}]:et,l);const T=Zf(y);return o?[f.Import_0_from_1,r,T]:[f.Update_import_from_0,T]}case 3:{const{importKind:p,moduleSpecifier:h,addAsTypeOnly:m,useRequire:y,qualification:T}=i,A=y?GPe:BPe,R=p===1?{name:r,addAsTypeOnly:m}:void 0,M=p===0?[{name:r,addAsTypeOnly:m}]:void 0,C=p===2||p===3?{importKind:p,name:(T==null?void 0:T.namespacePrefix)||r,addAsTypeOnly:m}:void 0;return iM(e,t,A(h,u,R,M,C,s.getCompilerOptions(),l),!0,l),T&&jpe(e,t,T),o?[f.Import_0_from_1,r,h]:[f.Add_import_from_0,h]}case 4:{const{typeOnlyAliasDeclaration:p}=i,h=kQe(e,p,s,t,l);return h.kind===276?[f.Remove_type_from_import_of_0_from_1,r,OPe(h.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,OPe(h)]}default:return N.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function OPe(e){var t,r;return e.kind===271?((r=ri((t=ri(e.moduleReference,Sh))==null?void 0:t.expression,ls))==null?void 0:r.text)||e.moduleReference.getText():oa(e.parent.moduleSpecifier,Na).text}function kQe(e,t,r,i,o){const s=r.getCompilerOptions(),l=cU(s);switch(t.kind){case 276:if(t.isTypeOnly){const p=Cm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&p){const h=w.updateImportSpecifier(t,!1,t.propertyName,t.name),m=Cm.getOrganizeImportsComparer(o,p===2),y=Cm.getImportSpecifierInsertionIndex(t.parent.elements,h,m,o);if(y!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,h,t.parent,y),t}return e.deleteRange(i,{pos:l0(t.getFirstToken()),end:l0(t.propertyName??t.name)}),t}else return N.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 273:return u(t),t;case 274:return u(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:N.failBadSyntaxKind(t)}function u(p){var h;if(e.delete(i,$K(p,i)),!s.allowImportingTsExtensions){const m=pR(p.parent),y=m&&((h=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:h.resolvedModule);if(y!=null&&y.resolvedUsingTsExtension){const T=U2(m.text,ZF(m.text,s));e.replaceNode(i,m,w.createStringLiteral(T))}}if(l){const m=ri(p.namedBindings,Bg);if(m&&m.elements.length>1){Cm.detectImportSpecifierSorting(m.elements,o)&&t.kind===276&&m.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,m,0));for(const y of m.elements)y!==t&&!y.isTypeOnly&&e.insertModifierBefore(i,156,y)}}}}function WPe(e,t,r,i,o,s){var l;if(r.kind===206){i&&h(r,i.name,"default");for(const m of o)h(r,m.name,void 0);return}const u=r.isTypeOnly&&bt([i,...o],m=>(m==null?void 0:m.addAsTypeOnly)===4),p=r.namedBindings&&((l=ri(r.namedBindings,Bg))==null?void 0:l.elements);if(i&&(N.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),w.createIdentifier(i.name),{suffix:", "})),o.length){let m;if(typeof s.organizeImportsIgnoreCase=="boolean")m=s.organizeImportsIgnoreCase;else if(p){const R=Cm.detectImportSpecifierSorting(p,s);R!==3&&(m=R===2)}m===void 0&&(m=Cm.detectSorting(t,s)===2);const y=Cm.getOrganizeImportsComparer(s,m),T=Sv(o.map(R=>w.createImportSpecifier((!r.isTypeOnly||u)&&a$(R,s),void 0,w.createIdentifier(R.name))),(R,M)=>Cm.compareImportOrExportSpecifiers(R,M,y)),A=(p==null?void 0:p.length)&&Cm.detectImportSpecifierSorting(p,s);if(A&&!(m&&A===1))for(const R of T){const M=u&&!R.isTypeOnly?0:Cm.getImportSpecifierInsertionIndex(p,R,y,s);e.insertImportSpecifierAtIndex(t,R,r.namedBindings,M)}else if(p!=null&&p.length)for(const R of T)e.insertNodeInListAfter(t,Xa(p),R,p);else if(T.length){const R=w.createNamedImports(T);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,N.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(u&&(e.delete(t,$K(r,t)),p))for(const m of p)e.insertModifierBefore(t,156,m);function h(m,y,T){const A=w.createBindingElement(void 0,T,y);m.elements.length?e.insertNodeInListAfter(t,Xa(m.elements),A):e.replaceNode(t,m,w.createObjectBindingPattern([A]))}}function jpe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function FPe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,zPe(r,o))}function zPe(e,t){const r=YK(t);return`import(${r}${e}${r}).`}function Upe({addAsTypeOnly:e}){return e===2}function a$(e,t){return Upe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function BPe(e,t,r,i,o,s,l){const u=AI(e,t);let p;if(r!==void 0||i!=null&&i.length){const h=(!r||Upe(r))&&Jn(i,Upe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&(r==null?void 0:r.addAsTypeOnly)!==4&&!bt(i,m=>m.addAsTypeOnly===4);p=Px(p,Kv(r&&w.createIdentifier(r.name),i==null?void 0:i.map(m=>w.createImportSpecifier(!h&&a$(m,l),void 0,w.createIdentifier(m.name))),e,t,h))}if(o){const h=o.importKind===3?w.createImportEqualsDeclaration(void 0,a$(o,l),w.createIdentifier(o.name),w.createExternalModuleReference(u)):w.createImportDeclaration(void 0,w.createImportClause(a$(o,l),void 0,w.createNamespaceImport(w.createIdentifier(o.name))),u,void 0);p=Px(p,h)}return N.checkDefined(p)}function GPe(e,t,r,i,o){const s=AI(e,t);let l;if(r||i!=null&&i.length){const u=(i==null?void 0:i.map(({name:h})=>w.createBindingElement(void 0,void 0,h)))||[];r&&u.unshift(w.createBindingElement(void 0,"default",r.name));const p=VPe(w.createObjectBindingPattern(u),s);l=Px(l,p)}if(o){const u=VPe(o.name,s);l=Px(l,u)}return N.checkDefined(l)}function VPe(e,t){return w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(typeof e=="string"?w.createIdentifier(e):e,void 0,void 0,w.createCallExpression(w.createIdentifier("require"),void 0,[t]))],2))}function jPe({declarations:e},t){return bt(e,r=>!!(Yw(r)&t))}function Hpe(e,t,r){return qpe(Ad(Zf(e.name)),t,r)}function qpe(e,t,r){const i=ic(kx(e,"/index"));let o="",s=!0;const l=i.charCodeAt(0);Jh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let u=1;u<i.length;u++){const p=i.charCodeAt(u),h=e0(p,t);if(h){let m=String.fromCharCode(p);s||(m=m.toUpperCase()),o+=m}s=h}return LA(o)?`_${o}`:o||"_"}var Jpe,Kpe,Xpe,wQe=I({"src/services/codefixes/importFixes.ts"(){si(),Ia(),Jpe="import",Kpe="fixMissingImport",Xpe=[f.Cannot_find_name_0.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f.Cannot_find_namespace_0.code,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,f.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.code,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,f.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.code,f.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.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,f.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.code,f.Cannot_find_namespace_0_Did_you_mean_1.code],Ta({errorCodes:Xpe,getCodeActions(e){const{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,l=PPe(e,t,o.start,!0);if(l)return l.map(({fix:u,symbolName:p,errorIdentifierText:h})=>Vpe(e,i,p,u,p!==h,s,r))},fixIds:[Kpe],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=IPe(t,r,!0,i,o,s);return kD(e,Xpe,u=>l.addImportFromDiagnostic(u,e)),LD(_r.ChangeTracker.with(e,l.writeFixes))}})}});function UPe(e,t,r){const i=In(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=In(i.relatedInformation,l=>l.code===f.This_type_parameter_might_need_an_extends_0_constraint.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=Qfe(o.file,vu(o.start,o.length));if(s!==void 0&&(Ve(s)&&hl(s.parent)&&(s=s.parent),hl(s))){if(GR(s.parent))return;const l=po(t,r.start),u=e.getTypeChecker();return{constraint:WQe(u,l)||OQe(o.messageText),declaration:s,token:l}}}function HPe(e,t,r,i,o,s){const{declaration:l,constraint:u}=s,p=t.getTypeChecker();if(Mo(u))e.insertText(o,l.name.end,` extends ${u}`);else{const h=os(t.getCompilerOptions()),m=OD({program:t,host:i}),y=CI(o,t,r,i),T=U$(p,y,u,void 0,h,void 0,m);T&&(e.replaceNode(o,l,w.updateTypeParameterDeclaration(l,void 0,l.name,T,l.default)),y.writeFixes(e))}}function OQe(e){const[,t]=O_(e,`
`,0).match(/`extends (.*)`/)||[];return t}function WQe(e,t){return ji(t.parent)?e.getTypeArgumentConstraint(t.parent):(yt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var s$,Ype,FQe=I({"src/services/codefixes/fixAddMissingConstraint.ts"(){si(),Ia(),s$="addMissingConstraint",Ype=[f.Type_0_is_not_comparable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Property_0_is_incompatible_with_index_signature.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Type_0_does_not_satisfy_the_constraint_1.code],Ta({errorCodes:Ype,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=UPe(i,t,r);if(l===void 0)return;const u=_r.ChangeTracker.with(e,p=>HPe(p,i,o,s,t,l));return[la(s$,u,f.Add_extends_constraint,s$,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[s$],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Map;return LD(_r.ChangeTracker.with(e,s=>{kD(e,Ype,l=>{const u=UPe(t,l.file,vu(l.start,l.length));if(u&&Am(o,as(u.declaration)))return HPe(s,t,r,i,l.file,u)})}))}})}});function qPe(e,t,r,i){switch(r){case f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return zQe(e,t.sourceFile,i);case f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return BQe(e,t.sourceFile,i);default:N.fail("Unexpected error code: "+r)}}function zQe(e,t,r){const i=KPe(t,r);if(cd(t)){e.addJSDocTags(t,i,[w.createJSDocOverrideTag(w.createIdentifier("override"))]);return}const o=i.modifiers||et,s=In(o,QA),l=In(o,aae),u=In(o,y=>BK(y.kind)),p=oi(o,Eu),h=l?l.end:s?s.end:u?u.end:p?Pa(t.text,p.end):i.getStart(t),m=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,h,164,m)}function BQe(e,t,r){const i=KPe(t,r);if(cd(t)){e.filterJSDocTags(t,i,D6(YW));return}const o=In(i.modifiers,sae);N.assertIsDefined(o),e.deleteModifier(t,o)}function JPe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return pp(e,e.parent);default:return!1}}function KPe(e,t){const r=po(e,t),i=Vn(r,o=>di(o)?"quit":JPe(o));return N.assert(i&&JPe(i)),i}var $pe,gM,VO,Qpe,Zpe,GQe=I({"src/services/codefixes/fixOverrideModifier.ts"(){si(),Ia(),$pe="fixOverrideModifier",gM="fixAddOverrideModifier",VO="fixRemoveOverrideModifier",Qpe=[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Zpe={[f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:gM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:gM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_override_modifier},[f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:gM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:gM,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:gM,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},Ta({errorCodes:Qpe,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=Zpe[r];if(!o)return et;const{descriptions:s,fixId:l,fixAllDescriptions:u}=o,p=_r.ChangeTracker.with(t,h=>qPe(h,t,r,i.start));return[dpe($pe,p,s,l,u)]},fixIds:[$pe,gM,VO],getAllCodeActions:e=>bs(e,Qpe,(t,r)=>{const{code:i,start:o}=r,s=Zpe[i];!s||s.fixId!==e.fixId||qPe(t,e,i,o)})})}});function XPe(e,t,r,i){const o=lf(t,i),s=w.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,d4(r)?w.createElementAccessChain(r.expression,r.questionDotToken,s):w.createElementAccessExpression(r.expression,s))}function YPe(e,t){return oa(po(e,t).parent,Fr)}var l$,efe,VQe=I({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){si(),Ia(),l$="fixNoPropertyAccessFromIndexSignature",efe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Ta({errorCodes:efe,fixIds:[l$],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=YPe(t,r.start),s=_r.ChangeTracker.with(e,l=>XPe(l,e.sourceFile,o,i));return[la(l$,s,[f.Use_element_access_for_0,o.name.text],l$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>bs(e,efe,(t,r)=>XPe(t,r.file,YPe(r.file,r.start),e.preferences))})}});function $Pe(e,t,r,i){const o=po(t,r);if(!yD(o))return;const s=Fd(o,!1,!1);if(!(!Tc(s)&&!Os(s))&&!$i(Fd(s,!1,!1))){const l=N.checkDefined(vs(s,100,t)),{name:u}=s,p=N.checkDefined(s.body);return Os(s)?u&&Ws.Core.isSymbolReferencedInFile(u,i,t,p)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,p.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,u?u.text:I5]):(e.replaceNode(t,l,w.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,p.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,u.text])}}var c$,tfe,jQe=I({"src/services/codefixes/fixImplicitThis.ts"(){si(),Ia(),c$="fixImplicitThis",tfe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Ta({errorCodes:tfe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const l=_r.ChangeTracker.with(t,u=>{s=$Pe(u,r,o.start,i.getTypeChecker())});return s?[la(c$,l,s,c$,f.Fix_all_implicit_this_errors)]:et},fixIds:[c$],getAllCodeActions:e=>bs(e,tfe,(t,r)=>{$Pe(t,r.file,r.start,e.program.getTypeChecker())})})}});function QPe(e,t,r){var i,o;const s=po(e,t);if(Ve(s)){const l=Vn(s,Mc);if(l===void 0)return;const u=Na(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(u===void 0)return;const p=(i=r.getResolvedModuleFromModuleSpecifier(u))==null?void 0:i.resolvedModule;if(p===void 0)return;const h=r.getSourceFile(p.resolvedFileName);if(h===void 0||xD(r,h))return;const m=h.symbol,y=(o=ri(m.valueDeclaration,dh))==null?void 0:o.locals;if(y===void 0)return;const T=y.get(s.escapedText);if(T===void 0)return;const A=HQe(T);return A===void 0?void 0:{exportName:{node:s,isTypeOnly:kR(A)},node:A,moduleSourceFile:h,moduleSpecifier:u.text}}}function UQe(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=u$(o,r.isTypeOnly);s?ZPe(e,t,o,s,[r]):vk(i)?e.insertExportModifier(o,i):eMe(e,t,o,[r])}function nfe(e,t,r,i,o){Ne(i)&&(o?ZPe(e,t,r,o,i):eMe(e,t,r,i))}function u$(e,t){const r=i=>Yl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return oi(e.statements,r)}function ZPe(e,t,r,i,o){const s=i.exportClause&&Nf(i.exportClause)?i.exportClause.elements:w.createNodeArray([]),l=!i.isTypeOnly&&!!(rm(t.getCompilerOptions())||In(s,u=>u.isTypeOnly));e.replaceNode(r,i,w.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,w.createNamedExports(w.createNodeArray([...s,...tMe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function eMe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,w.createExportDeclaration(void 0,!1,w.createNamedExports(tMe(i,rm(t.getCompilerOptions()))),void 0,void 0))}function tMe(e,t){return w.createNodeArray(Wt(e,r=>w.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function HQe(e){if(e.valueDeclaration===void 0)return Kc(e.declarations);const t=e.valueDeclaration,r=Oi(t)?ri(t.parent.parent,Ll):void 0;return r&&Ne(r.declarationList.declarations)===1?r:t}var d$,rfe,qQe=I({"src/services/codefixes/fixImportNonExportedMember.ts"(){si(),Ia(),d$="fixImportNonExportedMember",rfe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],Ta({errorCodes:rfe,fixIds:[d$],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=QPe(t,r.start,i);if(o===void 0)return;const s=_r.ChangeTracker.with(e,l=>UQe(l,i,o));return[la(d$,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],d$,f.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return LD(_r.ChangeTracker.with(e,r=>{const i=new Map;kD(e,rfe,o=>{const s=QPe(o.file,o.start,t);if(s===void 0)return;const{exportName:l,node:u,moduleSourceFile:p}=s;if(u$(p,l.isTypeOnly)===void 0&&vk(u))r.insertExportModifier(p,u);else{const h=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?h.typeOnlyExports.push(l):h.exports.push(l),i.set(p,h)}}),i.forEach((o,s)=>{const l=u$(s,!0);l&&l.isTypeOnly?(nfe(r,t,s,o.typeOnlyExports,l),nfe(r,t,s,o.exports,u$(s,!1))):nfe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function JQe(e,t){const r=po(e,t);return Vn(r,i=>i.kind===202)}function KQe(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?o=!0:i.kind===191&&(s=!0),i=i.type;const l=w.updateNamedTupleMember(r,r.dotDotDotToken||(s?w.createToken(26):void 0),r.name,r.questionToken||(o?w.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var p$,nMe,XQe=I({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){si(),Ia(),p$="fixIncorrectNamedTupleSyntax",nMe=[f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Ta({errorCodes:nMe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=JQe(r,i.start),s=_r.ChangeTracker.with(t,l=>KQe(l,r,o));return[la(p$,s,f.Move_labeled_tuple_element_modifiers_to_labels,p$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[p$]})}});function rMe(e,t,r,i){const o=po(e,t),s=o.parent;if((i===f.No_overload_matches_this_call.code||i===f.Type_0_is_not_assignable_to_type_1.code)&&!w_(s))return;const l=r.program.getTypeChecker();let u;if(Fr(s)&&s.name===o){N.assert(Kh(o),"Expected an identifier for spelling (property access)");let p=l.getTypeAtLocation(s.expression);s.flags&64&&(p=l.getNonNullableType(p)),u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(mr(s)&&s.operatorToken.kind===103&&s.left===o&&qi(o)){const p=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Id(s)&&s.right===o){const p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(tp(s)&&s.name===o){N.assertNode(o,Ve,"Expected an identifier for spelling (import)");const p=Vn(o,Mc),h=$Qe(r,p);h&&h.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(w_(s)&&s.name===o){N.assertNode(o,Ve,"Expected an identifier for JSX attribute");const p=Vn(o,ld),h=l.getContextualTypeForArgumentAtIndex(p,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,h)}else if(v3(s)&&Yc(s)&&s.name===o){const p=Vn(o,di),h=p?I_(p):void 0,m=h?l.getTypeAtLocation(h):void 0;m&&(u=l.getSuggestedSymbolForNonexistentClassMember(fc(o),m))}else{const p=ZS(o),h=fc(o);N.assert(h!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,h,YQe(p))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function iMe(e,t,r,i,o){const s=El(i);if(!Zp(s,o)&&Fr(r.parent)){const l=i.valueDeclaration;l&&ad(l)&&qi(l.name)?e.replaceNode(t,r,w.createIdentifier(s)):e.replaceNode(t,r.parent,w.createElementAccessExpression(r.parent.expression,w.createStringLiteral(s)))}else e.replaceNode(t,r,w.createIdentifier(s))}function YQe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function $Qe(e,t){var r;if(!t||!ls(t.moduleSpecifier))return;const i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var ife,ofe,QQe=I({"src/services/codefixes/fixSpelling.ts"(){si(),Ia(),ife="fixSpelling",ofe=[f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Could_not_find_name_0_Did_you_mean_1.code,f.Cannot_find_namespace_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f._0_has_no_exported_member_named_1_Did_you_mean_2.code,f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.No_overload_matches_this_call.code,f.Type_0_is_not_assignable_to_type_1.code],Ta({errorCodes:ofe,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=rMe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,l=os(e.host.getCompilationSettings()),u=_r.ChangeTracker.with(e,p=>iMe(p,t,o,s,l));return[la("spelling",u,[f.Change_spelling_to_0,El(s)],ife,f.Fix_all_detected_spelling_errors)]},fixIds:[ife],getAllCodeActions:e=>bs(e,ofe,(t,r)=>{const i=rMe(r.file,r.start,e,r.code),o=os(e.host.getCompilationSettings());i&&iMe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function oMe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const o=ca([i]);return e.createAnonymousType(void 0,o,[],[],[])}function afe(e,t,r,i){if(!t.body||!Ko(t.body)||Ne(t.body.statements)!==1)return;const o=Ua(t.body.statements);if(Zc(o)&&sfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(ZE(o)&&Zc(o.statement)){const s=w.createObjectLiteralExpression([w.createPropertyAssignment(o.label,o.statement.expression)]),l=oMe(e,o.label,o.statement.expression);if(sfe(e,t,l,r,i))return Gs(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if(Ko(o)&&Ne(o.statements)===1){const s=Ua(o.statements);if(ZE(s)&&Zc(s.statement)){const l=w.createObjectLiteralExpression([w.createPropertyAssignment(s.label,s.statement.expression)]),u=oMe(e,s.label,s.statement.expression);if(sfe(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function sfe(e,t,r,i,o){if(o){const s=e.getSignatureFromDeclaration(t);if(s){Qr(t,1024)&&(r=e.createPromiseType(r));const l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,ca(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function aMe(e,t,r,i){const o=po(t,r);if(!o.parent)return;const s=Vn(o.parent,Bs);switch(i){case f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!sf(s.type,o)?void 0:afe(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!sa(s.parent)||!s.body)return;const l=s.parent.arguments.indexOf(s);if(l===-1)return;const u=e.getContextualTypeForArgumentAtIndex(s.parent,l);return u?afe(e,s,u,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!wg(o)||!aR(o.parent)&&!w_(o.parent))return;const p=ZQe(o.parent);return!p||!Bs(p)||!p.body?void 0:afe(e,p,e.getTypeAtLocation(o.parent),!0)}}function ZQe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(bP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function sMe(e,t,r,i){Sp(r);const o=hO(t);e.replaceNode(t,i,w.createReturnStatement(r),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function lMe(e,t,r,i,o,s){const l=c5(i)?w.createParenthesizedExpression(i):i;Sp(o),nT(o,l),e.replaceNode(t,r.body,l)}function cMe(e,t,r,i){e.replaceNode(t,r.body,w.createParenthesizedExpression(i))}function eZe(e,t,r){const i=_r.ChangeTracker.with(e,o=>sMe(o,e.sourceFile,t,r));return la(f$,i,f.Add_a_return_statement,m$,f.Add_all_missing_return_statement)}function tZe(e,t,r,i){const o=_r.ChangeTracker.with(e,s=>lMe(s,e.sourceFile,t,r,i));return la(f$,o,f.Remove_braces_from_arrow_function_body,_$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function nZe(e,t,r){const i=_r.ChangeTracker.with(e,o=>cMe(o,e.sourceFile,t,r));return la(f$,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,h$,f.Wrap_all_object_literal_with_parentheses)}var f$,m$,_$,h$,lfe,rZe=I({"src/services/codefixes/returnValueCorrect.ts"(){si(),Ia(),f$="returnValueCorrect",m$="fixAddReturnStatement",_$="fixRemoveBracesFromArrowFunctionBody",h$="fixWrapTheBlockWithParen",lfe=[f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Ta({errorCodes:lfe,fixIds:[m$,_$,h$],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=aMe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Rn([eZe(t,l.expression,l.statement)],Gs(l.declaration)?tZe(t,l.declaration,l.expression,l.commentSource):void 0):[nZe(t,l.declaration,l.expression)]},getAllCodeActions:e=>bs(e,lfe,(t,r)=>{const i=aMe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case m$:sMe(t,r.file,i.expression,i.statement);break;case _$:if(!Gs(i.declaration))return;lMe(t,r.file,i.declaration,i.expression,i.commentSource);break;case h$:if(!Gs(i.declaration))return;cMe(t,r.file,i.declaration,i.expression);break;default:N.fail(JSON.stringify(e.fixId))}})})}});function uMe(e,t,r,i,o){var s;const l=po(e,t),u=l.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&La(u)&&sa(u.parent)))return;const A=mi(u.parent.arguments,O=>O===u);if(A<0)return;const R=i.getResolvedSignature(u.parent);if(!(R&&R.declaration&&R.parameters[A]))return;const M=R.parameters[A].valueDeclaration;if(!(M&&Ao(M)&&Ve(M.name)))return;const C=zo(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(R,A),!1,!1));return Ne(C)?{kind:3,token:M.name,identifier:M.name.text,properties:C,parentDeclaration:u}:void 0}if(l.kind===19&&La(u)){const A=i.getContextualType(u)||i.getTypeAtLocation(u),R=zo(i.getUnmatchedProperties(i.getTypeAtLocation(u),A,!1,!1));return Ne(R)?{kind:3,token:u,identifier:"",properties:R,parentDeclaration:u}:void 0}if(!Kh(l))return;if(Ve(l)&&Ly(u)&&u.initializer&&La(u.initializer)){const A=i.getContextualType(l)||i.getTypeAtLocation(l),R=zo(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),A,!1,!1));return Ne(R)?{kind:3,token:l,identifier:l.text,properties:R,parentDeclaration:u.initializer}:void 0}if(Ve(l)&&ld(l.parent)){const A=os(o.getCompilerOptions()),R=uZe(i,A,l.parent);return Ne(R)?{kind:4,token:l,attributes:R,parentDeclaration:l.parent}:void 0}if(Ve(l)){const A=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(A&&Wr(A)&16){const R=Kc(i.getSignaturesOfType(A,0));return R===void 0?void 0:{kind:5,token:l,signature:R,sourceFile:e,parentDeclaration:EMe(l)}}if(sa(u)&&u.expression===l)return{kind:2,token:l,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:EMe(l)}}if(!Fr(u))return;const p=qK(i.getTypeAtLocation(u.expression)),h=p.symbol;if(!h||!h.declarations)return;if(Ve(l)&&sa(u.parent)){const A=In(h.declarations,Xl),R=A==null?void 0:A.getSourceFile();if(A&&R&&!xD(o,R))return{kind:2,token:l,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:A};const M=In(h.declarations,$i);if(e.commonJsModuleIndicator)return;if(M&&!xD(o,M))return{kind:2,token:l,call:u.parent,sourceFile:M,modifierFlags:32,parentDeclaration:M}}const m=In(h.declarations,di);if(!m&&qi(l))return;const y=m||In(h.declarations,A=>md(A)||yp(A));if(y&&!xD(o,y.getSourceFile())){const A=!yp(y)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(A&&(qi(l)||md(y)))return;const R=y.getSourceFile(),M=yp(y)?0:(A?256:0)|(yX(l.text)?2:0),C=cd(R),O=ri(u.parent,sa);return{kind:0,token:l,call:O,modifierFlags:M,parentDeclaration:y,declSourceFile:R,isJSFile:C}}const T=In(h.declarations,y0);if(T&&!(p.flags&1056)&&!qi(l)&&!xD(o,T.getSourceFile()))return{kind:1,token:l,parentDeclaration:T}}function iZe(e,t){return t.isJSFile?hA(oZe(e,t)):aZe(e,t)}function oZe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(md(t)||yp(t))return;const s=_r.ChangeTracker.with(e,u=>dMe(u,r,t,o,!!(i&256)));if(s.length===0)return;const l=i&256?f.Initialize_static_property_0:qi(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return la(rb,s,[l,o.text],rb,f.Add_all_missing_members)}function dMe(e,t,r,i,o){const s=i.text;if(o){if(r.kind===231)return;const l=r.name.getText(),u=pMe(w.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(qi(i)){const l=w.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=_Me(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{const l=ng(r);if(!l)return;const u=pMe(w.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function pMe(e,t){return w.createExpressionStatement(w.createAssignment(w.createPropertyAccessExpression(e,t),PI()))}function aZe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,l=i&256,u=fMe(e.program.getTypeChecker(),t,o),p=m=>_r.ChangeTracker.with(e,y=>mMe(y,r,t,s,u,m)),h=[la(rb,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],rb,f.Add_all_missing_members)];return l||qi(o)||(i&2&&h.unshift(n_(rb,p(2),[f.Declare_private_property_0,s])),h.push(sZe(e,r,t,o.text,u))),h}function fMe(e,t,r){let i;if(r.parent.parent.kind===226){const o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1)}else{const o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||w.createKeywordTypeNode(133)}function mMe(e,t,r,i,o,s){const l=s?w.createNodeArray(w.createModifiersFromModifierFlags(s)):void 0,u=di(r)?w.createPropertyDeclaration(l,i,void 0,o,void 0):w.createPropertySignature(void 0,i,void 0,o),p=_Me(r);p?e.insertNodeAfter(t,p,u):e.insertMemberAtStart(t,r,u)}function _Me(e){let t;for(const r of e.members){if(!qo(r))break;t=r}return t}function sZe(e,t,r,i,o){const s=w.createKeywordTypeNode(154),l=w.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),u=w.createIndexSignature(void 0,[l],o),p=_r.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,r,u));return n_(rb,p,[f.Add_index_signature_for_property_0,i])}function lZe(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;const u=s.text,p=m=>_r.ChangeTracker.with(e,y=>hMe(e,y,l,s,m,r,i)),h=[la(rb,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,u],rb,f.Add_all_missing_members)];return o&2&&h.unshift(n_(rb,p(2),[f.Declare_private_method_0,u])),h}function hMe(e,t,r,i,o,s,l){const u=CI(l,e.program,e.preferences,e.host),p=di(s)?174:173,h=qfe(p,e,u,r,i,o,s),m=dZe(s,r);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,s,h),u.writeFixes(t)}function gMe(e,t,{token:r,parentDeclaration:i}){const o=bt(i.members,p=>{const h=t.getTypeAtLocation(p);return!!(h&&h.flags&402653316)}),s=i.getSourceFile(),l=w.createEnumMember(r,o?w.createStringLiteral(r.text):void 0),u=el(i.members);u?e.insertNodeInListAfter(s,u,l,i.members):e.insertMemberAtStart(s,i,l)}function vMe(e,t,r){const i=lf(t.sourceFile,t.preferences),o=CI(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?qfe(262,t,o,r.call,Sr(r.token),r.modifierFlags,r.parentDeclaration):j$(262,t,i,r.signature,fz(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&N.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Im(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function yMe(e,t,r){const i=CI(t.sourceFile,t.program,t.preferences,t.host),o=lf(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=bt(l.properties,cI),p=Wt(r.attributes,y=>{const T=g$(t,s,i,o,s.getTypeOfSymbol(y),r.parentDeclaration),A=w.createIdentifier(y.name),R=w.createJsxAttribute(A,w.createJsxExpression(void 0,T));return Ha(A,R),R}),h=w.createJsxAttributes(u?[...p,...l.properties]:[...l.properties,...p]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,h,m),i.writeFixes(e)}function bMe(e,t,r){const i=CI(t.sourceFile,t.program,t.preferences,t.host),o=lf(t.sourceFile,t.preferences),s=os(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Wt(r.properties,h=>{const m=g$(t,l,i,o,l.getTypeOfSymbol(h),r.parentDeclaration);return w.createPropertyAssignment(pZe(h,s,o,l),m)}),p={leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,w.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),p),i.writeFixes(e)}function g$(e,t,r,i,o,s){if(o.flags&3)return PI();if(o.flags&134217732)return w.createStringLiteral("",i===0);if(o.flags&8)return w.createNumericLiteral(0);if(o.flags&64)return w.createBigIntLiteral("0n");if(o.flags&16)return w.createFalse();if(o.flags&1056){const l=o.symbol.exports?b6(o.symbol.exports.values()):o.symbol,u=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,64);return l===void 0||u===void 0?w.createNumericLiteral(0):w.createPropertyAccessExpression(u,t.symbolToString(l))}if(o.flags&256)return w.createNumericLiteral(o.value);if(o.flags&2048)return w.createBigIntLiteral(o.value);if(o.flags&128)return w.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?w.createFalse():w.createTrue();if(o.flags&65536)return w.createNull();if(o.flags&1048576)return Ht(o.types,u=>g$(e,t,r,i,u,s))??PI();if(t.isArrayLikeType(o))return w.createArrayLiteralExpression();if(cZe(o)){const l=Wt(t.getPropertiesOfType(o),u=>{const p=g$(e,t,r,i,t.getTypeOfSymbol(u),s);return w.createPropertyAssignment(u.name,p)});return w.createObjectLiteralExpression(l,!0)}if(Wr(o)&16){if(In(o.symbol.declarations||et,Jm(yh,vh,Hl))===void 0)return PI();const u=t.getSignaturesOfType(o,0);return u===void 0?PI():j$(218,e,i,u[0],fz(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??PI()}if(Wr(o)&1){const l=Wg(o.symbol);if(l===void 0||jE(l))return PI();const u=ng(l);return u&&Ne(u.parameters)?PI():w.createNewExpression(w.createIdentifier(o.symbol.name),void 0,void 0)}return PI()}function PI(){return w.createIdentifier("undefined")}function cZe(e){return e.flags&524288&&(Wr(e)&128||e.symbol&&ri(oh(e.symbol.declarations),yp))}function uZe(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return et;const o=i.getProperties();if(!Ne(o))return et;const s=new Set;for(const l of r.attributes.properties)if(w_(l)&&s.add(iP(l.name)),cI(l)){const u=e.getTypeAtLocation(l.expression);for(const p of u.getProperties())s.add(p.escapedName)}return mn(o,l=>Zp(l.name,t,1)&&!(l.flags&16777216||xl(l)&48||s.has(l.escapedName)))}function dZe(e,t){if(yp(e))return;const r=Vn(t,i=>Hl(i)||Ml(i));return r&&r.parent===e?r:void 0}function pZe(e,t,r,i){if(ph(e)){const o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Za(o))return o}return q3(e.name,t,r===0,!1,!1)}function EMe(e){if(Vn(e,bP)){const t=Vn(e.parent,Im);if(t)return t}return Un(e)}var rb,oz,az,sz,cfe,fZe=I({"src/services/codefixes/fixAddMissingMember.ts"(){si(),Ia(),rb="fixMissingMember",oz="fixMissingProperties",az="fixMissingAttributes",sz="fixMissingFunctionDeclaration",cfe=[f.Property_0_does_not_exist_on_type_1.code,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_is_missing_in_type_1_but_required_in_type_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Cannot_find_name_0.code],Ta({errorCodes:cfe,getCodeActions(e){const t=e.program.getTypeChecker(),r=uMe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=_r.ChangeTracker.with(e,o=>bMe(o,e,r));return[la(oz,i,f.Add_missing_properties,oz,f.Add_all_missing_properties)]}if(r.kind===4){const i=_r.ChangeTracker.with(e,o=>yMe(o,e,r));return[la(az,i,f.Add_missing_attributes,az,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=_r.ChangeTracker.with(e,o=>vMe(o,e,r));return[la(sz,i,[f.Add_missing_function_declaration_0,r.token.text],sz,f.Add_all_missing_function_declarations)]}if(r.kind===1){const i=_r.ChangeTracker.with(e,o=>gMe(o,e.program.getTypeChecker(),r));return[la(rb,i,[f.Add_missing_enum_member_0,r.token.text],rb,f.Add_all_missing_members)]}return So(lZe(e,r),iZe(e,r))}},fixIds:[rb,sz,oz,az],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return LD(_r.ChangeTracker.with(e,l=>{kD(e,cfe,u=>{const p=uMe(u.file,u.start,u.code,i,e.program);if(!(!p||!Am(o,as(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===sz&&(p.kind===2||p.kind===5))vMe(l,e,p);else if(r===oz&&p.kind===3)bMe(l,e,p);else if(r===az&&p.kind===4)yMe(l,e,p);else if(p.kind===1&&gMe(l,i,p),p.kind===0){const{parentDeclaration:h,token:m}=p,y=dA(s,h,()=>[]);y.some(T=>T.token.text===m.text)||y.push(p)}}}),s.forEach((u,p)=>{const h=yp(p)?void 0:eme(p,i);for(const m of u){if(h!=null&&h.some(O=>{const U=s.get(O);return!!U&&U.some(({token:K})=>K.text===m.token.text)}))continue;const{parentDeclaration:y,declSourceFile:T,modifierFlags:A,token:R,call:M,isJSFile:C}=m;if(M&&!qi(R))hMe(e,l,M,R,A&256,y,T);else if(C&&!md(y)&&!yp(y))dMe(l,T,y,R,!!(A&256));else{const O=fMe(i,y,R);mMe(l,T,y,R.text,O,A&256)}}})}))}})}});function SMe(e,t,r){const i=oa(mZe(t,r),sa),o=w.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function mZe(e,t){let r=po(e,t.start);const i=Kl(t);for(;r.end<i;)r=r.parent;return r}var v$,ufe,_Ze=I({"src/services/codefixes/fixAddMissingNewOperator.ts"(){si(),Ia(),v$="addMissingNewOperator",ufe=[f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],Ta({errorCodes:ufe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=_r.ChangeTracker.with(e,o=>SMe(o,t,r));return[la(v$,i,f.Add_missing_new_operator_to_call,v$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[v$],getAllCodeActions:e=>bs(e,ufe,(t,r)=>SMe(t,e.sourceFile,r))})}});function TMe(e,t,r){const i=po(e,r),o=Vn(i,sa);if(o===void 0||Ne(o.arguments)===0)return;const s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=mn(l.symbol.declarations,AMe);if(u===void 0)return;const p=el(u);if(p===void 0||p.body===void 0||xD(t,p.getSourceFile()))return;const h=hZe(p);if(h===void 0)return;const m=[],y=[],T=Ne(p.parameters),A=Ne(o.arguments);if(T>A)return;const R=[p,...vZe(p,u)];for(let M=0,C=0,O=0;M<A;M++){const U=o.arguments[M],K=ws(U)?sU(U):U,Q=s.getWidenedType(s.getBaseTypeOfLiteralType(s.getTypeAtLocation(U))),V=C<T?p.parameters[C]:void 0;if(V&&s.isTypeAssignableTo(Q,s.getTypeAtLocation(V))){C++;continue}const se=K&&Ve(K)?K.text:`p${O++}`,G=gZe(s,Q,p);Rn(m,{pos:M,declaration:xMe(se,G,void 0)}),!bZe(R,C)&&Rn(y,{pos:M,declaration:xMe(se,G,w.createToken(58))})}return{newParameters:m,newOptionalParameters:y,name:xs(h),declarations:R}}function hZe(e){const t=Lo(e);if(t)return t;if(Oi(e.parent)&&Ve(e.parent.name)||qo(e.parent)||Ao(e.parent))return e.parent.name}function gZe(e,t,r){return e.typeToTypeNode(e.getWidenedType(t),r,1)??w.createKeywordTypeNode(159)}function y$(e,t,r,i){Xe(r,o=>{Ne(o.parameters)?e.replaceNodeRangeWithNodes(t,Ua(o.parameters),Xa(o.parameters),IMe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include}):Xe(IMe(o,i),(s,l)=>{Ne(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function AMe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function IMe(e,t){const r=Wt(e.parameters,i=>w.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(const{pos:i,declaration:o}of t){const s=i>0?r[i-1]:void 0;r.splice(i,0,w.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?w.createToken(58):o.questionToken,o.type,o.initializer))}return r}function vZe(e,t){const r=[];for(const i of t)if(yZe(i)){if(Ne(i.parameters)===Ne(e.parameters)){r.push(i);continue}if(Ne(i.parameters)>Ne(e.parameters))return[]}return r}function yZe(e){return AMe(e)&&e.body===void 0}function xMe(e,t,r){return w.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function bZe(e,t){return Ne(e)&&bt(e,r=>t<Ne(r.parameters)&&!!r.parameters[t]&&r.parameters[t].questionToken===void 0)}var lz,cz,dfe,EZe=I({"src/services/codefixes/fixAddMissingParam.ts"(){si(),Ia(),lz="addMissingParam",cz="addOptionalParam",dfe=[f.Expected_0_arguments_but_got_1.code],Ta({errorCodes:dfe,fixIds:[lz,cz],getCodeActions(e){const t=TMe(e.sourceFile,e.program,e.span.start);if(t===void 0)return;const{name:r,declarations:i,newParameters:o,newOptionalParameters:s}=t,l=[];return Ne(o)&&Rn(l,la(lz,_r.ChangeTracker.with(e,u=>y$(u,e.sourceFile,i,o)),[Ne(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],lz,f.Add_all_missing_parameters)),Ne(s)&&Rn(l,la(cz,_r.ChangeTracker.with(e,u=>y$(u,e.sourceFile,i,s)),[Ne(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],cz,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>bs(e,dfe,(t,r)=>{const i=TMe(e.sourceFile,e.program,r.start);if(i){const{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===lz&&y$(t,e.sourceFile,o,s),e.fixId===cz&&y$(t,e.sourceFile,o,l)}})})}});function RMe(e,t){return{type:"install package",file:e,packageName:t}}function DMe(e,t){const r=ri(po(e,t),Na);if(!r)return;const i=r.text,{packageName:o}=Sw(i);return Xc(o)?void 0:o}function NMe(e,t,r){var i;return r===pfe?F_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?CF(e):void 0}var CMe,b$,pfe,ffe,SZe=I({"src/services/codefixes/fixCannotFindModule.ts"(){si(),Ia(),CMe="fixCannotFindModule",b$="installTypesPackage",pfe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,ffe=[pfe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Ta({errorCodes:ffe,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:o}}=t,s=DMe(i,o);if(s===void 0)return;const l=NMe(s,r,t.errorCode);return l===void 0?[]:[la(CMe,[],[f.Install_0,l],b$,f.Install_all_missing_types_packages,RMe(i.fileName,l))]},fixIds:[b$],getAllCodeActions:e=>bs(e,ffe,(t,r,i)=>{const o=DMe(r.file,r.start);if(o!==void 0)switch(e.fixId){case b$:{const s=NMe(o,e.host,r.code);s&&i.push(RMe(r.file.fileName,s));break}default:N.fail(`Bad fixId: ${e.fixId}`)}})})}});function PMe(e,t){const r=po(e,t);return oa(r.parent,di)}function MMe(e,t,r,i,o){const s=I_(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),p=l.getPropertiesOfType(u).filter(TZe),h=CI(t,r.program,o,r.host);Hfe(e,p,t,r,o,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function TZe(e){const t=Fy(Ua(e.getDeclarations()));return!(t&2)&&!!(t&64)}var mfe,E$,AZe=I({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){si(),Ia(),mfe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],E$="fixClassDoesntImplementInheritedAbstractMember",Ta({errorCodes:mfe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=_r.ChangeTracker.with(t,s=>MMe(PMe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[la(E$,o,f.Implement_inherited_abstract_class,E$,f.Implement_all_inherited_abstract_classes)]},fixIds:[E$],getAllCodeActions:function(t){const r=new Map;return bs(t,mfe,(i,o)=>{const s=PMe(o.file,o.start);Am(r,as(s))&&MMe(s,t.sourceFile,t,i,t.preferences)})}})}});function LMe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function kMe(e,t){const r=po(e,t);if(r.kind!==110)return;const i=Bp(r),o=wMe(i.body);return o&&!o.expression.arguments.some(s=>Fr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function wMe(e){return Zc(e)&&yS(e.expression)?e:ea(e)?void 0:Uo(e,wMe)}var S$,_fe,IZe=I({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){si(),Ia(),S$="classSuperMustPrecedeThisAccess",_fe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Ta({errorCodes:_fe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=kMe(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,l=_r.ChangeTracker.with(e,u=>LMe(u,t,o,s));return[la(S$,l,f.Make_super_call_the_first_statement_in_the_constructor,S$,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[S$],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return bs(e,_fe,(i,o)=>{const s=kMe(o.file,o.start);if(!s)return;const{constructor:l,superCall:u}=s;Am(r,as(l.parent))&&LMe(i,t,l,u)})}})}});function OMe(e,t){const r=po(e,t);return N.assert(Ml(r.parent),"token should be at the constructor declaration"),r.parent}function WMe(e,t,r){const i=w.createExpressionStatement(w.createCallExpression(w.createSuper(),void 0,et));e.insertNodeAtConstructorStart(t,r,i)}var T$,hfe,xZe=I({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){si(),Ia(),T$="constructorForDerivedNeedSuperCall",hfe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],Ta({errorCodes:hfe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=OMe(t,r.start),o=_r.ChangeTracker.with(e,s=>WMe(s,t,i));return[la(T$,o,f.Add_missing_super_call,T$,f.Add_all_missing_super_calls)]},fixIds:[T$],getAllCodeActions:e=>bs(e,hfe,(t,r)=>WMe(t,e.sourceFile,OMe(r.file,r.start)))})}});function FMe(e,t){Yfe(e,t,"jsx",w.createStringLiteral("react"))}var gfe,vfe,RZe=I({"src/services/codefixes/fixEnableJsxFlag.ts"(){si(),Ia(),gfe="fixEnableJsxFlag",vfe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Ta({errorCodes:vfe,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=_r.ChangeTracker.with(t,o=>FMe(o,r));return[n_(gfe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[gfe],getAllCodeActions:e=>bs(e,vfe,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&FMe(t,r)})})}});function zMe(e,t,r){const i=In(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=In(i.relatedInformation,l=>l.code===f.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;const s=Qfe(o.file,vu(o.start,o.length));if(s!==void 0&&yt(s)&&mr(s.parent))return{suggestion:DZe(o.messageText),expression:s.parent,arg:s}}function BMe(e,t,r,i){const o=w.createCallExpression(w.createPropertyAccessExpression(w.createIdentifier("Number"),w.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?w.createPrefixUnaryExpression(54,o):o)}function DZe(e){const[,t]=O_(e,`
`,0).match(/'(.*)'/)||[];return t}var A$,yfe,NZe=I({"src/services/codefixes/fixNaNEquality.ts"(){si(),Ia(),A$="fixNaNEquality",yfe=[f.This_condition_will_always_return_0.code],Ta({errorCodes:yfe,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=zMe(i,t,r);if(o===void 0)return;const{suggestion:s,expression:l,arg:u}=o,p=_r.ChangeTracker.with(e,h=>BMe(h,t,u,l));return[la(A$,p,[f.Use_0,s],A$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[A$],getAllCodeActions:e=>bs(e,yfe,(t,r)=>{const i=zMe(e.program,r.file,vu(r.start,r.length));i&&BMe(t,r.file,i.arg,i.expression)})})}}),CZe=I({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){si(),Ia(),Ta({errorCodes:[f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const o=[],s=wu(r);if(s>=5&&s<99){const h=_r.ChangeTracker.with(t,m=>{Yfe(m,i,"module",w.createStringLiteral("esnext"))});o.push(n_("fixModuleOption",h,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=os(r);if(u<4||u>99){const h=_r.ChangeTracker.with(t,m=>{if(!EC(i))return;const T=[["target",w.createStringLiteral("es2017")]];s===1&&T.push(["module",w.createStringLiteral("commonjs")]),Xfe(m,i,T)});o.push(n_("fixTargetOption",h,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function GMe(e,t,r){e.replaceNode(t,r,w.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function VMe(e,t){return oa(po(e,t).parent,np)}var I$,bfe,PZe=I({"src/services/codefixes/fixPropertyAssignment.ts"(){si(),Ia(),I$="fixPropertyAssignment",bfe=[f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],Ta({errorCodes:bfe,fixIds:[I$],getCodeActions(e){const{sourceFile:t,span:r}=e,i=VMe(t,r.start),o=_r.ChangeTracker.with(e,s=>GMe(s,e.sourceFile,i));return[la(I$,o,[f.Change_0_to_1,"=",":"],I$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>bs(e,bfe,(t,r)=>GMe(t,r.file,VMe(r.file,r.start)))})}});function jMe(e,t){const r=po(e,t),i=au(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function UMe(e,t,r,i){if(e.replaceNode(t,r,w.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},w.createToken(28));const l=t.text;let u=o.end;for(;u<l.length&&E_(l.charCodeAt(u));)u++;e.deleteRange(t,{pos:o.getStart(),end:u})}}var x$,Efe,MZe=I({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){si(),Ia(),x$="extendsInterfaceBecomesImplements",Efe=[f.Cannot_extend_an_interface_0_Did_you_mean_implements.code],Ta({errorCodes:Efe,getCodeActions(e){const{sourceFile:t}=e,r=jMe(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:o}=r,s=_r.ChangeTracker.with(e,l=>UMe(l,t,i,o));return[la(x$,s,f.Change_extends_to_implements,x$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[x$],getAllCodeActions:e=>bs(e,Efe,(t,r)=>{const i=jMe(r.file,r.start);i&&UMe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function HMe(e,t,r){const i=po(e,t);if(Ve(i)||qi(i))return{node:i,className:r===Sfe?au(i).name.text:void 0}}function qMe(e,t,{node:r,className:i}){Sp(r),e.replaceNode(t,r,w.createPropertyAccessExpression(i?w.createIdentifier(i):w.createThis(),r))}var R$,Sfe,Tfe,LZe=I({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){si(),Ia(),R$="forgottenThisPropertyAccess",Sfe=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Tfe=[f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Sfe],Ta({errorCodes:Tfe,getCodeActions(e){const{sourceFile:t}=e,r=HMe(t,e.span.start,e.errorCode);if(!r)return;const i=_r.ChangeTracker.with(e,o=>qMe(o,t,r));return[la(R$,i,[f.Add_0_to_unresolved_variable,r.className||"this"],R$,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[R$],getAllCodeActions:e=>bs(e,Tfe,(t,r)=>{const i=HMe(r.file,r.start,r.code);i&&qMe(t,e.sourceFile,i)})})}});function kZe(e){return Is(xfe,e)}function Afe(e,t,r,i,o){const s=r.getText()[i];if(!kZe(s))return;const l=o?xfe[s]:`{${cM(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var D$,uz,Ife,xfe,wZe=I({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){si(),Ia(),D$="fixInvalidJsxCharacters_expression",uz="fixInvalidJsxCharacters_htmlEntity",Ife=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],Ta({errorCodes:Ife,fixIds:[D$,uz],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=_r.ChangeTracker.with(e,l=>Afe(l,r,t,i.start,!1)),s=_r.ChangeTracker.with(e,l=>Afe(l,r,t,i.start,!0));return[la(D$,o,f.Wrap_invalid_character_in_an_expression_container,D$,f.Wrap_all_invalid_characters_in_an_expression_container),la(uz,s,f.Convert_invalid_character_to_its_html_entity_code,uz,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return bs(e,Ife,(t,r)=>Afe(t,e.preferences,r.file,r.start,e.fixId===uz))}}),xfe={">":"&gt;","}":"&rbrace;"}}});function OZe(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=_r.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return la(dz,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],dz,f.Delete_all_unused_param_tags)}function WZe(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Ne(i.parameters))return;const s=e.sourceFile,l=a0(i),u=new Set;for(const y of l)e_(y)&&Ve(y.name)&&u.add(y.name.escapedText);const p=Ht(i.parameters,y=>Ve(y.name)&&!u.has(y.name.escapedText)?y.name.getText(s):void 0);if(p===void 0)return;const h=w.updateJSDocParameterTag(o,o.tagName,w.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),m=_r.ChangeTracker.with(e,y=>y.replaceJSDocComment(s,r,Wt(l,T=>T===o?h:T)));return n_(Rfe,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function JMe(e,t){const r=po(e,t);if(r.parent&&e_(r.parent)&&Ve(r.parent.name)){const i=r.parent,o=AS(i),s=d0(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var dz,Rfe,Dfe,FZe=I({"src/services/codefixes/fixUnmatchedParameter.ts"(){si(),Ia(),dz="deleteUnmatchedParameter",Rfe="renameUnmatchedParameter",Dfe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Ta({fixIds:[dz,Rfe],errorCodes:Dfe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=JMe(r,i.start);if(s)return Rn(o,OZe(t,s)),Rn(o,WZe(t,s)),o},getAllCodeActions:function(t){const r=new Map;return LD(_r.ChangeTracker.with(t,i=>{kD(t,Dfe,({file:o,start:s})=>{const l=JMe(o,s);l&&r.set(l.signature,Rn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===dz){const l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}})}});function zZe(e,t,r){const i=ri(po(e,r),Ve);if(!i||i.parent.kind!==183)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return In((s==null?void 0:s.declarations)||et,Jm(bh,tp,eu))}function BZe(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}const o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;const s=i.getTypeChecker();r3(o,u=>{if(bu(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function GZe(e,t,r,i){RI.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var N$,KMe,VZe=I({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){si(),Ia(),N$="fixUnreferenceableDecoratorMetadata",KMe=[f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Ta({errorCodes:KMe,getCodeActions:e=>{const t=zZe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,s=>t.kind===276&&GZe(s,e.sourceFile,t,e.program)),i=_r.ChangeTracker.with(e,s=>BZe(s,e.sourceFile,t,e.program));let o;return r.length&&(o=Rn(o,n_(N$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Rn(o,n_(N$,i,f.Use_import_type))),o},fixIds:[N$]})}});function XMe(e,t,r){e.replaceNode(t,r.parent,w.createKeywordTypeNode(159))}function jO(e,t){return la(UO,e,t,M$,f.Delete_all_unused_declarations)}function YMe(e,t,r){e.delete(t,N.checkDefined(oa(r.parent,sj).typeParameters,"The type parameter to delete should exist"))}function Nfe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function $Me(e){return e.kind===102?ri(e.parent,Mc):void 0}function QMe(e,t){return Vc(t.parent)&&Ua(t.parent.getChildren(e))===t}function ZMe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function jZe(e,t,r){Xe(r.elements,i=>e.delete(t,i))}function UZe(e,t,r,{parent:i}){if(Oi(i)&&i.initializer&&NE(i.initializer))if(Vc(i.parent)&&Ne(i.parent.declarations)>1){const o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:Xv(e.host,e.formatContext.options)+r.text.slice(l5(r.text,s-1),s),suffix:hO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function e2e(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=oa(i.parent,kS).typeParameter.name),Ve(i)&&HZe(i)&&(e.replaceNode(r,i,w.createIdentifier(`_${i.text}`)),Ao(i.parent)&&qx(i.parent).forEach(o=>{Ve(o.name)&&e.replaceNode(r,o.name,w.createIdentifier(`_${o.name.text}`))})))}function HZe(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function C$(e,t,r,i,o,s,l,u){qZe(t,r,e,i,o,s,l,u),Ve(t)&&Ws.Core.eachSymbolReferenceInFile(t,i,e,p=>{Fr(p.parent)&&p.parent.name===p&&(p=p.parent),!u&&YZe(p)&&r.delete(e,p.parent.parent)})}function qZe(e,t,r,i,o,s,l,u){const{parent:p}=e;if(Ao(p))JZe(t,r,p,i,o,s,l,u);else if(!(u&&Ve(e)&&Ws.Core.isSymbolReferencedInFile(e,i,r))){const h=bh(p)?e:Za(p)?p.parent:p;N.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function JZe(e,t,r,i,o,s,l,u=!1){if(KZe(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!Ve(r.name)||Ws.Core.isSymbolReferencedInFile(r.name,i,t)))for(const p of r.modifiers)Aa(p)&&e.deleteModifier(t,p);else!r.initializer&&t2e(r,i,o)&&e.delete(t,r)}function t2e(e,t,r){const i=e.parent.parameters.indexOf(e);return!Ws.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function KZe(e,t,r,i,o,s,l){const{parent:u}=r;switch(u.kind){case 174:case 176:const p=u.parameters.indexOf(r),h=Hl(u)?u.name:u,m=Ws.Core.getReferencedSymbolsForNode(u.pos,h,o,i,s);if(m){for(const y of m)for(const T of y.references)if(T.kind===Ws.EntryKind.Node){const A=fP(T.node)&&sa(T.node.parent)&&T.node.parent.arguments.length>p,R=Fr(T.node.parent)&&fP(T.node.parent.expression)&&sa(T.node.parent.parent)&&T.node.parent.parent.arguments.length>p,M=(Hl(T.node.parent)||vh(T.node.parent))&&T.node.parent!==r.parent&&T.node.parent.parameters.length>p;if(A||R||M)return!1}}return!0;case 262:return u.name&&XZe(e,t,u.name)?n2e(u,r,l):!0;case 218:case 219:return n2e(u,r,l);case 178:return!1;case 177:return!0;default:return N.failBadSyntaxKind(u)}}function XZe(e,t,r){return!!Ws.Core.eachSymbolReferenceInFile(r,e,t,i=>Ve(i)&&sa(i.parent)&&i.parent.arguments.includes(i))}function n2e(e,t,r){const i=e.parameters,o=i.indexOf(t);return N.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Ve(s.name)&&!s.symbol.isReferenced):o===i.length-1}function YZe(e){return(mr(e.parent)&&e.parent.left===e||(sH(e.parent)||Xy(e.parent))&&e.parent.operand===e)&&Zc(e.parent.parent)}var UO,P$,M$,pz,L$,Cfe,$Ze=I({"src/services/codefixes/fixUnusedIdentifier.ts"(){si(),Ia(),UO="unusedIdentifier",P$="unusedIdentifier_prefix",M$="unusedIdentifier_delete",pz="unusedIdentifier_deleteImports",L$="unusedIdentifier_infer",Cfe=[f._0_is_declared_but_its_value_is_never_read.code,f._0_is_declared_but_never_used.code,f.Property_0_is_declared_but_its_value_is_never_read.code,f.All_imports_in_import_declaration_are_unused.code,f.All_destructured_elements_are_unused.code,f.All_variables_are_unused.code,f.All_type_parameters_are_unused.code],Ta({errorCodes:Cfe,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=po(r,e.span.start);if(om(u))return[jO(_r.ChangeTracker.with(e,y=>y.delete(r,u)),f.Remove_template_tag)];if(u.kind===30){const y=_r.ChangeTracker.with(e,T=>YMe(T,r,u));return[jO(y,f.Remove_type_parameters)]}const p=$Me(u);if(p){const y=_r.ChangeTracker.with(e,T=>T.delete(r,p));return[la(UO,y,[f.Remove_import_from_0,eoe(p)],pz,f.Delete_all_unused_imports)]}else if(Nfe(u)){const y=_r.ChangeTracker.with(e,T=>C$(r,u,T,s,l,i,o,!1));if(y.length)return[la(UO,y,[f.Remove_unused_declaration_for_Colon_0,u.getText(r)],pz,f.Delete_all_unused_imports)]}if(im(u.parent)||YE(u.parent)){if(Ao(u.parent.parent)){const y=u.parent.elements,T=[y.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,Wt(y,A=>A.getText(r)).join(", ")];return[jO(_r.ChangeTracker.with(e,A=>jZe(A,r,u.parent)),T)]}return[jO(_r.ChangeTracker.with(e,y=>UZe(e,y,r,u.parent)),f.Remove_unused_destructuring_declaration)]}if(QMe(r,u))return[jO(_r.ChangeTracker.with(e,y=>ZMe(y,r,u.parent)),f.Remove_variable_statement)];const h=[];if(u.kind===140){const y=_r.ChangeTracker.with(e,A=>XMe(A,r,u)),T=oa(u.parent,kS).typeParameter.name.text;h.push(la(UO,y,[f.Replace_infer_0_with_unknown,T],L$,f.Replace_all_unused_infer_with_unknown))}else{const y=_r.ChangeTracker.with(e,T=>C$(r,u,T,s,l,i,o,!1));if(y.length){const T=Za(u.parent)?u.parent:u;h.push(jO(y,[f.Remove_unused_declaration_for_Colon_0,T.getText(r)]))}}const m=_r.ChangeTracker.with(e,y=>e2e(y,t,r,u));return m.length&&h.push(la(UO,m,[f.Prefix_0_with_an_underscore,u.getText(r)],P$,f.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[P$,M$,pz,L$],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return bs(e,Cfe,(l,u)=>{const p=po(t,u.start);switch(e.fixId){case P$:e2e(l,u.code,t,p);break;case pz:{const h=$Me(p);h?l.delete(t,h):Nfe(p)&&C$(t,p,l,o,s,r,i,!0);break}case M$:{if(p.kind===140||Nfe(p))break;if(om(p))l.delete(t,p);else if(p.kind===30)YMe(l,t,p);else if(im(p.parent)){if(p.parent.parent.initializer)break;(!Ao(p.parent.parent)||t2e(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(YE(p.parent.parent)&&p.parent.parent.parent.initializer)break;QMe(t,p)?ZMe(l,t,p.parent):C$(t,p,l,o,s,r,i,!0)}break}case L$:p.kind===140&&XMe(l,t,p);break;default:N.fail(JSON.stringify(e.fixId))}})}})}});function r2e(e,t,r,i,o){const s=po(t,r),l=Vn(s,Hi);if(l.getStart(t)!==s.getStart(t)){const p=JSON.stringify({statementKind:N.formatSyntaxKind(l.kind),tokenKind:N.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});N.fail("Token and statement should start at the same point. "+p)}const u=(Ko(l.parent)?l.parent:l).parent;if(!Ko(l.parent)||l===Ua(l.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(Ko(l.parent))break;e.replaceNode(t,l,w.createBlock(et));return}case 247:case 248:e.delete(t,u);return}if(Ko(l.parent)){const p=r+i,h=N.checkDefined(QZe(hU(l.parent.statements,l),m=>m.pos<p),"Some statement should be last");e.deleteNodeRange(t,l,h)}else e.delete(t,l)}function QZe(e,t){let r;for(const i of e){if(!t(i))break;r=i}return r}var k$,Pfe,ZZe=I({"src/services/codefixes/fixUnreachableCode.ts"(){si(),Ia(),k$="fixUnreachableCode",Pfe=[f.Unreachable_code_detected.code],Ta({errorCodes:Pfe,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const r=_r.ChangeTracker.with(e,i=>r2e(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[la(k$,r,f.Remove_unreachable_code,k$,f.Remove_all_unreachable_code)]},fixIds:[k$],getAllCodeActions:e=>bs(e,Pfe,(t,r)=>r2e(t,r.file,r.start,r.length,r.code))})}});function i2e(e,t,r){const i=po(t,r),o=oa(i.parent,ZE),s=i.getStart(t),l=o.statement.getStart(t),u=If(s,l,t)?l:Pa(t.text,vs(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var w$,Mfe,eet=I({"src/services/codefixes/fixUnusedLabel.ts"(){si(),Ia(),w$="fixUnusedLabel",Mfe=[f.Unused_label.code],Ta({errorCodes:Mfe,getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>i2e(r,e.sourceFile,e.span.start));return[la(w$,t,f.Remove_unused_label,w$,f.Remove_all_unused_labels)]},fixIds:[w$],getAllCodeActions:e=>bs(e,Mfe,(t,r)=>i2e(t,r.file,r.start))})}});function o2e(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function a2e(e,t,r){const i=Vn(po(e,t),tet),o=i&&i.type;return o&&{typeNode:o,type:net(r,o)}}function tet(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function net(e,t){if(HR(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Rn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Lfe,O$,kfe,ret=I({"src/services/codefixes/fixJSDocTypes.ts"(){si(),Ia(),Lfe="fixJSDocTypes_plain",O$="fixJSDocTypes_nullable",kfe=[f.JSDoc_types_can_only_be_used_inside_documentation_comments.code,f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Ta({errorCodes:kfe,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=a2e(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,l=o.getText(t),u=[p(s,Lfe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&u.push(p(s,O$,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function p(h,m,y){const T=_r.ChangeTracker.with(e,A=>o2e(A,t,o,h,r));return la("jdocTypes",T,[f.Change_0_to_1,l,r.typeToString(h)],m,y)}},fixIds:[Lfe,O$],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return bs(e,kfe,(s,l)=>{const u=a2e(l.file,l.start,o);if(!u)return;const{typeNode:p,type:h}=u,m=p.kind===321&&t===O$?o.getNullableType(h,32768):h;o2e(s,i,p,m,o)})}})}});function s2e(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function l2e(e,t){const r=po(e,t);if(Fr(r.parent)){let i=r.parent;for(;Fr(i.parent);)i=i.parent;return i.name}if(Ve(r))return r}var W$,wfe,iet=I({"src/services/codefixes/fixMissingCallParentheses.ts"(){si(),Ia(),W$="fixMissingCallParentheses",wfe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Ta({errorCodes:wfe,fixIds:[W$],getCodeActions(e){const{sourceFile:t,span:r}=e,i=l2e(t,r.start);if(!i)return;const o=_r.ChangeTracker.with(e,s=>s2e(s,e.sourceFile,i));return[la(W$,o,f.Add_missing_call_parentheses,W$,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>bs(e,wfe,(t,r)=>{const i=l2e(r.file,r.start);i&&s2e(t,r.file,i)})})}});function oet(e){if(e.type)return e.type;if(Oi(e.parent)&&e.parent.type&&yh(e.parent.type))return e.parent.type.type}function c2e(e,t){const r=po(e,t),i=Bp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=vs(i,100,e);break;case 219:const s=i.typeParameters?30:21;o=vs(i,s,e)||Ua(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:oet(i)}}function u2e(e,t,{insertBefore:r,returnType:i}){if(i){const o=ML(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,w.createTypeReferenceNode("Promise",w.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var F$,Ofe,aet=I({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){si(),Ia(),F$="fixAwaitInSyncFunction",Ofe=[f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Ta({errorCodes:Ofe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=c2e(t,r.start);if(!i)return;const o=_r.ChangeTracker.with(e,s=>u2e(s,t,i));return[la(F$,o,f.Add_async_modifier_to_containing_function,F$,f.Add_all_missing_async_modifiers)]},fixIds:[F$],getAllCodeActions:function(t){const r=new Map;return bs(t,Ofe,(i,o)=>{const s=c2e(o.file,o.start);!s||!Am(r,as(s.insertBefore))||u2e(i,t.sourceFile,s)})}})}});function d2e(e,t,r,i,o){let s,l;if(i===f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const u=o.program.getTypeChecker(),p=po(e,t).parent;N.assert(Cy(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");const h=p.parent;N.assert(di(h),"erroneous accessors should only be inside classes");const m=oh(eme(h,u));if(!m)return[];const y=Vi(nR(p.name)),T=u.getPropertyOfType(u.getTypeAtLocation(m),y);if(!T||!T.valueDeclaration)return[];s=T.valueDeclaration.pos,l=T.valueDeclaration.end,e=Un(T.valueDeclaration)}else N.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return x2e(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Wfe,z$,set=I({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){si(),Ia(),Wfe=[f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],z$="fixPropertyOverrideAccessor",Ta({errorCodes:Wfe,getCodeActions(e){const t=d2e(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[la(z$,t,f.Generate_get_and_set_accessors,z$,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[z$],getAllCodeActions:e=>bs(e,Wfe,(t,r)=>{const i=d2e(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})})}});function cet(e,t){switch(e){case f.Parameter_0_implicitly_has_an_1_type.code:case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return vp(Bp(t))?f.Infer_type_of_0_from_usage:f.Infer_parameter_types_from_usage;case f.Rest_parameter_0_implicitly_has_an_any_type.code:case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Infer_parameter_types_from_usage;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return f.Infer_this_type_of_0_from_usage;default:return f.Infer_type_of_0_from_usage}}function uet(e){switch(e){case f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_an_1_type.code;case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Parameter_0_implicitly_has_an_1_type.code;case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Rest_parameter_0_implicitly_has_an_any_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Member_0_implicitly_has_an_1_type.code}return e}function p2e(e,t,r,i,o,s,l,u,p){if(!pC(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:h}=r,m=CI(t,o,p,u);switch(i=uet(i),i){case f.Member_0_implicitly_has_an_1_type.code:case f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Oi(h)&&l(h)||qo(h)||gp(h))return f2e(e,m,t,h,o,u,s),m.writeFixes(e),h;if(Fr(h)){const A=HO(h.name,o,s),R=uM(A,h,o,u);if(R){const M=w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,oa(h.parent.parent,Zc),[M])}return m.writeFixes(e),h}return;case f.Variable_0_implicitly_has_an_1_type.code:{const A=o.getTypeChecker().getSymbolAtLocation(r);return A&&A.valueDeclaration&&Oi(A.valueDeclaration)&&l(A.valueDeclaration)?(f2e(e,m,Un(A.valueDeclaration),A.valueDeclaration,o,u,s),m.writeFixes(e),A.valueDeclaration):void 0}}const y=Bp(r);if(y===void 0)return;let T;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(vp(y)){m2e(e,m,t,y,o,u,s),T=y;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(y)){const A=oa(h,Ao);det(e,m,t,A,y,o,u,s),T=A}break;case f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:tf(y)&&Ve(y.name)&&(B$(e,m,t,y,HO(y.name,o,s),o,u),T=y);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:vp(y)&&(m2e(e,m,t,y,o,u,s),T=y);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:_r.isThisTypeAnnotatable(y)&&l(y)&&(pet(e,t,y,o,u,s),T=y);break;default:return N.fail(String(i))}return m.writeFixes(e),T}function f2e(e,t,r,i,o,s,l){Ve(i.name)&&B$(e,t,r,i,HO(i.name,o,l),o,s)}function det(e,t,r,i,o,s,l,u){if(!Ve(i.name))return;const p=_et(o,r,s,u);if(N.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),lr(o))_2e(e,r,p,s,l);else{const h=Gs(o)&&!vs(o,21,r);h&&e.insertNodeBefore(r,Ua(o.parameters),w.createToken(21));for(const{declaration:m,type:y}of p)m&&!m.type&&!m.initializer&&B$(e,t,r,m,y,s,l);h&&e.insertNodeAfter(r,Xa(o.parameters),w.createToken(22))}}function pet(e,t,r,i,o,s){const l=h2e(r,t,i,s);if(!l||!l.length)return;const u=zfe(i,l,s).thisParameter(),p=uM(u,r,i,o);p&&(lr(r)?fet(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function fet(e,t,r,i){e.addJSDocTags(t,r,[w.createJSDocThisTag(void 0,w.createJSDocTypeExpression(i))])}function m2e(e,t,r,i,o,s,l){const u=Kc(i.parameters);if(u&&Ve(i.name)&&Ve(u.name)){let p=HO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=HO(u.name,o,l)),lr(i)?_2e(e,r,[{declaration:u,type:p}],o,s):B$(e,t,r,u,p,o,s)}}function B$(e,t,r,i,o,s,l){const u=uM(o,i,s,l);if(u)if(lr(r)&&i.kind!==171){const p=Oi(i)?ri(i.parent.parent,Ll):i;if(!p)return;const h=w.createJSDocTypeExpression(u),m=tf(i)?w.createJSDocReturnTag(void 0,h,void 0):w.createJSDocTypeTag(void 0,h,void 0);e.addJSDocTags(r,p,[m])}else met(u,i,r,e,t,os(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function met(e,t,r,i,o,s){const l=MI(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(Xe(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function _2e(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const l=eo(r,u=>{const p=u.declaration;if(p.initializer||o0(p)||!Ve(p.name))return;const h=u.type&&uM(u.type,p,i,o);if(h){const m=w.cloneNode(p.name);return pr(m,7168),{name:w.cloneNode(p.name),param:p,isOptional:!!u.isOptional,typeNode:h}}});if(l.length)if(Gs(s)||Os(s)){const u=Gs(s)&&!vs(s,21,t);u&&e.insertNodeBefore(t,Ua(s.parameters),w.createToken(21)),Xe(l,({typeNode:p,param:h})=>{const m=w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(p)),y=w.createJSDocComment(void 0,[m]);e.insertNodeAt(t,h.getStart(t),y,{suffix:" "})}),u&&e.insertNodeAfter(t,Xa(s.parameters),w.createToken(22))}else{const u=Wt(l,({name:p,typeNode:h,isOptional:m})=>w.createJSDocParameterTag(void 0,p,!!m,w.createJSDocTypeExpression(h),!1,void 0));e.addJSDocTags(t,s,u)}}function Ffe(e,t,r){return eo(Ws.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Ws.EntryKind.Span?ri(i.node,Ve):void 0)}function HO(e,t,r){const i=Ffe(e,t,r);return zfe(t,i,r).single()}function _et(e,t,r,i){const o=h2e(e,t,r,i);return o&&zfe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Ve(s.name)?HO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function h2e(e,t,r,i){let o;switch(e.kind){case 176:o=vs(e,137,t);break;case 219:case 218:const s=e.parent;o=(Oi(s)||qo(s))&&Ve(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return Ffe(o,r,i)}function zfe(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:De=>i.createArrayType(De),Promise:De=>i.createPromiseType(De)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:p,parameters:h,thisParameter:m};function l(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function u(De){const Me=new Map;for(const At of De)At.properties&&At.properties.forEach((Se,je)=>{Me.has(je)||Me.set(je,[]),Me.get(je).push(Se)});const We=new Map;return Me.forEach((At,Se)=>{We.set(Se,u(At))}),{isNumber:De.some(At=>At.isNumber),isString:De.some(At=>At.isString),isNumberOrString:De.some(At=>At.isNumberOrString),candidateTypes:Do(De,At=>At.candidateTypes),properties:We,calls:Do(De,At=>At.calls),constructs:Do(De,At=>At.constructs),numberIndex:Xe(De,At=>At.numberIndex),stringIndex:Xe(De,At=>At.stringIndex),candidateThisTypes:Do(De,At=>At.candidateThisTypes),inferredTypes:void 0}}function p(){return he(y(t))}function h(De){if(t.length===0||!De.parameters)return;const Me=l();for(const At of t)r.throwIfCancellationRequested(),T(At,Me);const We=[...Me.constructs||[],...Me.calls||[]];return De.parameters.map((At,Se)=>{const je=[],ot=Xh(At);let Bt=!1;for(const $e of We)if($e.argumentTypes.length<=Se)Bt=lr(De),je.push(i.getUndefinedType());else if(ot)for(let It=Se;It<$e.argumentTypes.length;It++)je.push(i.getBaseTypeOfLiteralType($e.argumentTypes[It]));else je.push(i.getBaseTypeOfLiteralType($e.argumentTypes[Se]));if(Ve(At.name)){const $e=y(Ffe(At.name,e,r));je.push(...ot?eo($e,i.getElementTypeOfArrayType):$e)}const vt=he(je);return{type:ot?i.createArrayType(vt):vt,isOptional:Bt&&!ot,declaration:At}})}function m(){const De=l();for(const Me of t)r.throwIfCancellationRequested(),T(Me,De);return he(De.candidateThisTypes||et)}function y(De){const Me=l();for(const We of De)r.throwIfCancellationRequested(),T(We,Me);return Y(Me)}function T(De,Me){for(;zC(De);)De=De.parent;switch(De.parent.kind){case 244:R(De,Me);break;case 225:Me.isNumber=!0;break;case 224:M(De.parent,Me);break;case 226:C(De,De.parent,Me);break;case 296:case 297:O(De.parent,Me);break;case 213:case 214:De.parent.expression===De?U(De.parent,Me):A(De,Me);break;case 211:K(De.parent,Me);break;case 212:Q(De.parent,De,Me);break;case 303:case 304:V(De.parent,Me);break;case 172:se(De.parent,Me);break;case 260:{const{name:We,initializer:At}=De.parent;if(De===We){At&&Ue(Me,i.getTypeAtLocation(At));break}}default:return A(De,Me)}}function A(De,Me){Qh(De)&&Ue(Me,i.getContextualType(De))}function R(De,Me){Ue(Me,sa(De)?i.getVoidType():i.getAnyType())}function M(De,Me){switch(De.operator){case 46:case 47:case 41:case 55:Me.isNumber=!0;break;case 40:Me.isNumberOrString=!0;break}}function C(De,Me,We){switch(Me.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const At=i.getTypeAtLocation(Me.left===De?Me.right:Me.left);At.flags&1056?Ue(We,At):We.isNumber=!0;break;case 65:case 40:const Se=i.getTypeAtLocation(Me.left===De?Me.right:Me.left);Se.flags&1056?Ue(We,Se):Se.flags&296?We.isNumber=!0:Se.flags&402653316?We.isString=!0:Se.flags&1||(We.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:Ue(We,i.getTypeAtLocation(Me.left===De?Me.right:Me.left));break;case 103:De===Me.left&&(We.isString=!0);break;case 57:case 61:De===Me.left&&(De.parent.parent.kind===260||Pc(De.parent.parent,!0))&&Ue(We,i.getTypeAtLocation(Me.right));break}}function O(De,Me){Ue(Me,i.getTypeAtLocation(De.parent.parent.expression))}function U(De,Me){const We={argumentTypes:[],return_:l()};if(De.arguments)for(const At of De.arguments)We.argumentTypes.push(i.getTypeAtLocation(At));T(De,We.return_),De.kind===213?(Me.calls||(Me.calls=[])).push(We):(Me.constructs||(Me.constructs=[])).push(We)}function K(De,Me){const We=_l(De.name.text);Me.properties||(Me.properties=new Map);const At=Me.properties.get(We)||l();T(De,At),Me.properties.set(We,At)}function Q(De,Me,We){if(Me===De.argumentExpression){We.isNumberOrString=!0;return}else{const At=i.getTypeAtLocation(De.argumentExpression),Se=l();T(De,Se),At.flags&296?We.numberIndex=Se:We.stringIndex=Se}}function V(De,Me){const We=Oi(De.parent.parent)?De.parent.parent:De.parent;Ee(Me,i.getTypeAtLocation(We))}function se(De,Me){Ee(Me,i.getTypeAtLocation(De.parent))}function G(De,Me){const We=[];for(const At of De)for(const{high:Se,low:je}of Me)Se(At)&&(N.assert(!je(At),"Priority can't have both low and high"),We.push(je));return De.filter(At=>We.every(Se=>!Se(At)))}function ne(De){return he(Y(De))}function he(De){if(!De.length)return i.getAnyType();const Me=i.getUnionType([i.getStringType(),i.getNumberType()]);let At=G(De,[{high:je=>je===i.getStringType()||je===i.getNumberType(),low:je=>je===Me},{high:je=>!(je.flags&16385),low:je=>!!(je.flags&16385)},{high:je=>!(je.flags&114689)&&!(Wr(je)&16),low:je=>!!(Wr(je)&16)}]);const Se=At.filter(je=>Wr(je)&16);return Se.length&&(At=At.filter(je=>!(Wr(je)&16)),At.push(ye(Se))),i.getWidenedType(i.getUnionType(At.map(i.getBaseTypeOfLiteralType),2))}function ye(De){if(De.length===1)return De[0];const Me=[],We=[],At=[],Se=[];let je=!1,ot=!1;const Bt=$p();for(const It of De){for(const Mn of i.getPropertiesOfType(It))Bt.add(Mn.escapedName,Mn.valueDeclaration?i.getTypeOfSymbolAtLocation(Mn,Mn.valueDeclaration):i.getAnyType());Me.push(...i.getSignaturesOfType(It,0)),We.push(...i.getSignaturesOfType(It,1));const tn=i.getIndexInfoOfType(It,0);tn&&(At.push(tn.type),je=je||tn.isReadonly);const rn=i.getIndexInfoOfType(It,1);rn&&(Se.push(rn.type),ot=ot||rn.isReadonly)}const vt=Kte(Bt,(It,tn)=>{const rn=tn.length<De.length?16777216:0,Mn=i.createSymbol(4|rn,It);return Mn.links.type=i.getUnionType(tn),[It,Mn]}),$e=[];return At.length&&$e.push(i.createIndexInfo(i.getStringType(),i.getUnionType(At),je)),Se.length&&$e.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(Se),ot)),i.createAnonymousType(De[0].symbol,vt,Me,We,$e)}function Y(De){var Me,We,At;const Se=[];De.isNumber&&Se.push(i.getNumberType()),De.isString&&Se.push(i.getStringType()),De.isNumberOrString&&Se.push(i.getUnionType([i.getStringType(),i.getNumberType()])),De.numberIndex&&Se.push(i.createArrayType(ne(De.numberIndex))),((Me=De.properties)!=null&&Me.size||(We=De.constructs)!=null&&We.length||De.stringIndex)&&Se.push(X(De));const je=(De.candidateTypes||[]).map(Bt=>i.getBaseTypeOfLiteralType(Bt)),ot=(At=De.calls)!=null&&At.length?X(De):void 0;return ot&&je?Se.push(i.getUnionType([ot,...je],2)):(ot&&Se.push(ot),Ne(je)&&Se.push(...je)),Se.push(...oe(De)),Se}function X(De){const Me=new Map;De.properties&&De.properties.forEach((je,ot)=>{const Bt=i.createSymbol(4,ot);Bt.links.type=ne(je),Me.set(ot,Bt)});const We=De.calls?[Le(De.calls)]:[],At=De.constructs?[Le(De.constructs)]:[],Se=De.stringIndex?[i.createIndexInfo(i.getStringType(),ne(De.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Me,We,At,Se)}function oe(De){if(!De.properties||!De.properties.size)return[];const Me=s.filter(We=>pe(We,De));return 0<Me.length&&Me.length<3?Me.map(We=>Ce(We,De)):[]}function pe(De,Me){return Me.properties?!zc(Me.properties,(We,At)=>{const Se=i.getTypeOfPropertyOfType(De,At);return Se?We.calls?!i.getSignaturesOfType(Se,0).length||!i.isTypeAssignableTo(Se,ve(We.calls)):!i.isTypeAssignableTo(Se,ne(We)):!0}):!1}function Ce(De,Me){if(!(Wr(De)&4)||!Me.properties)return De;const We=De.target,At=oh(We.typeParameters);if(!At)return De;const Se=[];return Me.properties.forEach((je,ot)=>{const Bt=i.getTypeOfPropertyOfType(We,ot);N.assert(!!Bt,"generic should have all the properties of its reference."),Se.push(...de(Bt,ne(je),At))}),o[De.symbol.escapedName](he(Se))}function de(De,Me,We){if(De===We)return[Me];if(De.flags&3145728)return Do(De.types,je=>de(je,Me,We));if(Wr(De)&4&&Wr(Me)&4){const je=i.getTypeArguments(De),ot=i.getTypeArguments(Me),Bt=[];if(je&&ot)for(let vt=0;vt<je.length;vt++)ot[vt]&&Bt.push(...de(je[vt],ot[vt],We));return Bt}const At=i.getSignaturesOfType(De,0),Se=i.getSignaturesOfType(Me,0);return At.length===1&&Se.length===1?ie(At[0],Se[0],We):[]}function ie(De,Me,We){var At;const Se=[];for(let Bt=0;Bt<De.parameters.length;Bt++){const vt=De.parameters[Bt],$e=Me.parameters[Bt],It=De.declaration&&Xh(De.declaration.parameters[Bt]);if(!$e)break;let tn=vt.valueDeclaration?i.getTypeOfSymbolAtLocation(vt,vt.valueDeclaration):i.getAnyType();const rn=It&&i.getElementTypeOfArrayType(tn);rn&&(tn=rn);const Mn=((At=ri($e,ph))==null?void 0:At.links.type)||($e.valueDeclaration?i.getTypeOfSymbolAtLocation($e,$e.valueDeclaration):i.getAnyType());Se.push(...de(tn,Mn,We))}const je=i.getReturnTypeOfSignature(De),ot=i.getReturnTypeOfSignature(Me);return Se.push(...de(je,ot,We)),Se}function ve(De){return i.createAnonymousType(void 0,ca(),[Le(De)],et,et)}function Le(De){const Me=[],We=Math.max(...De.map(Se=>Se.argumentTypes.length));for(let Se=0;Se<We;Se++){const je=i.createSymbol(1,_l(`arg${Se}`));je.links.type=he(De.map(ot=>ot.argumentTypes[Se]||i.getUndefinedType())),De.some(ot=>ot.argumentTypes[Se]===void 0)&&(je.flags|=16777216),Me.push(je)}const At=ne(u(De.map(Se=>Se.return_)));return i.createSignature(void 0,void 0,void 0,Me,At,void 0,We,0)}function Ue(De,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(De.candidateTypes||(De.candidateTypes=[])).push(Me)}function Ee(De,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(De.candidateThisTypes||(De.candidateThisTypes=[])).push(Me)}}var G$,Bfe,het=I({"src/services/codefixes/inferFromUsage.ts"(){si(),Ia(),G$="inferFromUsage",Bfe=[f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,f.Variable_0_implicitly_has_an_1_type.code,f.Parameter_0_implicitly_has_an_1_type.code,f.Rest_parameter_0_implicitly_has_an_any_type.code,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,f.Member_0_implicitly_has_an_1_type.code,f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Ta({errorCodes:Bfe,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,p=po(t,i);let h;const m=_r.ChangeTracker.with(e,T=>{h=p2e(T,t,p,o,r,s,Iv,l,u)}),y=h&&Lo(h);return!y||m.length===0?void 0:[la(G$,m,[cet(o,p),fc(y)],G$,f.Infer_all_types_from_usage)]},fixIds:[G$],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=TI();return bs(e,Bfe,(u,p)=>{p2e(u,t,po(p.file,p.start),p.code,r,i,l,o,s)})}})}});function g2e(e,t,r){if(lr(e))return;const i=po(e,r),o=Vn(i,Bs),s=o==null?void 0:o.type;if(!s)return;const l=t.getTypeFromTypeNode(s),u=t.getAwaitedType(l)||t.getVoidType(),p=t.typeToTypeNode(u,s,void 0);if(p)return{returnTypeNode:s,returnType:l,promisedTypeNode:p,promisedType:u}}function v2e(e,t,r,i){e.replaceNode(t,r,w.createTypeReferenceNode("Promise",[i]))}var V$,Gfe,get=I({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){si(),Ia(),V$="fixReturnTypeInAsyncFunction",Gfe=[f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Ta({errorCodes:Gfe,fixIds:[V$],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=g2e(r,i.getTypeChecker(),o.start);if(!l)return;const{returnTypeNode:u,returnType:p,promisedTypeNode:h,promisedType:m}=l,y=_r.ChangeTracker.with(t,T=>v2e(T,r,u,h));return[la(V$,y,[f.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(m)],V$,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>bs(e,Gfe,(t,r)=>{const i=g2e(r.file,e.program.getTypeChecker(),r.start);i&&v2e(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function y2e(e,t,r,i){const{line:o}=ys(t,r);(!i||Xb(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Vfe,jfe,Ufe,vet=I({"src/services/codefixes/disableJsDiagnostics.ts"(){si(),Ia(),Vfe="disableJsDiagnostics",jfe="disableJsDiagnostics",Ufe=eo(Object.keys(f),e=>{const t=f[e];return t.category===1?t.code:void 0}),Ta({errorCodes:Ufe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!lr(r)||!gk(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":Xv(s,l.options),p=[n_(Vfe,[ECe(r.fileName,[aO(r.checkJsDirective?pc(r.checkJsDirective.pos,r.checkJsDirective.end):vu(0,0),`// @ts-nocheck${u}`)])],f.Disable_checking_for_this_file)];return _r.isValidLocationToAddComment(r,o.start)&&p.unshift(la(Vfe,_r.ChangeTracker.with(t,h=>y2e(h,r,o.start)),f.Ignore_this_error_message,jfe,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[jfe],getAllCodeActions:e=>{const t=new Set;return bs(e,Ufe,(r,i)=>{_r.isValidLocationToAddComment(i.file,i.start)&&y2e(r,i.file,i.start,t)})}})}});function Hfe(e,t,r,i,o,s,l){const u=e.symbol.members;for(const p of t)u.has(p.escapedName)||b2e(p,e,r,i,o,s,l,void 0)}function OD(e){return{trackSymbol:()=>!1,moduleResolverHost:KK(e.program,e.host)}}function b2e(e,t,r,i,o,s,l,u,p=3,h=!1){const m=e.getDeclarations(),y=Kc(m),T=i.program.getTypeChecker(),A=os(i.program.getCompilerOptions()),R=(y==null?void 0:y.kind)??171,M=oe(e,y),C=y?ud(y):0;let O=C&256;O|=C&1?1:C&4?4:0,y&&Wd(y)&&(O|=512);const U=ne(),K=T.getWidenedType(T.getTypeOfSymbolAtLocation(e,t)),Q=!!(e.flags&16777216),V=!!(t.flags&33554432)||h,se=lf(r,o);switch(R){case 171:case 172:const pe=se===0?268435456:void 0;let Ce=T.typeToTypeNode(K,t,pe,OD(i));if(s){const ie=MI(Ce,A);ie&&(Ce=ie.typeNode,WD(s,ie.symbols))}l(w.createPropertyDeclaration(U,y?ye(M):e.getName(),Q&&p&2?w.createToken(58):void 0,Ce,void 0));break;case 177:case 178:{N.assertIsDefined(m);let ie=T.typeToTypeNode(K,t,void 0,OD(i));const ve=NS(m,y),Le=ve.secondAccessor?[ve.firstAccessor,ve.secondAccessor]:[ve.firstAccessor];if(s){const Ue=MI(ie,A);Ue&&(ie=Ue.typeNode,WD(s,Ue.symbols))}for(const Ue of Le)if(tf(Ue))l(w.createGetAccessorDeclaration(U,ye(M),et,X(ie),Y(u,se,V)));else{N.assertNode(Ue,vp,"The counterpart to a getter should be a setter");const Ee=wC(Ue),De=Ee&&Ve(Ee.name)?Sr(Ee.name):void 0;l(w.createSetAccessorDeclaration(U,ye(M),Jfe(1,[De],[X(ie)],1,!1),Y(u,se,V)))}break}case 173:case 174:N.assertIsDefined(m);const de=K.isUnion()?Do(K.types,ie=>ie.getCallSignatures()):K.getCallSignatures();if(!bt(de))break;if(m.length===1){N.assert(de.length===1,"One declaration implies one signature");const ie=de[0];G(se,ie,U,ye(M),Y(u,se,V));break}for(const ie of de)G(se,ie,U,ye(M));if(!V)if(m.length>de.length){const ie=T.getSignatureFromDeclaration(m[m.length-1]);G(se,ie,U,ye(M),Y(u,se))}else N.assert(m.length===de.length,"Declarations and signatures should match count"),l(Eet(T,i,t,de,ye(M),Q&&!!(p&1),U,se,u));break}function G(pe,Ce,de,ie,ve){const Le=j$(174,i,pe,Ce,ve,ie,de,Q&&!!(p&1),t,s);Le&&l(Le)}function ne(){let pe;return O&&(pe=Px(pe,w.createModifiersFromModifierFlags(O))),he()&&(pe=Rn(pe,w.createToken(164))),pe&&w.createNodeArray(pe)}function he(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&jE(y))}function ye(pe){return Ve(pe)&&pe.escapedText==="constructor"?w.createComputedPropertyName(w.createStringLiteral(Sr(pe),se===0)):ll(pe,!1)}function Y(pe,Ce,de){return de?void 0:ll(pe,!1)||Kfe(Ce)}function X(pe){return ll(pe,!1)}function oe(pe,Ce){if(xl(pe)&262144){const de=pe.links.nameType;if(de&&tm(de))return w.createIdentifier(Vi(nm(de)))}return ll(Lo(Ce),!1)}}function j$(e,t,r,i,o,s,l,u,p,h){const m=t.program,y=m.getTypeChecker(),T=os(m.getCompilerOptions()),A=lr(p),R=524545|(r===0?268435456:0),M=y.signatureToSignatureDeclaration(i,e,p,R,OD(t));if(!M)return;let C=A?void 0:M.typeParameters,O=M.parameters,U=A?void 0:M.type;if(h){if(C){const se=Zo(C,G=>{let ne=G.constraint,he=G.default;if(ne){const ye=MI(ne,T);ye&&(ne=ye.typeNode,WD(h,ye.symbols))}if(he){const ye=MI(he,T);ye&&(he=ye.typeNode,WD(h,ye.symbols))}return w.updateTypeParameterDeclaration(G,G.modifiers,G.name,ne,he)});C!==se&&(C=dt(w.createNodeArray(se,C.hasTrailingComma),C))}const V=Zo(O,se=>{let G=A?void 0:se.type;if(G){const ne=MI(G,T);ne&&(G=ne.typeNode,WD(h,ne.symbols))}return w.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,A?void 0:se.questionToken,G,se.initializer)});if(O!==V&&(O=dt(w.createNodeArray(V,O.hasTrailingComma),O)),U){const se=MI(U,T);se&&(U=se.typeNode,WD(h,se.symbols))}}const K=u?w.createToken(58):void 0,Q=M.asteriskToken;if(Os(M))return w.updateFunctionExpression(M,l,M.asteriskToken,ri(s,Ve),C,O,U,o??M.body);if(Gs(M))return w.updateArrowFunction(M,l,C,O,U,M.equalsGreaterThanToken,o??M.body);if(Hl(M))return w.updateMethodDeclaration(M,l,Q,s??w.createIdentifier(""),K,C,O,U,o);if(Tc(M))return w.updateFunctionDeclaration(M,l,M.asteriskToken,ri(s,Ve),C,O,U,o??M.body)}function qfe(e,t,r,i,o,s,l){const u=lf(t.sourceFile,t.preferences),p=os(t.program.getCompilerOptions()),h=OD(t),m=t.program.getTypeChecker(),y=lr(l),{typeArguments:T,arguments:A,parent:R}=i,M=y?void 0:m.getContextualType(i),C=Wt(A,he=>Ve(he)?he.text:Fr(he)&&Ve(he.name)?he.name.text:void 0),O=y?[]:Wt(A,he=>m.getTypeAtLocation(he)),{argumentTypeNodes:U,argumentTypeParameters:K}=T2e(m,r,O,l,p,1,h),Q=s?w.createNodeArray(w.createModifiersFromModifierFlags(s)):void 0,V=HW(R)?w.createToken(42):void 0,se=y?void 0:yet(m,K,T),G=Jfe(A.length,C,U,void 0,y),ne=y||M===void 0?void 0:m.typeToTypeNode(M,l,void 0,h);switch(e){case 174:return w.createMethodDeclaration(Q,V,o,void 0,se,G,ne,Kfe(u));case 173:return w.createMethodSignature(Q,o,void 0,se,G,ne===void 0?w.createKeywordTypeNode(159):ne);case 262:return N.assert(typeof o=="string"||Ve(o),"Unexpected name"),w.createFunctionDeclaration(Q,V,o,se,G,ne,fz(f.Function_not_implemented.message,u));default:N.fail("Unexpected kind")}}function yet(e,t,r){const i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){const s=r.filter(u=>!t.some(p=>{var h;return e.getTypeAtLocation(u)===((h=p[1])==null?void 0:h.argumentType)})),l=i.size+s.length;for(let u=0;i.size<l;u+=1)i.add(E2e(u))}return zo(i.values(),s=>{var l;return w.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function E2e(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function U$(e,t,r,i,o,s,l){let u=e.typeToTypeNode(r,i,s,l);if(u&&ag(u)){const p=MI(u,o);p&&(WD(t,p.symbols),u=p.typeNode)}return ll(u)}function S2e(e){return e.isUnionOrIntersection()?e.types.some(S2e):e.flags&262144}function T2e(e,t,r,i,o,s,l){const u=[],p=new Map;for(let h=0;h<r.length;h+=1){const m=r[h];if(m.isUnionOrIntersection()&&m.types.some(S2e)){const M=E2e(h);u.push(w.createTypeReferenceNode(M)),p.set(M,void 0);continue}const y=e.getBaseTypeOfLiteralType(m),T=U$(e,t,y,i,o,s,l);if(!T)continue;u.push(T);const A=A2e(m),R=m.isTypeParameter()&&m.constraint&&!bet(m.constraint)?U$(e,t,m.constraint,i,o,s,l):void 0;A&&p.set(A,{argumentType:m,constraint:R})}return{argumentTypeNodes:u,argumentTypeParameters:zo(p.entries())}}function bet(e){return e.flags&524288&&e.objectFlags===16}function A2e(e){var t;if(e.flags&3145728)for(const r of e.types){const i=A2e(r);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function Jfe(e,t,r,i,o){const s=[],l=new Map;for(let u=0;u<e;u++){const p=(t==null?void 0:t[u])||`arg${u}`,h=l.get(p);l.set(p,(h||0)+1);const m=w.createParameterDeclaration(void 0,void 0,p+(h||""),i!==void 0&&u>=i?w.createToken(58):void 0,o?void 0:(r==null?void 0:r[u])||w.createKeywordTypeNode(159),void 0);s.push(m)}return s}function Eet(e,t,r,i,o,s,l,u,p){let h=i[0],m=i[0].minArgumentCount,y=!1;for(const M of i)m=Math.min(M.minArgumentCount,m),Yu(M)&&(y=!0),M.parameters.length>=h.parameters.length&&(!Yu(M)||Yu(h))&&(h=M);const T=h.parameters.length-(Yu(h)?1:0),A=h.parameters.map(M=>M.name),R=Jfe(T,A,void 0,m,!1);if(y){const M=w.createParameterDeclaration(void 0,w.createToken(26),A[T]||"rest",T>=m?w.createToken(58):void 0,w.createArrayTypeNode(w.createKeywordTypeNode(159)),void 0);R.push(M)}return Aet(l,o,s,void 0,R,Tet(i,e,t,r),u,p)}function Tet(e,t,r,i){if(Ne(e)){const o=t.getUnionType(Wt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,OD(r))}}function Aet(e,t,r,i,o,s,l,u){return w.createMethodDeclaration(e,void 0,t,r?w.createToken(58):void 0,i,o,s,u||Kfe(l))}function Kfe(e){return fz(f.Method_not_implemented.message,e)}function fz(e,t){return w.createBlock([w.createThrowStatement(w.createNewExpression(w.createIdentifier("Error"),void 0,[w.createStringLiteral(e,t===0)]))],!0)}function Xfe(e,t,r){const i=EC(t);if(!i)return;const o=$fe(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,H$("compilerOptions",w.createObjectLiteralExpression(r.map(([l,u])=>H$(l,u)),!0)));return}const s=o.initializer;if(La(s))for(const[l,u]of r){const p=$fe(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,H$(l,u)):e.replaceNode(t,p.initializer,u)}}function Yfe(e,t,r,i){Xfe(e,t,[[r,i]])}function H$(e,t){return w.createPropertyAssignment(w.createStringLiteral(e),t)}function $fe(e,t){return In(e.properties,r=>hc(r)&&!!r.name&&Na(r.name)&&r.name.text===t)}function MI(e,t){let r;const i=nt(e,o,ji);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(Oy(s)&&s.qualifier){const l=Gp(s.qualifier),u=y5(l.symbol,t),p=u!==l.text?I2e(s.qualifier,w.createIdentifier(u)):s.qualifier;r=Rn(r,l.symbol);const h=jn(s.typeArguments,o,ji);return w.createTypeReferenceNode(p,h)}return xn(s,o,void 0)}}function I2e(e,t){return e.kind===80?t:w.createQualifiedName(I2e(e.left,t),e.right)}function WD(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Qfe(e,t){const r=Kl(t);let i=po(e,t.start);for(;i.end<r;)i=i.parent;return i}var Zfe,Iet=I({"src/services/codefixes/helpers.ts"(){si(),Zfe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Zfe||{})}});function x2e(e,t,r,i,o,s){const l=N2e(e,t,r,i);if(!l||RI.isRefactorErrorInfo(l))return;const u=_r.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:h,fieldName:m,accessorName:y,originalName:T,type:A,container:R,declaration:M}=l;Sp(m),Sp(y),Sp(M),Sp(R);let C,O;if(di(R)){const K=ud(M);if(cd(e)){const Q=w.createModifiersFromModifierFlags(K);C=Q,O=Q}else C=w.createModifiersFromModifierFlags(Det(K)),O=w.createModifiersFromModifierFlags(Net(K));qS(M)&&(O=So(Ry(M),O))}ket(u,e,M,A,m,O);const U=Cet(m,y,A,C,p,R);if(Sp(U),C2e(u,e,U,M,R),h){const K=ng(R);K&&wet(u,e,K,m.text,T)}else{const K=Pet(m,y,A,C,p,R);Sp(K),C2e(u,e,K,M,R)}return u.getChanges()}function xet(e){return Ve(e)||Na(e)}function Ret(e){return pp(e,e.parent)||qo(e)||hc(e)}function R2e(e,t){return Ve(t)?w.createIdentifier(e):w.createStringLiteral(e)}function D2e(e,t,r){const i=t?r.name:w.createThis();return Ve(e)?w.createPropertyAccessExpression(i,e):w.createElementAccessExpression(i,w.createStringLiteralFromNode(e))}function Det(e){return e&=-9,e&=-3,e&4||(e|=1),e}function Net(e){return e&=-2,e&=-5,e|=2,e}function N2e(e,t,r,i,o=!0){const s=po(e,r),l=r===i&&o,u=Vn(s.parent,Ret),p=271;if(!u||!(V7(u.name,e,r,i)||l))return{error:Wo(f.Could_not_find_property_for_which_to_generate_accessor)};if(!xet(u.name))return{error:Wo(f.Name_is_not_valid)};if((ud(u)&98303|p)!==p)return{error:Wo(f.Can_only_convert_property_with_modifier)};const h=u.name.text,m=yX(h),y=R2e(m?h:rT(`_${h}`,e),u.name),T=R2e(m?rT(h.substring(1),e):h,u.name);return{isStatic:mc(u),isReadonly:OC(u),type:Oet(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:y,accessorName:T,renameAccessor:m}}function Cet(e,t,r,i,o,s){return w.createGetAccessorDeclaration(i,t,[],r,w.createBlock([w.createReturnStatement(D2e(e,o,s))],!0))}function Pet(e,t,r,i,o,s){return w.createSetAccessorDeclaration(i,t,[w.createParameterDeclaration(void 0,void 0,w.createIdentifier("value"),void 0,r)],w.createBlock([w.createExpressionStatement(w.createAssignment(D2e(e,o,s),w.createIdentifier("value")))],!0))}function Met(e,t,r,i,o,s){const l=w.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function Let(e,t,r,i){let o=w.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=w.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function ket(e,t,r,i,o,s){qo(r)?Met(e,t,r,i,o,s):hc(r)?Let(e,t,r,o):e.replaceNode(t,r,w.updateParameterDeclaration(r,s,r.dotDotDotToken,oa(o,Ve),r.questionToken,r.type,r.initializer))}function C2e(e,t,r,i,o){pp(i,i.parent)?e.insertMemberAtStart(t,o,r):hc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function wet(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){$s(l)&&l.expression.kind===110&&Na(l.argumentExpression)&&l.argumentExpression.text===o&&WA(l)&&e.replaceNode(t,l.argumentExpression,w.createStringLiteral(i)),Fr(l)&&l.expression.kind===110&&l.name.text===o&&WA(l)&&e.replaceNode(t,l.name,w.createIdentifier(i)),!ea(l)&&!di(l)&&l.forEachChild(s)})}function Oet(e,t){const r=Nie(e);if(qo(e)&&r&&e.questionToken){const i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){const s=qy(r)?r.types:[r];return w.createUnionTypeNode([...s,w.createKeywordTypeNode(157)])}}return r}function eme(e,t){const r=[];for(;e;){const i=FE(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&In(s.declarations,di);if(!l)break;r.push(l),e=l}return r}var Wet=I({"src/services/codefixes/generateAccessors.ts"(){si()}});function Fet(e,t){const r=Un(t),i=mR(t),o=e.program.getCompilerOptions(),s=[];return s.push(P2e(e,r,t,Kv(i.name,void 0,t.moduleSpecifier,lf(r,e.preferences)))),wu(o)===1&&s.push(P2e(e,r,t,w.createImportEqualsDeclaration(void 0,!1,i.name,w.createExternalModuleReference(t.moduleSpecifier)))),s}function P2e(e,t,r,i){const o=_r.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return n_(tme,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function zet(e){const t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?213:214,i=Vn(po(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return M2e(e,o)}function Bet(e){const t=e.sourceFile,r=Vn(po(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?M2e(e,r):[]}function M2e(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&ph(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(zp(o)||qr(i,Fet(e,o)),yt(t)&&!(ad(t.parent)&&t.parent.name===t)){const s=e.sourceFile,l=_r.ChangeTracker.with(e,u=>u.replaceNode(s,t,w.createPropertyAccessExpression(t,"default"),{}));i.push(n_(tme,l,f.Use_synthetic_default_member))}return i}var tme,Get=I({"src/services/codefixes/fixInvalidImportSyntax.ts"(){si(),Ia(),tme="invalidImportSyntax",Ta({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:zet}),Ta({errorCodes:[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_does_not_satisfy_the_constraint_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_predicate_0_is_not_assignable_to_1.code,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,f._0_index_type_1_is_not_assignable_to_2_index_type_3.code,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:Bet})}});function L2e(e,t){const r=po(e,t);if(Ve(r)&&qo(r.parent)){const i=yu(r.parent);if(i)return{type:i,prop:r.parent,isJs:lr(r.parent)}}}function Vet(e,t){if(t.isJs)return;const r=_r.ChangeTracker.with(e,i=>k2e(i,e.sourceFile,t.prop));return la(q$,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],J$,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function k2e(e,t,r){Sp(r);const i=w.updatePropertyDeclaration(r,r.modifiers,r.name,w.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function jet(e,t){const r=_r.ChangeTracker.with(e,i=>w2e(i,e.sourceFile,t));return la(q$,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],K$,f.Add_undefined_type_to_all_uninitialized_properties)}function w2e(e,t,r){const i=w.createKeywordTypeNode(157),o=qy(r.type)?r.type.types.concat(i):[r.type,i],s=w.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function Uet(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=W2e(r,t.prop);if(!i)return;const o=_r.ChangeTracker.with(e,s=>O2e(s,e.sourceFile,t.prop,i));return la(q$,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],X$,f.Add_initializers_to_all_uninitialized_properties)}function O2e(e,t,r,i){Sp(r);const o=w.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function W2e(e,t){return F2e(e,e.getTypeFromTypeNode(t.type))}function F2e(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?w.createFalse():w.createTrue();if(t.isStringLiteral())return w.createStringLiteral(t.value);if(t.isNumberLiteral())return w.createNumericLiteral(t.value);if(t.flags&2048)return w.createBigIntLiteral(t.value);if(t.isUnion())return Ht(t.types,r=>F2e(e,r));if(t.isClass()){const r=Wg(t.symbol);if(!r||Qr(r,64))return;const i=ng(r);return i&&i.parameters.length?void 0:w.createNewExpression(w.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return w.createArrayLiteralExpression()}var q$,J$,K$,X$,nme,Het=I({"src/services/codefixes/fixStrictClassInitialization.ts"(){si(),Ia(),q$="strictClassInitialization",J$="addMissingPropertyDefiniteAssignmentAssertions",K$="addMissingPropertyUndefinedType",X$="addMissingPropertyInitializer",nme=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Ta({errorCodes:nme,getCodeActions:function(t){const r=L2e(t.sourceFile,t.span.start);if(!r)return;const i=[];return Rn(i,jet(t,r)),Rn(i,Vet(t,r)),Rn(i,Uet(t,r)),i},fixIds:[J$,K$,X$],getAllCodeActions:e=>bs(e,nme,(t,r)=>{const i=L2e(r.file,r.start);if(i)switch(e.fixId){case J$:k2e(t,r.file,i.prop);break;case K$:w2e(t,r.file,i);break;case X$:const o=e.program.getTypeChecker(),s=W2e(o,i.prop);if(!s)return;O2e(t,r.file,i.prop,s);break;default:N.fail(JSON.stringify(e.fixId))}})})}});function z2e(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:u}=r;e.replaceNode(t,l,o&&!i?w.createImportEqualsDeclaration(void 0,!1,o,w.createExternalModuleReference(u)):w.createImportDeclaration(void 0,w.createImportClause(!1,o,s),u,void 0))}function B2e(e,t,r){const{parent:i}=po(e,r);Td(i,!0)||N.failBadSyntaxKind(i);const o=oa(i.parent,Oi),s=ri(o.name,Ve),l=im(o.name)?qet(o.name):void 0;if(s||l)return{allowSyntheticDefaults:MS(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:oa(o.parent.parent,Ll),required:Ua(i.arguments)}}function qet(e){const t=[];for(const r of e.elements){if(!Ve(r.name)||r.initializer)return;t.push(w.createImportSpecifier(!1,ri(r.propertyName,Ve),r.name))}if(t.length)return w.createNamedImports(t)}var Y$,rme,Jet=I({"src/services/codefixes/requireInTs.ts"(){si(),Ia(),Y$="requireInTs",rme=[f.require_call_may_be_converted_to_an_import.code],Ta({errorCodes:rme,getCodeActions(e){const t=B2e(e.sourceFile,e.program,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,i=>z2e(i,e.sourceFile,t));return[la(Y$,r,f.Convert_require_to_import,Y$,f.Convert_all_require_to_import)]},fixIds:[Y$],getAllCodeActions:e=>bs(e,rme,(t,r)=>{const i=B2e(r.file,e.program,r.start);i&&z2e(t,e.sourceFile,i)})})}});function G2e(e,t){const r=po(e,t);if(!Ve(r))return;const{parent:i}=r;if(eu(i)&&Sh(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Yy(i)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function V2e(e,t,r,i){e.replaceNode(t,r.importNode,Kv(r.name,void 0,r.moduleSpecifier,lf(t,i)))}var $$,ime,Ket=I({"src/services/codefixes/useDefaultImport.ts"(){si(),Ia(),$$="useDefaultImport",ime=[f.Import_may_be_converted_to_a_default_import.code],Ta({errorCodes:ime,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=G2e(t,r);if(!i)return;const o=_r.ChangeTracker.with(e,s=>V2e(s,t,i,e.preferences));return[la($$,o,f.Convert_to_default_import,$$,f.Convert_all_to_default_imports)]},fixIds:[$$],getAllCodeActions:e=>bs(e,ime,(t,r)=>{const i=G2e(r.file,r.start);i&&V2e(t,r.file,i,e.preferences)})})}});function j2e(e,t,r){const i=ri(po(t,r.start),hp);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,w.createBigIntLiteral(o))}var Q$,ome,Xet=I({"src/services/codefixes/useBigintLiteral.ts"(){si(),Ia(),Q$="useBigintLiteral",ome=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Ta({errorCodes:ome,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>j2e(i,t.sourceFile,t.span));if(r.length>0)return[la(Q$,r,f.Convert_to_a_bigint_numeric_literal,Q$,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[Q$],getAllCodeActions:e=>bs(e,ome,(t,r)=>j2e(t,r.file,r))})}});function U2e(e,t){const r=po(e,t);return N.assert(r.kind===102,"This token should be an ImportKeyword"),N.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function H2e(e,t,r){const i=w.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var q2e,Z$,ame,Yet=I({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){si(),Ia(),q2e="fixAddModuleReferTypeMissingTypeof",Z$=q2e,ame=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Ta({errorCodes:ame,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=U2e(r,i.start),s=_r.ChangeTracker.with(t,l=>H2e(l,r,o));return[la(Z$,s,f.Add_missing_typeof,Z$,f.Add_missing_typeof)]},fixIds:[Z$],getAllCodeActions:e=>bs(e,ame,(t,r)=>H2e(t,e.sourceFile,U2e(r.file,r.start)))})}});function J2e(e,t){let o=po(e,t).parent.parent;if(!(!mr(o)&&(o=o.parent,!mr(o)))&&Fl(o.operatorToken))return o}function K2e(e,t,r){const i=$et(r);i&&e.replaceNode(t,r,w.createJsxFragment(w.createJsxOpeningFragment(),i,w.createJsxJsxClosingFragment()))}function $et(e){const t=[];let r=e;for(;;)if(mr(r)&&Fl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),gL(r.right))return t.push(r.right),t;if(mr(r.right)){r=r.right;continue}else return}else return}var eQ,sme,Qet=I({"src/services/codefixes/wrapJsxInFragment.ts"(){si(),Ia(),eQ="wrapJsxInFragment",sme=[f.JSX_expressions_must_have_one_parent_element.code],Ta({errorCodes:sme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=J2e(r,i.start);if(!o)return;const s=_r.ChangeTracker.with(t,l=>K2e(l,r,o));return[la(eQ,s,f.Wrap_in_JSX_fragment,eQ,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[eQ],getAllCodeActions:e=>bs(e,sme,(t,r)=>{const i=J2e(e.sourceFile,r.start);i&&K2e(t,e.sourceFile,i)})})}});function X2e(e,t){const r=po(e,t),i=ri(r.parent.parent,XE);if(!i)return;const o=md(i.parent)?i.parent:ri(i.parent.parent,xm);if(o)return{indexSignature:i,container:o}}function Zet(e,t){return w.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function Y2e(e,t,{indexSignature:r,container:i}){const s=(md(i)?i.members:i.type.members).filter(m=>!XE(m)),l=Ua(r.parameters),u=w.createTypeParameterDeclaration(void 0,oa(l.name,Ve),l.type),p=w.createMappedTypeNode(OC(r)?w.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),h=w.createIntersectionTypeNode([...RC(i),p,...s.length?[w.createTypeLiteralNode(s)]:et]);e.replaceNode(t,i,Zet(i,h))}var tQ,lme,ett=I({"src/services/codefixes/convertToMappedObjectType.ts"(){si(),Ia(),tQ="fixConvertToMappedObjectType",lme=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Ta({errorCodes:lme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=X2e(r,i.start);if(!o)return;const s=_r.ChangeTracker.with(t,u=>Y2e(u,r,o)),l=Sr(o.container.name);return[la(tQ,s,[f.Convert_0_to_mapped_object_type,l],tQ,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[tQ],getAllCodeActions:e=>bs(e,lme,(t,r)=>{const i=X2e(r.file,r.start);i&&Y2e(t,r.file,i)})})}}),cme,$2e,ttt=I({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){si(),Ia(),cme="removeAccidentalCallParentheses",$2e=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Ta({errorCodes:$2e,getCodeActions(e){const t=Vn(po(e.sourceFile,e.span.start),sa);if(!t)return;const r=_r.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[n_(cme,r,f.Remove_parentheses)]},fixIds:[cme]})}});function Q2e(e,t,r){const i=ri(po(t,r.start),u=>u.kind===135),o=i&&ri(i.parent,Ky);if(!o)return;let s=o;if(Gd(o.parent)){const u=NR(o.expression,!1);if(Ve(u)){const p=Ic(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var nQ,ume,ntt=I({"src/services/codefixes/removeUnnecessaryAwait.ts"(){si(),Ia(),nQ="removeUnnecessaryAwait",ume=[f.await_has_no_effect_on_the_type_of_this_expression.code],Ta({errorCodes:ume,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>Q2e(i,t.sourceFile,t.span));if(r.length>0)return[la(nQ,r,f.Remove_unnecessary_await,nQ,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[nQ],getAllCodeActions:e=>bs(e,ume,(t,r)=>Q2e(t,r.file,r))})}});function Z2e(e,t){return Vn(po(e,t.start),Mc)}function eLe(e,t,r){if(!t)return;const i=N.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,w.updateImportDeclaration(t,t.modifiers,w.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,w.createImportDeclaration(void 0,w.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var dme,rQ,rtt=I({"src/services/codefixes/splitTypeOnlyImport.ts"(){si(),Ia(),dme=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],rQ="splitTypeOnlyImport",Ta({errorCodes:dme,fixIds:[rQ],getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>eLe(i,Z2e(t.sourceFile,t.span),t));if(r.length)return[la(rQ,r,f.Split_into_two_separate_import_declarations,rQ,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>bs(e,dme,(t,r)=>{eLe(t,Z2e(e.sourceFile,r),e)})})}});function tLe(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(po(e,t));if(s===void 0)return;const l=ri((i=s==null?void 0:s.valueDeclaration)==null?void 0:i.parent,Vc);if(l===void 0)return;const u=vs(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function nLe(e,t,r){e.replaceNode(t,r,w.createToken(121))}var iQ,pme,itt=I({"src/services/codefixes/convertConstToLet.ts"(){si(),Ia(),iQ="fixConvertConstToLet",pme=[f.Cannot_assign_to_0_because_it_is_a_constant.code],Ta({errorCodes:pme,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=tLe(r,i.start,o);if(s===void 0)return;const l=_r.ChangeTracker.with(t,u=>nLe(u,r,s.token));return[dpe(iQ,l,f.Convert_const_to_let,iQ,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return LD(_r.ChangeTracker.with(e,i=>{kD(e,pme,o=>{const s=tLe(o.file,o.start,t);if(s&&Am(r,Sa(s.symbol)))return nLe(i,o.file,s.token)})}))},fixIds:[iQ]})}});function rLe(e,t,r){const i=po(e,t);return i.kind===27&&i.parent&&(La(i.parent)||fd(i.parent))?{node:i}:void 0}function iLe(e,t,{node:r}){const i=w.createToken(28);e.replaceNode(t,r,i)}var oQ,oLe,fme,ott=I({"src/services/codefixes/fixExpectedComma.ts"(){si(),Ia(),oQ="fixExpectedComma",oLe=f._0_expected.code,fme=[oLe],Ta({errorCodes:fme,getCodeActions(e){const{sourceFile:t}=e,r=rLe(t,e.span.start,e.errorCode);if(!r)return;const i=_r.ChangeTracker.with(e,o=>iLe(o,t,r));return[la(oQ,i,[f.Change_0_to_1,";",","],oQ,[f.Change_0_to_1,";",","])]},fixIds:[oQ],getAllCodeActions:e=>bs(e,fme,(t,r)=>{const i=rLe(r.file,r.start,r.code);i&&iLe(t,e.sourceFile,i)})})}});function aLe(e,t,r,i,o){const s=po(t,r.start);if(!Ve(s)||!sa(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),p=u==null?void 0:u.valueDeclaration;if(!p||!Ao(p)||!$E(p.parent.parent)||o!=null&&o.has(p))return;o==null||o.add(p);const h=att(p.parent.parent);if(bt(h)){const m=h[0],y=!qy(m)&&!wS(m)&&wS(w.createUnionTypeNode([m,w.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,y?") | void":" | void")}else{const m=l.getResolvedSignature(s.parent),y=m==null?void 0:m.parameters[0],T=y&&l.getTypeOfSymbolAtLocation(y,p.parent.parent);lr(p)?(!T||T.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,Pa(t.text,p.parent.parent.pos),"/** @type {Promise<void>} */(")):(!T||T.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"<void>")}}function att(e){var t;if(lr(e)){if(Gd(e.parent)){const r=(t=i0(e.parent))==null?void 0:t.typeExpression.type;if(r&&Df(r)&&Ve(r.typeName)&&Sr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var sLe,mme,_me,stt=I({"src/services/codefixes/fixAddVoidToPromise.ts"(){si(),Ia(),sLe="addVoidToPromise",mme="addVoidToPromise",_me=[f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Ta({errorCodes:_me,fixIds:[mme],getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>aLe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[la(sLe,t,f.Add_void_to_Promise_resolved_without_a_value,mme,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return bs(e,_me,(t,r)=>aLe(t,r.file,r,e.program,new Set))}})}}),Fu={};ee(Fu,{PreserveOptionalFlags:()=>Zfe,addNewNodeForMemberSymbol:()=>b2e,codeFixAll:()=>bs,createCodeFixAction:()=>la,createCodeFixActionMaybeFixAll:()=>dpe,createCodeFixActionWithoutFixAll:()=>n_,createCombinedCodeActions:()=>LD,createFileTextChanges:()=>ECe,createImportAdder:()=>CI,createImportSpecifierResolver:()=>fQe,createJsonPropertyAssignment:()=>H$,createMissingMemberNodes:()=>Hfe,createSignatureDeclarationFromCallExpression:()=>qfe,createSignatureDeclarationFromSignature:()=>j$,createStubbedBody:()=>fz,eachDiagnostic:()=>kD,findAncestorMatchingSpan:()=>Qfe,findJsonProperty:()=>$fe,generateAccessorFromProperty:()=>x2e,getAccessorConvertiblePropertyAtPosition:()=>N2e,getAllFixes:()=>jYe,getAllSupers:()=>eme,getArgumentTypesAndTypeParameters:()=>T2e,getFixes:()=>VYe,getImportCompletionAction:()=>mQe,getImportKind:()=>Bpe,getJSDocTypedefNodes:()=>lQe,getNoopSymbolTrackerWithResolver:()=>OD,getPromoteTypeOnlyCompletionAction:()=>_Qe,getSupportedErrorCodes:()=>BYe,importFixName:()=>Jpe,importSymbols:()=>WD,moduleSpecifierToValidIdentifier:()=>qpe,moduleSymbolToValidIdentifier:()=>Hpe,parameterShouldGetTypeFromJSDoc:()=>GCe,registerCodeFix:()=>Ta,setJsonCompilerOptionValue:()=>Yfe,setJsonCompilerOptionValues:()=>Xfe,tryGetAutoImportableReferenceFromTypeNode:()=>MI,typeToAutoImportableTypeNode:()=>U$});var Ia=I({"src/services/_namespaces/ts.codefix.ts"(){UYe(),HYe(),qYe(),XYe(),e$e(),i$e(),o$e(),a$e(),s$e(),d$e(),E$e(),T$e(),k$e(),Q$e(),Z$e(),tQe(),nQe(),cQe(),uQe(),pQe(),wQe(),FQe(),GQe(),VQe(),jQe(),qQe(),XQe(),QQe(),rZe(),fZe(),_Ze(),EZe(),SZe(),AZe(),IZe(),xZe(),RZe(),NZe(),CZe(),PZe(),MZe(),LZe(),wZe(),FZe(),VZe(),$Ze(),ZZe(),eet(),ret(),iet(),aet(),set(),het(),get(),vet(),Iet(),Wet(),Get(),Het(),Jet(),Ket(),Xet(),Yet(),Qet(),ett(),ttt(),ntt(),rtt(),itt(),ott(),stt()}});function ltt(e){return!!(e.kind&1)}function ctt(e){return!!(e.kind&2)}function mz(e){return!!(e&&e.kind&4)}function vM(e){return!!(e&&e.kind===32)}function utt(e){return mz(e)||vM(e)||hme(e)}function dtt(e){return(mz(e)||vM(e))&&!!e.isFromPackageJson}function ptt(e){return!!(e.kind&8)}function ftt(e){return!!(e.kind&16)}function lLe(e){return!!(e&&e.kind&64)}function cLe(e){return!!(e&&e.kind&128)}function mtt(e){return!!(e&&e.kind&256)}function hme(e){return!!(e&&e.kind&512)}function uLe(e,t,r,i,o,s,l,u,p){var h,m,y;const T=Xs(),A=l||BA(pd(i.getCompilerOptions()));let R=!1,M=0,C=0,O=0,U=0;const K=p({tryResolve:V,skippedAny:()=>R,resolvedAny:()=>C>0,resolvedBeyondLimit:()=>C>_Q}),Q=U?` (${(O/U*100).toFixed(1)}% hit rate)`:"";return(h=t.log)==null||h.call(t,`${e}: resolved ${C} module specifiers, plus ${M} ambient and ${O} from cache${Q}`),(m=t.log)==null||m.call(t,`${e}: response is ${R?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${Xs()-T}`),K;function V(se,G){if(G){const Y=r.getModuleSpecifierForBestExportInfo(se,o,u);return Y&&M++,Y||"failed"}const ne=A||s.allowIncompleteCompletions&&C<_Q,he=!ne&&s.allowIncompleteCompletions&&U<xme,ye=ne||he?r.getModuleSpecifierForBestExportInfo(se,o,u,he):void 0;return(!ne&&!he||he&&!ye)&&(R=!0),C+=(ye==null?void 0:ye.computedWithoutCacheCount)||0,O+=se.length-((ye==null?void 0:ye.computedWithoutCacheCount)||0),he&&U++,ye||(A?"failed":"skipped")}}function _tt(e,t,r,i,o,s,l,u,p,h,m=!1){var y;const{previousToken:T}=cQ(o,i);if(l&&!SI(i,o,T)&&!Ytt(i,l,T,o))return;if(l===" ")return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const A=t.getCompilerOptions(),R=t.getTypeChecker(),M=s.allowIncompleteCompletions?(y=e.getIncompleteCompletionsCache)==null?void 0:y.call(e):void 0;if(M&&u===3&&T&&Ve(T)){const U=htt(M,i,T,t,e,s,p,o);if(U)return U}else M==null||M.clear();const C=gQ.getStringLiteralCompletions(i,o,T,A,e,t,r,s,m);if(C)return C;if(T&&cC(T.parent)&&(T.kind===83||T.kind===88||T.kind===80))return wtt(T.parent);const O=SLe(t,r,i,A,o,s,void 0,e,h,p);if(O)switch(O.kind){case 0:const U=Ett(i,e,t,A,r,O,s,h,o,m);return U!=null&&U.isIncomplete&&(M==null||M.set(U)),U;case 1:return gme([...k0.getJSDocTagNameCompletions(),...pLe(i,o,R,A,s,!0)]);case 2:return gme([...k0.getJSDocTagCompletions(),...pLe(i,o,R,A,s,!1)]);case 3:return gme(k0.getJSDocParameterNameCompletions(O.tag));case 4:return ytt(O.keywordCompletions,O.isNewIdentifierLocation);default:return N.assertNever(O)}}function _z(e,t){var r,i;let o=L2(e.sortText,t.sortText);return o===0&&(o=L2(e.name,t.name)),o===0&&((r=e.data)!=null&&r.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(o=_k(e.data.moduleSpecifier,t.data.moduleSpecifier)),o===0?-1:o}function dLe(e){return!!(e!=null&&e.moduleSpecifier)}function htt(e,t,r,i,o,s,l,u){const p=e.get();if(!p)return;const h=Vd(t,u),m=r.text.toLowerCase(),y=bO(t,o,i,s,l),T=uLe("continuePreviousIncompleteResponse",o,Fu.createImportSpecifierResolver(t,i,o,s),i,r.getStart(),s,!1,h0(r),A=>{const R=eo(p.entries,M=>{var C;if(!M.hasAction||!M.source||!M.data||dLe(M.data))return M;if(!OLe(M.name,m))return;const{origin:O}=N.checkDefined(TLe(M.name,M.data,i,o)),U=y.get(t.path,M.data.exportMapKey),K=U&&A.tryResolve(U,!Xc(Zf(O.moduleSymbol.name)));if(K==="skipped")return M;if(!K||K==="failed"){(C=o.log)==null||C.call(o,`Unexpected failure resolving auto import for '${M.name}' from '${M.source}'`);return}const Q={...O,kind:32,moduleSpecifier:K.moduleSpecifier};return M.data=yLe(Q),M.source=yme(Q),M.sourceDisplay=[cf(Q.moduleSpecifier)],M});return A.skippedAny()||(p.isIncomplete=void 0),R});return p.entries=T,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=_Le(h),p}function gme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function pLe(e,t,r,i,o,s){const l=po(e,t);if(!Qx(l)&&!Zm(l))return[];const u=Zm(l)?l:l.parent;if(!Zm(u))return[];const p=u.parent;if(!ea(p))return[];const h=cd(e),m=o.includeCompletionsWithSnippetText||void 0,y=ou(u.tags,T=>e_(T)&&T.getEnd()<=t);return eo(p.parameters,T=>{if(!qx(T).length){if(Ve(T.name)){const A={tabstop:1},R=T.name.text;let M=qO(R,T.initializer,T.dotDotDotToken,h,!1,!1,r,i,o),C=m?qO(R,T.initializer,T.dotDotDotToken,h,!1,!0,r,i,o,A):void 0;return s&&(M=M.slice(1),C&&(C=C.slice(1))),{name:M,kind:"parameter",sortText:zu.LocationPriority,insertText:m?C:void 0,isSnippet:m}}else if(T.parent.parameters.indexOf(T)===y){const A=`param${y}`,R=fLe(A,T.name,T.initializer,T.dotDotDotToken,h,!1,r,i,o),M=m?fLe(A,T.name,T.initializer,T.dotDotDotToken,h,!0,r,i,o):void 0;let C=R.join(Fv(i)+"* "),O=M==null?void 0:M.join(Fv(i)+"* ");return s&&(C=C.slice(1),O&&(O=O.slice(1))),{name:C,kind:"parameter",sortText:zu.LocationPriority,insertText:m?O:void 0,isSnippet:m}}}})}function fLe(e,t,r,i,o,s,l,u,p){if(!o)return[qO(e,r,i,o,!1,s,l,u,p,{tabstop:1})];return h(e,t,r,i,{tabstop:1});function h(y,T,A,R,M){if(im(T)&&!R){const O={tabstop:M.tabstop},U=qO(y,A,R,o,!0,s,l,u,p,O);let K=[];for(const Q of T.elements){const V=m(y,Q,O);if(V)K.push(...V);else{K=void 0;break}}if(K)return M.tabstop=O.tabstop,[U,...K]}return[qO(y,A,R,o,!1,s,l,u,p,M)]}function m(y,T,A){if(!T.propertyName&&Ve(T.name)||Ve(T.name)){const R=T.propertyName?yC(T.propertyName):T.name.text;if(!R)return;const M=`${y}.${R}`;return[qO(M,T.initializer,T.dotDotDotToken,o,!1,s,l,u,p,A)]}else if(T.propertyName){const R=yC(T.propertyName);return R&&h(`${y}.${R}`,T.name,T.initializer,T.dotDotDotToken,A)}}}function qO(e,t,r,i,o,s,l,u,p,h){if(s&&N.assertIsDefined(h),t&&(e=gtt(e,t)),s&&(e=JE(e)),i){let m="*";if(o)N.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){const A=l.getTypeAtLocation(t.parent);if(!(A.flags&16385)){const R=t.getSourceFile(),C=lf(R,p)===0?268435456:0,O=l.typeToTypeNode(A,Vn(t,ea),C);if(O){const U=s?lQ({removeComments:!0,module:u.module,target:u.target}):R0({removeComments:!0,module:u.module,target:u.target});pr(O,1),m=U.printNode(4,O,R)}}}s&&m==="*"&&(m=`\${${h.tabstop++}:${m}}`)}const y=!o&&r?"...":"",T=s?`\${${h.tabstop++}}`:"";return`@param {${y}${m}} ${e} ${T}`}else{const m=s?`\${${h.tabstop++}}`:"";return`@param ${e} ${m}`}}function gtt(e,t){const r=t.getText().trim();return r.includes(`
`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function vtt(e){return{name:pa(e),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords}}function ytt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function mLe(e,t,r){return{kind:4,keywordCompletions:ALe(e,t),isNewIdentifierLocation:r}}function btt(e){switch(e){case 156:return 8;default:N.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function _Le(e){return(e==null?void 0:e.kind)===80?Dd(e):void 0}function Ett(e,t,r,i,o,s,l,u,p,h){const{symbols:m,contextToken:y,completionKind:T,isInSnippetScope:A,isNewIdentifierLocation:R,location:M,propertyAccessToConvert:C,keywordFilters:O,symbolToOriginInfoMap:U,recommendedCompletion:K,isJsxInitializer:Q,isTypeOnlyLocation:V,isJsxIdentifierExpected:se,isRightOfOpenTag:G,isRightOfDotOrQuestionDot:ne,importStatementCompletion:he,insideJsDocTagTypeExpression:ye,symbolToSortTextMap:Y,hasUnresolvedAutoImports:X}=s;let oe=s.literals;const pe=r.getTypeChecker();if(pk(e.scriptKind)===1){const Ue=Ttt(M,e);if(Ue)return Ue}const Ce=Vn(y,UR);if(Ce&&(cae(y)||WE(y,Ce.expression))){const Ue=T5(pe,Ce.parent.clauses);oe=oe.filter(Ee=>!Ue.hasValue(Ee)),m.forEach((Ee,De)=>{if(Ee.valueDeclaration&&i1(Ee.valueDeclaration)){const Me=pe.getConstantValue(Ee.valueDeclaration);Me!==void 0&&Ue.hasValue(Me)&&(U[De]={kind:256})}})}const de=BB(),ie=hLe(e,i);if(ie&&!R&&(!m||m.length===0)&&O===0)return;const ve=bme(m,de,void 0,y,M,p,e,t,r,os(i),o,T,l,i,u,V,C,se,Q,he,K,U,Y,se,G,h);if(O!==0)for(const Ue of ALe(O,!ye&&cd(e)))(V&&rM(IE(Ue.name))||!V&&int(Ue.name)||!ve.has(Ue.name))&&(ve.add(Ue.name),by(de,Ue,_z,!0));for(const Ue of Htt(y,p))ve.has(Ue.name)||(ve.add(Ue.name),by(de,Ue,_z,!0));for(const Ue of oe){const Ee=Itt(e,l,Ue);ve.add(Ee.name),by(de,Ee,_z,!0)}ie||Att(e,M.pos,ve,os(i),de);let Le;if(l.includeCompletionsWithInsertText&&y&&!G&&!ne&&(Le=Vn(y,yP))){const Ue=gLe(Le,e,l,i,t,r,u);Ue&&de.push(Ue.entry)}return{flags:s.flags,isGlobalCompletion:A,isIncomplete:l.allowIncompleteCompletions&&X?!0:void 0,isMemberCompletion:Stt(T),isNewIdentifierLocation:R,optionalReplacementSpan:_Le(M),entries:de}}function hLe(e,t){return!cd(e)||!!gk(e,t)}function gLe(e,t,r,i,o,s,l){const u=e.clauses,p=s.getTypeChecker(),h=p.getTypeAtLocation(e.parent.expression);if(h&&h.isUnion()&&Jn(h.types,m=>m.isLiteral())){const m=T5(p,u),y=os(i),T=lf(t,r),A=Fu.createImportAdder(t,s,r,o),R=[];for(const V of h.types)if(V.flags&1024){N.assert(V.symbol,"An enum member type should have a symbol"),N.assert(V.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const se=V.symbol.valueDeclaration&&p.getConstantValue(V.symbol.valueDeclaration);if(se!==void 0){if(m.hasValue(se))continue;m.addValue(se)}const G=Fu.typeToAutoImportableTypeNode(p,A,V,e,y);if(!G)return;const ne=aQ(G,y,T);if(!ne)return;R.push(ne)}else if(!m.hasValue(V.value))switch(typeof V.value){case"object":R.push(V.value.negative?w.createPrefixUnaryExpression(41,w.createBigIntLiteral({negative:!1,base10Value:V.value.base10Value})):w.createBigIntLiteral(V.value));break;case"number":R.push(V.value<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-V.value)):w.createNumericLiteral(V.value));break;case"string":R.push(w.createStringLiteral(V.value,T===0));break}if(R.length===0)return;const M=Wt(R,V=>w.createCaseClause(V,[])),C=Xv(o,l==null?void 0:l.options),O=lQ({removeComments:!0,module:i.module,target:i.target,newLine:yO(C)}),U=l?V=>O.printAndFormatNode(4,V,t,l):V=>O.printNode(4,V,t),K=Wt(M,(V,se)=>r.includeCompletionsWithSnippetText?`${U(V)}$${se+1}`:`${U(V)}`).join(C);return{entry:{name:`${O.printNode(4,M[0],t)} ...`,kind:"",sortText:zu.GlobalsOrKeywords,insertText:K,hasAction:A.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:A}}}function aQ(e,t,r){switch(e.kind){case 183:const i=e.typeName;return sQ(i,t,r);case 199:const o=aQ(e.objectType,t,r),s=aQ(e.indexType,t,r);return o&&s&&w.createElementAccessExpression(o,s);case 201:const l=e.literal;switch(l.kind){case 11:return w.createStringLiteral(l.text,r===0);case 9:return w.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:const u=aQ(e.type,t,r);return u&&(Ve(u)?u:w.createParenthesizedExpression(u));case 186:return sQ(e.exprName,t,r);case 205:N.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function sQ(e,t,r){if(Ve(e))return e;const i=Vi(e.right.escapedText);return EU(i,t)?w.createPropertyAccessExpression(sQ(e.left,t,r),i):w.createElementAccessExpression(sQ(e.left,t,r),w.createStringLiteral(i,r===0))}function Stt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Ttt(e,t){const r=Vn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){const i=!!vs(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Dd(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:zu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[p]}}}function Att(e,t,r,i,o){TY(e).forEach((s,l)=>{if(s===t)return;const u=Vi(l);!r.has(u)&&Zp(u,i)&&(r.add(u),by(o,{name:u,kind:"warning",kindModifiers:"",sortText:zu.JavascriptIdentifiers,isFromUncheckedFile:!0},_z))})}function vme(e,t,r){return typeof r=="object"?HE(r)+"n":Mo(r)?cM(e,t,r):JSON.stringify(r)}function Itt(e,t,r){return{name:vme(e,t,r),kind:"string",kindModifiers:"",sortText:zu.LocationPriority}}function xtt(e,t,r,i,o,s,l,u,p,h,m,y,T,A,R,M,C,O,U,K,Q,V,se,G){var ne,he;let ye,Y,X=VK(r),oe,pe,Ce=yme(y),de,ie,ve;const Le=p.getTypeChecker(),Ue=y&&ftt(y),Ee=y&&ctt(y)||m;if(y&&ltt(y))ye=m?`this${Ue?"?.":""}[${bLe(l,U,h)}]`:`this${Ue?"?.":"."}${h}`;else if((Ee||Ue)&&A){ye=Ee?m?`[${bLe(l,U,h)}]`:`[${h}]`:h,(Ue||A.questionDotToken)&&(ye=`?.${ye}`);const Me=vs(A,25,l)||vs(A,29,l);if(!Me)return;const We=uo(h,A.name.text)?A.name.end:Me.end;X=pc(Me.getStart(l),We)}if(R&&(ye===void 0&&(ye=h),ye=`{${ye}}`,typeof R!="boolean"&&(X=Dd(R,l))),y&&ptt(y)&&A){ye===void 0&&(ye=h);const Me=Ic(A.pos,l);let We="";Me&&f5(Me.end,Me.parent,l)&&(We=";"),We+=`(await ${A.expression.getText()})`,ye=m?`${We}${ye}`:`${We}${Ue?"?.":"."}${ye}`;const Se=ri(A.parent,Ky)?A.parent:A.expression;X=pc(Se.getStart(l),A.end)}if(vM(y)&&(de=[cf(y.moduleSpecifier)],M&&({insertText:ye,replacementSpan:X}=Ltt(h,M,y,C,l,O,U),pe=U.includeCompletionsWithSnippetText?!0:void 0)),(y==null?void 0:y.kind)===64&&(ie=!0),K===0&&i&&((ne=Ic(i.pos,l,i))==null?void 0:ne.kind)!==28&&(Hl(i.parent.parent)||tf(i.parent.parent)||vp(i.parent.parent)||jv(i.parent)||((he=Vn(i.parent,hc))==null?void 0:he.getLastToken(l))===i||np(i.parent)&&ys(l,i.getEnd()).line!==ys(l,s).line)&&(Ce="ObjectLiteralMemberWithComma/",ie=!0),U.includeCompletionsWithClassMemberSnippets&&U.includeCompletionsWithInsertText&&K===3&&Rtt(e,o,l)){let Me;const We=vLe(u,p,O,U,h,e,o,s,i,Q);if(We)({insertText:ye,filterText:Y,isSnippet:pe,importAdder:Me}=We),Me!=null&&Me.hasFixes()&&(ie=!0,Ce="ClassMemberSnippet/");else return}if(y&&cLe(y)&&({insertText:ye,isSnippet:pe,labelDetails:ve}=y,U.useLabelDetailsInCompletionEntries||(h=h+ve.detail,ve=void 0),Ce="ObjectLiteralMethodSnippet/",t=zu.SortBelow(t)),V&&!se&&U.includeCompletionsWithSnippetText&&U.jsxAttributeCompletionStyle&&U.jsxAttributeCompletionStyle!=="none"&&!(w_(o.parent)&&o.parent.initializer)){let Me=U.jsxAttributeCompletionStyle==="braces";const We=Le.getTypeOfSymbolAtLocation(e,o);U.jsxAttributeCompletionStyle==="auto"&&!(We.flags&528)&&!(We.flags&1048576&&In(We.types,At=>!!(At.flags&528)))&&(We.flags&402653316||We.flags&1048576&&Jn(We.types,At=>!!(At.flags&402686084||cue(At)))?(ye=`${JE(h)}=${cM(l,U,"$1")}`,pe=!0):Me=!0),Me&&(ye=`${JE(h)}={$1}`,pe=!0)}if(ye!==void 0&&!U.includeCompletionsWithInsertText)return;(mz(y)||vM(y))&&(oe=yLe(y),ie=!M);const De=Vn(o,R3);if((De==null?void 0:De.kind)===275){const Me=IE(h);De&&Me&&(Me===135||Pj(Me))&&(ye=`${h} as ${h}_`)}return{name:h,kind:Qv.getSymbolKind(Le,e,o),kindModifiers:Qv.getSymbolModifiers(Le,e),sortText:t,source:Ce,hasAction:ie?!0:void 0,isRecommended:ktt(e,T,Le)||void 0,insertText:ye,filterText:Y,replacementSpan:X,sourceDisplay:de,labelDetails:ve,isSnippet:pe,isPackageJsonImport:dtt(y)||void 0,isImportStatementCompletion:!!M||void 0,data:oe,...G?{symbol:e}:void 0}}function Rtt(e,t,r){return lr(t)?!1:!!(e.flags&106500)&&(di(t)||t.parent&&t.parent.parent&&Yc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&di(t.parent.parent)||t.parent&&KR(t)&&di(t.parent))}function vLe(e,t,r,i,o,s,l,u,p,h){const m=Vn(l,di);if(!m)return;let y,T=o;const A=o,R=t.getTypeChecker(),M=l.getSourceFile(),C=lQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:yO(Xv(e,h==null?void 0:h.options))}),O=Fu.createImportAdder(M,t,i,e);let U;if(i.includeCompletionsWithSnippetText){y=!0;const he=w.createEmptyStatement();U=w.createBlock([he],!0),YU(he,{kind:0,order:0})}else U=w.createBlock([],!0);let K=0;const{modifiers:Q,range:V,decorators:se}=Dtt(p,M,u),G=Q&64&&m.modifierFlagsCache&64;let ne=[];if(Fu.addNewNodeForMemberSymbol(s,m,M,{program:t,host:e},i,O,he=>{let ye=0;G&&(ye|=64),Yc(he)&&R.getMemberOverrideModifierStatus(m,he,s)===1&&(ye|=16),ne.length||(K=he.modifierFlagsCache|ye),he=w.replaceModifiers(he,K),ne.push(he)},U,Fu.PreserveOptionalFlags.Property,!!G),ne.length){const he=s.flags&8192;let ye=K|16|1;he?ye|=1024:ye|=136;const Y=Q&ye;if(Q&~ye)return;if(K&4&&Y&1&&(K&=-5),Y!==0&&!(Y&1)&&(K&=-2),K|=Y,ne=ne.map(oe=>w.replaceModifiers(oe,K)),se!=null&&se.length){const oe=ne[ne.length-1];qS(oe)&&(ne[ne.length-1]=w.replaceDecoratorsAndModifiers(oe,se.concat(xE(oe)||[])))}const X=131073;h?T=C.printAndFormatSnippetList(X,w.createNodeArray(ne),M,h):T=C.printSnippetList(X,w.createNodeArray(ne),M)}return{insertText:T,filterText:A,isSnippet:y,importAdder:O,eraseRange:V}}function Dtt(e,t,r){if(!e||ys(t,r).line>ys(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;const l={pos:r,end:r};if(qo(e.parent)&&e.parent.modifiers&&(i|=N_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Eu)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=Ntt(e)){const u=OA(s);i&u||(i|=u,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:o,range:l.pos!==r?l:void 0}}function Ntt(e){if(Aa(e))return e.kind;if(Ve(e)){const t=r0(e);if(t&&Pv(t))return t}}function Ctt(e,t,r,i,o,s,l,u){const p=l.includeCompletionsWithSnippetText||void 0;let h=t;const m=r.getSourceFile(),y=Ptt(e,r,m,i,o,l);if(!y)return;const T=lQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:yO(Xv(o,u==null?void 0:u.options))});u?h=T.printAndFormatSnippetList(80,w.createNodeArray([y],!0),m,u):h=T.printSnippetList(80,w.createNodeArray([y],!0),m);const A=R0({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),R=w.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),M={detail:A.printNode(4,R,m)};return{isSnippet:p,insertText:h,labelDetails:M}}function Ptt(e,t,r,i,o,s){const l=e.getDeclarations();if(!(l&&l.length))return;const u=i.getTypeChecker(),p=l[0],h=ll(Lo(p),!1),m=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),T=33554432|(lf(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let A=m.flags&1048576&&m.types.length<10?u.getUnionType(m.types,2):m;if(A.flags&1048576){const U=mn(A.types,K=>u.getSignaturesOfType(K,0).length>0);if(U.length===1)A=U[0];else return}if(u.getSignaturesOfType(A,0).length!==1)return;const M=u.typeToTypeNode(A,t,T,Fu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!M||!yh(M))return;let C;if(s.includeCompletionsWithSnippetText){const U=w.createEmptyStatement();C=w.createBlock([U],!0),YU(U,{kind:0,order:0})}else C=w.createBlock([],!0);const O=M.parameters.map(U=>w.createParameterDeclaration(void 0,U.dotDotDotToken,U.name,void 0,void 0,U.initializer));return w.createMethodDeclaration(void 0,void 0,h,void 0,void 0,O,void 0,C)}default:return}}function lQ(e){let t;const r=_r.createWriter(Fv(e)),i=R0(e,r),o={...r,write:T=>s(T,()=>r.write(T)),nonEscapingWrite:r.write,writeLiteral:T=>s(T,()=>r.writeLiteral(T)),writeStringLiteral:T=>s(T,()=>r.writeStringLiteral(T)),writeSymbol:(T,A)=>s(T,()=>r.writeSymbol(T,A)),writeParameter:T=>s(T,()=>r.writeParameter(T)),writeComment:T=>s(T,()=>r.writeComment(T)),writeProperty:T=>s(T,()=>r.writeProperty(T))};return{printSnippetList:l,printAndFormatSnippetList:p,printNode:h,printAndFormatNode:y};function s(T,A){const R=JE(T);if(R!==T){const M=r.getTextPos();A();const C=r.getTextPos();t=Rn(t||(t=[]),{newText:R,span:{start:M,length:C-M}})}else A()}function l(T,A,R){const M=u(T,A,R);return t?_r.applyChanges(M,t):M}function u(T,A,R){return t=void 0,o.clear(),i.writeList(T,A,R,o),o.getText()}function p(T,A,R,M){const C={text:u(T,A,R),getLineAndCharacterOfPosition(Q){return ys(this,Q)}},O=S5(M,R),U=Do(A,Q=>{const V=_r.assignPositionsToNode(Q);return kc.formatNodeGivenIndentation(V,C,R.languageVariant,0,0,{...M,options:O})}),K=t?Sv(So(U,t),(Q,V)=>A6(Q.span,V.span)):U;return _r.applyChanges(C.text,K)}function h(T,A,R){const M=m(T,A,R);return t?_r.applyChanges(M,t):M}function m(T,A,R){return t=void 0,o.clear(),i.writeNode(T,A,R,o),o.getText()}function y(T,A,R,M){const C={text:m(T,A,R),getLineAndCharacterOfPosition(V){return ys(this,V)}},O=S5(M,R),U=_r.assignPositionsToNode(A),K=kc.formatNodeGivenIndentation(U,C,R.languageVariant,0,0,{...M,options:O}),Q=t?Sv(So(K,t),(V,se)=>A6(V.span,se.span)):K;return _r.applyChanges(C.text,Q)}}function yLe(e){const t=e.fileName?void 0:Zf(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return vM(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:Zf(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function Mtt(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return dLe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}}function Ltt(e,t,r,i,o,s,l){const u=t.replacementSpan,p=JE(cM(o,l,r.moduleSpecifier)),h=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",y=Fu.getImportKind(o,h,s,!0),T=t.couldBeTypeOnlyImportSpecifier,A=t.isTopLevelTypeOnly?` ${pa(156)} `:" ",R=T?`${pa(156)} `:"",M=i?";":"";switch(y){case 3:return{replacementSpan:u,insertText:`import${A}${JE(e)}${m} = require(${p})${M}`};case 1:return{replacementSpan:u,insertText:`import${A}${JE(e)}${m} from ${p}${M}`};case 2:return{replacementSpan:u,insertText:`import${A}* as ${JE(e)} from ${p}${M}`};case 0:return{replacementSpan:u,insertText:`import${A}{ ${R}${JE(e)}${m} } from ${p}${M}`}}}function bLe(e,t,r){return/^\d+$/.test(r)?r:cM(e,t,r)}function ktt(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function yme(e){if(mz(e))return Zf(e.moduleSymbol.name);if(vM(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function bme(e,t,r,i,o,s,l,u,p,h,m,y,T,A,R,M,C,O,U,K,Q,V,se,G,ne,he=!1){const ye=Xs(),Y=tnt(i,o),X=hO(l),oe=p.getTypeChecker(),pe=new Map;for(let ie=0;ie<e.length;ie++){const ve=e[ie],Le=V==null?void 0:V[ie],Ue=uQ(ve,h,Le,y,!!O);if(!Ue||pe.get(Ue.name)&&(!Le||!cLe(Le))||y===1&&se&&!Ce(ve,se)||!M&&lr(l)&&de(ve))continue;const{name:Ee,needsConvertPropertyAccess:De}=Ue,Me=(se==null?void 0:se[Sa(ve)])??zu.LocationPriority,We=nnt(ve,oe)?zu.Deprecated(Me):Me,At=xtt(ve,We,r,i,o,s,l,u,p,Ee,De,Le,Q,C,U,K,X,A,T,y,R,G,ne,he);if(!At)continue;const Se=(!Le||lLe(Le))&&!(ve.parent===void 0&&!bt(ve.declarations,je=>je.getSourceFile()===o.getSourceFile()));pe.set(Ee,Se),by(t,At,_z,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Xs()-ye)),{has:ie=>pe.has(ie),add:ie=>pe.set(ie,!0)};function Ce(ie,ve){var Le;let Ue=ie.flags;if(!$i(o)){if(kl(o.parent))return!0;if(ri(Y,Oi)&&ie.valueDeclaration===Y)return!1;const Ee=ie.valueDeclaration??((Le=ie.declarations)==null?void 0:Le[0]);if(Y&&Ee&&(hl(Y)&&hl(Ee)||Ao(Y)&&Ao(Ee))){const Me=Ee.pos,We=Ao(Y)?Y.parent.parameters:kS(Y.parent)?void 0:Y.parent.typeParameters;if(Me>=Y.pos&&We&&Me<We.end)return!1}const De=bu(ie,oe);if(l.externalModuleIndicator&&!A.allowUmdGlobalAccess&&ve[Sa(ie)]===zu.GlobalsOrKeywords&&(ve[Sa(De)]===zu.AutoImportSuggestions||ve[Sa(De)]===zu.LocationPriority))return!1;if(Ue|=RR(De),F7(o))return!!(Ue&1920);if(M)return Ime(ie,oe)}return!!(Ue&111551)}function de(ie){var ve;const Le=RR(bu(ie,oe));return!(Le&111551)&&(!lr((ve=ie.declarations)==null?void 0:ve[0])||!!(Le&788968))}}function wtt(e){const t=Ott(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function Ott(e){const t=[],r=new Map;let i=e;for(;i&&!ea(i);){if(ZE(i)){const o=i.label.text;r.has(o)||(r.set(o,!0),t.push({name:o,kindModifiers:"",kind:"label",sortText:zu.LocationPriority}))}i=i.parent}return t}function ELe(e,t,r,i,o,s,l){if(o.source==="SwitchCases/")return{type:"cases"};if(o.data){const K=TLe(o.name,o.data,e,s);if(K){const{contextToken:Q,previousToken:V}=cQ(i,r);return{type:"symbol",symbol:K.symbol,location:Vd(r,i),previousToken:V,contextToken:Q,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:K.origin}}}const u=e.getCompilerOptions(),p=SLe(e,t,r,u,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!p)return{type:"none"};if(p.kind!==0)return{type:"request",request:p};const{symbols:h,literals:m,location:y,completionKind:T,symbolToOriginInfoMap:A,contextToken:R,previousToken:M,isJsxInitializer:C,isTypeOnlyLocation:O}=p,U=In(m,K=>vme(r,l,K)===o.name);return U!==void 0?{type:"literal",literal:U}:Ht(h,(K,Q)=>{const V=A[Q],se=uQ(K,os(u),V,T,p.isJsxIdentifierExpected);return se&&se.name===o.name&&(o.source==="ClassMemberSnippet/"&&K.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&K.flags&8196||yme(V)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:K,location:y,origin:V,contextToken:R,previousToken:M,isJsxInitializer:C,isTypeOnlyLocation:O}:void 0})||{type:"none"}}function Wtt(e,t,r,i,o,s,l,u,p){const h=e.getTypeChecker(),m=e.getCompilerOptions(),{name:y,source:T,data:A}=o,{previousToken:R,contextToken:M}=cQ(i,r);if(SI(r,i,R))return gQ.getStringLiteralCompletionDetails(y,r,i,R,e,s,p,u);const C=ELe(e,t,r,i,o,s,u);switch(C.type){case"request":{const{request:O}=C;switch(O.kind){case 1:return k0.getJSDocTagNameCompletionDetails(y);case 2:return k0.getJSDocTagCompletionDetails(y);case 3:return k0.getJSDocParameterNameCompletionDetails(y);case 4:return bt(O.keywordCompletions,U=>U.name===y)?Eme(y,"keyword",5):void 0;default:return N.assertNever(O)}}case"symbol":{const{symbol:O,location:U,contextToken:K,origin:Q,previousToken:V}=C,{codeActions:se,sourceDisplay:G}=Ftt(y,U,K,Q,O,e,s,m,r,i,V,l,u,A,T,p),ne=hme(Q)?Q.symbolName:O.name;return Sme(O,ne,h,r,U,p,se,G)}case"literal":{const{literal:O}=C;return Eme(vme(r,u,O),"string",typeof O=="string"?8:7)}case"cases":{const O=gLe(M.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(O!=null&&O.importAdder.hasFixes()){const{entry:U,importAdder:K}=O,Q=_r.ChangeTracker.with({host:s,formatContext:l,preferences:u},K.writeFixes);return{name:U.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Q,description:iT([f.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Cme().some(O=>O.name===y)?Eme(y,"keyword",5):void 0;default:N.assertNever(C)}}function Eme(e,t,r){return hz(e,"",t,[rp(e,r)])}function Sme(e,t,r,i,o,s,l,u){const{displayParts:p,documentation:h,symbolKind:m,tags:y}=r.runWithCancellationToken(s,T=>Qv.getSymbolDisplayPartsDocumentationAndSymbolKind(T,e,i,o,o,7));return hz(t,Qv.getSymbolModifiers(r,e),m,p,h,y,l,u)}function hz(e,t,r,i,o,s,l,u){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:u,sourceDisplay:u}}function Ftt(e,t,r,i,o,s,l,u,p,h,m,y,T,A,R,M){if(A!=null&&A.moduleSpecifier&&m&&PLe(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[cf(A.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){const{importAdder:se,eraseRange:G}=vLe(l,s,u,T,e,o,t,h,r,y);if(se||G)return{sourceDisplay:void 0,codeActions:[{changes:_r.ChangeTracker.with({host:l,formatContext:y,preferences:T},he=>{se&&se.writeFixes(he),G&&he.deleteRange(p,G)}),description:iT([f.Includes_imports_of_types_referenced_by_0,e])}]}}if(lLe(i)){const se=Fu.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,y,T);return N.assertIsDefined(se,"Expected to have a code action for promoting type-only alias"),{codeActions:[se],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){const se=_r.ChangeTracker.with({host:l,formatContext:y,preferences:T},G=>G.insertText(p,r.end,","));if(se)return{sourceDisplay:void 0,codeActions:[{changes:se,description:iT([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(mz(i)||vM(i)))return{codeActions:void 0,sourceDisplay:void 0};const C=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:O}=i,U=C.getMergedSymbol(bu(o.exportSymbol||o,C)),K=(r==null?void 0:r.kind)===30&&ld(r.parent),{moduleSpecifier:Q,codeAction:V}=Fu.getImportCompletionAction(U,O,A==null?void 0:A.exportMapKey,p,e,K,l,s,y,m&&Ve(m)?m.getStart(p):h,T,M);return N.assert(!(A!=null&&A.moduleSpecifier)||Q===A.moduleSpecifier),{sourceDisplay:[cf(Q)],codeActions:[V]}}function ztt(e,t,r,i,o,s,l){const u=ELe(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}function Btt(e,t,r){return Ht(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!Zie(o)?Tme(o,e,r):void 0})}function Gtt(e,t,r,i){const{parent:o}=e;switch(e.kind){case 80:return u5(e,i);case 64:switch(o.kind){case 260:return i.getContextualType(o.initializer);case 226:return i.getTypeAtLocation(o.left);case 291:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:const s=ri(o,UR);return s?dX(s,i):void 0;case 19:return bP(o)&&!sg(o.parent)&&!t1(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const l=QO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):d5(e.kind)&&mr(o)&&d5(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Tme(e,t,r){const i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Ua(i):e.parent&&(Vtt(e.parent)?e:Tme(e.parent,t,r))}function Vtt(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function SLe(e,t,r,i,o,s,l,u,p,h){const m=e.getTypeChecker(),y=hLe(r,i);let T=Xs(),A=po(r,o);t("getCompletionData: Get current token: "+(Xs()-T)),T=Xs();const R=qv(r,o,A);t("getCompletionData: Is inside comment: "+(Xs()-T));let M=!1,C=!1;if(R){if(aue(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const Be=am(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(Be,o)))return{kind:2}}}const fe=qtt(A,o);if(fe){if(fe.tagName.pos<=o&&o<=fe.tagName.end)return{kind:1};const Be=tn(fe);if(Be&&(A=po(r,o),(!A||!wg(A)&&(A.parent.kind!==355||A.parent.name!==A))&&(M=J(Be))),!M&&e_(fe)&&(Fl(fe.name)||fe.name.pos<=o&&o<=fe.name.end))return{kind:3,tag:fe}}if(!M){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}T=Xs();const O=!M&&cd(r),U=cQ(o,r),K=U.previousToken;let Q=U.contextToken;t("getCompletionData: Get previous token: "+(Xs()-T));let V=A,se,G=!1,ne=!1,he=!1,ye=!1,Y=!1,X=!1,oe,pe=Vd(r,o),Ce=0,de=!1,ie=0;if(Q){const fe=PLe(Q,r);if(fe.keywordCompletion){if(fe.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[vtt(fe.keywordCompletion)],isNewIdentifierLocation:fe.isNewIdentifierLocation};Ce=btt(fe.keywordCompletion)}if(fe.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ie|=2,oe=fe,de=fe.isNewIdentifierLocation),!fe.replacementSpan&&Qi(Q))return t("Returning an empty list because completion was requested in an invalid position."),Ce?mLe(Ce,O,fa()):void 0;let Be=Q.parent;if(Q.kind===25||Q.kind===29)switch(G=Q.kind===25,ne=Q.kind===29,Be.kind){case 211:se=Be,V=se.expression;const ke=DR(se);if(Fl(ke)||(sa(V)||ea(V))&&V.end===Q.pos&&V.getChildCount(r)&&Xa(V.getChildren(r)).kind!==22)return;break;case 166:V=Be.left;break;case 267:V=Be.name;break;case 205:V=Be;break;case 236:V=Be.getFirstToken(r),N.assert(V.kind===102||V.kind===105);break;default:return}else if(!oe){if(Be&&Be.kind===211&&(Q=Be,Be=Be.parent),A.parent===pe)switch(A.kind){case 32:(A.parent.kind===284||A.parent.kind===286)&&(pe=A);break;case 44:A.parent.kind===285&&(pe=A);break}switch(Be.kind){case 287:Q.kind===44&&(ye=!0,pe=Q);break;case 226:if(!CLe(Be))break;case 285:case 284:case 286:X=!0,Q.kind===30&&(he=!0,pe=Q);break;case 294:case 293:(K.kind===20||K.kind===80&&K.parent.kind===291)&&(X=!0);break;case 291:if(Be.initializer===K&&K.end<o){X=!0;break}switch(K.kind){case 64:Y=!0;break;case 80:X=!0,Be!==K.parent&&!Be.initializer&&vs(Be,64,r)&&(Y=K)}break}}}const ve=Xs();let Le=5,Ue=!1,Ee=[],De;const Me=[],We=[],At=new Map,Se=Ci(),je=lh(fe=>tT(fe?u.getPackageJsonAutoImportProvider():e,u));if(G||ne)rn();else if(he)Ee=m.getJsxIntrinsicTagNamesAt(pe),N.assertEachIsDefined(Ee,"getJsxIntrinsicTagNames() should all be defined"),Qt(),Le=1,Ce=0;else if(ye){const fe=Q.parent.parent.openingElement.tagName,Be=m.getSymbolAtLocation(fe);Be&&(Ee=[Be]),Le=1,Ce=0}else if(!Qt())return Ce?mLe(Ce,O,de):void 0;t("getCompletionData: Semantic work: "+(Xs()-ve));const ot=K&&Gtt(K,o,r,m),vt=!ri(K,ls)&&!X?eo(ot&&(ot.isUnion()?ot.types:[ot]),fe=>fe.isLiteral()&&!(fe.flags&1024)?fe.value:void 0):[],$e=K&&ot&&Btt(K,ot,m);return{kind:0,symbols:Ee,completionKind:Le,isInSnippetScope:C,propertyAccessToConvert:se,isNewIdentifierLocation:de,location:pe,keywordFilters:Ce,literals:vt,symbolToOriginInfoMap:Me,recommendedCompletion:$e,previousToken:K,contextToken:Q,isJsxInitializer:Y,insideJsDocTagTypeExpression:M,symbolToSortTextMap:We,isTypeOnlyLocation:Se,isJsxIdentifierExpected:X,isRightOfOpenTag:he,isRightOfDotOrQuestionDot:G||ne,importStatementCompletion:oe,hasUnresolvedAutoImports:Ue,flags:ie};function It(fe){switch(fe.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!fe.constraint;default:return!1}}function tn(fe){if(It(fe)){const Be=om(fe)?fe.constraint:fe.typeExpression;return Be&&Be.kind===316?Be:void 0}if(uI(fe)||QW(fe))return fe.class}function rn(){Le=2;const fe=Oy(V),Be=fe&&!V.isTypeOf||$h(V.parent)||iO(Q,r,m),ke=F7(V);if(Qd(V)||fe||Fr(V)){const Tt=Xl(V.parent);Tt&&(de=!0);let kt=m.getSymbolAtLocation(V);if(kt&&(kt=bu(kt,m),kt.flags&1920)){const en=m.getExportsOfModule(kt);N.assertEachIsDefined(en,"getExportsOfModule() should all be defined");const En=Pi=>m.isValidPropertyAccess(fe?V:V.parent,Pi.name),Gn=Pi=>Ime(Pi,m),qn=Tt?Pi=>{var xi;return!!(Pi.flags&1920)&&!((xi=Pi.declarations)!=null&&xi.every(ir=>ir.parent===V.parent))}:ke?Pi=>Gn(Pi)||En(Pi):Be||M?Gn:En;for(const Pi of en)qn(Pi)&&Ee.push(Pi);if(!Be&&!M&&kt.declarations&&kt.declarations.some(Pi=>Pi.kind!==312&&Pi.kind!==267&&Pi.kind!==266)){let Pi=m.getTypeOfSymbolAtLocation(kt,V).getNonOptionalType(),xi=!1;if(Pi.isNullableType()){const ir=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(ir||ne)&&(Pi=Pi.getNonNullableType(),ir&&(xi=!0))}Mn(Pi,!!(V.flags&65536),xi)}return}}if(!Be||DS(V)){m.tryGetThisTypeAt(V,!1);let Tt=m.getTypeAtLocation(V).getNonOptionalType();if(Be)Mn(Tt.getNonNullableType(),!1,!1);else{let kt=!1;if(Tt.isNullableType()){const en=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(en||ne)&&(Tt=Tt.getNonNullableType(),en&&(kt=!0))}Mn(Tt,!!(V.flags&65536),kt)}}}function Mn(fe,Be,ke){de=!!fe.getStringIndexType(),ne&&bt(fe.getCallSignatures())&&(de=!0);const Tt=V.kind===205?V:V.parent;if(y)for(const kt of fe.getApparentProperties())m.isValidPropertyAccessForCompletions(Tt,fe,kt)&&$n(kt,!1,ke);else Ee.push(...mn(fQ(fe,m),kt=>m.isValidPropertyAccessForCompletions(Tt,fe,kt)));if(Be&&s.includeCompletionsWithInsertText){const kt=m.getPromisedTypeOfPromise(fe);if(kt)for(const en of kt.getApparentProperties())m.isValidPropertyAccessForCompletions(Tt,kt,en)&&$n(en,!0,ke)}}function $n(fe,Be,ke){var Tt;const kt=Ht(fe.declarations,qn=>ri(Lo(qn),Za));if(kt){const qn=gn(kt.expression),Pi=qn&&m.getSymbolAtLocation(qn),xi=Pi&&Tme(Pi,Q,m),ir=xi&&Sa(xi);if(ir&&Am(At,ir)){const Vr=Ee.length;Ee.push(xi);const vo=xi.parent;if(!vo||!sO(vo)||m.tryGetMemberInModuleExportsAndProperties(xi.name,vo)!==xi)Me[Vr]={kind:Gn(2)};else{const Mi=Xc(Zf(vo.name))?(Tt=D4(vo))==null?void 0:Tt.fileName:void 0,{moduleSpecifier:Ri}=(De||(De=Fu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Mi,isFromPackageJson:!1,moduleSymbol:vo,symbol:xi,targetFlags:bu(xi,m).flags}],o,h0(pe))||{};if(Ri){const Jr={kind:Gn(6),moduleSymbol:vo,isDefaultExport:!1,symbolName:xi.name,exportName:xi.name,fileName:Mi,moduleSpecifier:Ri};Me[Vr]=Jr}}}else if(s.includeCompletionsWithInsertText){if(ir&&At.has(ir))return;En(fe),en(fe),Ee.push(fe)}}else En(fe),en(fe),Ee.push(fe);function en(qn){Qtt(qn)&&(We[Sa(qn)]=zu.LocalDeclarationPriority)}function En(qn){s.includeCompletionsWithInsertText&&(Be&&Am(At,Sa(qn))?Me[Ee.length]={kind:Gn(8)}:ke&&(Me[Ee.length]={kind:16}))}function Gn(qn){return ke?qn|16:qn}}function gn(fe){return Ve(fe)?fe:Fr(fe)?gn(fe.expression):void 0}function Qt(){return(Tn()||wn()||so()||He()||mt()||ft()||Yt()||Ct()||vi()||(Wi(),1))===1}function Yt(){return Fe(Q)?(Le=5,de=!0,Ce=4,1):0}function vi(){const fe=j(Q),Be=fe&&m.getContextualType(fe.attributes);if(!Be)return 0;const ke=fe&&m.getContextualType(fe.attributes,4);return Ee=So(Ee,me(pQ(Be,ke,fe.attributes,m),fe.attributes.properties)),q(),Le=3,de=!1,1}function so(){return oe?(de=!0,tt(),1):0}function Wi(){Ce=pt(Q)?5:1,Le=1,de=fa(),K!==Q&&N.assert(!!K,"Expected 'contextToken' to be defined when different from 'previousToken'.");const fe=K!==Q?K.getStart():o,Be=yi(Q,fe,r)||r;C=Ln(Be);const ke=(Se?0:111551)|788968|1920|2097152,Tt=K&&!h0(K);Ee=So(Ee,m.getSymbolsInScope(Be,ke)),N.assertEachIsDefined(Ee,"getSymbolsInScope() should all be defined");for(let kt=0;kt<Ee.length;kt++){const en=Ee[kt];if(!m.isArgumentsSymbol(en)&&!bt(en.declarations,En=>En.getSourceFile()===r)&&(We[Sa(en)]=zu.GlobalsOrKeywords),Tt&&!(en.flags&111551)){const En=en.declarations&&In(en.declarations,lL);if(En){const Gn={kind:64,declaration:En};Me[kt]=Gn}}}if(s.includeCompletionsWithInsertText&&Be.kind!==312){const kt=m.tryGetThisTypeAt(Be,!1,di(Be.parent)?Be:void 0);if(kt&&!$tt(kt,r,m))for(const en of fQ(kt,m))Me[Ee.length]={kind:1},Ee.push(en),We[Sa(en)]=zu.SuggestedClassMembers}tt(),Se&&(Ce=Q&&mS(Q.parent)?6:7)}function Co(){return oe?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||JK(e.getCompilerOptions())?!0:pue(e):!1}function Ln(fe){switch(fe.kind){case 312:case 228:case 294:case 241:return!0;default:return Hi(fe)}}function Ci(){return M||!!oe&&s0(pe.parent)||!Ar(Q)&&(iO(Q,r,m)||$h(pe)||sn(Q))}function Ar(fe){return fe&&(fe.kind===114&&(fe.parent.kind===186||VR(fe.parent))||fe.kind===131&&fe.parent.kind===182)}function sn(fe){if(fe){const Be=fe.parent.kind;switch(fe.kind){case 59:return Be===172||Be===171||Be===169||Be===260||TA(Be);case 64:return Be===265||Be===168;case 130:return Be===234;case 30:return Be===183||Be===216;case 96:return Be===168;case 152:return Be===238}}return!1}function tt(){var fe,Be;if(!Co()||(N.assert(!(l!=null&&l.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;ie|=1;const Tt=K===Q&&oe?"":K&&Ve(K)?K.text.toLowerCase():"",kt=(fe=u.getModuleSpecifierCache)==null?void 0:fe.call(u),en=bO(r,u,e,s,h),En=(Be=u.getPackageJsonAutoImportProvider)==null?void 0:Be.call(u),Gn=l?void 0:dM(r,s,u);uLe("collectAutoImports",u,De||(De=Fu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!oe,h0(pe),Pi=>{en.search(r.path,he,(xi,ir)=>{if(!Zp(xi,os(u.getCompilationSettings()))||!l&&LA(xi)||!Se&&!oe&&!(ir&111551)||Se&&!(ir&790504))return!1;const Vr=xi.charCodeAt(0);return he&&(Vr<65||Vr>90)?!1:l?!0:OLe(xi,Tt)},(xi,ir,Vr,vo)=>{if(l&&!bt(xi,Fs=>l.source===Zf(Fs.moduleSymbol.name))||(xi=mn(xi,qn),!xi.length))return;const Mi=Pi.tryResolve(xi,Vr)||{};if(Mi==="failed")return;let Ri=xi[0],Jr;Mi!=="skipped"&&({exportInfo:Ri=xi[0],moduleSpecifier:Jr}=Mi);const xo=Ri.exportKind===1,Nn=xo&&xR(Ri.symbol)||Ri.symbol;zt(Nn,{kind:Jr?32:4,moduleSpecifier:Jr,symbolName:ir,exportMapKey:vo,exportName:Ri.exportKind===2?"export=":Ri.symbol.name,fileName:Ri.moduleFileName,isDefaultExport:xo,moduleSymbol:Ri.moduleSymbol,isFromPackageJson:Ri.isFromPackageJson})}),Ue=Pi.skippedAny(),ie|=Pi.resolvedAny()?8:0,ie|=Pi.resolvedBeyondLimit()?16:0});function qn(Pi){const xi=ri(Pi.moduleSymbol.valueDeclaration,$i);if(!xi){const ir=Zf(Pi.moduleSymbol.name);return F_.nodeCoreModules.has(ir)&&uo(ir,"node:")!==E5(r,e)?!1:Gn?Gn.allowsImportingAmbientModule(Pi.moduleSymbol,je(Pi.isFromPackageJson)):!0}return RX(Pi.isFromPackageJson?En:e,r,xi,s,Gn,je(Pi.isFromPackageJson),kt)}}function zt(fe,Be){const ke=Sa(fe);We[ke]!==zu.GlobalsOrKeywords&&(Me[Ee.length]=Be,We[ke]=oe?zu.LocationPriority:zu.AutoImportSuggestions,Ee.push(fe))}function Dn(fe,Be){lr(pe)||fe.forEach(ke=>{if(!ci(ke))return;const Tt=uQ(ke,os(i),void 0,0,!1);if(!Tt)return;const{name:kt}=Tt,en=Ctt(ke,kt,Be,e,u,i,s,p);if(!en)return;const En={kind:128,...en};ie|=32,Me[Ee.length]=En,Ee.push(ke)})}function ci(fe){return!!(fe.flags&8196)}function yi(fe,Be,ke){let Tt=fe;for(;Tt&&!LK(Tt,Be,ke);)Tt=Tt.parent;return Tt}function Qi(fe){const Be=Xs(),ke=ka(fe)||Rt(fe)||Gt(fe)||Io(fe)||WW(fe);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Xs()-Be)),ke}function Io(fe){if(fe.kind===12)return!0;if(fe.kind===32&&fe.parent){if(pe===fe.parent&&(pe.kind===286||pe.kind===285))return!1;if(fe.parent.kind===286)return pe.parent.kind!==286;if(fe.parent.kind===287||fe.parent.kind===285)return!!fe.parent.parent&&fe.parent.parent.kind===284}return!1}function fa(){if(Q){const fe=Q.parent.kind,Be=dQ(Q);switch(Be){case 28:return fe===213||fe===176||fe===214||fe===209||fe===226||fe===184||fe===210;case 21:return fe===213||fe===176||fe===214||fe===217||fe===196;case 23:return fe===209||fe===181||fe===167;case 144:case 145:case 102:return!0;case 25:return fe===267;case 19:return fe===263||fe===210;case 64:return fe===260||fe===226;case 16:return fe===228;case 17:return fe===239;case 134:return fe===174||fe===304;case 42:return fe===174}if(gz(Be))return!0}return!1}function ka(fe){return(tH(fe)||kV(fe))&&(tO(fe,o)||o===fe.end&&(!!fe.isUnterminated||tH(fe)))}function Tn(){const fe=Xtt(Q);if(!fe)return 0;const ke=(nI(fe.parent)?fe.parent:void 0)||fe,Tt=NLe(ke,m);if(!Tt)return 0;const kt=m.getTypeFromTypeNode(ke),en=fQ(Tt,m),En=fQ(kt,m),Gn=new Set;return En.forEach(qn=>Gn.add(qn.escapedName)),Ee=So(Ee,mn(en,qn=>!Gn.has(qn.escapedName))),Le=0,de=!0,1}function wn(){const fe=Ee.length,Be=jtt(Q,o,r);if(!Be)return 0;Le=0;let ke,Tt;if(Be.kind===210){const kt=Ztt(Be,m);if(kt===void 0)return Be.flags&67108864?2:0;const en=m.getContextualType(Be,4),En=(en||kt).getStringIndexType(),Gn=(en||kt).getNumberIndexType();if(de=!!En||!!Gn,ke=pQ(kt,en,Be,m),Tt=Be.properties,ke.length===0&&!Gn)return 0}else{N.assert(Be.kind===206),de=!1;const kt=R_(Be.parent);if(!aR(kt))return N.fail("Root declaration is not variable-like.");let en=Ly(kt)||!!yu(kt)||kt.parent.parent.kind===250;if(!en&&kt.kind===169&&(yt(kt.parent)?en=!!m.getContextualType(kt.parent):(kt.parent.kind===174||kt.parent.kind===178)&&(en=yt(kt.parent.parent)&&!!m.getContextualType(kt.parent.parent))),en){const En=m.getTypeAtLocation(Be);if(!En)return 2;ke=m.getPropertiesOfType(En).filter(Gn=>m.isPropertyAccessible(Be,!1,!1,En,Gn)),Tt=Be.elements}}if(ke&&ke.length>0){const kt=fn(ke,N.checkDefined(Tt));Ee=So(Ee,kt),q(),Be.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Lt(fe),Dn(kt,Be))}return 1}function He(){if(!Q)return 0;const fe=Q.kind===19||Q.kind===28?ri(Q.parent,R3):e5(Q)?ri(Q.parent.parent,R3):void 0;if(!fe)return 0;e5(Q)||(Ce=8);const{moduleSpecifier:Be}=fe.kind===275?fe.parent.parent:fe.parent;if(!Be)return de=!0,fe.kind===275?2:0;const ke=m.getSymbolAtLocation(Be);if(!ke)return de=!0,2;Le=3,de=!1;const Tt=m.getExportsAndPropertiesOfModule(ke),kt=new Set(fe.elements.filter(En=>!J(En)).map(En=>(En.propertyName||En.name).escapedText)),en=Tt.filter(En=>En.escapedName!=="default"&&!kt.has(En.escapedName));return Ee=So(Ee,en),en.length||(Ce=0),1}function mt(){if(Q===void 0)return 0;const fe=Q.kind===19||Q.kind===28?ri(Q.parent,aI):Q.kind===59?ri(Q.parent.parent,aI):void 0;if(fe===void 0)return 0;const Be=new Set(fe.elements.map(Y3));return Ee=mn(m.getTypeAtLocation(fe).getApparentProperties(),ke=>!Be.has(ke.escapedName)),1}function ft(){var fe;const Be=Q&&(Q.kind===19||Q.kind===28)?ri(Q.parent,Nf):void 0;if(!Be)return 0;const ke=Vn(Be,Jm($i,Xl));return Le=5,de=!1,(fe=ke.locals)==null||fe.forEach((Tt,kt)=>{var en,En;Ee.push(Tt),(En=(en=ke.symbol)==null?void 0:en.exports)!=null&&En.has(kt)&&(We[Sa(Tt)]=zu.OptionalMember)}),1}function Ct(){const fe=Ktt(r,Q,pe,o);if(!fe)return 0;if(Le=3,de=!0,Ce=Q.kind===42?0:di(fe)?2:3,!di(fe))return 1;const Be=Q.kind===27?Q.parent.parent:Q.parent;let ke=Yc(Be)?ud(Be):0;if(Q.kind===80&&!J(Q))switch(Q.getText()){case"private":ke=ke|2;break;case"static":ke=ke|256;break;case"override":ke=ke|16;break}if(Rl(Be)&&(ke|=256),!(ke&2)){const Tt=di(fe)&&ke&16?hA(I_(fe)):RC(fe),kt=Do(Tt,en=>{const En=m.getTypeAtLocation(en);return ke&256?(En==null?void 0:En.symbol)&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(En.symbol,fe)):En&&m.getPropertiesOfType(En)});Ee=So(Ee,L(kt,fe.members,ke)),Xe(Ee,(en,En)=>{const Gn=en==null?void 0:en.valueDeclaration;if(Gn&&Yc(Gn)&&Gn.name&&Za(Gn.name)){const qn={kind:512,symbolName:m.symbolToString(en)};Me[En]=qn}})}return 1}function le(fe){return!!fe.parent&&Ao(fe.parent)&&Ml(fe.parent.parent)&&(pC(fe.kind)||wg(fe))}function Fe(fe){if(fe){const Be=fe.parent;switch(fe.kind){case 21:case 28:return Ml(fe.parent)?fe.parent:void 0;default:if(le(fe))return Be.parent}}}function pt(fe){if(fe){let Be;const ke=Vn(fe.parent,Tt=>di(Tt)?"quit":Bs(Tt)&&Be===Tt.body?!0:(Be=Tt,!1));return ke&&ke}}function j(fe){if(fe){const Be=fe.parent;switch(fe.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Be&&(Be.kind===285||Be.kind===286)){if(fe.kind===32){const ke=Ic(fe.pos,r,void 0);if(!Be.typeArguments||ke&&ke.kind===44)break}return Be}else if(Be.kind===291)return Be.parent.parent;break;case 11:if(Be&&(Be.kind===291||Be.kind===293))return Be.parent.parent;break;case 20:if(Be&&Be.kind===294&&Be.parent&&Be.parent.kind===291)return Be.parent.parent.parent;if(Be&&Be.kind===293)return Be.parent.parent;break}}}function it(fe,Be){return r.getLineEndOfPosition(fe.getEnd())<Be}function Rt(fe){const Be=fe.parent,ke=Be.kind;switch(fe.kind){case 28:return ke===260||yn(fe)||ke===243||ke===266||_t(ke)||ke===264||ke===207||ke===265||di(Be)&&!!Be.typeParameters&&Be.typeParameters.end>=fe.pos;case 25:return ke===207;case 59:return ke===208;case 23:return ke===207;case 21:return ke===299||_t(ke);case 19:return ke===266;case 30:return ke===263||ke===231||ke===264||ke===265||TA(ke);case 126:return ke===172&&!di(Be.parent);case 26:return ke===169||!!Be.parent&&Be.parent.kind===207;case 125:case 123:case 124:return ke===169&&!Ml(Be.parent);case 130:return ke===276||ke===281||ke===274;case 139:case 153:return!mQ(fe);case 80:{if(ke===276&&fe===Be.name&&fe.text==="type"||Vn(fe.parent,Oi)&&it(fe,o))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return ke!==276;case 42:return ea(fe.parent)&&!Hl(fe.parent)}if(gz(dQ(fe))&&mQ(fe)||le(fe)&&(!Ve(fe)||pC(dQ(fe))||J(fe)))return!1;switch(dQ(fe)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return qo(fe.parent)}if(Vn(fe.parent,di)&&fe===K&&Ye(fe,o))return!1;const kt=f0(fe.parent,172);if(kt&&fe!==K&&di(K.parent.parent)&&o<=K.end){if(Ye(fe,K.end))return!1;if(fe.kind!==64&&(Dw(kt)||S4(kt)))return!0}return wg(fe)&&!np(fe.parent)&&!w_(fe.parent)&&!((di(fe.parent)||md(fe.parent)||hl(fe.parent))&&(fe!==K||o>K.end))}function Ye(fe,Be){return fe.kind!==64&&(fe.kind===27||!If(fe.end,Be,r))}function _t(fe){return TA(fe)&&fe!==176}function Gt(fe){if(fe.kind===9){const Be=fe.getFullText();return Be.charAt(Be.length-1)==="."}return!1}function yn(fe){return fe.parent.kind===261&&!iO(fe,r,m)}function fn(fe,Be){if(Be.length===0)return fe;const ke=new Set,Tt=new Set;for(const en of Be){if(en.kind!==303&&en.kind!==304&&en.kind!==208&&en.kind!==174&&en.kind!==177&&en.kind!==178&&en.kind!==305||J(en))continue;let En;if(jv(en))hn(en,ke);else if($a(en)&&en.propertyName)en.propertyName.kind===80&&(En=en.propertyName.escapedText);else{const Gn=Lo(en);En=Gn&&x_(Gn)?CC(Gn):void 0}En!==void 0&&Tt.add(En)}const kt=fe.filter(en=>!Tt.has(en.escapedName));return Oe(ke,kt),kt}function hn(fe,Be){const ke=fe.expression,Tt=m.getSymbolAtLocation(ke),kt=Tt&&m.getTypeOfSymbolAtLocation(Tt,ke),en=kt&&kt.properties;en&&en.forEach(En=>{Be.add(En.name)})}function q(){Ee.forEach(fe=>{if(fe.flags&16777216){const Be=Sa(fe);We[Be]=We[Be]??zu.OptionalMember}})}function Oe(fe,Be){if(fe.size!==0)for(const ke of Be)fe.has(ke.name)&&(We[Sa(ke)]=zu.MemberDeclaredBySpreadAssignment)}function Lt(fe){for(let Be=fe;Be<Ee.length;Be++){const ke=Ee[Be],Tt=Sa(ke),kt=Me==null?void 0:Me[Be],en=os(i),En=uQ(ke,en,kt,0,!1);if(En){const Gn=We[Tt]??zu.LocationPriority,{name:qn}=En;We[Tt]=zu.ObjectLiteralProperty(Gn,qn)}}}function L(fe,Be,ke){const Tt=new Set;for(const kt of Be){if(kt.kind!==172&&kt.kind!==174&&kt.kind!==177&&kt.kind!==178||J(kt)||_p(kt,2)||aa(kt)!==!!(ke&256))continue;const en=IS(kt.name);en&&Tt.add(en)}return fe.filter(kt=>!Tt.has(kt.escapedName)&&!!kt.declarations&&!(xf(kt)&2)&&!(kt.valueDeclaration&&sd(kt.valueDeclaration)))}function me(fe,Be){const ke=new Set,Tt=new Set;for(const en of Be)J(en)||(en.kind===291?ke.add(iP(en.name)):cI(en)&&hn(en,Tt));const kt=fe.filter(en=>!ke.has(en.escapedName));return Oe(Tt,kt),kt}function J(fe){return fe.getStart(r)<=o&&o<=fe.getEnd()}}function jtt(e,t,r){var i;if(e){const{parent:o}=e;switch(e.kind){case 19:case 28:if(La(o)||im(o))return o;break;case 42:return Hl(o)?ri(o.parent,La):void 0;case 134:return ri(o.parent,La);case 80:if(e.text==="async"&&np(e.parent))return e.parent.parent;{if(La(e.parent.parent)&&(jv(e.parent)||np(e.parent)&&ys(r,e.getEnd()).line!==ys(r,t).line))return e.parent.parent;const l=Vn(o,hc);if((l==null?void 0:l.getLastToken(r))===e&&La(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Hl(o.parent)||tf(o.parent)||vp(o.parent))&&La(o.parent.parent))return o.parent.parent;if(jv(o)&&La(o.parent))return o.parent;const s=Vn(o,hc);if(e.kind!==59&&(s==null?void 0:s.getLastToken(r))===e&&La(s.parent))return s.parent}}}function cQ(e,t){const r=Ic(e,t);return r&&e<=r.end&&(Kh(r)||Bd(r.kind))?{contextToken:Ic(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function TLe(e,t,r,i){const o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(N.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let u=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return u?(u=t.exportName==="default"&&xR(u)||u,{symbol:u,origin:Mtt(t,e,l)}):void 0}function uQ(e,t,r,i,o){if(mtt(r))return;const s=utt(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&wL(s.charCodeAt(0))||tk(e))return;const l={name:s,needsConvertPropertyAccess:!1};if(Zp(s,t,o?1:0)||e.valueDeclaration&&sd(e.valueDeclaration))return l;switch(i){case 3:return hme(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:N.assertNever(i)}}function ALe(e,t){if(!t)return ILe(e);const r=e+8+1;return vz[r]||(vz[r]=ILe(e).filter(i=>!Utt(IE(i.name))))}function ILe(e){return vz[e]||(vz[e]=Cme().filter(t=>{const r=IE(t.name);switch(e){case 0:return!1;case 1:return RLe(r)||r===138||r===144||r===156||r===145||r===128||rM(r)&&r!==157;case 5:return RLe(r);case 2:return gz(r);case 3:return xLe(r);case 4:return pC(r);case 6:return rM(r)||r===87;case 7:return rM(r);case 8:return r===156;default:return N.assertNever(e)}}))}function Utt(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function xLe(e){return e===148}function gz(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return wV(e)}}function RLe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!a3(e)&&!gz(e)}function dQ(e){return Ve(e)?r0(e)??0:e.kind}function Htt(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Mc(o)||Yl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:pa(132),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords})}return r}function qtt(e,t){return Vn(e,r=>Qx(r)&&eO(r,t)?!0:Zm(r)?"quit":!1)}function pQ(e,t,r,i){const o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=Jtt(s,r,i);return s.isClass()&&DLe(l)?[]:o?mn(l,u):l;function u(p){return Ne(p.declarations)?bt(p.declarations,h=>h.parent!==r):!0}}function Jtt(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(mn(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&DLe(i.getApparentProperties())))):e.getApparentProperties()}function DLe(e){return bt(e,t=>!!(xf(t)&6))}function fQ(e,t){return e.isUnion()?N.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):N.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Ktt(e,t,r,i){switch(r.kind){case 358:return ri(r.parent,FA);case 1:const o=ri(el(oa(r.parent,$i).statements),FA);if(o&&!vs(o,20,e))return o;break;case 81:if(ri(r.parent,qo))return Vn(r,di);break;case 80:{if(r0(r)||qo(r.parent)&&r.parent.initializer===r)return;if(mQ(r))return Vn(r,FA)}}if(t){if(r.kind===137||Ve(t)&&qo(t.parent)&&di(r))return Vn(t,di);switch(t.kind){case 64:return;case 27:case 20:return mQ(r)&&r.parent.name===r?r.parent.parent:ri(r,FA);case 19:case 28:return ri(t.parent,FA);default:if(FA(r)){if(ys(e,t.getEnd()).line!==ys(e,i).line)return r;const o=di(t.parent.parent)?gz:xLe;return o(t.kind)||t.kind===42||Ve(t)&&o(r0(t)??0)?t.parent.parent:void 0}return}}}function Xtt(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(yp(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&yp(t.parent))return t.parent;break}}function NLe(e,t){if(!e)return;if(ji(e)&&T4(e.parent))return t.getTypeArgumentConstraint(e);const r=NLe(e.parent,t);if(r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function mQ(e){return e.parent&&_4(e.parent)&&FA(e.parent.parent)}function Ytt(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&Nue(r)&&i===r.getStart(e)+1;case"#":return!!r&&qi(r)&&!!au(r);case"<":return!!r&&r.kind===30&&(!mr(r.parent)||CLe(r.parent));case"/":return!!r&&(ls(r)?!!UL(r):r.kind===44&&e1(r.parent));case" ":return!!r&&mP(r)&&r.parent.kind===312;default:return N.assertNever(t)}}function CLe({left:e}){return Fl(e)}function $tt(e,t,r){const i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;const s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function Qtt(e){return!!(e.valueDeclaration&&ud(e.valueDeclaration)&256&&di(e.valueDeclaration.parent))}function Ztt(e,t){const r=t.getContextualType(e);if(r)return r;const i=kv(e.parent);if(mr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(yt(i))return t.getContextualType(i)}function PLe(e,t){var r,i,o;let s,l=!1;const u=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(u||s===156),isTopLevelTypeOnly:!!((i=(r=ri(u,Mc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ri(u,eu))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&LLe(u,e),replacementSpan:ent(u)};function p(){const h=e.parent;if(eu(h)){const m=h.getLastToken(t);if(Ve(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,Ame(h.moduleReference)?h:void 0}if(LLe(h,e)&&kLe(h.parent))return h;if(Bg(h)||Yy(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),kLe(h))if(e.kind===20||e.kind===80)l=!0,s=161;else return h.parent.parent;return}if(Yl(h)&&e.kind===42||Nf(h)&&e.kind===20){l=!0,s=161;return}if(mP(e)&&$i(h))return s=156,e;if(mP(e)&&Mc(h))return s=156,Ame(h.moduleSpecifier)?h:void 0}}function ent(e){var t;if(!e)return;const r=Vn(e,Jm(Mc,eu))??e,i=r.getSourceFile();if(CS(r,i))return Dd(r,i);N.assert(r.kind!==102&&r.kind!==276);const o=r.kind===272?MLe((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(CS(s,i))return tb(s)}function MLe(e){var t;return In((t=ri(e,Bg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&LA(r.name.text)&&((i=Ic(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function LLe(e,t){return tp(e)&&(e.isTypeOnly||t===e.name&&e5(t))}function kLe(e){if(!Ame(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Bg(e)){const t=MLe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Ame(e){var t;return Fl(e)?!0:!((t=ri(Sh(e)?e.expression:e,ls))!=null&&t.text)}function tnt(e,t){if(!e)return;const r=Vn(e,o=>kE(o)||wLe(o)||ta(o)?"quit":(Ao(o)||hl(o))&&!XE(o.parent)),i=Vn(t,o=>kE(o)||wLe(o)||ta(o)?"quit":Oi(o));return r||i}function wLe(e){return e.parent&&Gs(e.parent)&&(e.parent.body===e||e.kind===39)}function Ime(e,t,r=new Map){return i(e)||i(bu(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Am(r,Sa(o))&&t.getExportsOfModule(o).some(s=>Ime(s,t,r))}}function nnt(e,t){const r=bu(e,t).declarations;return!!Ne(r)&&Jn(r,b5)}function OLe(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const s=e.length;for(let l=0;l<s;l++){const u=e.charCodeAt(l),p=t.charCodeAt(o);if((u===p||u===rnt(p))&&(r||(r=i===void 0||97<=i&&i<=122&&65<=u&&u<=90||i===95&&u!==95),r&&o++,o===t.length))return!0;i=u}return!1}function rnt(e){return 97<=e&&e<=122?e-32:e}function int(e){return e==="abstract"||e==="async"||e==="await"||e==="declare"||e==="module"||e==="namespace"||e==="type"}var _Q,xme,zu,Rme,Dme,Nme,vz,Cme,ont=I({"src/services/completions.ts"(){si(),Wme(),_Q=100,xme=1e3,zu={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"}},Rme=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Rme||{}),Dme=(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))(Dme||{}),Nme=(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))(Nme||{}),vz=[],Cme=Sd(()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:pa(t),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords});return e})}});function Pme(){const e=new Map;function t(r){const i=e.get(r.name);(!i||Ome[i.kind]<Ome[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function ant(e,t,r,i,o,s,l,u,p){if(uue(e,t)){const h=Snt(e,t,i,o);return h&&WLe(h)}if(SI(e,t,r)){if(!r||!ls(r))return;const h=zLe(e,r,t,s,o,u);return snt(h,r,e,o,s,l,i,u,t,p)}}function snt(e,t,r,i,o,s,l,u,p,h){if(e===void 0)return;const m=jK(t);switch(e.kind){case 0:return WLe(e.paths);case 1:{const y=BB();return bme(e.symbols,y,t,t,r,p,r,i,o,99,s,4,u,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,h),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:m,entries:y}}case 2:{const y=t.kind===15?96:uo(fc(t),"'")?39:34,T=e.types.map(A=>({name:tg(A.value,y),kindModifiers:"",kind:"string",sortText:zu.LocationPriority,replacementSpan:VK(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:T}}default:return N.assertNever(e)}}function lnt(e,t,r,i,o,s,l,u){if(!i||!ls(i))return;const p=zLe(t,i,r,o,s,u);return p&&cnt(e,i,p,t,o.getTypeChecker(),l)}function cnt(e,t,r,i,o,s){switch(r.kind){case 0:{const l=In(r.paths,u=>u.name===e);return l&&hz(e,FLe(l.extension),l.kind,[cf(e)])}case 1:{const l=In(r.symbols,u=>u.name===e);return l&&Sme(l,l.name,o,i,t,s)}case 2:return In(r.types,l=>l.value===e)?hz(e,"","string",[cf(e)]):void 0;default:return N.assertNever(r)}}function WLe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:FLe(u),sortText:zu.LocationPriority,replacementSpan:l}))}}function FLe(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return N.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return N.assertNever(e)}}function zLe(e,t,r,i,o,s){const l=i.getTypeChecker(),u=Mme(t.parent);switch(u.kind){case 201:{const A=Mme(u.parent);return A.kind===205?{kind:0,paths:VLe(e,t,i,o,s)}:p(A)}case 303:return La(u.parent)&&u.name===t?pnt(l,u.parent):h()||h(0);case 212:{const{expression:A,argumentExpression:R}=u;return t===hs(R)?BLe(l.getTypeAtLocation(A)):void 0}case 213:case 214:case 291:if(!xnt(t)&&!zp(u)){const A=QO.getArgumentInfoForCompletions(u.kind===291?u.parent:t,r,e,l);return A&&dnt(A.invocation,t,A,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:VLe(e,t,i,o,s)};case 296:const m=T5(l,u.parent.clauses),y=h();return y?{kind:2,types:y.types.filter(A=>!m.hasValue(A.value)),isNewIdentifier:!1}:void 0;default:return h()||h(0)}function p(m){switch(m.kind){case 233:case 183:{const A=Vn(u,R=>R.parent===m);return A?{kind:2,types:hQ(l.getTypeArgumentConstraint(A)),isNewIdentifier:!1}:void 0}case 199:const{indexType:y,objectType:T}=m;return eO(y,r)?BLe(l.getTypeFromTypeNode(T)):void 0;case 192:{const A=p(Mme(m.parent));if(!A)return;const R=unt(m,u);return A.kind===1?{kind:1,symbols:A.symbols.filter(M=>!Or(R,M.name)),hasIndexSignature:A.hasIndexSignature}:{kind:2,types:A.types.filter(M=>!Or(R,M.value)),isNewIdentifier:!1}}default:return}}function h(m=4){const y=hQ(u5(t,l,m));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function Mme(e){switch(e.kind){case 196:return XL(e);case 217:return kv(e);default:return e}}function unt(e,t){return eo(e.types,r=>r!==t&&Jy(r)&&Na(r.literal)?r.literal.text:void 0)}function dnt(e,t,r,i){let o=!1;const s=new Map,l=ld(e)?N.checkDefined(Vn(t.parent,w_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=Do(u,h=>{if(!Yu(h)&&r.argumentCount>h.parameters.length)return;let m=h.getTypeParameterAtPosition(r.argumentIndex);if(ld(e)){const y=i.getTypeOfPropertyOfType(m,Ek(l.name));y&&(m=y)}return o=o||!!(m.flags&4),hQ(m,s)});return Ne(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function BLe(e){return e&&{kind:1,symbols:mn(e.getApparentProperties(),t=>!(t.valueDeclaration&&sd(t.valueDeclaration))),hasIndexSignature:uX(e)}}function pnt(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:pQ(r,i,t,e),hasIndexSignature:uX(r)}}function hQ(e,t=new Map){return e?(e=qK(e),e.isUnion()?Do(e.types,r=>hQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Am(t,e.value)?[e]:et):et}function yM(e,t,r){return{name:e,kind:t,extension:r}}function Lme(e){return yM(e,"directory",void 0)}function GLe(e,t,r){const i=Ant(e,t),o=e.length===0?void 0:vu(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(ol)||s.includes(q2)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function VLe(e,t,r,i,o){return GLe(t.text,t.getStart(e)+1,fnt(e,t,r,i,o))}function fnt(e,t,r,i,o){const s=Lu(t.text),l=ls(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,p=ai(u),h=r.getCompilerOptions(),m=r.getTypeChecker(),y=kme(h,1,e,m,o,l);return Int(s)||!h.baseUrl&&!h.paths&&(dp(s)||Rne(s))?mnt(s,p,h,i,u,y):vnt(s,p,l,h,i,y,m)}function kme(e,t,r,i,o,s){return{extensionsToSearch:Cs(_nt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o==null?void 0:o.importModuleSpecifierEnding,resolutionMode:s}}function mnt(e,t,r,i,o,s){return r.rootDirs?gnt(r.rootDirs,e,t,s,r,i,o):zo(JO(e,t,s,i,!0,o).values())}function _nt(e,t){const r=t?eo(t.getAmbientModules(),s=>{const l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...JC(e),r],o=pd(e);return t5(o)?mk(e,i):i}function hnt(e,t,r,i){e=e.map(s=>Fc(ha(dp(s)?s:$r(t,s))));const o=Ht(e,s=>gm(s,r,t,i)?r.substr(s.length):void 0);return SE([...e.map(s=>$r(s,o)),r].map(s=>Qb(s)),oS,Uu)}function gnt(e,t,r,i,o,s,l){const u=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=hnt(e,u,r,p);return SE(Do(h,m=>zo(JO(t,m,i,s,!0,l).values())),(m,y)=>m.name===y.name&&m.kind===y.kind&&m.extension===y.extension)}function JO(e,t,r,i,o,s,l=Pme()){var u;e===void 0&&(e=""),e=Lu(e),Dv(e)||(e=ai(e)),e===""&&(e="."+ol),e=Fc(e);const p=Iy(t,e),h=Dv(p)?p:ai(p);if(!o){const A=Pue(h,i);if(A){const M=BC(A,i).typesVersions;if(typeof M=="object"){const C=(u=TF(M))==null?void 0:u.paths;if(C){const O=ai(A),U=p.slice(Fc(O).length);if(ULe(l,U,O,r,i,C))return l}}}}const m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!_5(i,h))return l;const y=pX(i,h,r.extensionsToSearch,void 0,["./*"]);if(y)for(let A of y){if(A=ha(A),s&&Dg(A,s,t,m)===0)continue;const{name:R,extension:M}=jLe(ic(A),i.getCompilationSettings(),r,!1);l.add(yM(R,"script",M))}const T=m5(i,h);if(T)for(const A of T){const R=ic(ha(A));R!=="@types"&&l.add(Lme(R))}return l}function jLe(e,t,r,i){const o=l1.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Fg(o)};if(r.referenceKind===0)return{name:e,extension:Fg(e)};let s=Iw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(u=>u!==0&&u!==1)),s[0]===3){if(Sc(e,xk))return{name:e,extension:Fg(e)};const u=l1.tryGetJSExtensionForFile(e,t);return u?{name:_0(e,u),extension:u}:{name:e,extension:Fg(e)}}if(!i&&(s[0]===0||s[0]===1)&&Sc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Ad(e),extension:Fg(e)};const l=l1.tryGetJSExtensionForFile(e,t);return l?{name:_0(e,l),extension:l}:{name:e,extension:Fg(e)}}function ULe(e,t,r,i,o,s){const l=p=>s[p],u=(p,h)=>{const m=PR(p),y=PR(h),T=typeof m=="object"?m.prefix.length:p.length,A=typeof y=="object"?y.prefix.length:h.length;return nl(A,T)};return HLe(e,!1,t,r,i,o,Hh(s),l,u)}function HLe(e,t,r,i,o,s,l,u,p){let h=[],m;for(const y of l){if(y===".")continue;const T=y.replace(/^\.\//,""),A=u(y);if(A){const R=PR(T);if(!R)continue;const M=typeof R=="object"&&x6(R,r);M&&(m===void 0||p(y,m)===-1)&&(m=y,h=h.filter(O=>!O.matchedPattern)),(typeof R=="string"||m===void 0||p(y,m)!==1)&&h.push({matchedPattern:M,results:ynt(T,A,r,i,o,t&&M,s).map(({name:O,kind:U,extension:K})=>yM(O,U,K))})}}return h.forEach(y=>y.results.forEach(T=>e.add(T))),m!==void 0}function vnt(e,t,r,i,o,s,l){const{baseUrl:u,paths:p}=i,h=Pme(),m=pd(i);if(u){const T=ha($r(o.getCurrentDirectory(),u));JO(e,T,s,o,!1,void 0,h)}if(p){const T=f3(i,o);ULe(h,e,T,s,o,p)}const y=JLe(e);for(const T of Ent(e,y,l))h.add(yM(T,"external module name",void 0));if(YLe(o,i,t,y,s,h),t5(m)){let T=!1;if(y===void 0)for(const A of Tnt(o,t)){const R=yM(A,"external module name",void 0);h.has(R.name)||(T=!0,h.add(R))}if(!T){let A=R=>{const M=$r(R,"node_modules");_5(o,M)&&JO(e,M,s,o,!1,void 0,h)};if(y&&tW(i)){const R=A;A=M=>{const C=Wc(e);C.shift();let O=C.shift();if(!O)return R(M);if(uo(O,"@")){const Q=C.shift();if(!Q)return R(M);O=$r(O,Q)}const U=$r(M,"node_modules",O),K=$r(U,"package.json");if(gO(o,K)){const V=BC(K,o).exports;if(V){if(typeof V!="object"||V===null)return;const se=Hh(V),G=C.join("/")+(C.length&&Dv(e)?"/":""),ne=Qy(i,r);HLe(h,!0,G,U,s,o,se,he=>hA(qLe(V[he],ne)),hq);return}}return R(M)}}ym(t,A)}}return zo(h.values())}function qLe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!To(e)){for(const r in e)if(r==="default"||t.includes(r)||Tw(t,r)){const i=e[r];return qLe(i,t)}}}function JLe(e){return wme(e)?Dv(e)?e:ai(e):void 0}function ynt(e,t,r,i,o,s,l){if(!Al(e,"*"))return e.includes("*")?et:h(e,"script");const u=e.slice(0,e.length-1),p=ZB(r,u);if(p===void 0)return e[e.length-2]==="/"?h(u,"directory"):Do(t,y=>{var T;return(T=KLe("",i,y,o,s,l))==null?void 0:T.map(({name:A,...R})=>({name:u+A,...R}))});return Do(t,m=>KLe(p,i,m,o,s,l));function h(m,y){return uo(m,r)?[{name:Qb(m),kind:y,extension:void 0}]:et}}function KLe(e,t,r,i,o,s){if(!s.readDirectory)return;const l=PR(r);if(l===void 0||Mo(l))return;const u=Iy(l.prefix),p=Dv(l.prefix)?u:ai(u),h=Dv(l.prefix)?"":ic(u),m=wme(e),y=m?Dv(e)?e:ai(e):void 0,T=m?$r(p,h+y):p,A=ha(l.suffix),R=A&&p3("_"+A),M=R?[_0(A,R),A]:[A],C=ha($r(t,T)),O=m?C:Fc(C)+h,U=A?M.map(se=>"**/*"+se):["./*"],K=eo(pX(s,C,i.extensionsToSearch,void 0,U),se=>{const G=V(se);if(G){if(wme(G))return Lme(Wc(XLe(G))[1]);const{name:ne,extension:he}=jLe(G,s.getCompilationSettings(),i,o);return yM(ne,"script",he)}}),Q=A?et:eo(m5(s,C),se=>se==="node_modules"?void 0:Lme(se));return[...K,...Q];function V(se){return Ht(M,G=>{const ne=bnt(ha(se),O,G);return ne===void 0?void 0:XLe(ne)})}}function bnt(e,t,r){return uo(e,t)&&Al(e,r)?e.slice(t.length,e.length-r.length):void 0}function XLe(e){return e[0]===ol?e.slice(1):e}function Ent(e,t,r){const o=r.getAmbientModules().map(s=>Zf(s.name)).filter(s=>uo(s,e)&&!s.includes("*"));if(t!==void 0){const s=Fc(t);return o.map(l=>XN(l,s))}return o}function Snt(e,t,r,i){const o=po(e,t),s=qh(e.text,o.pos),l=s&&In(s,R=>t>=R.pos&&t<=R.end);if(!l)return;const u=e.text.slice(l.pos,t),p=$Le.exec(u);if(!p)return;const[,h,m,y]=p,T=ai(e.path),A=m==="path"?JO(y,T,kme(r,0,e),i,!0,e.path):m==="types"?YLe(i,r,T,JLe(y),kme(r,1,e)):N.fail();return GLe(y,l.pos+h.length,zo(A.values()))}function YLe(e,t,r,i,o,s=Pme()){const l=new Map,u=h5(()=>LP(t,e))||et;for(const h of u)p(h);for(const h of fX(r,e)){const m=$r(ai(h),"node_modules/@types");p(m)}return s;function p(h){if(_5(e,h))for(const m of m5(e,h)){const y=Aw(m);if(!(t.types&&!Or(t.types,y)))if(i===void 0)l.has(y)||(s.add(yM(y,"external module name",void 0)),l.set(y,!0));else{const T=$r(h,m),A=pU(i,y,wv(e));A!==void 0&&JO(A,T,o,e,!1,void 0,s)}}}}function Tnt(e,t){if(!e.readFile||!e.fileExists)return et;const r=[];for(const i of fX(t,e)){const o=BC(i,e);for(const s of QLe){const l=o[s];if(l)for(const u in l)Is(l,u)&&!uo(u,"@types/")&&r.push(u)}}return r}function Ant(e,t){const r=Math.max(e.lastIndexOf(ol),e.lastIndexOf(q2)),i=r!==-1?r+1:0,o=e.length-i;return o===0||Zp(e.substr(i,o),99)?void 0:vu(t+i,o)}function Int(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 wme(e){return e.includes(ol)}function xnt(e){return sa(e.parent)&&Kc(e.parent.arguments)===e&&Ve(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Ome,$Le,QLe,Rnt=I({"src/services/stringCompletions.ts"(){Fse(),si(),Wme(),Ome={directory:0,script:1,"external module name":2},$Le=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,QLe=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),gQ={};ee(gQ,{getStringLiteralCompletionDetails:()=>lnt,getStringLiteralCompletions:()=>ant});var Dnt=I({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){Rnt()}}),LI={};ee(LI,{CompletionKind:()=>Nme,CompletionSource:()=>Rme,SortText:()=>zu,StringCompletions:()=>gQ,SymbolOriginInfoKind:()=>Dme,createCompletionDetails:()=>hz,createCompletionDetailsForSymbol:()=>Sme,getCompletionEntriesFromSymbols:()=>bme,getCompletionEntryDetails:()=>Wtt,getCompletionEntrySymbol:()=>ztt,getCompletionsAtPosition:()=>_tt,getPropertiesForObjectExpression:()=>pQ,moduleSpecifierResolutionCacheAttemptLimit:()=>xme,moduleSpecifierResolutionLimit:()=>_Q});var Wme=I({"src/services/_namespaces/ts.Completions.ts"(){ont(),Dnt()}});function Fme(e,t,r,i){const o=Mnt(e,r,i);return(s,l,u)=>{const{directImports:p,indirectUsers:h}=Nnt(e,t,o,l,r,i);return{indirectUsers:h,...Cnt(p,s,l.exportKind,r,u)}}}function Nnt(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){const u=TI(),p=TI(),h=[],m=!!i.globalExports,y=m?void 0:[];return A(i),{directImports:h,indirectUsers:T()};function T(){if(m)return e;if(i.declarations)for(const K of i.declarations)PE(K)&&t.has(K.getSourceFile().fileName)&&O(K);return y.map(Un)}function A(K){const Q=U(K);if(Q){for(const V of Q)if(u(V))switch(l&&l.throwIfCancellationRequested(),V.kind){case 213:if(zp(V)){R(V);break}if(!m){const G=V.parent;if(o===2&&G.kind===260){const{name:ne}=G;if(ne.kind===80){h.push(ne);break}}}break;case 80:break;case 271:C(V,V.name,Qr(V,32),!1);break;case 272:h.push(V);const se=V.importClause&&V.importClause.namedBindings;se&&se.kind===274?C(V,se.name,!1,!0):!m&&NA(V)&&O(yz(V));break;case 278:V.exportClause?V.exportClause.kind===280?O(yz(V),!0):h.push(V):A(Wnt(V,s));break;case 205:!m&&V.isTypeOf&&!V.qualifier&&M(V)&&O(V.getSourceFile(),!0),h.push(V);break;default:N.failBadSyntaxKind(V,"Unexpected import kind.")}}}function R(K){const Q=Vn(K,vQ)||K.getSourceFile();O(Q,!!M(K,!0))}function M(K,Q=!1){return Vn(K,V=>Q&&vQ(V)?"quit":Rm(V)&&bt(V.modifiers,$A))}function C(K,Q,V,se){if(o===2)se||h.push(K);else if(!m){const G=yz(K);N.assert(G.kind===312||G.kind===267),V||Pnt(G,Q,s)?O(G,!0):O(G)}}function O(K,Q=!1){if(N.assert(!m),!p(K)||(y.push(K),!Q))return;const se=s.getMergedSymbol(K.symbol);if(!se)return;N.assert(!!(se.flags&1536));const G=U(se);if(G)for(const ne of G)ag(ne)||O(yz(ne),!0)}function U(K){return r.get(Sa(K).toString())}}function Cnt(e,t,r,i,o){const s=[],l=[];function u(T,A){s.push([T,A])}if(e)for(const T of e)p(T);return{importSearches:s,singleReferences:l};function p(T){if(T.kind===271){Bme(T)&&h(T.name);return}if(T.kind===80){h(T);return}if(T.kind===205){if(T.qualifier){const M=Gp(T.qualifier);M.escapedText===El(t)&&l.push(M)}else r===2&&l.push(T.argument.literal);return}if(T.moduleSpecifier.kind!==11)return;if(T.kind===278){T.exportClause&&Nf(T.exportClause)&&m(T.exportClause);return}const{name:A,namedBindings:R}=T.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 274:h(R.name);break;case 275:(r===0||r===1)&&m(R);break;default:N.assertNever(R)}if(A&&(r===1||r===2)&&(!o||A.escapedText===r5(t))){const M=i.getSymbolAtLocation(A);u(A,M)}}function h(T){r===2&&(!o||y(T.escapedText))&&u(T,i.getSymbolAtLocation(T))}function m(T){if(T)for(const A of T.elements){const{name:R,propertyName:M}=A;if(y((M||R).escapedText))if(M)l.push(M),(!o||R.escapedText===t.escapedName)&&u(R,i.getSymbolAtLocation(R));else{const C=A.kind===281&&A.propertyName?i.getExportSpecifierLocalTargetSymbol(A):i.getSymbolAtLocation(R);u(R,C)}}}function y(T){return T===t.escapedName||r!==0&&T==="default"}}function Pnt(e,t,r){const i=r.getSymbolAtLocation(t);return!!eke(e,o=>{if(!Yl(o))return;const{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Nf(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function ZLe(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const l of t){const u=r.valueDeclaration;if((u==null?void 0:u.kind)===312){for(const p of l.referencedFiles)e.getSourceFileFromReference(l,p)===u&&o.push({kind:"reference",referencingFile:l,ref:p});for(const p of l.typeReferenceDirectives){const h=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;h!==void 0&&h.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}tke(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push(Ys(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function Mnt(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),tke(o,(s,l)=>{const u=t.getSymbolAtLocation(l);if(u){const p=Sa(u).toString();let h=i.get(p);h||i.set(p,h=[]),h.push(s)}});return i}function eke(e,t){return Xe(e.kind===312?e.statements:e.body.statements,r=>t(r)||vQ(r)&&Xe(r.body&&r.body.statements,t))}function tke(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(IC(r),r);else eke(e,r=>{switch(r.kind){case 278:case 272:{const i=r;i.moduleSpecifier&&Na(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{const i=r;Bme(i)&&t(i,i.moduleReference.expression);break}}})}function nke(e,t,r,i){return i?o():o()||s();function o(){var p;const{parent:h}=e,m=h.parent;if(t.exportSymbol)return h.kind===211?(p=t.declarations)!=null&&p.some(A=>A===h)&&mr(m)?T(m,!1):void 0:l(t.exportSymbol,u(h));{const A=knt(h,e);if(A&&Qr(A,32))return eu(A)&&A.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(A.name)}:l(t,u(A));if(Eh(h))return l(t,0);if(kl(h))return y(h);if(kl(m))return y(m);if(mr(h))return T(h,!0);if(mr(m))return T(m,!0);if(US(h)||mH(h))return l(t,0)}function y(A){if(!A.symbol.parent)return;const R=A.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:A.symbol.parent,exportKind:R}}}function T(A,R){let M;switch(zl(A)){case 1:M=0;break;case 2:M=2;break;default:return}const C=R?r.getSymbolAtLocation(sU(oa(A.left,ws))):t;return C&&l(C,M)}}function s(){if(!wnt(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=Ont(h,r),h.escapedName==="export="&&(h=Lnt(h,r),h===void 0)))return;const m=r5(h);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:h}}function l(p,h){const m=zme(p,h,r);return m&&{kind:1,symbol:p,exportInfo:m}}function u(p){return Qr(p,2048)?1:0}}function Lnt(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const o=N.checkDefined(e.valueDeclaration);if(kl(o))return(r=ri(o.expression,T_))==null?void 0:r.symbol;if(mr(o))return(i=ri(o.right,T_))==null?void 0:i.symbol;if($i(o))return o.symbol}function knt(e,t){const r=Oi(e)?e:$a(e)?Hx(e):void 0;return r?e.name!==t||r1(r.parent)?void 0:Ll(r.parent.parent)?r.parent.parent:void 0:e}function wnt(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&Bme(t);case 276:return!t.propertyName;case 273:case 274:return N.assert(t.name===e),!0;case 208:return lr(e)&&wE(t.parent.parent);default:return!1}}function zme(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return sO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Ont(e,t){if(e.declarations)for(const r of e.declarations){if(Ku(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Fr(r)&&Zh(r.expression)&&!qi(r.name))return t.getSymbolAtLocation(r);if(np(r)&&mr(r.parent.parent)&&zl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function Wnt(e,t){return t.getMergedSymbol(yz(e).symbol)}function yz(e){if(e.kind===213)return e.getSourceFile();const{parent:t}=e;return t.kind===312?t:(N.assert(t.kind===268),oa(t.parent,vQ))}function vQ(e){return e.kind===267&&e.name.kind===11}function Bme(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var Gme,Vme,Fnt=I({"src/services/importTracker.ts"(){si(),Gme=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Gme||{}),Vme=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Vme||{})}});function ug(e,t=1){return{kind:t,node:e.name||e,context:znt(e)}}function jme(e){return e&&e.kind===void 0}function znt(e){if(Ju(e))return oT(e);if(e.parent){if(!Ju(e.parent)&&!kl(e.parent)){if(lr(e)){const r=mr(e.parent)?e.parent:ws(e.parent)&&mr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&zl(r)!==0)return oT(r)}if(k_(e.parent)||e1(e.parent))return e.parent.parent;if(GS(e.parent)||ZE(e.parent)||cC(e.parent))return e.parent;if(ls(e)){const r=UL(e);if(r){const i=Vn(r,o=>Ju(o)||Hi(o)||Qx(o));return Ju(i)?oT(i):i}}const t=Vn(e,Za);return t?oT(t.parent):void 0}if(e.parent.name===e||Ml(e.parent)||kl(e.parent)||(SA(e.parent)||$a(e.parent))&&e.parent.propertyName===e||e.kind===90&&Qr(e.parent,2080))return oT(e.parent)}}function oT(e){if(e)switch(e.kind){case 260:return!Vc(e.parent)||e.parent.declarations.length!==1?e:Ll(e.parent.parent)?e.parent.parent:Yx(e.parent.parent)?oT(e.parent.parent):e.parent;case 208:return oT(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return Zc(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Jv(e.parent)?oT(Vn(e.parent,t=>mr(t)||Yx(t))):e;case 255:return{start:In(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function Ume(e,t,r){if(!r)return;const i=jme(r)?Ez(r.start,t,r.end):Ez(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function Bnt(e,t,r,i,o){const s=Vd(i,o),l={use:1},u=kI.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=kI.getAdjustedNode(s,l),m=Gnt(h)?p.getSymbolAtLocation(h):void 0;return!u||!u.length?void 0:eo(u,({definition:y,references:T})=>y&&{definition:p.runWithCancellationToken(t,A=>Unt(y,A,s)),references:T.map(A=>qnt(A,m))})}function Gnt(e){return e.kind===90||!!xC(e)||$L(e)||e.kind===137&&Ml(e.parent)}function Vnt(e,t,r,i,o){const s=Vd(i,o);let l;const u=rke(e,t,r,s,o);if(s.parent.kind===211||s.parent.kind===208||s.parent.kind===212||s.kind===108)l=u&&[...u];else if(u){const h=M2(u),m=new Map;for(;!h.isEmpty();){const y=h.dequeue();if(!Am(m,as(y.node)))continue;l=Rn(l,y);const T=rke(e,t,r,y.node,y.node.pos);T&&h.enqueue(...T)}}const p=e.getTypeChecker();return Wt(l,h=>Knt(h,p))}function rke(e,t,r,i,o){if(i.kind===312)return;const s=e.getTypeChecker();if(i.parent.kind===304){const l=[];return kI.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(ug(u))),l}else if(i.kind===108||zd(i.parent)){const l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[ug(l.valueDeclaration)]}else return ike(o,i,e,r,t,{implementations:!0,use:1})}function jnt(e,t,r,i,o,s,l){return Wt(oke(kI.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function ike(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return oke(kI.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function oke(e){return e&&Do(e,t=>t.references)}function Unt(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:m}=e,{displayParts:y,kind:T}=ake(m,t,r),A=y.map(C=>C.text).join(""),R=m.declarations&&Kc(m.declarations),M=R?Lo(R)||R:r;return{...bz(M),name:A,kind:T,displayParts:y,context:oT(R)}}case 1:{const{node:m}=e;return{...bz(m),name:m.text,kind:"label",displayParts:[rp(m.text,17)]}}case 2:{const{node:m}=e,y=pa(m.kind);return{...bz(m),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{const{node:m}=e,y=t.getSymbolAtLocation(m),T=y&&Qv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,m.getSourceFile(),eT(m),m).displayParts||[cf("this")];return{...bz(m),name:"this",kind:"var",displayParts:T}}case 4:{const{node:m}=e;return{...bz(m),name:m.text,kind:"var",displayParts:[rp(fc(m),8)]}}case 5:return{textSpan:tb(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[rp(`"${e.reference.fileName}"`,8)]};default:return N.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:p,context:h}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:p,...Ume(s,o,h)}}function bz(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:Ez(Za(e)?e.expression:e,t)}}function ake(e,t,r){const i=kI.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Kc(e.declarations)||r,{displayParts:s,symbolKind:l}=Qv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Hnt(e,t,r,i,o){return{...yQ(e),...i&&Jnt(e,t,r,o)}}function qnt(e,t){const r=ske(e);return t?{...r,isDefinition:e.kind!==0&&lke(e.node,t)}:r}function ske(e){const t=yQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:qme(i),isInString:r===2?!0:void 0}}function yQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=Ez(e.node,t);return{textSpan:r,fileName:t.fileName,...Ume(r,t,e.context)}}}function Jnt(e,t,r,i){if(e.kind!==0&&Ve(t)){const{node:o,kind:s}=e,l=o.parent,u=t.text,p=np(l);if(p||uO(l)&&l.name===o&&l.dotDotDotToken===void 0){const h={prefixText:u+": "},m={suffixText:": "+u};if(s===3)return h;if(s===4)return m;if(p){const y=l.parent;return La(y)&&mr(y.parent)&&Zh(y.parent.left)?h:m}else return h}else if(tp(l)&&!l.propertyName){const h=Ku(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Or(h.declarations,l)?{prefixText:u+" as "}:Mf}else if(Ku(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&hp(e.node)&&ws(e.node.parent)){const o=YK(i);return{prefixText:o,suffixText:o}}return Mf}function Knt(e,t){const r=yQ(e);if(e.kind!==0){const{node:i}=e;return{...r,...Xnt(i,t)}}else return{...r,kind:"",displayParts:[]}}function Xnt(e,t){const r=t.getSymbolAtLocation(Ju(e)&&e.name?e.name:e);return r?ake(r,t,e):e.kind===210?{kind:"interface",displayParts:[$u(21),cf("object literal"),$u(22)]}:e.kind===231?{kind:"local class",displayParts:[$u(21),cf("anonymous local class"),$u(22)]}:{kind:f1(e),displayParts:[]}}function Ynt(e){const t=yQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=qme(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 Ez(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return ls(e)&&o-i>2&&(N.assert(r===void 0),i+=1,o-=1),(r==null?void 0:r.kind)===269&&(o=r.getFullStart()),pc(i,o)}function Hme(e){return e.kind===0?e.textSpan:Ez(e.node,e.node.getSourceFile())}function qme(e){const t=xC(e);return!!t&&$nt(t)||e.kind===90||WA(e)}function lke(e,t){var r;if(!t)return!1;const i=xC(e)||(e.kind===90?e.parent:$L(e)||e.kind===137&&Ml(e.parent)?e.parent.parent:void 0),o=i&&mr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function $nt(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!Jv(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||r1(e.parent);case 173:case 171:case 355:case 348:return!1;default:return N.failBadSyntaxKind(e)}}var Jme,Kme,Xme,kI,Qnt=I({"src/services/findAllReferences.ts"(){si(),Yme(),Jme=(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))(Jme||{}),Kme=(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))(Kme||{}),Xme=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Xme||{}),(e=>{function t(He,mt,ft,Ct,le,Fe={},pt=new Set(Ct.map(j=>j.fileName))){var j,it;if(mt=r(mt,Fe),$i(mt)){const hn=FD.getReferenceAtPosition(mt,He,ft);if(!(hn!=null&&hn.file))return;const q=ft.getTypeChecker().getMergedSymbol(hn.file.symbol);if(q)return h(ft,q,!1,Ct,pt);const Oe=ft.getFileIncludeReasons();return Oe?[{definition:{type:5,reference:hn.reference,file:mt},references:o(hn.file,Oe,ft)||et}]:void 0}if(!Fe.implementations){const hn=y(mt,Ct,le);if(hn)return hn}const Rt=ft.getTypeChecker(),Ye=Rt.getSymbolAtLocation(Ml(mt)&&mt.parent.name||mt);if(!Ye){if(!Fe.implementations&&ls(mt)){if(i5(mt)){const hn=ft.getFileIncludeReasons(),q=(it=(j=ft.getResolvedModuleFromModuleSpecifier(mt))==null?void 0:j.resolvedModule)==null?void 0:it.resolvedFileName,Oe=q?ft.getSourceFile(q):void 0;if(Oe)return[{definition:{type:4,node:mt},references:o(Oe,hn,ft)||et}]}return Ci(mt,Ct,Rt,le)}return}if(Ye.escapedName==="export=")return h(ft,Ye.parent,!1,Ct,pt);const _t=l(Ye,ft,Ct,le,Fe,pt);if(_t&&!(Ye.flags&33554432))return _t;const Gt=s(mt,Ye,Rt),yn=Gt&&l(Gt,ft,Ct,le,Fe,pt),fn=T(Ye,mt,Ct,pt,Rt,le,Fe);return u(ft,_t,fn,yn)}e.getReferencedSymbolsForNode=t;function r(He,mt){return mt.use===1?He=wK(He):mt.use===2&&(He=q7(He)),He}e.getAdjustedNode=r;function i(He,mt,ft,Ct=new Set(ft.map(le=>le.fileName))){var le,Fe;const pt=(le=mt.getSourceFile(He))==null?void 0:le.symbol;if(pt)return((Fe=h(mt,pt,!1,ft,Ct)[0])==null?void 0:Fe.references)||et;const j=mt.getFileIncludeReasons(),it=mt.getSourceFile(He);return it&&j&&o(it,j,mt)||et}e.getReferencesForFileName=i;function o(He,mt,ft){let Ct;const le=mt.get(He.path)||et;for(const Fe of le)if(D0(Fe)){const pt=ft.getSourceFileByPath(Fe.file),j=XP(ft,Fe);dD(j)&&(Ct=Rn(Ct,{kind:0,fileName:pt.fileName,textSpan:tb(j)}))}return Ct}function s(He,mt,ft){if(He.parent&&qk(He.parent)){const Ct=ft.getAliasedSymbol(mt),le=ft.getMergedSymbol(Ct);if(Ct!==le)return le}}function l(He,mt,ft,Ct,le,Fe){const pt=He.flags&1536&&He.declarations&&In(He.declarations,$i);if(!pt)return;const j=He.exports.get("export="),it=h(mt,He,!!j,ft,Fe);if(!j||!Fe.has(pt.fileName))return it;const Rt=mt.getTypeChecker();return He=bu(j,Rt),u(mt,it,T(He,void 0,ft,Fe,Rt,Ct,le))}function u(He,...mt){let ft;for(const Ct of mt)if(!(!Ct||!Ct.length)){if(!ft){ft=Ct;continue}for(const le of Ct){if(!le.definition||le.definition.type!==0){ft.push(le);continue}const Fe=le.definition.symbol,pt=mi(ft,it=>!!it.definition&&it.definition.type===0&&it.definition.symbol===Fe);if(pt===-1){ft.push(le);continue}const j=ft[pt];ft[pt]={definition:j.definition,references:j.references.concat(le.references).sort((it,Rt)=>{const Ye=p(He,it),_t=p(He,Rt);if(Ye!==_t)return nl(Ye,_t);const Gt=Hme(it),yn=Hme(Rt);return Gt.start!==yn.start?nl(Gt.start,yn.start):nl(Gt.length,yn.length)})}}}return ft}function p(He,mt){const ft=mt.kind===0?He.getSourceFile(mt.fileName):mt.node.getSourceFile();return He.getSourceFiles().indexOf(ft)}function h(He,mt,ft,Ct,le){N.assert(!!mt.valueDeclaration);const Fe=eo(ZLe(He,Ct,mt),j=>{if(j.kind==="import"){const it=j.literal.parent;if(Jy(it)){const Rt=oa(it.parent,ag);if(ft&&!Rt.qualifier)return}return ug(j.literal)}else if(j.kind==="implicit"){const it=j.literal.text!==Vy&&RP(j.referencingFile,Rt=>Rt.transformFlags&2?sg(Rt)||GS(Rt)||t1(Rt)?Rt:void 0:"skip")||j.referencingFile.statements[0]||j.referencingFile;return ug(it)}else return{kind:0,fileName:j.referencingFile.fileName,textSpan:tb(j.ref)}});if(mt.declarations)for(const j of mt.declarations)switch(j.kind){case 312:break;case 267:le.has(j.getSourceFile().fileName)&&Fe.push(ug(j.name));break;default:N.assert(!!(mt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const pt=mt.exports.get("export=");if(pt!=null&&pt.declarations)for(const j of pt.declarations){const it=j.getSourceFile();if(le.has(it.fileName)){const Rt=mr(j)&&Fr(j.left)?j.left.expression:kl(j)?N.checkDefined(vs(j,95,it)):Lo(j)||j;Fe.push(ug(Rt))}}return Fe.length?[{definition:{type:0,symbol:mt},references:Fe}]:et}function m(He){return He.kind===148&&OS(He.parent)&&He.parent.operator===148}function y(He,mt,ft){if(rM(He.kind))return He.kind===116&&iI(He.parent)||He.kind===148&&!m(He)?void 0:Le(mt,He.kind,ft,He.kind===148?m:void 0);if(oR(He.parent)&&He.parent.name===He)return ve(mt,ft);if(QA(He)&&Rl(He.parent))return[{definition:{type:2,node:He},references:[ug(He)]}];if(Zw(He)){const Ct=B7(He.parent,He.text);return Ct&&de(Ct.parent,Ct)}else if(xK(He))return de(He.parent,He);if(yD(He))return Ln(He,mt,ft);if(He.kind===108)return Wi(He)}function T(He,mt,ft,Ct,le,Fe,pt){const j=mt&&M(He,mt,le,!wn(pt))||He,it=mt?yi(mt,j):7,Rt=[],Ye=new U(ft,Ct,mt?R(mt):0,le,Fe,it,pt,Rt),_t=!wn(pt)||!j.declarations?void 0:In(j.declarations,Ku);if(_t)At(_t.name,j,_t,Ye.createSearch(mt,He,void 0),Ye,!0,!0);else if(mt&&mt.kind===90&&j.escapedName==="default"&&j.parent)vt(mt,j,Ye),K(mt,j,{exportingModuleSymbol:j.parent,exportKind:1},Ye);else{const Gt=Ye.createSearch(mt,j,void 0,{allSearchSymbols:mt?sn(j,mt,le,pt.use===2,!!pt.providePrefixAndSuffixTextForRename,!!pt.implementations):[j]});A(j,Ye,Gt)}return Rt}function A(He,mt,ft){const Ct=he(He);if(Ct)Ee(Ct,Ct.getSourceFile(),ft,mt,!($i(Ct)&&!Or(mt.sourceFiles,Ct)));else for(const le of mt.sourceFiles)mt.cancellationToken.throwIfCancellationRequested(),G(le,ft,mt)}function R(He){switch(He.kind){case 176:case 137:return 1;case 80:if(di(He.parent))return N.assert(He.parent.name===He),2;default:return 0}}function M(He,mt,ft,Ct){const{parent:le}=mt;return Ku(le)&&Ct?Se(mt,He,le,ft):Ht(He.declarations,Fe=>{if(!Fe.parent){if(He.flags&33554432)return;N.fail(`Unexpected symbol at ${N.formatSyntaxKind(mt.kind)}: ${N.formatSymbol(He)}`)}return yp(Fe.parent)&&qy(Fe.parent.parent)?ft.getPropertyOfType(ft.getTypeFromTypeNode(Fe.parent.parent),He.name):void 0})}let C;(He=>{He[He.None=0]="None",He[He.Constructor=1]="Constructor",He[He.Class=2]="Class"})(C||(C={}));function O(He){if(!(He.flags&33555968))return;const mt=He.declarations&&In(He.declarations,ft=>!$i(ft)&&!Xl(ft));return mt&&mt.symbol}class U{constructor(mt,ft,Ct,le,Fe,pt,j,it){this.sourceFiles=mt,this.sourceFilesSet=ft,this.specialSearchKind=Ct,this.checker=le,this.cancellationToken=Fe,this.searchMeaning=pt,this.options=j,this.result=it,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=TI(),this.markSeenReExportRHS=TI(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(mt){return this.sourceFilesSet.has(mt.fileName)}getImportSearches(mt,ft){return this.importTracker||(this.importTracker=Fme(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(mt,ft,this.options.use===2)}createSearch(mt,ft,Ct,le={}){const{text:Fe=Zf(El(xR(ft)||O(ft)||ft)),allSearchSymbols:pt=[ft]}=le,j=_l(Fe),it=this.options.implementations&&mt?Tn(mt,ft,this.checker):void 0;return{symbol:ft,comingFrom:Ct,text:Fe,escapedText:j,parents:it,allSearchSymbols:pt,includes:Rt=>Or(pt,Rt)}}referenceAdder(mt){const ft=Sa(mt);let Ct=this.symbolIdToReferences[ft];return Ct||(Ct=this.symbolIdToReferences[ft]=[],this.result.push({definition:{type:0,symbol:mt},references:Ct})),(le,Fe)=>Ct.push(ug(le,Fe))}addStringOrCommentReference(mt,ft){this.result.push({definition:void 0,references:[{kind:0,fileName:mt,textSpan:ft}]})}markSearchedSymbols(mt,ft){const Ct=as(mt),le=this.sourceFileToSeenSymbols[Ct]||(this.sourceFileToSeenSymbols[Ct]=new Set);let Fe=!1;for(const pt of ft)Fe=Xb(le,Sa(pt))||Fe;return Fe}}function K(He,mt,ft,Ct){const{importSearches:le,singleReferences:Fe,indirectUsers:pt}=Ct.getImportSearches(mt,ft);if(Fe.length){const j=Ct.referenceAdder(mt);for(const it of Fe)V(it,Ct)&&j(it)}for(const[j,it]of le)Ue(j.getSourceFile(),Ct.createSearch(j,it,1),Ct);if(pt.length){let j;switch(ft.exportKind){case 0:j=Ct.createSearch(He,mt,1);break;case 1:j=Ct.options.use===2?void 0:Ct.createSearch(He,mt,1,{text:"default"});break}if(j)for(const it of pt)G(it,j,Ct)}}function Q(He,mt,ft,Ct,le,Fe,pt,j){const it=Fme(He,new Set(He.map(Gt=>Gt.fileName)),mt,ft),{importSearches:Rt,indirectUsers:Ye,singleReferences:_t}=it(Ct,{exportKind:pt?1:0,exportingModuleSymbol:le},!1);for(const[Gt]of Rt)j(Gt);for(const Gt of _t)Ve(Gt)&&ag(Gt.parent)&&j(Gt);for(const Gt of Ye)for(const yn of pe(Gt,pt?"default":Fe)){const fn=mt.getSymbolAtLocation(yn),hn=bt(fn==null?void 0:fn.declarations,q=>!!ri(q,kl));Ve(yn)&&!SA(yn.parent)&&(fn===Ct||hn)&&j(yn)}}e.eachExportReference=Q;function V(He,mt){return De(He,mt)?mt.options.use!==2?!0:Ve(He)?!(SA(He.parent)&&He.escapedText==="default"):!1:!1}function se(He,mt){if(He.declarations)for(const ft of He.declarations){const Ct=ft.getSourceFile();Ue(Ct,mt.createSearch(ft,He,0),mt,mt.includesSourceFile(Ct))}}function G(He,mt,ft){TY(He).get(mt.escapedText)!==void 0&&Ue(He,mt,ft)}function ne(He,mt){return Jv(He.parent.parent)?mt.getPropertySymbolOfDestructuringAssignment(He):void 0}function he(He){const{declarations:mt,flags:ft,parent:Ct,valueDeclaration:le}=He;if(le&&(le.kind===218||le.kind===231))return le;if(!mt)return;if(ft&8196){const j=In(mt,it=>_p(it,2)||sd(it));return j?f0(j,263):void 0}if(mt.some(uO))return;const Fe=Ct&&!(He.flags&262144);if(Fe&&!(sO(Ct)&&!Ct.globalExports))return;let pt;for(const j of mt){const it=eT(j);if(pt&&pt!==it||!it||it.kind===312&&!Fp(it))return;if(pt=it,Os(pt)){let Rt;for(;Rt=Aj(pt);)pt=Rt}}return Fe?pt.getSourceFile():pt}function ye(He,mt,ft,Ct=ft){return Y(He,mt,ft,()=>!0,Ct)||!1}e.isSymbolReferencedInFile=ye;function Y(He,mt,ft,Ct,le=ft){const Fe=pp(He.parent,He.parent.parent)?Ua(mt.getSymbolsOfParameterPropertyDeclaration(He.parent,He.text)):mt.getSymbolAtLocation(He);if(Fe)for(const pt of pe(ft,Fe.name,le)){if(!Ve(pt)||pt===He||pt.escapedText!==He.escapedText)continue;const j=mt.getSymbolAtLocation(pt);if(j===Fe||mt.getShorthandAssignmentValueSymbol(pt.parent)===Fe||Ku(pt.parent)&&Se(pt,j,pt.parent,mt)===Fe){const it=Ct(pt);if(it)return it}}}e.eachSymbolReferenceInFile=Y;function X(He,mt){return mn(pe(mt,He),le=>!!xC(le)).reduce((le,Fe)=>{const pt=Ct(Fe);return!bt(le.declarationNames)||pt===le.depth?(le.declarationNames.push(Fe),le.depth=pt):pt<le.depth&&(le.declarationNames=[Fe],le.depth=pt),le},{depth:1/0,declarationNames:[]}).declarationNames;function Ct(le){let Fe=0;for(;le;)le=eT(le),Fe++;return Fe}}e.getTopMostDeclarationNamesInFile=X;function oe(He,mt,ft,Ct){if(!He.name||!Ve(He.name))return!1;const le=N.checkDefined(ft.getSymbolAtLocation(He.name));for(const Fe of mt)for(const pt of pe(Fe,le.name)){if(!Ve(pt)||pt===He.name||pt.escapedText!==He.name.escapedText)continue;const j=z7(pt),it=sa(j.parent)&&j.parent.expression===j?j.parent:void 0,Rt=ft.getSymbolAtLocation(pt);if(Rt&&ft.getRootSymbols(Rt).some(Ye=>Ye===le)&&Ct(pt,it))return!0}return!1}e.someSignatureUsage=oe;function pe(He,mt,ft=He){return eo(Ce(He,mt,ft),Ct=>{const le=Vd(He,Ct);return le===He?void 0:le})}function Ce(He,mt,ft=He){const Ct=[];if(!mt||!mt.length)return Ct;const le=He.text,Fe=le.length,pt=mt.length;let j=le.indexOf(mt,ft.pos);for(;j>=0&&!(j>ft.end);){const it=j+pt;(j===0||!e0(le.charCodeAt(j-1),99))&&(it===Fe||!e0(le.charCodeAt(it),99))&&Ct.push(j),j=le.indexOf(mt,j+pt+1)}return Ct}function de(He,mt){const ft=He.getSourceFile(),Ct=mt.text,le=eo(pe(ft,Ct,He),Fe=>Fe===mt||Zw(Fe)&&B7(Fe,Ct)===mt?ug(Fe):void 0);return[{definition:{type:1,node:mt},references:le}]}function ie(He,mt){switch(He.kind){case 81:if(b0(He.parent))return!0;case 80:return He.text.length===mt.length;case 15:case 11:{const ft=He;return(G7(ft)||CK(He)||$ce(He)||sa(He.parent)&&SS(He.parent)&&He.parent.arguments[1]===He)&&ft.text.length===mt.length}case 9:return G7(He)&&He.text.length===mt.length;case 90:return mt.length===7;default:return!1}}function ve(He,mt){const ft=Do(He,Ct=>(mt.throwIfCancellationRequested(),eo(pe(Ct,"meta",Ct),le=>{const Fe=le.parent;if(oR(Fe))return ug(Fe)})));return ft.length?[{definition:{type:2,node:ft[0].node},references:ft}]:void 0}function Le(He,mt,ft,Ct){const le=Do(He,Fe=>(ft.throwIfCancellationRequested(),eo(pe(Fe,pa(mt),Fe),pt=>{if(pt.kind===mt&&(!Ct||Ct(pt)))return ug(pt)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function Ue(He,mt,ft,Ct=!0){return ft.cancellationToken.throwIfCancellationRequested(),Ee(He,He,mt,ft,Ct)}function Ee(He,mt,ft,Ct,le){if(Ct.markSearchedSymbols(mt,ft.allSearchSymbols))for(const Fe of Ce(mt,ft.text,He))Me(mt,Fe,ft,Ct,le)}function De(He,mt){return!!(ZS(He)&mt.searchMeaning)}function Me(He,mt,ft,Ct,le){const Fe=Vd(He,mt);if(!ie(Fe,ft.text)){!Ct.options.implementations&&(Ct.options.findInStrings&&SI(He,mt)||Ct.options.findInComments&&due(He,mt))&&Ct.addStringOrCommentReference(He.fileName,vu(mt,ft.text.length));return}if(!De(Fe,Ct))return;let pt=Ct.checker.getSymbolAtLocation(Fe);if(!pt)return;const j=Fe.parent;if(tp(j)&&j.propertyName===Fe)return;if(Ku(j)){N.assert(Fe.kind===80),At(Fe,pt,j,ft,Ct,le);return}if(uC(j)&&j.isNameFirst&&j.typeExpression&&jS(j.typeExpression.type)&&j.typeExpression.type.jsDocPropertyTags&&Ne(j.typeExpression.type.jsDocPropertyTags)){We(j.typeExpression.type.jsDocPropertyTags,Fe,ft,Ct);return}const it=ci(ft,pt,Fe,Ct);if(!it){Bt(pt,ft,Ct);return}switch(Ct.specialSearchKind){case 0:le&&vt(Fe,it,Ct);break;case 1:$e(Fe,He,ft,Ct);break;case 2:It(Fe,ft,Ct);break;default:N.assertNever(Ct.specialSearchKind)}lr(Fe)&&$a(Fe.parent)&&wE(Fe.parent.parent.parent)&&(pt=Fe.parent.symbol,!pt)||ot(Fe,pt,ft,Ct)}function We(He,mt,ft,Ct){const le=Ct.referenceAdder(ft.symbol);vt(mt,ft.symbol,Ct),Xe(He,Fe=>{Id(Fe.name)&&le(Fe.name.left)})}function At(He,mt,ft,Ct,le,Fe,pt){N.assert(!pt||!!le.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:j,propertyName:it,name:Rt}=ft,Ye=j.parent,_t=Se(He,mt,ft,le.checker);if(!pt&&!Ct.includes(_t))return;if(it?He===it?(Ye.moduleSpecifier||Gt(),Fe&&le.options.use!==2&&le.markSeenReExportRHS(Rt)&&vt(Rt,N.checkDefined(ft.symbol),le)):le.markSeenReExportRHS(He)&&Gt():le.options.use===2&&Rt.escapedText==="default"||Gt(),!wn(le.options)||pt){const fn=He.escapedText==="default"||ft.name.escapedText==="default"?1:0,hn=N.checkDefined(ft.symbol),q=zme(hn,fn,le.checker);q&&K(He,hn,q,le)}if(Ct.comingFrom!==1&&Ye.moduleSpecifier&&!it&&!wn(le.options)){const yn=le.checker.getExportSpecifierLocalTargetSymbol(ft);yn&&se(yn,le)}function Gt(){Fe&&vt(He,_t,le)}}function Se(He,mt,ft,Ct){return je(He,ft)&&Ct.getExportSpecifierLocalTargetSymbol(ft)||mt}function je(He,mt){const{parent:ft,propertyName:Ct,name:le}=mt;return N.assert(Ct===He||le===He),Ct?Ct===He:!ft.parent.moduleSpecifier}function ot(He,mt,ft,Ct){const le=nke(He,mt,Ct.checker,ft.comingFrom===1);if(!le)return;const{symbol:Fe}=le;le.kind===0?wn(Ct.options)||se(Fe,Ct):K(He,Fe,le.exportInfo,Ct)}function Bt({flags:He,valueDeclaration:mt},ft,Ct){const le=Ct.checker.getShorthandAssignmentValueSymbol(mt),Fe=mt&&Lo(mt);!(He&33554432)&&Fe&&ft.includes(le)&&vt(Fe,le,Ct)}function vt(He,mt,ft){const{kind:Ct,symbol:le}="kind"in mt?mt:{kind:void 0,symbol:mt};if(ft.options.use===2&&He.kind===90)return;const Fe=ft.referenceAdder(le);ft.options.implementations?Qt(He,Fe,ft):Fe(He,Ct)}function $e(He,mt,ft,Ct){eM(He)&&vt(He,ft.symbol,Ct);const le=()=>Ct.referenceAdder(ft.symbol);if(di(He.parent))N.assert(He.kind===90||He.parent.name===He),tn(ft.symbol,mt,le());else{const Fe=ka(He);Fe&&(Mn(Fe,le()),gn(Fe,Ct))}}function It(He,mt,ft){vt(He,mt.symbol,ft);const Ct=He.parent;if(ft.options.use===2||!di(Ct))return;N.assert(Ct.name===He);const le=ft.referenceAdder(mt.symbol);for(const Fe of Ct.members)AA(Fe)&&aa(Fe)&&Fe.body&&Fe.body.forEachChild(function pt(j){j.kind===110?le(j):!ea(j)&&!di(j)&&j.forEachChild(pt)})}function tn(He,mt,ft){const Ct=rn(He);if(Ct&&Ct.declarations)for(const le of Ct.declarations){const Fe=vs(le,137,mt);N.assert(le.kind===176&&!!Fe),ft(Fe)}He.exports&&He.exports.forEach(le=>{const Fe=le.valueDeclaration;if(Fe&&Fe.kind===174){const pt=Fe.body;pt&&fa(pt,110,j=>{eM(j)&&ft(j)})}})}function rn(He){return He.members&&He.members.get("__constructor")}function Mn(He,mt){const ft=rn(He.symbol);if(ft&&ft.declarations)for(const Ct of ft.declarations){N.assert(Ct.kind===176);const le=Ct.body;le&&fa(le,108,Fe=>{TK(Fe)&&mt(Fe)})}}function $n(He){return!!rn(He.symbol)}function gn(He,mt){if($n(He))return;const ft=He.symbol,Ct=mt.createSearch(void 0,ft,void 0);A(ft,mt,Ct)}function Qt(He,mt,ft){if(wg(He)&&Qi(He.parent)){mt(He);return}if(He.kind!==80)return;He.parent.kind===304&&Io(He,ft.checker,mt);const Ct=Yt(He);if(Ct){mt(Ct);return}const le=Vn(He,j=>!Id(j.parent)&&!ji(j.parent)&&!fS(j.parent)),Fe=le.parent;if(S4(Fe)&&Fe.type===le&&ft.markSeenContainingTypeReference(Fe))if(Ly(Fe))pt(Fe.initializer);else if(ea(Fe)&&Fe.body){const j=Fe.body;j.kind===241?LE(j,it=>{it.expression&&pt(it.expression)}):pt(j)}else mS(Fe)&&pt(Fe.expression);function pt(j){vi(j)&&mt(j)}}function Yt(He){return Ve(He)||Fr(He)?Yt(He.parent):Vv(He)?ri(He.parent.parent,Jm(di,md)):void 0}function vi(He){switch(He.kind){case 217:return vi(He.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function so(He,mt,ft,Ct){if(He===mt)return!0;const le=Sa(He)+","+Sa(mt),Fe=ft.get(le);if(Fe!==void 0)return Fe;ft.set(le,!1);const pt=!!He.declarations&&He.declarations.some(j=>RC(j).some(it=>{const Rt=Ct.getTypeAtLocation(it);return!!Rt&&!!Rt.symbol&&so(Rt.symbol,mt,ft,Ct)}));return ft.set(le,pt),pt}function Wi(He){let mt=CL(He,!1);if(!mt)return;let ft=256;switch(mt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:ft&=Fy(mt),mt=mt.parent;break;default:return}const Ct=mt.getSourceFile(),le=eo(pe(Ct,"super",mt),Fe=>{if(Fe.kind!==108)return;const pt=CL(Fe,!1);return pt&&aa(pt)===!!ft&&pt.parent.symbol===mt.symbol?ug(Fe):void 0});return[{definition:{type:0,symbol:mt.symbol},references:le}]}function Co(He){return He.kind===80&&He.parent.kind===169&&He.parent.name===He}function Ln(He,mt,ft){let Ct=Fd(He,!1,!1),le=256;switch(Ct.kind){case 174:case 173:if(Tm(Ct)){le&=Fy(Ct),Ct=Ct.parent;break}case 172:case 171:case 176:case 177:case 178:le&=Fy(Ct),Ct=Ct.parent;break;case 312:if(sc(Ct)||Co(He))return;case 262:case 218:break;default:return}const Fe=Do(Ct.kind===312?mt:[Ct.getSourceFile()],j=>(ft.throwIfCancellationRequested(),pe(j,"this",$i(Ct)?j:Ct).filter(it=>{if(!yD(it))return!1;const Rt=Fd(it,!1,!1);if(!T_(Rt))return!1;switch(Ct.kind){case 218:case 262:return Ct.symbol===Rt.symbol;case 174:case 173:return Tm(Ct)&&Ct.symbol===Rt.symbol;case 231:case 263:case 210:return Rt.parent&&T_(Rt.parent)&&Ct.symbol===Rt.parent.symbol&&aa(Rt)===!!le;case 312:return Rt.kind===312&&!sc(Rt)&&!Co(it)}}))).map(j=>ug(j));return[{definition:{type:3,node:Ht(Fe,j=>Ao(j.node.parent)?j.node:void 0)||He},references:Fe}]}function Ci(He,mt,ft,Ct){const le=H7(He,ft),Fe=Do(mt,pt=>(Ct.throwIfCancellationRequested(),eo(pe(pt,He.text),j=>{if(ls(j)&&j.text===He.text)if(le){const it=H7(j,ft);if(le!==ft.getStringType()&&(le===it||Ar(j,ft)))return ug(j,2)}else return XA(j)&&!CS(j,pt)?void 0:ug(j,2)})));return[{definition:{type:4,node:He},references:Fe}]}function Ar(He,mt){if(gp(He.parent))return mt.getPropertyOfType(mt.getTypeAtLocation(He.parent.parent),He.text)}function sn(He,mt,ft,Ct,le,Fe){const pt=[];return tt(He,mt,ft,Ct,!(Ct&&le),(j,it,Rt)=>{Rt&&Dn(He)!==Dn(Rt)&&(Rt=void 0),pt.push(Rt||it||j)},()=>!Fe),pt}function tt(He,mt,ft,Ct,le,Fe,pt){const j=WO(mt);if(j){const fn=ft.getShorthandAssignmentValueSymbol(mt.parent);if(fn&&Ct)return Fe(fn,void 0,void 0,3);const hn=ft.getContextualType(j.parent),q=hn&&Ht(ez(j,ft,hn,!0),me=>Gt(me,4));if(q)return q;const Oe=ne(mt,ft),Lt=Oe&&Fe(Oe,void 0,void 0,4);if(Lt)return Lt;const L=fn&&Fe(fn,void 0,void 0,3);if(L)return L}const it=s(mt,He,ft);if(it){const fn=Fe(it,void 0,void 0,1);if(fn)return fn}const Rt=Gt(He);if(Rt)return Rt;if(He.valueDeclaration&&pp(He.valueDeclaration,He.valueDeclaration.parent)){const fn=ft.getSymbolsOfParameterPropertyDeclaration(oa(He.valueDeclaration,Ao),He.name);return N.assert(fn.length===2&&!!(fn[0].flags&1)&&!!(fn[1].flags&4)),Gt(He.flags&1?fn[1]:fn[0])}const Ye=pl(He,281);if(!Ct||Ye&&!Ye.propertyName){const fn=Ye&&ft.getExportSpecifierLocalTargetSymbol(Ye);if(fn){const hn=Fe(fn,void 0,void 0,1);if(hn)return hn}}if(!Ct){let fn;return le?fn=uO(mt.parent)?o5(ft,mt.parent):void 0:fn=yn(He,ft),fn&&Gt(fn,4)}if(N.assert(Ct),le){const fn=yn(He,ft);return fn&&Gt(fn,4)}function Gt(fn,hn){return Ht(ft.getRootSymbols(fn),q=>Fe(fn,q,void 0,hn)||(q.parent&&q.parent.flags&96&&pt(q)?zt(q.parent,q.name,ft,Oe=>Fe(fn,q,Oe,hn)):void 0))}function yn(fn,hn){const q=pl(fn,208);if(q&&uO(q))return o5(hn,q)}}function zt(He,mt,ft,Ct){const le=new Map;return Fe(He);function Fe(pt){if(!(!(pt.flags&96)||!Am(le,Sa(pt))))return Ht(pt.declarations,j=>Ht(RC(j),it=>{const Rt=ft.getTypeAtLocation(it),Ye=Rt&&Rt.symbol&&ft.getPropertyOfType(Rt,mt);return Rt&&Ye&&(Ht(ft.getRootSymbols(Ye),Ct)||Fe(Rt.symbol))}))}}function Dn(He){return He.valueDeclaration?!!(ud(He.valueDeclaration)&256):!1}function ci(He,mt,ft,Ct){const{checker:le}=Ct;return tt(mt,ft,le,!1,Ct.options.use!==2||!!Ct.options.providePrefixAndSuffixTextForRename,(Fe,pt,j,it)=>(j&&Dn(mt)!==Dn(j)&&(j=void 0),He.includes(j||pt||Fe)?{symbol:pt&&!(xl(Fe)&6)?pt:Fe,kind:it}:void 0),Fe=>!(He.parents&&!He.parents.some(pt=>so(Fe.parent,pt,Ct.inheritsFromCache,le))))}function yi(He,mt){let ft=ZS(He);const{declarations:Ct}=mt;if(Ct){let le;do{le=ft;for(const Fe of Ct){const pt=Yw(Fe);pt&ft&&(ft|=pt)}}while(ft!==le)}return ft}e.getIntersectingMeaningFromDeclarations=yi;function Qi(He){return He.flags&33554432?!(md(He)||xm(He)):aR(He)?Ly(He):Bs(He)?!!He.body:di(He)||_L(He)}function Io(He,mt,ft){const Ct=mt.getSymbolAtLocation(He),le=mt.getShorthandAssignmentValueSymbol(Ct.valueDeclaration);if(le)for(const Fe of le.getDeclarations())Yw(Fe)&1&&ft(Fe)}e.getReferenceEntriesForShorthandPropertyAssignment=Io;function fa(He,mt,ft){Uo(He,Ct=>{Ct.kind===mt&&ft(Ct),fa(Ct,mt,ft)})}function ka(He){return Yj(z7(He).parent)}function Tn(He,mt,ft){const Ct=vD(He)?He.parent:void 0,le=Ct&&ft.getTypeAtLocation(Ct.expression),Fe=eo(le&&(le.isUnionOrIntersection()?le.types:le.symbol===mt.parent?void 0:[le]),pt=>pt.symbol&&pt.symbol.flags&96?pt.symbol:void 0);return Fe.length===0?void 0:Fe}function wn(He){return He.use===2&&He.providePrefixAndSuffixTextForRename}})(kI||(kI={}))}}),Ws={};ee(Ws,{Core:()=>kI,DefinitionKind:()=>Jme,EntryKind:()=>Kme,ExportKind:()=>Gme,FindReferencesUse:()=>Xme,ImportExport:()=>Vme,createImportTracker:()=>Fme,findModuleReferences:()=>ZLe,findReferenceOrRenameEntries:()=>jnt,findReferencedSymbols:()=>Bnt,getContextNode:()=>oT,getExportInfo:()=>zme,getImplementationsAtPosition:()=>Vnt,getImportOrExportSymbol:()=>nke,getReferenceEntriesForNode:()=>ike,getTextSpanOfEntry:()=>Hme,isContextWithStartAndEndNode:()=>jme,isDeclarationOfSymbol:()=>lke,isWriteAccessForReference:()=>qme,nodeEntry:()=>ug,toContextSpan:()=>Ume,toHighlightSpan:()=>Ynt,toReferenceEntry:()=>ske,toRenameLocation:()=>Hnt});var Yme=I({"src/services/_namespaces/ts.FindAllReferences.ts"(){Fnt(),Qnt()}});function cke(e,t,r,i,o){var s;const l=dke(t,r,e),u=l&&[urt(l.reference.fileName,l.fileName,l.unverified)]||et;if(l!=null&&l.file)return u;const p=Vd(t,r);if(p===t)return;const{parent:h}=p,m=e.getTypeChecker();if(p.kind===164||Ve(p)&&YW(h)&&h.tagName===p)return ert(m,p)||et;if(Zw(p)){const C=B7(p.parent,p.text);return C?[$me(m,C,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:const C=Vn(p.parent,U=>Rl(U)?"quit":Bs(U));return C?[Sz(m,C)]:void 0;case 90:if(!EP(p.parent))break;case 84:const O=Vn(p.parent,vP);if(O)return[crt(O,t)];break}if(p.kind===135){const C=Vn(p,U=>Bs(U));return C&&bt(C.modifiers,U=>U.kind===134)?[Sz(m,C)]:void 0}if(p.kind===127){const C=Vn(p,U=>Bs(U));return C&&C.asteriskToken?[Sz(m,C)]:void 0}if(QA(p)&&Rl(p.parent)){const C=p.parent.parent,{symbol:O,failedAliasResolution:U}=bQ(C,m,o),K=mn(C.members,Rl),Q=O?m.symbolToString(O,C):"",V=p.getSourceFile();return Wt(K,se=>{let{pos:G}=C_(se);return G=Pa(V.text,G),$me(m,se,"constructor","static {}",Q,!1,U,{start:G,length:6})})}let{symbol:y,failedAliasResolution:T}=bQ(p,m,o),A=p;if(i&&T){const C=Xe([p,...(y==null?void 0:y.declarations)||et],U=>Vn(U,Vre)),O=C&&pR(C);O&&({symbol:y,failedAliasResolution:T}=bQ(O,m,o),A=O)}if(!y&&i5(A)){const C=(s=e.getResolvedModuleFromModuleSpecifier(A))==null?void 0:s.resolvedModule;if(C)return[{name:A.text,fileName:C.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:vu(0,0),failedAliasResolution:T,isAmbient:Su(C.resolvedFileName),unverified:A!==p}]}if(!y)return So(u,art(p,m));if(i&&Jn(y.declarations,C=>C.getSourceFile().fileName===t.fileName))return;const R=prt(m,p);if(R&&!(ld(p.parent)&&frt(R))){const C=Sz(m,R,T);if(m.getRootSymbols(y).some(O=>Znt(O,R)))return[C];{const O=bM(m,y,p,T,R)||et;return p.kind===108?[C,...O]:[...O,C]}}if(p.parent.kind===304){const C=m.getShorthandAssignmentValueSymbol(y.valueDeclaration),O=C!=null&&C.declarations?C.declarations.map(U=>XO(U,m,C,p,!1,T)):et;return So(O,uke(m,p))}if(oc(p)&&$a(h)&&im(h.parent)&&p===(h.propertyName||h.name)){const C=cO(p),O=m.getTypeAtLocation(h.parent);return C===void 0?et:Do(O.isUnion()?O.types:[O],U=>{const K=U.getProperty(C);return K&&bM(m,K,p)})}const M=uke(m,p);return So(u,M.length?M:bM(m,y,p,T))}function Znt(e,t){var r;return e===t.symbol||e===t.symbol.parent||Pc(t.parent)||!NE(t.parent)&&e===((r=ri(t.parent,T_))==null?void 0:r.symbol)}function uke(e,t){const r=WO(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return Do(ez(r,e,i,!1),o=>bM(e,o,t))}return et}function ert(e,t){const r=Vn(t,Yc);if(!(r&&r.name))return;const i=Vn(r,di);if(!i)return;const o=I_(i);if(!o)return;const s=hs(o.expression),l=Qc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;const u=Vi(nR(r.name)),p=mc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),u);if(p)return bM(e,p,t)}function dke(e,t,r){var i,o;const s=EM(e.referencedFiles,t);if(s){const p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}const l=EM(e.typeReferenceDirectives,t);if(l){const p=(i=r.getResolvedTypeReferenceDirectives().get(l.fileName,l.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,h=p&&r.getSourceFile(p.resolvedFileName);return h&&{reference:l,fileName:h.fileName,file:h,unverified:!1}}const u=EM(e.libReferenceDirectives,t);if(u){const p=r.getLibFileFromReference(u);return p&&{reference:u,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const p=bD(e,t);let h;if(i5(p)&&Xc(p.text)&&(h=r.getResolvedModuleFromModuleSpecifier(p))){const m=(o=h.resolvedModule)==null?void 0:o.resolvedFileName,y=m||Iy(ai(e.fileName),p.text);return{file:r.getSourceFile(y),fileName:y,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!m}}}}function trt(e,t){const r=t.symbol.name;if(!Zme.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function pke(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!Zme.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function nrt(e,t,r,i){var o,s;if(Wr(t)&4&&trt(e,t))return KO(e.getTypeArguments(t)[0],e,r,i);if(pke(e,t)&&t.aliasTypeArguments)return KO(t.aliasTypeArguments[0],e,r,i);if(Wr(t)&32&&t.target&&pke(e,t.target)){const l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&xm(l)&&Df(l.type)&&l.type.typeArguments)return KO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function rrt(e,t,r){const i=Vd(t,r);if(i===t)return;if(oR(i.parent)&&i.parent.name===i)return KO(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:o,failedAliasResolution:s}=bQ(i,e,!1);if(!o)return;const l=e.getTypeOfSymbolAtLocation(o,i),u=irt(o,l,e),p=u&&KO(u,e,i,s),[h,m]=p&&p.length!==0?[u,p]:[l,KO(l,e,i,s)];return m.length?[...nrt(e,h,i,s),...m]:!(o.flags&111551)&&o.flags&788968?bM(e,bu(o,e),i,s):void 0}function KO(e,t,r,i){return Do(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&bM(t,o.symbol,r,i))}function irt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Oi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Ua(i))}}function ort(e,t,r){const i=cke(e,t,r);if(!i||i.length===0)return;const o=EM(t.referencedFiles,r)||EM(t.typeReferenceDirectives,r)||EM(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:tb(o)};const s=Vd(t,r),l=vu(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function art(e,t){return eo(t.getIndexInfosAtLocation(e),r=>r.declaration&&Sz(t,r.declaration))}function bQ(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if(i!=null&&i.declarations&&i.flags&2097152&&!r&&srt(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function srt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function lrt(e){if(!AC(e))return!1;const t=Vn(e,r=>Pc(r)?!0:AC(r)?!1:"quit");return!!t&&zl(t)===5}function bM(e,t,r,i,o){const s=mn(t.declarations,y=>y!==o),l=mn(s,y=>!lrt(y)),u=bt(l)?l:s;return p()||h()||Wt(u,y=>XO(y,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(eM(r)||r.kind===137)){const y=In(s,di)||N.fail("Expected declaration to have at least one class-like declaration");return m(y.members,!0)}}function h(){return AK(r)||PK(r)?m(s,!1):void 0}function m(y,T){if(!y)return;const A=y.filter(T?Ml:ea),R=A.filter(M=>!!M.body);return A.length?R.length!==0?R.map(M=>XO(M,e,t,r)):[XO(Xa(A),e,t,r,!1,i)]:void 0}}function XO(e,t,r,i,o,s){const l=t.symbolToString(r),u=Qv.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return $me(t,e,u,l,p,o,s)}function $me(e,t,r,i,o,s,l,u){const p=t.getSourceFile();if(!u){const h=Lo(t)||t;u=Dd(h,p)}return{fileName:p.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Ws.toContextSpan(u,p,Ws.getContextNode(t)),isLocal:!Qme(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function crt(e,t){const r=Ws.getContextNode(e),i=Dd(jme(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Ws.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function Qme(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Ly(t.parent)&&t.parent.initializer===t)return Qme(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(_p(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return Qme(e,t.parent);default:return!1}}function Sz(e,t,r){return XO(t,e,t.symbol,t,!1,r)}function EM(e,t){return In(e,r=>eL(r,t))}function urt(e,t,r){return{fileName:t,textSpan:pc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function drt(e){const t=Vn(e,i=>!vD(i)),r=t==null?void 0:t.parent;return r&&NE(r)&&q4(r)===t?r:void 0}function prt(e,t){const r=drt(t),i=r&&e.getResolvedSignature(r);return ri(i&&i.declaration,o=>ea(o)&&!yh(o))}function frt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var Zme,mrt=I({"src/services/goToDefinition.ts"(){si(),Yme(),Zme=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),FD={};ee(FD,{createDefinitionInfo:()=>XO,findReferenceInPosition:()=>EM,getDefinitionAndBoundSpan:()=>ort,getDefinitionAtPosition:()=>cke,getReferenceAtPosition:()=>dke,getTypeDefinitionAtPosition:()=>rrt});var _rt=I({"src/services/_namespaces/ts.GoToDefinition.ts"(){mrt()}});function hrt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function grt(e){return e.includeInlayParameterNameHints==="literals"}function fke(e){return e.interactiveInlayHints===!0}function vrt(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),p=lf(t,s),h=r.getTypeChecker(),m=[];return y(t),m;function y(de){if(!(!de||de.getFullWidth()===0)){switch(de.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(o4(i,de.pos,de.getFullWidth())&&!(ji(de)&&!Vv(de)))return s.includeInlayVariableTypeHints&&Oi(de)||s.includeInlayPropertyDeclarationTypeHints&&qo(de)?U(de):s.includeInlayEnumMemberValueHints&&i1(de)?C(de):hrt(s)&&(sa(de)||$E(de))?K(de):(s.includeInlayFunctionParameterTypeHints&&Bs(de)&&H3(de)&&he(de),s.includeInlayFunctionLikeReturnTypeHints&&T(de)&&G(de)),Uo(de,y)}}function T(de){return Gs(de)||Os(de)||Tc(de)||Hl(de)||tf(de)}function A(de,ie,ve,Le){let Ue=`${Le?"...":""}${de}`,Ee;fke(s)?(Ee=[Ce(Ue,ie),{text:":"}],Ue=""):Ue+=":",m.push({text:Ue,position:ve,kind:"Parameter",whitespaceAfter:!0,displayParts:Ee})}function R(de,ie){m.push({text:typeof de=="string"?`: ${de}`:"",displayParts:typeof de=="string"?void 0:[{text:": "},...de],position:ie,kind:"Type",whitespaceBefore:!0})}function M(de,ie){m.push({text:`= ${de}`,position:ie,kind:"Enum",whitespaceBefore:!0})}function C(de){if(de.initializer)return;const ie=h.getConstantValue(de);ie!==void 0&&M(ie.toString(),de.end)}function O(de){return de.symbol&&de.symbol.flags&1536}function U(de){if(!de.initializer||ta(de.name)||Oi(de)&&!pe(de)||yu(de))return;const ve=h.getTypeAtLocation(de);if(O(ve))return;const Le=X(ve);if(Le){const Ue=typeof Le=="string"?Le:Le.map(De=>De.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&$b(de.name.getText(),Ue))return;R(Le,de.name.end)}}function K(de){const ie=de.arguments;if(!ie||!ie.length)return;const ve=[],Le=h.getResolvedSignatureForSignatureHelp(de,ve);if(!Le||!ve.length)return;let Ue=0;for(const Ee of ie){const De=hs(Ee);if(grt(s)&&!se(De)){Ue++;continue}let Me=0;if($m(De)){const At=h.getTypeAtLocation(De.expression);if(h.isTupleType(At)){const{elementFlags:Se,fixedLength:je}=At.target;if(je===0)continue;const ot=mi(Se,vt=>!(vt&1));(ot<0?je:ot)>0&&(Me=ot<0?je:ot)}}const We=h.getParameterIdentifierInfoAtPosition(Le,Ue);if(Ue=Ue+(Me||1),We){const{parameter:At,parameterName:Se,isRestParameter:je}=We;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!Q(De,Se))&&!je)continue;const Bt=Vi(Se);if(V(De,Bt))continue;A(Bt,At,Ee.getStart(),je)}}}function Q(de,ie){return Ve(de)?de.text===ie:Fr(de)?de.name.text===ie:!1}function V(de,ie){if(!Zp(ie,u.target,pk(t.scriptKind)))return!1;const ve=qh(l,de.pos);if(!(ve!=null&&ve.length))return!1;const Le=mke(ie);return bt(ve,Ue=>Le.test(l.substring(Ue.pos,Ue.end)))}function se(de){switch(de.kind){case 224:{const ie=de.operand;return DE(ie)||Ve(ie)&&tP(ie.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const ie=de.escapedText;return oe(ie)||tP(ie)}}return DE(de)}function G(de){if(Gs(de)&&!vs(de,21,t)||em(de)||!de.body)return;const ve=h.getSignatureFromDeclaration(de);if(!ve)return;const Le=h.getReturnTypeOfSignature(ve);if(O(Le))return;const Ue=X(Le);Ue&&R(Ue,ne(de))}function ne(de){const ie=vs(de,22,t);return ie?ie.end:de.parameters.end}function he(de){const ie=h.getSignatureFromDeclaration(de);if(ie)for(let ve=0;ve<de.parameters.length&&ve<ie.parameters.length;++ve){const Le=de.parameters[ve];if(!pe(Le)||yu(Le))continue;const Ee=ye(ie.parameters[ve]);Ee&&R(Ee,Le.questionToken?Le.questionToken.end:Le.name.end)}}function ye(de){const ie=de.valueDeclaration;if(!ie||!Ao(ie))return;const ve=h.getTypeOfSymbolAtLocation(de,ie);if(!O(ve))return X(ve)}function Y(de){const ve=d1();return hC(Le=>{const Ue=h.typeToTypeNode(de,void 0,71286784);N.assertIsDefined(Ue,"should always get typenode"),ve.writeNode(4,Ue,t,Le)})}function X(de){if(!fke(s))return Y(de);const ve=h.typeToTypeNode(de,void 0,71286784);N.assertIsDefined(ve,"should always get typenode");const Le=[];return Ue(ve),Le;function Ue(We){var At,Se;if(!We)return;const je=pa(We.kind);if(je){Le.push({text:je});return}if(DE(We)){Le.push({text:Me(We)});return}switch(We.kind){case 80:N.assertNode(We,Ve);const ot=Sr(We),Bt=We.symbol&&We.symbol.declarations&&We.symbol.declarations.length&&Lo(We.symbol.declarations[0]);Bt?Le.push(Ce(ot,Bt)):Le.push({text:ot});break;case 166:N.assertNode(We,Id),Ue(We.left),Le.push({text:"."}),Ue(We.right);break;case 182:N.assertNode(We,Gk),We.assertsModifier&&Le.push({text:"asserts "}),Ue(We.parameterName),We.type&&(Le.push({text:" is "}),Ue(We.type));break;case 183:N.assertNode(We,Df),Ue(We.typeName),We.typeArguments&&(Le.push({text:"<"}),De(We.typeArguments,", "),Le.push({text:">"}));break;case 168:N.assertNode(We,hl),We.modifiers&&De(We.modifiers," "),Ue(We.name),We.constraint&&(Le.push({text:" extends "}),Ue(We.constraint)),We.default&&(Le.push({text:" = "}),Ue(We.default));break;case 169:N.assertNode(We,Ao),We.modifiers&&De(We.modifiers," "),We.dotDotDotToken&&Le.push({text:"..."}),Ue(We.name),We.questionToken&&Le.push({text:"?"}),We.type&&(Le.push({text:": "}),Ue(We.type));break;case 185:N.assertNode(We,zR),Le.push({text:"new "}),Ee(We),Le.push({text:" => "}),Ue(We.type);break;case 186:N.assertNode(We,eI),Le.push({text:"typeof "}),Ue(We.exprName),We.typeArguments&&(Le.push({text:"<"}),De(We.typeArguments,", "),Le.push({text:">"}));break;case 187:N.assertNode(We,yp),Le.push({text:"{"}),We.members.length&&(Le.push({text:" "}),De(We.members,"; "),Le.push({text:" "})),Le.push({text:"}"});break;case 188:N.assertNode(We,Vk),Ue(We.elementType),Le.push({text:"[]"});break;case 189:N.assertNode(We,tI),Le.push({text:"["}),De(We.elements,", "),Le.push({text:"]"});break;case 202:N.assertNode(We,BR),We.dotDotDotToken&&Le.push({text:"..."}),Ue(We.name),We.questionToken&&Le.push({text:"?"}),Le.push({text:": "}),Ue(We.type);break;case 190:N.assertNode(We,VW),Ue(We.type),Le.push({text:"?"});break;case 191:N.assertNode(We,jW),Le.push({text:"..."}),Ue(We.type);break;case 192:N.assertNode(We,qy),De(We.types," | ");break;case 193:N.assertNode(We,nI),De(We.types," & ");break;case 194:N.assertNode(We,rI),Ue(We.checkType),Le.push({text:" extends "}),Ue(We.extendsType),Le.push({text:" ? "}),Ue(We.trueType),Le.push({text:" : "}),Ue(We.falseType);break;case 195:N.assertNode(We,kS),Le.push({text:"infer "}),Ue(We.typeParameter);break;case 196:N.assertNode(We,wS),Le.push({text:"("}),Ue(We.type),Le.push({text:")"});break;case 198:N.assertNode(We,OS),Le.push({text:`${pa(We.operator)} `}),Ue(We.type);break;case 199:N.assertNode(We,WS),Ue(We.objectType),Le.push({text:"["}),Ue(We.indexType),Le.push({text:"]"});break;case 200:N.assertNode(We,GR),Le.push({text:"{ "}),We.readonlyToken&&(We.readonlyToken.kind===40?Le.push({text:"+"}):We.readonlyToken.kind===41&&Le.push({text:"-"}),Le.push({text:"readonly "})),Le.push({text:"["}),Ue(We.typeParameter),We.nameType&&(Le.push({text:" as "}),Ue(We.nameType)),Le.push({text:"]"}),We.questionToken&&(We.questionToken.kind===40?Le.push({text:"+"}):We.questionToken.kind===41&&Le.push({text:"-"}),Le.push({text:"?"})),Le.push({text:": "}),We.type&&Ue(We.type),Le.push({text:"; }"});break;case 201:N.assertNode(We,Jy),Ue(We.literal);break;case 184:N.assertNode(We,yh),Ee(We),Le.push({text:" => "}),Ue(We.type);break;case 205:N.assertNode(We,ag),We.isTypeOf&&Le.push({text:"typeof "}),Le.push({text:"import("}),Ue(We.argument),We.assertions&&(Le.push({text:", { assert: "}),De(We.assertions.assertClause.elements,", "),Le.push({text:" }"})),Le.push({text:")"}),We.qualifier&&(Le.push({text:"."}),Ue(We.qualifier)),We.typeArguments&&(Le.push({text:"<"}),De(We.typeArguments,", "),Le.push({text:">"}));break;case 171:N.assertNode(We,gp),(At=We.modifiers)!=null&&At.length&&(De(We.modifiers," "),Le.push({text:" "})),Ue(We.name),We.questionToken&&Le.push({text:"?"}),We.type&&(Le.push({text:": "}),Ue(We.type));break;case 181:N.assertNode(We,XE),Le.push({text:"["}),De(We.parameters,", "),Le.push({text:"]"}),We.type&&(Le.push({text:": "}),Ue(We.type));break;case 173:N.assertNode(We,vh),(Se=We.modifiers)!=null&&Se.length&&(De(We.modifiers," "),Le.push({text:" "})),Ue(We.name),We.questionToken&&Le.push({text:"?"}),Ee(We),We.type&&(Le.push({text:": "}),Ue(We.type));break;case 179:N.assertNode(We,ZA),Ee(We),We.type&&(Le.push({text:": "}),Ue(We.type));break;case 207:N.assertNode(We,YE),Le.push({text:"["}),De(We.elements,", "),Le.push({text:"]"});break;case 206:N.assertNode(We,im),Le.push({text:"{"}),We.elements.length&&(Le.push({text:" "}),De(We.elements,", "),Le.push({text:" "})),Le.push({text:"}"});break;case 208:N.assertNode(We,$a),Ue(We.name);break;case 224:N.assertNode(We,Xy),Le.push({text:pa(We.operator)}),Ue(We.operand);break;case 203:N.assertNode(We,uae),Ue(We.head),We.templateSpans.forEach(Ue);break;case 16:N.assertNode(We,YA),Le.push({text:Me(We)});break;case 204:N.assertNode(We,aH),Ue(We.type),Ue(We.literal);break;case 17:N.assertNode(We,nH),Le.push({text:Me(We)});break;case 18:N.assertNode(We,FW),Le.push({text:Me(We)});break;case 197:N.assertNode(We,jk),Le.push({text:"this"});break;default:N.failBadSyntaxKind(We)}}function Ee(We){We.typeParameters&&(Le.push({text:"<"}),De(We.typeParameters,", "),Le.push({text:">"})),Le.push({text:"("}),De(We.parameters,", "),Le.push({text:")"})}function De(We,At){We.forEach((Se,je)=>{je>0&&Le.push({text:At}),Ue(Se)})}function Me(We){switch(We.kind){case 11:return p===0?`'${tg(We.text,39)}'`:`"${tg(We.text,34)}"`;case 16:case 17:case 18:{const At=We.rawText??zj(tg(We.text,96));switch(We.kind){case 16:return"`"+At+"${";case 17:return"}"+At+"${";case 18:return"}"+At+"`"}}}return We.text}}function oe(de){return de==="undefined"}function pe(de){if((zE(de)||Oi(de)&&iR(de))&&de.initializer){const ie=hs(de.initializer);return!(se(ie)||$E(ie)||La(ie)||mS(ie))}return!0}function Ce(de,ie){const ve=ie.getSourceFile();return{text:de,span:Dd(ie,ve),file:ve.fileName}}}var mke,yrt=I({"src/services/inlayHints.ts"(){si(),mke=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),EQ={};ee(EQ,{provideInlayHints:()=>vrt});var brt=I({"src/services/_namespaces/ts.InlayHints.ts"(){yrt()}});function Ert(e,t){const r=[];return eX(e,i=>{for(const o of Trt(i)){const s=Zm(o)&&o.tags&&In(o.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||Zm(o)&&i.kind!==353&&i.kind!==345&&o.tags&&o.tags.some(u=>u.kind===353||u.kind===345)&&!o.tags.some(u=>u.kind===348||u.kind===349))continue;let l=o.comment?zD(o.comment,t):[];s&&s.comment&&(l=l.concat(zD(s.comment,t))),Or(r,l,Srt)||r.push(l)}}),Cs(io(r,[AD()]))}function Srt(e,t){return Ba(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Trt(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(JR(e.parent))return[e.parent.parent];default:return Tj(e)}}function Art(e,t){const r=[];return eX(e,i=>{const o=a0(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(const s of o)r.push({name:s.tagName.text,text:gke(s,t)}),r.push(..._ke(hke(s),t))}),r}function _ke(e,t){return Do(e,r=>So([{name:r.tagName.text,text:gke(r,t)}],_ke(hke(r),t)))}function hke(e){return uC(e)&&e.isNameFirst&&e.typeExpression&&jS(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function zD(e,t){return typeof e=="string"?[cf(e)]:Do(e,r=>r.kind===328?[cf(r.text)]:Sue(r,t))}function gke(e,t){const{comment:r,kind:i}=e,o=Irt(i);switch(i){case 356:const u=e.typeExpression;return u?s(u):r===void 0?void 0:zD(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:const p=e,h=[];if(p.constraint&&h.push(cf(p.constraint.getText())),Ne(p.typeParameters)){Ne(h)&&h.push(wl());const y=p.typeParameters[p.typeParameters.length-1];Xe(p.typeParameters,T=>{h.push(o(T.getText())),y!==T&&h.push($u(28),wl())})}return r&&h.push(wl(),...zD(r,t)),h;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:m}=e;return m?s(m):r===void 0?void 0:zD(r,t);default:return r===void 0?void 0:zD(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[cf(u),...zD(r,t)]:[o(u),wl(),...zD(r,t)]:[cf(u)]}}function Irt(e){switch(e){case 348:return gue;case 355:return vue;case 352:return bue;case 353:case 345:return yue;default:return cf}}function xrt(){return yke||(yke=Wt(t_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:LI.SortText.LocationPriority})))}function Rrt(){return bke||(bke=Wt(t_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:LI.SortText.LocationPriority})))}function vke(e){return{name:e,kind:"",kindModifiers:"",displayParts:[cf(e)],documentation:et,tags:void 0,codeActions:void 0}}function Drt(e){if(!Ve(e.name))return et;const t=e.name.text,r=e.parent,i=r.parent;return ea(i)?eo(i.parameters,o=>{if(!Ve(o.name))return;const s=o.name.text;if(!(r.tags.some(l=>l!==e&&e_(l)&&Ve(l.name)&&l.name.escapedText===s)||t!==void 0&&!uo(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:LI.SortText.LocationPriority}}):[]}function Nrt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[cf(e)],documentation:et,tags:void 0,codeActions:void 0}}function Crt(e,t,r,i){const o=po(t,r),s=Vn(o,Zm);if(s&&(s.comment!==void 0||Ne(s.tags)))return;const l=o.getStart(t);if(!s&&l<r)return;const u=krt(o,i);if(!u)return;const{commentOwner:p,parameters:h,hasReturn:m}=u,y=Wp(p)&&p.jsDoc?p.jsDoc:void 0,T=el(y);if(p.getStart(t)<r||T&&s&&T!==s)return;const A=Prt(t,r),R=UE(t.fileName),M=(h?Mrt(h||[],R,A,e):"")+(m?Lrt(A,e):""),C="/**",O=" */",U=Ne(a0(p))>0;if(M&&!U){const K=C+e+A+" * ",Q=l===r?e+A:"";return{newText:K+e+M+A+O+Q,caretOffset:K.length}}return{newText:C+O,caretOffset:3}}function Prt(e,t){const{text:r}=e,i=am(t,e);let o=i;for(;o<=t&&E_(r.charCodeAt(o));o++);return r.slice(i,o)}function Mrt(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{const u=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function Lrt(e,t){return`${e} * @returns${t}`}function krt(e,t){return Pre(e,r=>e_e(r,t))}function e_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:Tz(r,t)};case 303:return e_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const o=e;return o.type&&yh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:Tz(o.type,t)}:{commentOwner:e}}case 243:{const s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?wrt(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:Tz(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return e_e(e.expression,t);case 226:{const o=e;return zl(o)===0?"quit":ea(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:Tz(o.right,t)}:{commentOwner:e}}case 172:const i=e.initializer;if(i&&(Os(i)||Gs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:Tz(i,t)}}}function Tz(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(yh(e)||Gs(e)&&yt(e.body)||Bs(e)&&e.body&&Ko(e.body)&&!!LE(e.body,r=>r))}function wrt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return In(e.members,Ml)}}var t_e,yke,bke,Eke,Ort=I({"src/services/jsDoc.ts"(){si(),t_e=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Eke=vke}}),k0={};ee(k0,{getDocCommentTemplateAtPosition:()=>Crt,getJSDocParameterNameCompletionDetails:()=>Nrt,getJSDocParameterNameCompletions:()=>Drt,getJSDocTagCompletionDetails:()=>vke,getJSDocTagCompletions:()=>Rrt,getJSDocTagNameCompletionDetails:()=>Eke,getJSDocTagNameCompletions:()=>xrt,getJsDocCommentsFromDeclarations:()=>Ert,getJsDocTagsFromDeclarations:()=>Art});var Wrt=I({"src/services/_namespaces/ts.JsDoc.ts"(){Ort()}});function Frt(e,t,r,i,o,s){const l=_r.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",p=u,h=s==="RemoveUnused"||s==="All",m=SQ(e,e.statements.filter(Mc)),y=tit(o,u?()=>Ake(m,o)===2:void 0),T=R=>(h&&(R=Brt(R,e,i)),p&&(R=Ske(R,y,e,o)),u&&(R=Sv(R,(M,C)=>a_e(M,C,y))),R);m.forEach(R=>A(R,T)),s!=="RemoveUnused"&&nit(e).forEach(R=>A(R,M=>n_e(M,y,o)));for(const R of e.statements.filter(ku)){if(!R.body)continue;if(SQ(e,R.body.statements.filter(Mc)).forEach(C=>A(C,T)),s!=="RemoveUnused"){const C=R.body.statements.filter(Yl);A(C,O=>n_e(O,y,o))}}return l.getChanges();function A(R,M){if(Ne(R)===0)return;pr(R[0],1024);const C=p?JN(R,K=>Az(K.moduleSpecifier)):[R],O=u?Sv(C,(K,Q)=>i_e(K[0].moduleSpecifier,Q[0].moduleSpecifier,y)):C,U=Do(O,K=>Az(K[0].moduleSpecifier)||K[0].moduleSpecifier===void 0?M(K):K);if(U.length===0)l.deleteNodes(e,R,{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Include},!0);else{const K={leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Include,suffix:Xv(r,t.options)};l.replaceNodeWithNodes(e,R[0],U,K);const Q=l.nodeHasTrailingComment(e,R[0],K);l.deleteNodes(e,R.slice(1),{trailingTriviaOption:_r.TrailingTriviaOption.Include},Q)}}}function SQ(e,t){const r=Nv(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&zrt(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function zrt(e,t,r){const i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()<o;)if(r.scan()===4&&(s++,s>=2))return!0;return!1}function Brt(e,t,r){const i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),p=[];for(const m of e){const{importClause:y,moduleSpecifier:T}=m;if(!y){p.push(m);continue}let{name:A,namedBindings:R}=y;if(A&&!h(A)&&(A=void 0),R)if(Yy(R))h(R.name)||(R=void 0);else{const M=R.elements.filter(C=>h(C.name));M.length<R.elements.length&&(R=M.length?w.updateNamedImports(R,M):void 0)}A||R?p.push(YO(m,A,R)):Grt(t,T)&&(t.isDeclarationFile?p.push(w.createImportDeclaration(m.modifiers,void 0,T,void 0)):p.push(m))}return p;function h(m){return u&&(m.text===s||l&&m.text===l)&&bX(o.jsx)||Ws.Core.isSymbolReferencedInFile(m,i,t)}}function Grt(e,t){const r=Na(t)&&t.text;return Mo(r)&&bt(e.moduleAugmentations,i=>Na(i)&&i.text===r)}function Az(e){return e!==void 0&&ls(e)?e.text:void 0}function Vrt(e,t,r,i){const o=TQ(t);return Ske(e,o,r,i)}function Ske(e,t,r,i){if(e.length===0)return e;const o=S6(e,l=>{if(l.attributes){let u=l.attributes.token+" ";for(const p of iS(l.attributes.elements,(h,m)=>Uu(h.name.text,m.name.text)))u+=p.name.text+":",u+=ls(p.value)?`"${p.value.text}"`:p.value.getText()+" ";return u}return""}),s=[];for(const l in o){const u=o[l],{importWithoutClause:p,typeOnlyImports:h,regularImports:m}=jrt(u);p&&s.push(p);for(const y of[m,h]){const T=y===h,{defaultImports:A,namespaceImports:R,namedImports:M}=y;if(!T&&A.length===1&&R.length===1&&M.length===0){const ne=A[0];s.push(YO(ne,ne.importClause.name,R[0].importClause.namedBindings));continue}const C=Sv(R,(ne,he)=>t(ne.importClause.namedBindings.name.text,he.importClause.namedBindings.name.text));for(const ne of C)s.push(YO(ne,void 0,ne.importClause.namedBindings));const O=Kc(A),U=Kc(M),K=O??U;if(!K)continue;let Q;const V=[];if(A.length===1)Q=A[0].importClause.name;else for(const ne of A)V.push(w.createImportSpecifier(!1,w.createIdentifier("default"),ne.importClause.name));V.push(...$rt(M));const se=w.createNodeArray(Tke(V,t,i),U==null?void 0:U.importClause.namedBindings.elements.hasTrailingComma),G=se.length===0?Q?void 0:w.createNamedImports(et):U?w.updateNamedImports(U.importClause.namedBindings,se):w.createNamedImports(se);r&&G&&(U!=null&&U.importClause.namedBindings)&&!CS(U.importClause.namedBindings,r)&&pr(G,2),T&&Q&&G?(s.push(YO(K,Q,void 0)),s.push(YO(U??K,void 0,G))):s.push(YO(K,Q,G))}}return s}function jrt(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const o of e){if(o.importClause===void 0){t=t||o;continue}const s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:u}=o.importClause;l&&s.defaultImports.push(o),u&&(Yy(u)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Urt(e,t,r){const i=TQ(t);return n_e(e,i,r)}function n_e(e,t,r){if(e.length===0)return e;const{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=u(e),l=[];i&&l.push(i);for(const p of[o,s]){if(p.length===0)continue;const h=[];h.push(...Do(p,T=>T.exportClause&&Nf(T.exportClause)?T.exportClause.elements:et));const m=Tke(h,t,r),y=p[0];l.push(w.updateExportDeclaration(y,y.modifiers,y.isTypeOnly,y.exportClause&&(Nf(y.exportClause)?w.updateNamedExports(y.exportClause,m):w.updateNamespaceExport(y.exportClause,y.exportClause.name)),y.moduleSpecifier,y.attributes))}return l;function u(p){let h;const m=[],y=[];for(const T of p)T.exportClause===void 0?h=h||T:T.isTypeOnly?y.push(T):m.push(T);return{exportWithoutClause:h,namedExports:m,typeOnlyExports:y}}}function YO(e,t,r){return w.updateImportDeclaration(e,e.modifiers,w.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function Tke(e,t,r){return Sv(e,(i,o)=>r_e(i,o,t,r))}function r_e(e,t,r,i){switch(i==null?void 0:i.organizeImportsTypeOrder){case"first":return Ey(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Ey(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Hrt(e,t,r){const i=TQ(!!r);return i_e(e,t,i)}function i_e(e,t,r){const i=e===void 0?void 0:Az(e),o=t===void 0?void 0:Az(t);return Ey(i===void 0,o===void 0)||Ey(Xc(i),Xc(o))||r(i,o)}function o_e(e){var t;switch(e.kind){case 271:return(t=ri(e.moduleReference,Sh))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function qrt(e,t){return Ake(SQ(e,e.statements.filter(Mc)),t)}function Ake(e,t){const r=BD(t,!1),i=BD(t,!0);let o=3,s=!1;for(const l of e){if(l.length>1){const p=qN(l,h=>{var m;return((m=ri(h.moduleSpecifier,Na))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}const u=In(l,p=>{var h,m;return((m=ri((h=p.importClause)==null?void 0:h.namedBindings,Bg))==null?void 0:m.elements.length)>1});if(u){const p=s_e(u.importClause.namedBindings.elements,t);if(p&&(o&=p,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function Jrt(e,t){const r=BD(t,!1),i=BD(t,!0);return qN(e,o=>Az(o_e(o))||"",r,i)}function Krt(e,t,r){const i=Tv(e,t,tl,(o,s)=>a_e(o,s,r));return i<0?~i:i}function Xrt(e,t,r,i){const o=Tv(e,t,tl,(s,l)=>r_e(s,l,r,i));return o<0?~o:o}function a_e(e,t,r){return i_e(o_e(e),o_e(t),r)||Yrt(e,t)}function Yrt(e,t){return nl(Ike(e),Ike(t))}function Ike(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function $rt(e){return Do(e,t=>Wt(Qrt(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?w.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function Qrt(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Bg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function TQ(e){return e?nne:Uu}function Zrt(e,t){const r=eit(t),i=t.organizeImportsCaseFirst??!1,o=t.organizeImportsNumericCollation??!1,s=t.organizeImportsAccentCollation??!0,l=e?s?"accent":"base":s?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:o}).compare}function eit(e){let t=e.organizeImportsLocale;t==="auto"&&(t=rne()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function BD(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?Zrt(t,e):TQ(t)}function tit(e,t){const r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(t==null?void 0:t())??!1;return BD(e,r)}function nit(e){const t=[],r=e.statements,i=Ne(r);let o=0,s=0;for(;o<i;)if(Yl(r[o])){t[s]===void 0&&(t[s]=[]);const l=r[o];if(l.moduleSpecifier)t[s].push(l),o++;else{for(;o<i&&Yl(r[o]);)t[s].push(r[o++]);s++}}else o++;return Do(t,l=>SQ(e,l))}var xke,s_e,rit=I({"src/services/organizeImports.ts"(){si(),xke=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,r)}},s_e=tne((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!y6(e,(o,s)=>Ey(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!y6(e,(o,s)=>Lx(!0)(o.name.text,s.name.text)))return 0;break;default:if(!y6(e,(o,s)=>Ey(o.isTypeOnly,s.isTypeOnly)))return 0;break}const r=BD(t,!1),i=BD(t,!0);if(t.organizeImportsTypeOrder!=="inline"){const{type:o,regular:s}=S6(e,p=>p.isTypeOnly?"type":"regular"),l=o!=null&&o.length?qN(o,p=>p.name.text,r,i):void 0,u=s!=null&&s.length?qN(s,p=>p.name.text??"",r,i):void 0;return l===void 0?u??0:u===void 0?l:l===0||u===0?0:u&l}return qN(e,o=>o.name.text,r,i)},new xke)}}),Cm={};ee(Cm,{coalesceExports:()=>Urt,coalesceImports:()=>Vrt,compareImportOrExportSpecifiers:()=>r_e,compareImportsOrRequireStatements:()=>a_e,compareModuleSpecifiers:()=>Hrt,detectImportDeclarationSorting:()=>Jrt,detectImportSpecifierSorting:()=>s_e,detectSorting:()=>qrt,getImportDeclarationInsertionIndex:()=>Krt,getImportSpecifierInsertionIndex:()=>Xrt,getOrganizeImportsComparer:()=>BD,organizeImports:()=>Frt});var iit=I({"src/services/_namespaces/ts.OrganizeImports.ts"(){rit()}});function oit(e,t){const r=[];return ait(e,t,r),sit(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function ait(e,t,r){let i=40,o=0;const s=[...e.statements,e.endOfFileToken],l=s.length;for(;o<l;){for(;o<l&&!gS(s[o]);)u(s[o]),o++;if(o===l)break;const p=o;for(;o<l&&gS(s[o]);)u(s[o]),o++;const h=o-1;h!==p&&r.push(Iz(vs(s[p],102,e).getStart(e),s[h].getEnd(),"imports"))}function u(p){var h;if(i===0)return;t.throwIfCancellationRequested(),(Ju(p)||Ll(p)||Im(p)||S_(p)||p.kind===1)&&Dke(p,e,t,r),ea(p)&&mr(p.parent)&&Fr(p.parent.left)&&Dke(p.parent.left,e,t,r),(Ko(p)||L_(p))&&l_e(p.statements.end,e,t,r),(di(p)||md(p))&&l_e(p.members.end,e,t,r);const m=lit(p,e);m&&r.push(m),i--,sa(p)?(i++,u(p.expression),i--,p.arguments.forEach(u),(h=p.typeArguments)==null||h.forEach(u)):FS(p)&&p.elseStatement&&FS(p.elseStatement)?(u(p.expression),u(p.thenStatement),i++,u(p.elseStatement),i--):p.forEachChild(u),i++}}function sit(e,t){const r=[],i=e.getLineStarts();for(const o of i){const s=e.getLineEndOfPosition(o),l=e.text.substring(o,s),u=Rke(l);if(!(!u||qv(e,o)))if(u[1]){const p=r.pop();p&&(p.textSpan.length=s-p.textSpan.start,p.hintSpan.length=s-p.textSpan.start,t.push(p))}else{const p=pc(e.text.indexOf("//",o),s);r.push(wI(p,"region",p,!1,u[2]||"#region"))}}}function Rke(e){return e=e.trimStart(),uo(e,"//")?(e=e.slice(2).trim(),Nke.exec(e)):null}function l_e(e,t,r,i){const o=qh(t.text,e);if(!o)return;let s=-1,l=-1,u=0;const p=t.getFullText();for(const{kind:m,pos:y,end:T}of o)switch(r.throwIfCancellationRequested(),m){case 2:const A=p.slice(y,T);if(Rke(A)){h(),u=0;break}u===0&&(s=y),l=T,u++;break;case 3:h(),i.push(Iz(y,T,"comment")),u=0;break;default:N.assertNever(m)}h();function h(){u>1&&i.push(Iz(s,l,"comment"))}}function Dke(e,t,r,i){KA(e)||l_e(e.pos,t,r,i)}function Iz(e,t,r){return wI(pc(e,t),r)}function lit(e,t){switch(e.kind){case 241:if(ea(e.parent))return cit(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return m(e.parent);case 258:const A=e.parent;if(A.tryBlock===e)return m(e.parent);if(A.finallyBlock===e){const R=vs(A,98,t);if(R)return m(R)}default:return wI(Dd(e,t),"code")}case 268:return m(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return m(e);case 189:return m(e,!1,!tI(e.parent),23);case 296:case 297:return y(e.statements);case 210:return h(e);case 209:return h(e,23);case 284:return s(e);case 288:return l(e);case 285:case 286:return u(e.attributes);case 228:case 15:return p(e);case 207:return m(e,!1,!$a(e.parent),23);case 219:return o(e);case 213:return i(e);case 217:return T(e);case 275:case 279:case 300:return r(e)}function r(A){if(!A.elements.length)return;const R=vs(A,19,t),M=vs(A,20,t);if(!(!R||!M||If(R.pos,M.pos,t)))return AQ(R,M,A,t,!1,!1)}function i(A){if(!A.arguments.length)return;const R=vs(A,21,t),M=vs(A,22,t);if(!(!R||!M||If(R.pos,M.pos,t)))return AQ(R,M,A,t,!1,!0)}function o(A){if(Ko(A.body)||Gd(A.body)||If(A.body.getFullStart(),A.body.getEnd(),t))return;const R=pc(A.body.getFullStart(),A.body.getEnd());return wI(R,"code",Dd(A))}function s(A){const R=pc(A.openingElement.getStart(t),A.closingElement.getEnd()),M=A.openingElement.tagName.getText(t),C="<"+M+">...</"+M+">";return wI(R,"code",R,!1,C)}function l(A){const R=pc(A.openingFragment.getStart(t),A.closingFragment.getEnd());return wI(R,"code",R,!1,"<>...</>")}function u(A){if(A.properties.length!==0)return Iz(A.getStart(t),A.getEnd(),"code")}function p(A){if(!(A.kind===15&&A.text.length===0))return Iz(A.getStart(t),A.getEnd(),"code")}function h(A,R=19){return m(A,!1,!fd(A.parent)&&!sa(A.parent),R)}function m(A,R=!1,M=!0,C=19,O=C===19?20:24){const U=vs(e,C,t),K=vs(e,O,t);return U&&K&&AQ(U,K,A,t,R,M)}function y(A){return A.length?wI(tb(A),"code"):void 0}function T(A){if(If(A.getStart(),A.getEnd(),t))return;const R=pc(A.getStart(),A.getEnd());return wI(R,"code",Dd(A))}}function cit(e,t,r){const i=uit(e,t,r),o=vs(t,20,r);return i&&o&&AQ(i,o,e,r,e.kind!==219)}function AQ(e,t,r,i,o=!1,s=!0){const l=pc(s?e.getFullStart():e.getStart(i),t.getEnd());return wI(l,"code",Dd(r,i),o)}function wI(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function uit(e,t,r){if(Yie(e.parameters,r)){const i=vs(e,21,r);if(i)return i}return vs(t,19,r)}var Nke,dit=I({"src/services/outliningElementsCollector.ts"(){si(),Nke=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),IQ={};ee(IQ,{collectElements:()=>oit});var pit=I({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){dit()}});function fit(e,t,r,i){const o=q7(Vd(t,r));if(Pke(o)){const s=mit(o,e.getTypeChecker(),t,e,i);if(s)return s}return xQ(f.You_cannot_rename_this_element)}function mit(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(ls(e)){const T=H7(e,t);if(T&&(T.flags&128||T.flags&1048576&&Jn(T.types,A=>!!(A.flags&128))))return c_e(e.text,e.text,"string","",e,r)}else if(RK(e)){const T=fc(e);return c_e(T,T,"label","",e,r)}return}const{declarations:l}=s;if(!l||l.length===0)return;if(l.some(T=>_it(i,T)))return xQ(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Ve(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(ls(e)&&UL(e))return o.allowRenameOfImportPath?git(e,r,s):void 0;const u=hit(r,s,t,o);if(u)return xQ(u);const p=Qv.getSymbolKind(t,s,e),h=Tue(e)||ef(e)&&e.parent.kind===167?Zf(Qf(e)):void 0,m=h||t.symbolToString(s),y=h||t.getFullyQualifiedName(s);return c_e(m,y,p,Qv.getSymbolModifiers(t,s),e,r)}function _it(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Il(r.fileName,".d.ts")}function hit(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&In(t.declarations,u=>tp(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=Cke(e.path);if(s===void 0)return bt(o,l=>vO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const l of o){const u=Cke(l.getSourceFile().path);if(u){const p=Math.min(s.length,u.length);for(let h=0;h<=p;h++)if(Uu(s[h],u[h])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function Cke(e){const t=Wc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function git(e,t,r){if(!Xc(e.text))return xQ(f.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&In(r.declarations,$i);if(!i)return;const o=Al(e.text,"/index")||Al(e.text,"/index.js")?void 0:ane(Ad(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,p=vu(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:p}}function c_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:vit(o,s)}}function xQ(e){return{canRename:!1,localizedErrorMessage:Wo(e)}}function vit(e,t){let r=e.getStart(t),i=e.getWidth(t);return ls(e)&&(r+=1,i-=2),vu(r,i)}function Pke(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return G7(e);default:return!1}}var yit=I({"src/services/rename.ts"(){si()}}),xz={};ee(xz,{getRenameInfo:()=>fit,nodeIsEligibleForRename:()=>Pke});var bit=I({"src/services/_namespaces/ts.Rename.ts"(){yit()}});function Eit(e,t,r,i,o){const s=e.getTypeChecker(),l=J7(t,r);if(!l)return;const u=!!i&&i.kind==="characterTyped";if(u&&(SI(t,r,l)||qv(t,r)))return;const p=!!i&&i.kind==="invoked",h=Fit(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();const m=Sit(h,s,t,l,u);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,y=>m.kind===0?zke(m.candidates,m.resolvedSignature,h,t,y):Bit(m.symbol,h,t,y)):cd(t)?Ait(h,e,o):void 0}function Sit({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Tit(o,e.node,i))return;const l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{const{called:l}=e;if(s&&!Mke(o,i,Ve(l)?l.parent:l))return;const u=WK(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:Ua(u)};const p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return N.assertNever(e)}}function Tit(e,t,r){if(!S_(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return Or(i,e);case 28:{const o=U7(e);return!!o&&Or(i,o)}case 30:return Mke(e,r,t.expression);default:return!1}}function Ait(e,t,r){if(e.invocation.kind===2)return;const i=Wke(e.invocation),o=Fr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Ht(t.getSourceFiles(),l=>Ht(l.getNamedDeclarations().get(o),u=>{const p=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),h=p&&p.getCallSignatures();if(h&&h.length)return s.runWithCancellationToken(r,m=>zke(h,h[0],e,l,m,!0))}))}function Mke(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=Ic(i,t,o,!0);if(s)return sf(r,s);o=o.parent}return N.fail("Could not find preceding token")}function Iit(e,t,r,i){const o=kke(e,t,r,i);return!o||o.isTypeParameterList||o.invocation.kind!==0?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function Lke(e,t,r,i){const o=xit(e,r,i);if(!o)return;const{list:s,argumentIndex:l}=o,u=kit(i,s);l!==0&&N.assertLessThan(l,u);const p=Oit(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:p}}function xit(e,t,r){if(e.kind===30||e.kind===21)return{list:zit(e.parent,e,t),argumentIndex:0};{const i=U7(e);return i&&{list:i,argumentIndex:Lit(r,i,e)}}}function kke(e,t,r,i){const{parent:o}=e;if(S_(o)){const s=o,l=Lke(e,t,r,i);if(!l)return;const{list:u,argumentIndex:p,argumentCount:h,argumentsSpan:m}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:m,argumentIndex:p,argumentCount:h}}else{if(XA(e)&&QE(o))return oO(e,t,r)?d_e(o,0,r):void 0;if(YA(e)&&o.parent.kind===215){const s=o,l=s.parent;N.assert(s.kind===228);const u=oO(e,t,r)?0:1;return d_e(l,u,r)}else if(gP(o)&&QE(o.parent.parent)){const s=o,l=o.parent.parent;if(FW(e)&&!oO(e,t,r))return;const u=s.parent.templateSpans.indexOf(s),p=wit(u,e,t,r);return d_e(l,p,r)}else if(ld(o)){const s=o.attributes.pos,l=Pa(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:vu(s,l-s),argumentIndex:0,argumentCount:1}}else{const s=FK(e,r);if(s){const{called:l,nTypeArguments:u}=s,p={kind:1,called:l},h=pc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:h,argumentIndex:u,argumentCount:u+1}}return}}}function Rit(e,t,r,i){return Dit(e,t,r,i)||kke(e,t,r,i)}function wke(e){return mr(e.parent)?wke(e.parent):e}function u_e(e){return mr(e.left)?u_e(e.left)+1:2}function Dit(e,t,r,i){const o=Nit(e);if(o===void 0)return;const s=Cit(o,r,t,i);if(s===void 0)return;const{contextualType:l,argumentIndex:u,argumentCount:p,argumentsSpan:h}=s,m=l.getNonNullableType(),y=m.symbol;if(y===void 0)return;const T=el(m.getCallSignatures());return T===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:T,node:e,symbol:Pit(y)},argumentsSpan:h,argumentIndex:u,argumentCount:p}}function Nit(e){switch(e.kind){case 21:case 28:return e;default:return Vn(e.parent,t=>Ao(t)?!0:$a(t)||im(t)||YE(t)?!1:"quit")}}function Cit(e,t,r,i){const{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:const s=Lke(e,r,t,i);if(!s)return;const{argumentIndex:l,argumentCount:u,argumentsSpan:p}=s,h=Hl(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return h&&{contextualType:h,argumentIndex:l,argumentCount:u,argumentsSpan:p};case 226:{const m=wke(o),y=i.getContextualType(m),T=e.kind===21?0:u_e(o)-1,A=u_e(m);return y&&{contextualType:y,argumentIndex:T,argumentCount:A,argumentsSpan:Dd(o)}}default:return}}function Pit(e){return e.name==="__type"&&Ht(e.declarations,t=>{var r;return yh(t)?(r=ri(t.parent,T_))==null?void 0:r.symbol:void 0})||e}function Mit(e,t){const r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){const{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;const s=mi(i,l=>!(l&1));return s<0?o:s}return 0}function Lit(e,t,r){return Oke(e,t,r)}function kit(e,t){return Oke(e,t,void 0)}function Oke(e,t,r){const i=t.getChildren();let o=0,s=!1;for(const l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if($m(l)){o+=Mit(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Xa(i).kind===28?o+1:o}function wit(e,t,r,i){return N.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),sre(t)?oO(t,r,i)?0:e+2:e+1}function d_e(e,t,r){const i=XA(e.template)?1:e.template.templateSpans.length+1;return t!==0&&N.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Wit(e,r),argumentIndex:t,argumentCount:i}}function Oit(e,t){const r=e.getFullStart(),i=Pa(t.text,e.getEnd(),!1);return vu(r,i-r)}function Wit(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===228&&Xa(r.templateSpans).literal.getFullWidth()===0&&(o=Pa(t.text,o,!1)),vu(i,o-i)}function Fit(e,t,r,i,o){for(let s=e;!$i(s)&&(o||!Ko(s));s=s.parent){N.assert(sf(s.parent,s),"Not a subspan",()=>`Child: ${N.formatSyntaxKind(s.kind)}, parent: ${N.formatSyntaxKind(s.parent.kind)}`);const l=Rit(s,t,r,i);if(l)return l}}function zit(e,t,r){const i=e.getChildren(r),o=i.indexOf(t);return N.assert(o>=0&&i.length>o+1),i[o+1]}function Wke(e){return e.kind===0?q4(e.node):e.called}function Fke(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function zke(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,p,h){var m;const y=Fke(s),T=s.kind===2?s.symbol:p.getSymbolAtLocation(Wke(s))||h&&((m=t.declaration)==null?void 0:m.symbol),A=T?sM(p,T,h?u:void 0,void 0):et,R=Wt(e,K=>Vit(K,A,r,p,y,u));l!==0&&N.assertLessThan(l,i);let M=0,C=0;for(let K=0;K<R.length;K++){const Q=R[K];if(e[K]===t&&(M=C,Q.length>1)){let V=0;for(const se of Q){if(se.isVariadic||se.parameters.length>=i){M=C+V;break}V++}}C+=Q.length}N.assert(M!==-1);const O={items:kp(R,tl),applicableSpan:o,selectedItemIndex:M,argumentIndex:l,argumentCount:i},U=O.items[M];if(U.isVariadic){const K=mi(U.parameters,Q=>!!Q.isRest);-1<K&&K<U.parameters.length-1?O.argumentIndex=U.parameters.length:O.argumentIndex=Math.min(O.argumentIndex,U.parameters.length-1)}return O}function Bit(e,{argumentCount:t,argumentsSpan:r,invocation:i,argumentIndex:o},s,l){const u=l.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return u?{items:[Git(e,u,l,Fke(i),s)],applicableSpan:r,selectedItemIndex:0,argumentIndex:o,argumentCount:t}:void 0}function Git(e,t,r,i,o){const s=sM(r,e),l=d1(),u=t.map(y=>Bke(y,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,$u(30)],suffixDisplayParts:[$u(32)],separatorDisplayParts:p_e,parameters:u,documentation:p,tags:h}}function Vit(e,t,r,i,o,s){const l=(r?Uit:Hit)(e,i,o,s);return Wt(l,({isVariadic:u,parameters:p,prefix:h,suffix:m})=>{const y=[...t,...h],T=[...m,...jit(e,o,i)],A=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:y,suffixDisplayParts:T,separatorDisplayParts:p_e,parameters:p,documentation:A,tags:R}})}function jit(e,t,r){return nb(i=>{i.writePunctuation(":"),i.writeSpace(" ");const o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function Uit(e,t,r,i){const o=(e.target||e).typeParameters,s=d1(),l=(o||et).map(p=>Bke(p,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,$O)]:[];return t.getExpandedParameters(e).map(p=>{const h=w.createNodeArray([...u,...Wt(p,y=>t.symbolToParameterDeclaration(y,r,$O))]),m=nb(y=>{s.writeList(2576,h,i,y)});return{isVariadic:!1,parameters:l,prefix:[$u(30)],suffix:[$u(32),...m]}})}function Hit(e,t,r,i){const o=d1(),s=nb(p=>{if(e.typeParameters&&e.typeParameters.length){const h=w.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,$O)));o.writeList(53776,h,i,p)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var h;return!!(p.length&&((h=ri(p[p.length-1],ph))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:u(p),parameters:p.map(h=>qit(h,t,r,i,o)),prefix:[...s,$u(21)],suffix:[$u(22)]}))}function qit(e,t,r,i,o){const s=nb(p=>{const h=t.symbolToParameterDeclaration(e,r,$O);o.writeNode(4,h,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),u=ph(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:u}}function Bke(e,t,r,i,o){const s=nb(l=>{const u=t.typeParameterToDeclaration(e,r,$O);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var $O,p_e,Jit=I({"src/services/signatureHelp.ts"(){si(),$O=70246400,p_e=[$u(28),wl()]}}),QO={};ee(QO,{getArgumentInfoForCompletions:()=>Iit,getSignatureHelpItems:()=>Eit});var Kit=I({"src/services/_namespaces/ts.SignatureHelp.ts"(){Jit()}});function Xit(e,t){var r,i;let o={textSpan:pc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const p=$it(s);if(!p.length)break;for(let h=0;h<p.length;h++){const m=p[h-1],y=p[h],T=p[h+1];if(l0(y,t,!0)>e)break e;const A=oh(Zb(t.text,y.end));if(A&&A.kind===2&&u(A.pos,A.end),Yit(t,e,y)){if(GV(y)&&Bs(s)&&!If(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),Ko(y)||gP(y)||YA(y)||FW(y)||m&&YA(m)||Vc(y)&&Ll(s)||KR(y)&&Vc(s)||Oi(y)&&KR(s)&&p.length===1||o1(y)||E0(y)||jS(y)){s=y;break}if(gP(s)&&T&&m4(T)){const O=y.getFullStart()-2,U=T.getStart()+1;l(O,U)}const R=KR(y)&&Qit(m)&&Zit(T)&&!If(m.getStart(),T.getStart(),t);let M=R?m.getEnd():y.getStart();const C=R?T.getStart():eot(t,y);if(Wp(y)&&((r=y.jsDoc)!=null&&r.length)&&l(Ua(y.jsDoc).getStart(),C),KR(y)){const O=y.getChildren()[0];O&&Wp(O)&&((i=O.jsDoc)!=null&&i.length)&&O.getStart()!==y.pos&&(M=Math.min(M,Ua(O.jsDoc).getStart()))}l(M,C),(Na(y)||IA(y))&&l(M+1,C-1),s=y;break}if(h===p.length-1)break e}}return o;function l(p,h){if(p!==h){const m=pc(p,h);(!o||!TD(m,o.textSpan)&&zne(m,e))&&(o={textSpan:m,...o&&{parent:o}})}}function u(p,h){l(p,h);let m=p;for(;t.text.charCodeAt(m)===47;)m++;l(m,h)}}function Yit(e,t,r){return N.assert(r.pos<=t),t<r.end?!0:r.getEnd()===t?Vd(e,t).pos<r.end:!1}function $it(e){var t;if($i(e))return ZO(e.getChildAt(0).getChildren(),Gke);if(GR(e)){const[r,...i]=e.getChildren(),o=N.checkDefined(i.pop());N.assertEqual(r.kind,19),N.assertEqual(o.kind,20);const s=ZO(i,u=>u===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=ZO(s,({kind:u})=>u===23||u===168||u===24);return[r,e8(RQ(l,({kind:u})=>u===59)),o]}if(gp(e)){const r=ZO(e.getChildren(),l=>l===e.name||Or(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=RQ(o,({kind:l})=>l===59);return i?[i,e8(s)]:s}if(Ao(e)){const r=ZO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=ZO(r,o=>o===r[0]||o===e.questionToken);return RQ(i,({kind:o})=>o===64)}return $a(e)?RQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function ZO(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(e8(i)),i=void 0),r.push(o));return i&&r.push(e8(i)),r}function RQ(e,t,r=!0){if(e.length<2)return e;const i=mi(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],l=Xa(e),u=r&&l.kind===27,p=e.slice(i+1,u?e.length-1:void 0),h=C2([o.length?e8(o):void 0,s,p.length?e8(p):void 0]);return u?h.concat(l):h}function e8(e){return N.assertGreaterThanOrEqual(e.length,1),hh(Th.createSyntaxList(e),e[0].pos,Xa(e).end)}function Qit(e){const t=e&&e.kind;return t===19||t===23||t===21||t===286}function Zit(e){const t=e&&e.kind;return t===20||t===24||t===22||t===287}function eot(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Gke,tot=I({"src/services/smartSelection.ts"(){si(),Gke=Jm(Mc,eu)}}),DQ={};ee(DQ,{getSmartSelectionRange:()=>Xit});var not=I({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){tot()}});function Vke(e,t,r){const i=jke(e,t,r);if(i!=="")return i;const o=RR(t);return o&32?pl(t,231)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function jke(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&Ua(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&yt(r)||kA(r))return"parameter";const o=RR(t);if(o&3)return nX(t)?"parameter":t.valueDeclaration&&iR(t.valueDeclaration)?"const":t.valueDeclaration&&RL(t.valueDeclaration)?"using":t.valueDeclaration&&xL(t.valueDeclaration)?"await using":Xe(t.declarations,O4)?"let":qke(t)?"local var":"var";if(o&16)return qke(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){const s=Xe(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function Uke(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Ne(r)&&b5(t)&&bt(r,s=>!b5(s))?65536:0,o=nM(t,i);if(o)return o.split(",")}return[]}function rot(e,t){if(!t)return"";const r=new Set(Uke(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&Xe(Uke(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?zo(r.values()).join(","):""}function Hke(e,t,r,i,o,s,l,u){var p;const h=[];let m=[],y=[];const T=RR(t);let A=l&1?jke(e,t,o):"",R=!1;const M=o.kind===110&&K4(o)||kA(o);let C,O,U=!1;if(o.kind===110&&!M)return{displayParts:[Ep(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(A!==""||T&32||T&2097152){if(A==="getter"||A==="setter"){const pe=In(t.declarations,Ce=>Ce.name===o);if(pe)switch(pe.kind){case 177:A="getter";break;case 178:A="setter";break;case 172:A="accessor";break;default:N.assertNever(pe)}else A="property"}let X;if(s??(s=M?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){const pe=o.parent.name;(pe===o||pe&&pe.getFullWidth()===0)&&(o=o.parent)}let oe;if(S_(o)?oe=o:(TK(o)||eM(o)||o.parent&&(ld(o.parent)||QE(o.parent))&&ea(t.valueDeclaration))&&(oe=o.parent),oe){X=e.getResolvedSignature(oe);const pe=oe.kind===214||sa(oe)&&oe.expression.kind===108,Ce=pe?s.getConstructSignatures():s.getCallSignatures();if(X&&!Or(Ce,X.target)&&!Or(Ce,X)&&(X=Ce.length?Ce[0]:void 0),X){switch(pe&&T&32?(A="constructor",ne(s.symbol,A)):T&2097152?(A="alias",he(A),h.push(wl()),pe&&(X.flags&4&&(h.push(Ep(128)),h.push(wl())),h.push(Ep(105)),h.push(wl())),G(t)):ne(t,A),A){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push($u(59)),h.push(wl()),!(Wr(s)&16)&&s.symbol&&(qr(h,sM(e,s.symbol,i,void 0,5)),h.push(AD())),pe&&(X.flags&4&&(h.push(Ep(128)),h.push(wl())),h.push(Ep(105)),h.push(wl())),ye(X,Ce,262144);break;default:ye(X,Ce)}R=!0,U=Ce.length>1}}else if(PK(o)&&!(T&98304)||o.kind===137&&o.parent.kind===176){const pe=o.parent;if(t.declarations&&In(t.declarations,de=>de===(o.kind===137?pe.parent:pe))){const de=pe.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(pe)?X=de[0]:X=e.getSignatureFromDeclaration(pe),pe.kind===176?(A="constructor",ne(s.symbol,A)):ne(pe.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,A),X&&ye(X,de),R=!0,U=de.length>1}}}if(T&32&&!R&&!M&&(V(),pl(t,231)?he("local class"):h.push(Ep(86)),h.push(wl()),G(t),Y(t,r)),T&64&&l&2&&(Q(),h.push(Ep(120)),h.push(wl()),G(t),Y(t,r)),T&524288&&l&2&&(Q(),h.push(Ep(156)),h.push(wl()),G(t),Y(t,r),h.push(wl()),h.push(aM(64)),h.push(wl()),qr(h,pO(e,o.parent&&Pg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),T&384&&(Q(),bt(t.declarations,X=>y0(X)&&ME(X))&&(h.push(Ep(87)),h.push(wl())),h.push(Ep(94)),h.push(wl()),G(t)),T&1536&&!M){Q();const X=pl(t,267),oe=X&&X.name&&X.name.kind===80;h.push(Ep(oe?145:144)),h.push(wl()),G(t)}if(T&262144&&l&2)if(Q(),h.push($u(21)),h.push(cf("type parameter")),h.push($u(22)),h.push(wl()),G(t),t.parent)se(),G(t.parent,i),Y(t.parent,i);else{const X=pl(t,168);if(X===void 0)return N.fail();const oe=X.parent;if(oe)if(ea(oe)){se();const pe=e.getSignatureFromDeclaration(oe);oe.kind===180?(h.push(Ep(105)),h.push(wl())):oe.kind!==179&&oe.name&&G(oe.symbol),qr(h,oX(e,pe,r,32))}else xm(oe)&&(se(),h.push(Ep(156)),h.push(wl()),G(oe.symbol),Y(oe.symbol,r))}if(T&8){A="enum member",ne(t,"enum member");const X=(p=t.declarations)==null?void 0:p[0];if((X==null?void 0:X.kind)===306){const oe=e.getConstantValue(X);oe!==void 0&&(h.push(wl()),h.push(aM(64)),h.push(wl()),h.push(rp(Fre(oe),typeof oe=="number"?7:8)))}}if(t.flags&2097152){if(Q(),!R||m.length===0&&y.length===0){const X=e.getAliasedSymbol(t);if(X!==t&&X.declarations&&X.declarations.length>0){const oe=X.declarations[0],pe=Lo(oe);if(pe&&!R){const Ce=M4(oe)&&Qr(oe,128),de=t.name!=="default"&&!Ce,ie=Hke(e,X,Un(oe),oe,pe,s,l,de?t:X);h.push(...ie.displayParts),h.push(AD()),C=ie.documentation,O=ie.tags}else C=X.getContextualDocumentationComment(oe,e),O=X.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:h.push(Ep(95)),h.push(wl()),h.push(Ep(145));break;case 277:h.push(Ep(95)),h.push(wl()),h.push(Ep(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(Ep(95));break;default:h.push(Ep(102))}h.push(wl()),G(t),Xe(t.declarations,X=>{if(X.kind===271){const oe=X;if(c0(oe))h.push(wl()),h.push(aM(64)),h.push(wl()),h.push(Ep(149)),h.push($u(21)),h.push(rp(fc(TC(oe)),8)),h.push($u(22));else{const pe=e.getSymbolAtLocation(oe.moduleReference);pe&&(h.push(wl()),h.push(aM(64)),h.push(wl()),G(pe,i))}return!0}})}if(!R)if(A!==""){if(s){if(M?(Q(),h.push(Ep(110))):ne(t,A),A==="property"||A==="accessor"||A==="getter"||A==="setter"||A==="JSX attribute"||T&3||A==="local var"||A==="index"||A==="using"||A==="await using"||M){if(h.push($u(59)),h.push(wl()),s.symbol&&s.symbol.flags&262144&&A!=="index"){const X=nb(oe=>{const pe=e.typeParameterToDeclaration(s,i,f_e);K().writeNode(4,pe,Un(No(i)),oe)});qr(h,X)}else qr(h,pO(e,s,i));if(ph(t)&&t.links.target&&ph(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const X=t.links.target.links.tupleLabelDeclaration;N.assertNode(X.name,Ve),h.push(wl()),h.push($u(21)),h.push(cf(Sr(X.name))),h.push($u(22))}}else if(T&16||T&8192||T&16384||T&131072||T&98304||A==="method"){const X=s.getNonNullableType().getCallSignatures();X.length&&(ye(X[0],X),U=X.length>1)}}}else A=Vke(e,t,o);if(m.length===0&&!U&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&T&4&&t.parent&&t.declarations&&Xe(t.parent.declarations,X=>X.kind===312))for(const X of t.declarations){if(!X.parent||X.parent.kind!==226)continue;const oe=e.getSymbolAtLocation(X.parent.right);if(oe&&(m=oe.getDocumentationComment(e),y=oe.getJsDocTags(e),m.length>0))break}if(m.length===0&&Ve(o)&&t.valueDeclaration&&$a(t.valueDeclaration)){const X=t.valueDeclaration,oe=X.parent,pe=X.propertyName||X.name;if(Ve(pe)&&im(oe)){const Ce=Qf(pe),de=e.getTypeAtLocation(oe);m=Ht(de.isUnion()?de.types:[de],ie=>{const ve=ie.getProperty(Ce);return ve?ve.getDocumentationComment(e):void 0})||et}}return y.length===0&&!U&&(y=t.getContextualJsDocTags(i,e)),m.length===0&&C&&(m=C),y.length===0&&O&&(y=O),{displayParts:h,documentation:m,symbolKind:A,tags:y.length===0?void 0:y};function K(){return d1()}function Q(){h.length&&h.push(AD()),V()}function V(){u&&(he("alias"),h.push(wl()))}function se(){h.push(wl()),h.push(Ep(103)),h.push(wl())}function G(X,oe){let pe;u&&X===t&&(X=u),A==="index"&&(pe=e.getIndexInfosOfIndexSymbol(X));let Ce=[];X.flags&131072&&pe?(X.parent&&(Ce=sM(e,X.parent)),Ce.push($u(23)),pe.forEach((de,ie)=>{Ce.push(...pO(e,de.keyType)),ie!==pe.length-1&&(Ce.push(wl()),Ce.push($u(52)),Ce.push(wl()))}),Ce.push($u(24))):Ce=sM(e,X,oe||r,void 0,7),qr(h,Ce),t.flags&16777216&&h.push($u(58))}function ne(X,oe){Q(),oe&&(he(oe),X&&!bt(X.declarations,pe=>Gs(pe)||(Os(pe)||Qc(pe))&&!pe.name)&&(h.push(wl()),G(X)))}function he(X){switch(X){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":h.push(rX(X));return;default:h.push($u(21)),h.push(rX(X)),h.push($u(22));return}}function ye(X,oe,pe=0){qr(h,oX(e,X,i,pe|32)),oe.length>1&&(h.push(wl()),h.push($u(21)),h.push(aM(40)),h.push(rp((oe.length-1).toString(),7)),h.push(wl()),h.push(cf(oe.length===2?"overload":"overloads")),h.push($u(22))),m=X.getDocumentationComment(e),y=X.getJsDocTags(),oe.length>1&&m.length===0&&y.length===0&&(m=oe[0].getDocumentationComment(e),y=oe[0].getJsDocTags().filter(Ce=>Ce.name!=="deprecated"))}function Y(X,oe){const pe=nb(Ce=>{const de=e.symbolToTypeParameterDeclarations(X,oe,f_e);K().writeList(53776,de,Un(No(oe)),Ce)});qr(h,pe)}}function iot(e,t,r,i,o,s=ZS(o),l){return Hke(e,t,r,i,o,void 0,s,l)}function qke(e){return e.parent?!1:Xe(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!kE(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var f_e,oot=I({"src/services/symbolDisplay.ts"(){si(),f_e=70246400}}),Qv={};ee(Qv,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>iot,getSymbolKind:()=>Vke,getSymbolModifiers:()=>rot});var aot=I({"src/services/_namespaces/ts.SymbolDisplay.ts"(){oot()}});function Jke(e){const t=e.__pos;return N.assert(typeof t=="number"),t}function m_e(e,t){N.assert(typeof t=="number"),e.__pos=t}function Kke(e){const t=e.__end;return N.assert(typeof t=="number"),t}function __e(e,t){N.assert(typeof t=="number"),e.__end=t}function Xke(e,t){return Pa(e,t,!1,!0)}function sot(e,t){let r=t;for(;r<e.length;){const i=e.charCodeAt(r);if(E_(i)){r++;continue}return i===47}return!1}function t8(e,t,r,i){return{pos:aT(e,t,i),end:GD(e,r,i)}}function aT(e,t,r,i=!1){var o,s;const{leadingTriviaOption:l}=r;if(l===0)return t.getStart(e);if(l===3){const A=t.getStart(e),R=am(A,e);return eO(t,R)?R:A}if(l===2){const A=dj(t,e.text);if(A!=null&&A.length)return am(A[0].pos,e)}const u=t.getFullStart(),p=t.getStart(e);if(u===p)return p;const h=am(u,e);if(am(p,e)===h)return l===1?u:p;if(i){const A=((o=qh(e.text,u))==null?void 0:o[0])||((s=Zb(e.text,u))==null?void 0:s[0]);if(A)return Pa(e.text,A.end,!0,!0)}const y=u>0?1:0;let T=wy(kC(e,h)+y,e);return T=Xke(e.text,T),wy(kC(e,T),e)}function h_e(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=Zb(e.text,i);if(s){const l=kC(e,t.end);for(const u of s){if(u.kind===2||kC(e,u.pos)>l)break;if(kC(e,u.end)>l)return Pa(e.text,u.end,!0,!0)}}}}function GD(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const p=So(Zb(e.text,o),qh(e.text,o)),h=(i=p==null?void 0:p[p.length-1])==null?void 0:i.end;return h||o}const l=h_e(e,t,r);if(l)return l;const u=Pa(e.text,o,!0);return u!==o&&(s===2||Hu(e.text.charCodeAt(u-1)))?u:o}function NQ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function lot(e){return Os(e)||Tc(e)}function cot(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function uot(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const r=e,i=t;return Ve(r.name)&&Ve(i.name)&&r.name.escapedText===i.name.escapedText?w.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return w.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return w.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function g_e(e,t){return Pa(e.text,aT(e,t,{leadingTriviaOption:1}),!1,!0)}function dot(e,t,r,i){const o=g_e(e,i);if(r===void 0||If(GD(e,t,{}),o,e))return o;const s=Ic(i.getStart(e),e);if(NQ(t,s)){const l=Ic(t.getStart(e),e);if(NQ(r,l)){const u=Pa(e.text,s.getEnd(),!0,!0);if(If(l.getStart(e),s.getStart(e),e))return Hu(e.text.charCodeAt(u-1))?u-1:u;if(Hu(e.text.charCodeAt(u)))return u}}return o}function pot(e,t){const r=vs(e,19,t),i=vs(e,20,t);return[r==null?void 0:r.end,i==null?void 0:i.end]}function CQ(e){return La(e)?e.properties:e.members}function v_e(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(Kl(i))}`}return e}function fot(e){return Pa(e,0)===e.length}function PQ(e){const t=xn(e,PQ,Zke,mot,PQ),r=Ys(t)?t:Object.create(t);return hh(r,Jke(e),Kke(e)),r}function mot(e,t,r,i,o){const s=jn(e,t,r,i,o);if(!s)return s;N.assert(e);const l=s===e?w.createNodeArray(s.slice(0)):s;return hh(l,Jke(e),Kke(e)),l}function Yke(e){let t=0;const r=ok(e),i=ie=>{ie&&m_e(ie,t)},o=ie=>{ie&&__e(ie,t)},s=ie=>{ie&&m_e(ie,t)},l=ie=>{ie&&__e(ie,t)},u=ie=>{ie&&m_e(ie,t)},p=ie=>{ie&&__e(ie,t)};function h(ie,ve){if(ve||!fot(ie)){t=r.getTextPos();let Le=0;for(;Cg(ie.charCodeAt(ie.length-Le-1));)Le++;t-=Le}}function m(ie){r.write(ie),h(ie,!1)}function y(ie){r.writeComment(ie)}function T(ie){r.writeKeyword(ie),h(ie,!1)}function A(ie){r.writeOperator(ie),h(ie,!1)}function R(ie){r.writePunctuation(ie),h(ie,!1)}function M(ie){r.writeTrailingSemicolon(ie),h(ie,!1)}function C(ie){r.writeParameter(ie),h(ie,!1)}function O(ie){r.writeProperty(ie),h(ie,!1)}function U(ie){r.writeSpace(ie),h(ie,!1)}function K(ie){r.writeStringLiteral(ie),h(ie,!1)}function Q(ie,ve){r.writeSymbol(ie,ve),h(ie,!1)}function V(ie){r.writeLine(ie)}function se(){r.increaseIndent()}function G(){r.decreaseIndent()}function ne(){return r.getText()}function he(ie){r.rawWrite(ie),h(ie,!1)}function ye(ie){r.writeLiteral(ie),h(ie,!0)}function Y(){return r.getTextPos()}function X(){return r.getLine()}function oe(){return r.getColumn()}function pe(){return r.getIndent()}function Ce(){return r.isAtStartOfLine()}function de(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:p,write:m,writeComment:y,writeKeyword:T,writeOperator:A,writePunctuation:R,writeTrailingSemicolon:M,writeParameter:C,writeProperty:O,writeSpace:U,writeStringLiteral:K,writeSymbol:Q,writeLine:V,increaseIndent:se,decreaseIndent:G,getText:ne,rawWrite:he,writeLiteral:ye,getTextPos:Y,getLine:X,getColumn:oe,getIndent:pe,isAtStartOfLine:Ce,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:de}}function _ot(e){let t;for(const h of e.statements)if(Sm(h))t=h;else break;let r=0;const i=e.text;if(t)return r=t.end,p(),r;const o=r4(i);o!==void 0&&(r=o.length,p());const s=qh(i,r);if(!s)return r;let l,u;for(const h of s){if(h.kind===3){if(C4(i,h.pos)){l={range:h,pinnedOrTripleSlash:!0};continue}}else if(YV(i,h.pos,h.end)){l={range:h,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const m=e.getLineAndCharacterOfPosition(h.pos).line,y=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=y+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const m=e.getLineAndCharacterOfPosition(h.end).line;if(u<m+2)break}l={range:h,pinnedOrTripleSlash:!1}}return l&&(r=l.range.end,p()),r;function p(){if(r<i.length){const h=i.charCodeAt(r);Hu(h)&&(r++,r<i.length&&h===13&&i.charCodeAt(r)===10&&r++)}}}function $ke(e,t){return!qv(e,t)&&!SI(e,t)&&!OK(e,t)&&!iue(e,t)}function hot(e,t){return(gp(e)||qo(e))&&_4(t)&&t.name.kind===167||hL(e)&&hL(t)}function Hg(e,t,r,i={leadingTriviaOption:1}){const o=aT(t,r,i),s=GD(t,r,i);e.deleteRange(t,{pos:o,end:s})}function n8(e,t,r,i){const o=N.checkDefined(kc.SmartIndenter.getContainingList(i,r)),s=tR(o,i);if(N.assert(s!==-1),o.length===1){Hg(e,r,i);return}N.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:g_e(r,i),end:s===o.length-1?GD(r,i,{}):dot(r,i,o[s-1],o[s+1])})}var y_e,b_e,SM,Qke,MQ,Zke,E_e,got=I({"src/services/textChanges.ts"(){si(),y_e=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(y_e||{}),b_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(b_e||{}),SM={leadingTriviaOption:0,trailingTriviaOption:0},Qke=class fbe{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new fbe(Xv(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=fbe.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){N.assertEqual(t.fileName,r.fileName);for(const i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:Q7(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,t8(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(const s of r){const l=aT(t,s,i,o),u=GD(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!h_e(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:Pa(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){const s=aT(t,r,o),l=GD(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){const s=aT(t,r,o),l=i===void 0?t.text.length:aT(t,i,o);this.deleteRange(t,{pos:s,end:l})}replaceRange(t,r,i,o={}){this.changes.push({kind:1,sourceFile:t,range:r,options:o,node:i})}replaceNode(t,r,i,o=SM){this.replaceRange(t,t8(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=SM){this.replaceRange(t,t8(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=SM){this.replaceRangeWithNodes(t,t8(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,t8(t,r,r,SM),i)}replaceNodeRangeWithNodes(t,r,i,o,s=SM){this.replaceRangeWithNodes(t,t8(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=SM){return!!h_e(t,r,i)}nextCommaToken(t,r){const i=m1(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){const o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,Af(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Af(r),i,o)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){const o=_ot(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Hu(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};To(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){const o=t.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,o,r,s)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=$p()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const o=Kc(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,aT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,aT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Ua(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,w.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){const s=wy(r,t),l=Iue(t.text,s),u=$ke(t,l),p=bD(t,u?l:i),h=t.text.slice(s,l),m=`${u?"":this.newLineCharacter}//${o}${this.newLineCharacter}${h}`;this.insertText(t,p.getStart(t),m)}insertJsdocCommentBefore(t,r,i){const o=r.getStart(t);if(r.jsDoc)for(const u of r.jsDoc)this.deleteRange(t,{pos:am(u.getStart(t),t),end:GD(t,u,{})});const s=l5(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){const i=Do(r.jsDoc,s=>Mo(s.comment)?w.createJSDocText(s.comment):s.comment),o=oh(r.jsDoc);return o&&If(o.pos,o.end,t)&&Ne(i)===0?void 0:w.createNodeArray(io(i,w.createJSDocText(`
`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,cot(r),w.createJSDocComment(this.createJSDocText(t,r),w.createNodeArray(i)))}addJSDocTags(t,r,i){const o=kp(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,p)=>{const h=uot(u,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,mn(kp(r.jsDoc,o=>o.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,Af(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(ea(r)){if(o=vs(r,22,t),!o){if(!Gs(r))return!1;o=Ua(r.parameters)}}else o=(r.kind===260?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){const o=vs(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){const o=(vs(r,21,t)||Ua(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Hi(t)||Yc(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Oi(t)?{suffix:", "}:Ao(t)?Ao(r)?{suffix:", "}:{}:Na(t)&&Mc(t.parent)||Bg(t)?{suffix:", "}:tp(t)?{suffix:","+(i?this.newLineCharacter:" ")}:N.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const o=Kc(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){const o=In(r.body.statements,s=>Zc(s)&&yS(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){const o=el(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,w.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const o=aT(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Hu(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){const o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,CQ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(const s of CQ(r)){if(A3(o,s,t))return;const l=s.getStart(t),u=kc.SmartIndenter.findFirstNonWhitespaceColumn(am(l,t),l,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;o=s}return i}computeIndentationForNewMember(t,r){const i=r.getStart(t);return kc.SmartIndenter.findFirstNonWhitespaceColumn(am(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){const s=CQ(r).length===0,l=Am(this.classesWithNodesInsertedAtStart,as(r),{node:r,sourceFile:t}),u=La(r)&&(!Yf(t)||!s),p=La(r)&&Yf(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:u?",":md(r)&&s?";":""}}insertNodeAfterComma(t,r,i){const o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){const o=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){const o=this.insertNodeAfterWorker(t,r,Ua(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return hot(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Af(r.end),w.createToken(27)),GD(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Hi(r)?i.prefix?`
${i.prefix}`:`
`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return N.assert(Hi(t)||_4(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(N.assert(!r.name),r.kind===219){const o=vs(r,39,t),s=vs(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[w.createToken(100),w.createIdentifier(i)],{joiner:" "}),Hg(this,t,o)):(this.insertText(t,Ua(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,w.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[w.createToken(19),w.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[w.createToken(27),w.createToken(20)],{joiner:" "}))}else{const o=vs(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,w.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){const s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!If(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=kc.SmartIndenter.getContainingList(r,t)){if(!o){N.fail("node is not a list element");return}const s=tR(o,r);if(s<0)return;const l=r.getEnd();if(s!==o.length-1){const u=po(t,r.end);if(u&&NQ(r,u)){const p=o[s+1],h=Xke(t.text,p.getFullStart()),m=`${pa(u.kind)}${t.text.substring(u.end,h)}`;this.insertNodesAt(t,h,[i],{suffix:m})}}else{const u=r.getStart(t),p=am(u,t);let h,m=!1;if(o.length===1)h=28;else{const y=Ic(r.pos,t);h=NQ(r,y)?y.kind:28,m=am(o[s-1].getStart(t),t)!==p}if((sot(t.text,r.end)||!If(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,Af(l),w.createToken(h));const y=kc.SmartIndenter.findFirstNonWhitespaceColumn(p,u,t,this.formatContext.options);let T=Pa(t.text,l,!0,!1);for(;T!==l&&Hu(t.text.charCodeAt(T-1));)T--;this.replaceRange(t,Af(T),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Af(l),i,{prefix:`${pa(h)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,gU(r),w.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,o]=pot(t,r);if(i!==void 0&&o!==void 0){const s=CQ(t).length===0,l=If(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Af(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&Qce(o.node,i))||(To(i)?this.deleteRange(r,vU(r,i)):E_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),o=kc.SmartIndenter.getContainingList(r,i);if(r!==Xa(o))return;const s=Yi(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:g_e(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=MQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(MQ.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(u,p,h,m){return eo(JN(u,y=>y.sourceFile.path),y=>{const T=y[0].sourceFile,A=Sv(y,(M,C)=>M.range.pos-C.range.pos||M.range.end-C.range.end);for(let M=0;M<A.length-1;M++)N.assert(A[M].range.end<=A[M+1].range.pos,"Changes overlap",()=>`${JSON.stringify(A[M].range)} and ${JSON.stringify(A[M+1].range)}`);const R=eo(A,M=>{const C=tb(M.range),O=M.kind===1?Un(Pl(M.node))??M.sourceFile:M.kind===2?Un(Pl(M.nodes[0]))??M.sourceFile:M.sourceFile,U=o(M,O,T,p,h,m);if(!(C.length===U.length&&Wue(O.text,U,C.start)))return aO(C,U)});return R.length>0?{fileName:T.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,p,h,m){const y=i(B3(u),p,h,m);return{fileName:u,textChanges:[aO(vu(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(u,p,h,m){const y=Do(p,R=>R.statements.map(M=>M===4?"":l(M,R.oldFile,h).text)).join(h),T=iw("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,u),A=kc.formatDocument(T,m);return v_e(y,A)+h}e.newFileChangesWorker=i;function o(u,p,h,m,y,T){var A;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:R={},range:{pos:M}}=u,C=K=>s(K,p,h,M,R,m,y,T),O=u.kind===2?u.nodes.map(K=>kx(C(K),m)).join(((A=u.options)==null?void 0:A.joiner)||m):C(u.node),U=R.indentation!==void 0||am(M,p)===M?O:O.replace(/^\s+/,"");return(R.prefix||"")+U+(!R.suffix||Al(U,R.suffix)?"":R.suffix)}function s(u,p,h,m,{indentation:y,prefix:T,delta:A},R,M,C){const{node:O,text:U}=l(u,p,R);C&&C(O,U);const K=S5(M,p),Q=y!==void 0?y:kc.SmartIndenter.getIndentation(m,h,K,T===R||am(m,p)===m);A===void 0&&(A=kc.SmartIndenter.shouldIndentChildNode(K,u)&&K.indentSize||0);const V={text:U,getLineAndCharacterOfPosition(G){return ys(this,G)}},se=kc.formatNodeGivenIndentation(O,V,p.languageVariant,Q,A,{...M,options:K});return v_e(U,se)}function l(u,p,h){const m=Yke(h),y=yO(h);return R0({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,u,p,m),{text:m.getText(),node:PQ(u)}}e.getNonformattedText=l})(MQ||(MQ={})),Zke={...UP,factory:Dk(UP.factory.flags|1,UP.factory.baseFactory)},(e=>{function t(s,l,u,p){switch(p.kind){case 169:{const A=p.parent;Gs(A)&&A.parameters.length===1&&!vs(A,21,u)?s.replaceNodeWithText(u,p,"()"):n8(s,l,u,p);break}case 272:case 271:const h=u.imports.length&&p===Ua(u.imports).parent||p===In(u.statements,gS);Hg(s,u,p,{leadingTriviaOption:h?0:Wp(p)?2:3});break;case 208:const m=p.parent;m.kind===207&&p!==Xa(m.elements)?Hg(s,u,p):n8(s,l,u,p);break;case 260:o(s,l,u,p);break;case 168:n8(s,l,u,p);break;case 276:const T=p.parent;T.elements.length===1?i(s,u,T):n8(s,l,u,p);break;case 274:i(s,u,p);break;case 27:Hg(s,u,p,{trailingTriviaOption:0});break;case 100:Hg(s,u,p,{leadingTriviaOption:0});break;case 263:case 262:Hg(s,u,p,{leadingTriviaOption:Wp(p)?2:3});break;default:p.parent?bh(p.parent)&&p.parent.name===p?r(s,u,p.parent):sa(p.parent)&&Or(p.parent.arguments,p)?n8(s,l,u,p):Hg(s,u,p):Hg(s,u,p)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)Hg(s,l,u.parent);else{const p=u.name.getStart(l),h=po(l,u.name.end);if(h&&h.kind===28){const m=Pa(l.text,h.end,!1,!0);s.deleteRange(l,{pos:p,end:m})}else Hg(s,l,u.name)}}function i(s,l,u){if(u.parent.name){const p=N.checkDefined(po(l,u.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:u.end})}else{const p=f0(u,272);Hg(s,l,p)}}function o(s,l,u,p){const{parent:h}=p;if(h.kind===299){s.deleteNodeRange(u,vs(h,21,u),vs(h,22,u));return}if(h.declarations.length!==1){n8(s,l,u,p);return}const m=h.parent;switch(m.kind){case 250:case 249:s.replaceNode(u,p,w.createObjectLiteralExpression());break;case 248:Hg(s,u,h);break;case 243:Hg(s,u,m,{leadingTriviaOption:Wp(m)?2:3});break;default:N.assertNever(m)}}})(E_e||(E_e={}))}}),_r={};ee(_r,{ChangeTracker:()=>Qke,LeadingTriviaOption:()=>y_e,TrailingTriviaOption:()=>b_e,applyChanges:()=>v_e,assignPositionsToNode:()=>PQ,createWriter:()=>Yke,deleteNode:()=>Hg,isThisTypeAnnotatable:()=>lot,isValidLocationToAddComment:()=>$ke});var vot=I({"src/services/_namespaces/ts.textChanges.ts"(){got()}}),S_e,T_e,yot=I({"src/services/formatting/formattingContext.ts"(){si(),S_e=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(S_e||{}),T_e=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=N.checkDefined(e),this.currentTokenParent=N.checkDefined(t),this.nextTokenSpan=N.checkDefined(r),this.nextTokenParent=N.checkDefined(i),this.contextNode=N.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=vs(e,19,this.sourceFile),r=vs(e,20,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function A_e(e,t,r,i,o){const s=t===1?twe:ewe;s.setText(e),s.resetTokenState(r);let l=!0,u,p,h,m,y;const T=o({advance:A,readTokenInfo:V,readEOFTokenRange:G,isOnToken:ne,isOnEOF:he,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:Y,skipToStartOf:X,getTokenFullStart:()=>(y==null?void 0:y.token.pos)??s.getTokenStart(),getStartPos:()=>(y==null?void 0:y.token.pos)??s.getTokenStart()});return y=void 0,s.setText(void 0),T;function A(){y=void 0,s.getTokenFullStart()!==r?l=!!p&&Xa(p).kind===4:s.scan(),u=void 0,p=void 0;let pe=s.getTokenFullStart();for(;pe<i;){const Ce=s.getToken();if(!yR(Ce))break;s.scan();const de={pos:pe,end:s.getTokenFullStart(),kind:Ce};pe=s.getTokenFullStart(),u=Rn(u,de)}h=s.getTokenFullStart()}function R(oe){switch(oe.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}function M(oe){if(oe.parent)switch(oe.parent.kind){case 291:case 286:case 287:case 285:return Bd(oe.kind)||oe.kind===80}return!1}function C(oe){return KA(oe)||sg(oe)&&(y==null?void 0:y.token.kind)===12}function O(oe){return oe.kind===14}function U(oe){return oe.kind===17||oe.kind===18}function K(oe){return oe.parent&&w_(oe.parent)&&oe.parent.initializer===oe}function Q(oe){return oe===44||oe===69}function V(oe){N.assert(ne());const pe=R(oe)?1:O(oe)?2:U(oe)?3:M(oe)?4:C(oe)?5:K(oe)?6:0;if(y&&pe===m)return ye(y,oe);s.getTokenFullStart()!==h&&(N.assert(y!==void 0),s.resetTokenState(h),s.scan());let Ce=se(oe,pe);const de=OQ(s.getTokenFullStart(),s.getTokenEnd(),Ce);for(p&&(p=void 0);s.getTokenFullStart()<i&&(Ce=s.scan(),!!yR(Ce));){const ie=OQ(s.getTokenFullStart(),s.getTokenEnd(),Ce);if(p||(p=[]),p.push(ie),Ce===4){s.scan();break}}return y={leadingTrivia:u,trailingTrivia:p,token:de},ye(y,oe)}function se(oe,pe){const Ce=s.getToken();switch(m=0,pe){case 1:if(Ce===32){m=1;const de=s.reScanGreaterToken();return N.assert(oe.kind===de),de}break;case 2:if(Q(Ce)){m=2;const de=s.reScanSlashToken();return N.assert(oe.kind===de),de}break;case 3:if(Ce===20)return m=3,s.reScanTemplateToken(!1);break;case 4:return m=4,s.scanJsxIdentifier();case 5:return m=5,s.reScanJsxToken(!1);case 6:return m=6,s.reScanJsxAttributeValue();case 0:break;default:N.assertNever(pe)}return Ce}function G(){return N.assert(he()),OQ(s.getTokenFullStart(),s.getTokenEnd(),1)}function ne(){const oe=y?y.token.kind:s.getToken();return oe!==1&&!yR(oe)}function he(){return(y?y.token.kind:s.getToken())===1}function ye(oe,pe){return EA(pe)&&oe.token.kind!==pe.kind&&(oe.token.kind=pe.kind),oe}function Y(oe){s.resetTokenState(oe.end),h=s.getTokenFullStart(),m=void 0,y=void 0,l=!1,u=void 0,p=void 0}function X(oe){s.resetTokenState(oe.pos),h=s.getTokenFullStart(),m=void 0,y=void 0,l=!1,u=void 0,p=void 0}}var ewe,twe,bot=I({"src/services/formatting/formattingScanner.ts"(){si(),o8(),ewe=Nv(99,!1,0),twe=Nv(99,!1,1)}}),Rz,I_e,x_e,Eot=I({"src/services/formatting/rule.ts"(){si(),Rz=et,I_e=(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))(I_e||{}),x_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(x_e||{})}});function nwe(){const e=[];for(let se=0;se<=165;se++)se!==1&&e.push(se);function t(...se){return{tokens:e.filter(G=>!se.some(ne=>ne===G)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=TM([...e,3]),o=TM([...e,1]),s=iwe(83,165),l=iwe(30,79),u=[103,104,165,130,142,152],p=[46,47,55,54],h=[9,10,80,21,23,19,110,105],m=[80,21,110,105],y=[80,22,24,105],T=[80,21,110,105],A=[80,22,24,105],R=[2,3],M=[80,...A5],C=i,O=TM([80,32,3,86,95,102]),U=TM([22,3,92,113,98,93,85]),K=[Xr("IgnoreBeforeComment",r,R,Rz,1),Xr("IgnoreAfterLineComment",2,r,Rz,1),Xr("NotSpaceBeforeColon",r,59,[Ji,Dz,swe],16),Xr("SpaceAfterColon",59,r,[Ji,Dz,Fot],4),Xr("NoSpaceBeforeQuestionMark",r,58,[Ji,Dz,swe],16),Xr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Ji,Iot],4),Xr("NoSpaceAfterQuestionMark",58,r,[Ji,Aot],16),Xr("NoSpaceBeforeDot",r,[25,29],[Ji,$ot],16),Xr("NoSpaceAfterDot",[25,29],r,[Ji],16),Xr("NoSpaceBetweenImportParenInImportType",102,21,[Ji,Oot],16),Xr("NoSpaceAfterUnaryPrefixOperator",p,h,[Ji,Dz],16),Xr("NoSpaceAfterUnaryPreincrementOperator",46,m,[Ji],16),Xr("NoSpaceAfterUnaryPredecrementOperator",47,T,[Ji],16),Xr("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Ji,Twe],16),Xr("NoSpaceBeforeUnaryPostdecrementOperator",A,47,[Ji,Twe],16),Xr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ji,ib],4),Xr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ji,ib],4),Xr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ji,ib],4),Xr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ji,ib],4),Xr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ji,ib],4),Xr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ji,ib],4),Xr("NoSpaceAfterCloseBrace",20,[28,27],[Ji],16),Xr("NewLineBeforeCloseBraceInBlockContext",i,20,[cwe],8),Xr("SpaceAfterCloseBrace",20,t(22),[Ji,Dot],4),Xr("SpaceBetweenCloseBraceAndElse",20,93,[Ji],4),Xr("SpaceBetweenCloseBraceAndWhile",20,117,[Ji],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,_we],16),Xr("SpaceAfterConditionalClosingParen",22,23,[Nz],4),Xr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[pwe],16),Xr("SpaceAfterStarInGeneratorDeclaration",42,80,[pwe],4),Xr("SpaceAfterFunctionInFuncDecl",100,r,[sT],4),Xr("NewLineAfterOpenBraceInBlockContext",19,r,[cwe],8),Xr("SpaceAfterGetSetInMember",[139,153],80,[sT],4),Xr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ji,Swe],16),Xr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Ji,Swe],4),Xr("NoSpaceBetweenReturnAndSemicolon",107,27,[Ji],16),Xr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Ji],4),Xr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Ji,Got],4),Xr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Ji,Pot,Mot],16),Xr("SpaceBeforeBinaryKeywordOperator",r,u,[Ji,ib],4),Xr("SpaceAfterBinaryKeywordOperator",u,r,[Ji,ib],4),Xr("SpaceAfterVoidOperator",116,r,[Ji,qot],4),Xr("SpaceBetweenAsyncAndOpenParen",134,21,[wot,Ji],4),Xr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ji],4),Xr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ji],16),Xr("SpaceBeforeJsxAttribute",r,80,[Wot,Ji],4),Xr("SpaceBeforeSlashInJsxOpeningElement",r,44,[ywe,Ji],4),Xr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[ywe,Ji],16),Xr("NoSpaceBeforeEqualInJsxAttribute",r,64,[gwe,Ji],16),Xr("NoSpaceAfterEqualInJsxAttribute",64,r,[gwe,Ji],16),Xr("NoSpaceBeforeJsxNamespaceColon",80,59,[vwe],16),Xr("NoSpaceAfterJsxNamespaceColon",59,80,[vwe],16),Xr("NoSpaceAfterModuleImport",[144,149],21,[Ji],16),Xr("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[Ji],4),Xr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Ji],4),Xr("SpaceAfterModuleName",11,19,[Vot],4),Xr("SpaceBeforeArrow",r,39,[Ji],4),Xr("SpaceAfterArrow",39,r,[Ji],4),Xr("NoSpaceAfterEllipsis",26,80,[Ji],16),Xr("NoSpaceAfterOptionalParameters",58,[22,28],[Ji,Dz],16),Xr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Ji,jot],16),Xr("NoSpaceBeforeOpenAngularBracket",M,30,[Ji,Cz],16),Xr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Ji,Cz],16),Xr("NoSpaceAfterOpenAngularBracket",30,r,[Ji,Cz],16),Xr("NoSpaceBeforeCloseAngularBracket",r,32,[Ji,Cz],16),Xr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Ji,Cz,Rot,Hot],16),Xr("SpaceBeforeAt",[22,80],60,[Ji],4),Xr("NoSpaceAfterAt",60,r,[Ji],16),Xr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Bot],4),Xr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Ji,Jot],16),Xr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ji,Uot],16),Xr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ji],4)],Q=[Xr("SpaceAfterConstructor",137,21,[uf("insertSpaceAfterConstructor"),Ji],4),Xr("NoSpaceAfterConstructor",137,21,[z_("insertSpaceAfterConstructor"),Ji],16),Xr("SpaceAfterComma",28,r,[uf("insertSpaceAfterCommaDelimiter"),Ji,L_e,Lot,kot],4),Xr("NoSpaceAfterComma",28,r,[z_("insertSpaceAfterCommaDelimiter"),Ji,L_e],16),Xr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[uf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),sT],4),Xr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[z_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),sT],16),Xr("SpaceAfterKeywordInControl",s,21,[uf("insertSpaceAfterKeywordsInControlFlowStatements"),Nz],4),Xr("NoSpaceAfterKeywordInControl",s,21,[z_("insertSpaceAfterKeywordsInControlFlowStatements"),Nz],16),Xr("SpaceAfterOpenParen",21,r,[uf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),Xr("SpaceBeforeCloseParen",r,22,[uf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),Xr("SpaceBetweenOpenParens",21,21,[uf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),Xr("NoSpaceBetweenParens",21,22,[Ji],16),Xr("NoSpaceAfterOpenParen",21,r,[z_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],16),Xr("NoSpaceBeforeCloseParen",r,22,[z_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],16),Xr("SpaceAfterOpenBracket",23,r,[uf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],4),Xr("SpaceBeforeCloseBracket",r,24,[uf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],4),Xr("NoSpaceBetweenBrackets",23,24,[Ji],16),Xr("NoSpaceAfterOpenBracket",23,r,[z_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),Xr("NoSpaceBeforeCloseBracket",r,24,[z_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),Xr("SpaceAfterOpenBrace",19,r,[awe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),lwe],4),Xr("SpaceBeforeCloseBrace",r,20,[awe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),lwe],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,_we],16),Xr("NoSpaceAfterOpenBrace",19,r,[R_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),Xr("NoSpaceBeforeCloseBrace",r,20,[R_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),Xr("SpaceBetweenEmptyBraceBrackets",19,20,[uf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[R_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ji],16),Xr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[uf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),hwe],4,1),Xr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[uf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],4),Xr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[z_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),hwe],16,1),Xr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[z_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],16),Xr("SpaceAfterOpenBraceInJsxExpression",19,r,[uf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,kQ],4),Xr("SpaceBeforeCloseBraceInJsxExpression",r,20,[uf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,kQ],4),Xr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[z_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,kQ],16),Xr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[z_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,kQ],16),Xr("SpaceAfterSemicolonInFor",27,r,[uf("insertSpaceAfterSemicolonInForStatements"),Ji,N_e],4),Xr("NoSpaceAfterSemicolonInFor",27,r,[z_("insertSpaceAfterSemicolonInForStatements"),Ji,N_e],16),Xr("SpaceBeforeBinaryOperator",r,l,[uf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],4),Xr("SpaceAfterBinaryOperator",l,r,[uf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],4),Xr("NoSpaceBeforeBinaryOperator",r,l,[z_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],16),Xr("NoSpaceAfterBinaryOperator",l,r,[z_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],16),Xr("SpaceBeforeOpenParenInFuncDecl",r,21,[uf("insertSpaceBeforeFunctionParenthesis"),Ji,sT],4),Xr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[z_("insertSpaceBeforeFunctionParenthesis"),Ji,sT],16),Xr("NewLineBeforeOpenBraceInControl",U,19,[uf("placeOpenBraceOnNewLineForControlBlocks"),Nz,M_e],8,1),Xr("NewLineBeforeOpenBraceInFunction",C,19,[uf("placeOpenBraceOnNewLineForFunctions"),sT,M_e],8,1),Xr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[uf("placeOpenBraceOnNewLineForFunctions"),fwe,M_e],8,1),Xr("SpaceAfterTypeAssertion",32,r,[uf("insertSpaceAfterTypeAssertion"),Ji,w_e],4),Xr("NoSpaceAfterTypeAssertion",32,r,[z_("insertSpaceAfterTypeAssertion"),Ji,w_e],16),Xr("SpaceBeforeTypeAnnotation",r,[58,59],[uf("insertSpaceBeforeTypeAnnotation"),Ji,C_e],4),Xr("NoSpaceBeforeTypeAnnotation",r,[58,59],[z_("insertSpaceBeforeTypeAnnotation"),Ji,C_e],16),Xr("NoOptionalSemicolon",27,o,[owe("semicolons","remove"),Xot],32),Xr("OptionalSemicolon",r,o,[owe("semicolons","insert"),Yot],64)],V=[Xr("NoSpaceBeforeSemicolon",r,27,[Ji],16),Xr("SpaceBeforeOpenBraceInControl",U,19,[D_e("placeOpenBraceOnNewLineForControlBlocks"),Nz,k_e,P_e],4,1),Xr("SpaceBeforeOpenBraceInFunction",C,19,[D_e("placeOpenBraceOnNewLineForFunctions"),sT,LQ,k_e,P_e],4,1),Xr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[D_e("placeOpenBraceOnNewLineForFunctions"),fwe,k_e,P_e],4,1),Xr("NoSpaceBeforeComma",r,28,[Ji],16),Xr("NoSpaceBeforeOpenBracket",t(134,84),23,[Ji],16),Xr("NoSpaceAfterCloseBracket",24,r,[Ji,zot],16),Xr("SpaceAfterSemicolon",27,r,[Ji],4),Xr("SpaceBetweenForAndAwaitKeyword",99,135,[Ji],4),Xr("SpaceBetweenStatements",[22,92,93,84],r,[Ji,L_e,Sot],4),Xr("SpaceAfterTryCatchFinally",[113,85,98],19,[Ji],4)];return[...K,...Q,...V]}function Xr(e,t,r,i,o,s=0){return{leftTokenRange:rwe(t),rightTokenRange:rwe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function TM(e){return{tokens:e,isSpecific:!0}}function rwe(e){return typeof e=="number"?TM([e]):To(e)?TM(e):e}function iwe(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)Or(r,o)||i.push(o);return TM(i)}function owe(e,t){return r=>r.options&&r.options[e]===t}function uf(e){return t=>t.options&&Is(t.options,e)&&!!t.options[e]}function R_e(e){return t=>t.options&&Is(t.options,e)&&!t.options[e]}function z_(e){return t=>!t.options||!Is(t.options,e)||!t.options[e]}function D_e(e){return t=>!t.options||!Is(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function awe(e){return t=>!t.options||!Is(t.options,e)||!!t.options[e]}function N_e(e){return e.contextNode.kind===248}function Sot(e){return!N_e(e)}function ib(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function Dz(e){return!ib(e)}function swe(e){return!C_e(e)}function C_e(e){const t=e.contextNode.kind;return t===172||t===171||t===169||t===260||TA(t)}function Tot(e){return qo(e.contextNode)&&e.contextNode.questionToken}function Aot(e){return!Tot(e)}function Iot(e){return e.contextNode.kind===227||e.contextNode.kind===194}function P_e(e){return e.TokensAreOnSameLine()||LQ(e)}function lwe(e){return e.contextNode.kind===206||e.contextNode.kind===200||xot(e)}function M_e(e){return LQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function cwe(e){return uwe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function xot(e){return uwe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function uwe(e){return dwe(e.contextNode)}function LQ(e){return dwe(e.nextTokenParent)}function dwe(e){if(mwe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function sT(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function Rot(e){return!sT(e)}function pwe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function fwe(e){return mwe(e.contextNode)}function mwe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Dot(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function Nz(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function _we(e){return e.contextNode.kind===210}function Not(e){return e.contextNode.kind===213}function Cot(e){return e.contextNode.kind===214}function Pot(e){return Not(e)||Cot(e)}function Mot(e){return e.currentTokenSpan.kind!==28}function Lot(e){return e.nextTokenSpan.kind!==24}function kot(e){return e.nextTokenSpan.kind!==22}function wot(e){return e.contextNode.kind===219}function Oot(e){return e.contextNode.kind===205}function Ji(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function hwe(e){return e.contextNode.kind!==12}function L_e(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function kQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function Wot(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function gwe(e){return e.contextNode.kind===291}function Fot(e){return e.nextTokenParent.kind!==295}function vwe(e){return e.nextTokenParent.kind===295}function ywe(e){return e.contextNode.kind===285}function zot(e){return!sT(e)&&!LQ(e)}function Bot(e){return e.TokensAreOnSameLine()&&Tf(e.contextNode)&&bwe(e.currentTokenParent)&&!bwe(e.nextTokenParent)}function bwe(e){for(;e&&yt(e);)e=e.parent;return e&&e.kind===170}function Got(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function k_e(e){return e.formattingRequestKind!==2}function Vot(e){return e.contextNode.kind===267}function jot(e){return e.contextNode.kind===187}function Uot(e){return e.contextNode.kind===180}function Ewe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function Cz(e){return Ewe(e.currentTokenSpan,e.currentTokenParent)||Ewe(e.nextTokenSpan,e.nextTokenParent)}function w_e(e){return e.contextNode.kind===216}function Hot(e){return!w_e(e)}function qot(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function Swe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function Jot(e){return e.contextNode.kind===235}function Twe(e){return!Kot(e)}function Kot(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function Xot(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(yR(t)){const s=e.nextTokenParent===e.currentTokenParent?m1(e.currentTokenParent,Vn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!gp(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:qo(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function Yot(e){return f5(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function $ot(e){return!Fr(e.contextNode)||!hp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var Qot=I({"src/services/formatting/rules.ts"(){si(),o8()}});function Zot(e,t){return{options:e,getRules:eat(),host:t}}function eat(){return O_e===void 0&&(O_e=nat(nwe())),O_e}function tat(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function nat(e){const t=rat(e);return r=>{const i=t[Awe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const l of i){const u=~tat(s);l.action&u&&Jn(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function rat(e){const t=new Array(wQ*wQ),r=new Array(t.length);for(const i of e){const o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const s of i.leftTokenRange.tokens)for(const l of i.rightTokenRange.tokens){const u=Awe(s,l);let p=t[u];p===void 0&&(p=t[u]=[]),iat(p,i.rule,o,r,u)}}return t}function Awe(e,t){return N.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*wQ+t}function iat(e,t,r,i,o){const s=t.action&3?r?0:AM.StopRulesAny:t.context!==Rz?r?AM.ContextRulesSpecific:AM.ContextRulesAny:r?AM.NoContextRulesSpecific:AM.NoContextRulesAny,l=i[o]||0;e.splice(oat(l,s),0,t),i[o]=aat(l,s)}function oat(e,t){let r=0;for(let i=0;i<=t;i+=VD)r+=e&Pz,e>>=VD;return r}function aat(e,t){const r=(e>>t&Pz)+1;return N.assert((r&Pz)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Pz<<t)|r<<t}var O_e,VD,Pz,wQ,AM,sat=I({"src/services/formatting/rulesMap.ts"(){si(),o8(),VD=5,Pz=31,wQ=166,AM=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=VD*1]="StopRulesAny",e[e.ContextRulesSpecific=VD*2]="ContextRulesSpecific",e[e.ContextRulesAny=VD*3]="ContextRulesAny",e[e.NoContextRulesSpecific=VD*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=VD*5]="NoContextRulesAny",e))(AM||{})}});function OQ(e,t,r){const i={pos:e,end:t,kind:r};return N.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>N.formatSyntaxKind(r)}),i}function lat(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=EL(i,t);for(;E_(t.text.charCodeAt(o));)o--;Hu(t.text.charCodeAt(o))&&o--;const s={pos:wy(i-1,t),end:o+1};return Mz(s,t,r,2)}function cat(e,t,r){const i=W_e(e,27,t);return Iwe(F_e(i),t,r,3)}function uat(e,t,r){const i=W_e(e,19,t);if(!i)return[];const o=i.parent,s=F_e(o),l={pos:am(s.getStart(t),t),end:e};return Mz(l,t,r,4)}function dat(e,t,r){const i=W_e(e,20,t);return Iwe(F_e(i),t,r,5)}function pat(e,t){const r={pos:0,end:e.text.length};return Mz(r,e,t,0)}function fat(e,t,r,i){const o={pos:am(e,r),end:t};return Mz(o,r,i,1)}function W_e(e,t,r){const i=Ic(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function F_e(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!mat(t.parent,t);)t=t.parent;return t}function mat(e,t){switch(e.kind){case 263:case 264:return sf(e.members,t);case 267:const r=e.body;return!!r&&r.kind===268&&sf(r.statements,t);case 312:case 241:case 268:return sf(e.statements,t);case 299:return sf(e.block.statements,t)}return!1}function _at(e,t){return r(t);function r(i){const o=Uo(i,s=>MK(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function hat(e,t){if(!e.length)return o;const r=e.filter(s=>tM(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;const l=r[i];if(s.end<=l.start)return!1;if(j7(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function gat(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const o=Ic(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function vat(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(B_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function yat(e,t,r,i,o,s){const l={pos:e.pos,end:e.end};return A_e(t.text,r,l.pos,l.end,u=>xwe(l,e,i,o,u,s,1,p=>!1,t))}function Iwe(e,t,r,i){if(!e)return[];const o={pos:am(e.getStart(t),t),end:e.end};return Mz(o,t,r,i)}function Mz(e,t,r,i){const o=_at(e,t);return A_e(t.text,t.languageVariant,gat(o,e,t),e.end,s=>xwe(e,o,B_.getIndentationForNode(o,e,t,r.options),vat(o,r.options,t),s,r,i,hat(t.parseDiagnostics,e),t))}function xwe(e,t,r,i,o,{options:s,getRules:l,host:u},p,h,m){var y;const T=new T_e(m,p,s);let A,R,M,C,O,U=-1;const K=[];if(o.advance(),o.isOnToken()){const Se=m.getLineAndCharacterOfPosition(t.getStart(m)).line;let je=Se;Tf(t)&&(je=m.getLineAndCharacterOfPosition($V(t,m)).line),he(t,t,Se,je,r,i)}const Q=o.getCurrentLeadingTrivia();if(Q){const Se=B_.nodeWillIndentChild(s,t,void 0,m,!1)?r+s.indentSize:r;ye(Q,Se,!0,je=>{X(je,m.getLineAndCharacterOfPosition(je.pos),t,t,void 0),pe(je.pos,Se,!1)}),s.trimTrailingWhitespace!==!1&&Ue(Q)}if(R&&o.getTokenFullStart()>=e.end){const Se=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(Se&&Se.pos===A){const je=((y=Ic(Se.end,m,t))==null?void 0:y.parent)||M;oe(Se,m.getLineAndCharacterOfPosition(Se.pos).line,je,R,C,M,je,void 0)}}return K;function V(Se,je,ot,Bt,vt){if(tM(Bt,Se,je)||nO(Bt,Se,je)){if(vt!==-1)return vt}else{const $e=m.getLineAndCharacterOfPosition(Se).line,It=am(Se,m),tn=B_.findFirstNonWhitespaceColumn(It,Se,m,s);if($e!==ot||Se===tn){const rn=B_.getBaseIndentation(s);return rn>tn?rn:tn}}return-1}function se(Se,je,ot,Bt,vt,$e){const It=B_.shouldIndentChildNode(s,Se)?s.indentSize:0;return $e===je?{indentation:je===O?U:vt.getIndentation(),delta:Math.min(s.indentSize,vt.getDelta(Se)+It)}:ot===-1?Se.kind===21&&je===O?{indentation:U,delta:vt.getDelta(Se)}:B_.childStartsOnTheSameLineWithElseInIfStatement(Bt,Se,je,m)||B_.childIsUnindentedBranchOfConditionalExpression(Bt,Se,je,m)||B_.argumentStartsOnSameLineAsPreviousArgument(Bt,Se,je,m)?{indentation:vt.getIndentation(),delta:It}:{indentation:vt.getIndentation()+vt.getDelta(Se),delta:It}:{indentation:ot,delta:It}}function G(Se){if(Rm(Se)){const je=In(Se.modifiers,Aa,mi(Se.modifiers,Eu));if(je)return je.kind}switch(Se.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(Se.asteriskToken)return 42;case 172:case 169:const je=Lo(Se);if(je)return je.kind}}function ne(Se,je,ot,Bt){return{getIndentationForComment:(It,tn,rn)=>{switch(It){case 20:case 24:case 22:return ot+$e(rn)}return tn!==-1?tn:ot},getIndentationForToken:(It,tn,rn,Mn)=>!Mn&&vt(It,tn,rn)?ot+$e(rn):ot,getIndentation:()=>ot,getDelta:$e,recomputeIndentation:(It,tn)=>{B_.shouldIndentChildNode(s,tn,Se,m)&&(ot+=It?s.indentSize:-s.indentSize,Bt=B_.shouldIndentChildNode(s,Se)?s.indentSize:0)}};function vt(It,tn,rn){switch(tn){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(rn.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(rn.kind!==200)return!1;break}return je!==It&&!(Tf(Se)&&tn===G(Se))}function $e(It){return B_.nodeWillIndentChild(s,Se,It,m,!0)?Bt:0}}function he(Se,je,ot,Bt,vt,$e){if(!tM(e,Se.getStart(m),Se.getEnd()))return;const It=ne(Se,ot,vt,$e);let tn=je;for(Uo(Se,gn=>{rn(gn,-1,Se,It,ot,Bt,!1)},gn=>{Mn(gn,Se,ot,It)});o.isOnToken()&&o.getTokenFullStart()<e.end;){const gn=o.readTokenInfo(Se);if(gn.token.end>Math.min(Se.end,e.end))break;$n(gn,Se,It,Se)}function rn(gn,Qt,Yt,vi,so,Wi,Co,Ln){if(N.assert(!Ys(gn)),Fl(gn)||wre(Yt,gn))return Qt;const Ci=gn.getStart(m),Ar=m.getLineAndCharacterOfPosition(Ci).line;let sn=Ar;Tf(gn)&&(sn=m.getLineAndCharacterOfPosition($V(gn,m)).line);let tt=-1;if(Co&&sf(e,Yt)&&(tt=V(Ci,gn.end,so,e,Qt),tt!==-1&&(Qt=tt)),!tM(e,gn.pos,gn.end))return gn.end<e.pos&&o.skipToEndOf(gn),Qt;if(gn.getFullWidth()===0)return Qt;for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const ci=o.readTokenInfo(Se);if(ci.token.end>e.end)return Qt;if(ci.token.end>Ci){ci.token.pos>Ci&&o.skipToStartOf(gn);break}$n(ci,Se,vi,Se)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Qt;if(EA(gn)){const ci=o.readTokenInfo(gn);if(gn.kind!==12)return N.assert(ci.token.end===gn.end,"Token end is child end"),$n(ci,Se,vi,gn),Qt}const zt=gn.kind===170?Ar:Wi,Dn=se(gn,Ar,tt,Se,vi,zt);return he(gn,tn,Ar,sn,Dn.indentation,Dn.delta),tn=Se,Ln&&Yt.kind===209&&Qt===-1&&(Qt=Dn.indentation),Qt}function Mn(gn,Qt,Yt,vi){N.assert(RE(gn)),N.assert(!Ys(gn));const so=bat(Qt,gn);let Wi=vi,Co=Yt;if(!tM(e,gn.pos,gn.end)){gn.end<e.pos&&o.skipToEndOf(gn);return}if(so!==0)for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const Ar=o.readTokenInfo(Qt);if(Ar.token.end>gn.pos)break;if(Ar.token.kind===so){Co=m.getLineAndCharacterOfPosition(Ar.token.pos).line,$n(Ar,Qt,vi,Qt);let sn;if(U!==-1)sn=U;else{const tt=am(Ar.token.pos,m);sn=B_.findFirstNonWhitespaceColumn(tt,Ar.token.pos,m,s)}Wi=ne(Qt,Yt,sn,s.indentSize)}else $n(Ar,Qt,vi,Qt)}let Ln=-1;for(let Ar=0;Ar<gn.length;Ar++){const sn=gn[Ar];Ln=rn(sn,Ln,Se,Wi,Co,Co,!0,Ar===0)}const Ci=Eat(so);if(Ci!==0&&o.isOnToken()&&o.getTokenFullStart()<e.end){let Ar=o.readTokenInfo(Qt);Ar.token.kind===28&&($n(Ar,Qt,Wi,Qt),Ar=o.isOnToken()?o.readTokenInfo(Qt):void 0),Ar&&Ar.token.kind===Ci&&sf(Qt,Ar.token)&&$n(Ar,Qt,Wi,Qt,!0)}}function $n(gn,Qt,Yt,vi,so){N.assert(sf(Qt,gn.token));const Wi=o.lastTrailingTriviaWasNewLine();let Co=!1;gn.leadingTrivia&&Y(gn.leadingTrivia,Qt,tn,Yt);let Ln=0;const Ci=sf(e,gn.token),Ar=m.getLineAndCharacterOfPosition(gn.token.pos);if(Ci){const sn=h(gn.token),tt=R;if(Ln=X(gn.token,Ar,Qt,tn,Yt),!sn)if(Ln===0){const zt=tt&&m.getLineAndCharacterOfPosition(tt.end).line;Co=Wi&&Ar.line!==zt}else Co=Ln===1}if(gn.trailingTrivia&&(A=Xa(gn.trailingTrivia).end,Y(gn.trailingTrivia,Qt,tn,Yt)),Co){const sn=Ci&&!h(gn.token)?Yt.getIndentationForToken(Ar.line,gn.token.kind,vi,!!so):-1;let tt=!0;if(gn.leadingTrivia){const zt=Yt.getIndentationForComment(gn.token.kind,sn,vi);tt=ye(gn.leadingTrivia,zt,tt,Dn=>pe(Dn.pos,zt,!1))}sn!==-1&&tt&&(pe(gn.token.pos,sn,Ln===1),O=Ar.line,U=sn)}o.advance(),tn=Qt}}function ye(Se,je,ot,Bt){for(const vt of Se){const $e=sf(e,vt);switch(vt.kind){case 3:$e&&ie(vt,je,!ot),ot=!1;break;case 2:ot&&$e&&Bt(vt),ot=!1;break;case 4:ot=!0;break}}return ot}function Y(Se,je,ot,Bt){for(const vt of Se)if($7(vt.kind)&&sf(e,vt)){const $e=m.getLineAndCharacterOfPosition(vt.pos);X(vt,$e,je,ot,Bt)}}function X(Se,je,ot,Bt,vt){const $e=h(Se);let It=0;if(!$e)if(R)It=oe(Se,je.line,ot,R,C,M,Bt,vt);else{const tn=m.getLineAndCharacterOfPosition(e.pos);ve(tn.line,je.line)}return R=Se,A=Se.end,M=ot,C=je.line,It}function oe(Se,je,ot,Bt,vt,$e,It,tn){T.updateContext(Bt,$e,Se,ot,It);const rn=l(T);let Mn=T.options.trimTrailingWhitespace!==!1,$n=0;return rn?$t(rn,gn=>{if($n=At(gn,Bt,vt,Se,je),tn)switch($n){case 2:ot.getStart(m)===Se.pos&&tn.recomputeIndentation(!1,It);break;case 1:ot.getStart(m)===Se.pos&&tn.recomputeIndentation(!0,It);break;default:N.assert($n===0)}Mn=Mn&&!(gn.action&16)&&gn.flags!==1}):Mn=Mn&&Se.kind!==1,je!==vt&&Mn&&ve(vt,je,Bt),$n}function pe(Se,je,ot){const Bt=z_e(je,s);if(ot)Me(Se,0,Bt);else{const vt=m.getLineAndCharacterOfPosition(Se),$e=wy(vt.line,m);(je!==Ce($e,vt.character)||de(Bt,$e))&&Me($e,vt.character,Bt)}}function Ce(Se,je){let ot=0;for(let Bt=0;Bt<je;Bt++)m.text.charCodeAt(Se+Bt)===9?ot+=s.tabSize-ot%s.tabSize:ot++;return ot}function de(Se,je){return Se!==m.text.substr(je,Se.length)}function ie(Se,je,ot,Bt=!0){let vt=m.getLineAndCharacterOfPosition(Se.pos).line;const $e=m.getLineAndCharacterOfPosition(Se.end).line;if(vt===$e){ot||pe(Se.pos,je,!1);return}const It=[];let tn=Se.pos;for(let Qt=vt;Qt<$e;Qt++){const Yt=EL(Qt,m);It.push({pos:tn,end:Yt}),tn=wy(Qt+1,m)}if(Bt&&It.push({pos:tn,end:Se.end}),It.length===0)return;const rn=wy(vt,m),Mn=B_.findFirstNonWhitespaceCharacterAndColumn(rn,It[0].pos,m,s);let $n=0;ot&&($n=1,vt++);const gn=je-Mn.column;for(let Qt=$n;Qt<It.length;Qt++,vt++){const Yt=wy(vt,m),vi=Qt===0?Mn:B_.findFirstNonWhitespaceCharacterAndColumn(It[Qt].pos,It[Qt].end,m,s),so=vi.column+gn;if(so>0){const Wi=z_e(so,s);Me(Yt,vi.character,Wi)}else De(Yt,vi.character)}}function ve(Se,je,ot){for(let Bt=Se;Bt<je;Bt++){const vt=wy(Bt,m),$e=EL(Bt,m);if(ot&&($7(ot.kind)||zK(ot.kind))&&ot.pos<=$e&&ot.end>$e)continue;const It=Le(vt,$e);It!==-1&&(N.assert(It===vt||!E_(m.text.charCodeAt(It-1))),De(It,$e+1-It))}}function Le(Se,je){let ot=je;for(;ot>=Se&&E_(m.text.charCodeAt(ot));)ot--;return ot!==je?ot+1:-1}function Ue(Se){let je=R?R.end:e.pos;for(const ot of Se)$7(ot.kind)&&(je<ot.pos&&Ee(je,ot.pos-1,R),je=ot.end+1);je<e.end&&Ee(je,e.end,R)}function Ee(Se,je,ot){const Bt=m.getLineAndCharacterOfPosition(Se).line,vt=m.getLineAndCharacterOfPosition(je).line;ve(Bt,vt+1,ot)}function De(Se,je){je&&K.push(Z7(Se,je,""))}function Me(Se,je,ot){(je||ot)&&K.push(Z7(Se,je,ot))}function We(Se,je){K.push(Z7(Se,0,je))}function At(Se,je,ot,Bt,vt){const $e=vt!==ot;switch(Se.action){case 1:return 0;case 16:if(je.end!==Bt.pos)return De(je.end,Bt.pos-je.end),$e?2:0;break;case 32:De(je.pos,je.end-je.pos);break;case 8:if(Se.flags!==1&&ot!==vt)return 0;if(vt-ot!==1)return Me(je.end,Bt.pos-je.end,Xv(u,s)),$e?0:1;break;case 4:if(Se.flags!==1&&ot!==vt)return 0;if(Bt.pos-je.end!==1||m.text.charCodeAt(je.end)!==32)return Me(je.end,Bt.pos-je.end," "),$e?2:0;break;case 64:We(je.end,";")}return 0}}function Rwe(e,t,r,i=po(e,t)){const o=Vn(i,Zm);if(o&&(i=o.parent),i.getStart(e)<=t&&t<i.getEnd())return;r=r===null?void 0:r===void 0?Ic(t,e):r;const l=r&&Zb(e.text,r.end),u=uj(i,e),p=So(l,u);return p&&In(p,h=>tO(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function bat(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function Eat(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function z_e(e,t){if((!WQ||WQ.tabSize!==t.tabSize||WQ.indentSize!==t.indentSize)&&(WQ={tabSize:t.tabSize,indentSize:t.indentSize},r8=i8=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return i8||(i8=[]),i8[o]===void 0?(i=lO(" ",t.indentSize*o),i8[o]=i):i=i8[o],s?i+lO(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return r8||(r8=[]),r8[i]===void 0?r8[i]=s=lO(" ",i):s=r8[i],o?s+lO(" ",o):s}}var WQ,r8,i8,Sat=I({"src/services/formatting/formatting.ts"(){si(),o8()}}),B_,Tat=I({"src/services/formatting/smartIndenter.ts"(){si(),o8(),(e=>{let t;(ie=>{ie[ie.Unknown=-1]="Unknown"})(t||(t={}));function r(ie,ve,Le,Ue=!1){if(ie>ve.text.length)return u(Le);if(Le.indentStyle===0)return 0;const Ee=Ic(ie,ve,void 0,!0),De=Rwe(ve,ie,Ee||null);if(De&&De.kind===3)return i(ve,ie,Le,De);if(!Ee)return u(Le);if(zK(Ee.kind)&&Ee.getStart(ve)<=ie&&ie<Ee.end)return 0;const We=ve.getLineAndCharacterOfPosition(ie).line,At=po(ve,ie),Se=At.kind===19&&At.parent.kind===210;if(Le.indentStyle===1||Se)return o(ve,ie,Le);if(Ee.kind===28&&Ee.parent.kind!==226){const ot=m(Ee,ve,Le);if(ot!==-1)return ot}const je=Q(ie,Ee.parent,ve);if(je&&!sf(je,Ee)){const Bt=[218,219].includes(At.parent.kind)?0:Le.indentSize;return G(je,ve,Le)+Bt}return s(ve,ie,Ee,We,Ue,Le)}e.getIndentation=r;function i(ie,ve,Le,Ue){const Ee=ys(ie,ve).line-1,De=ys(ie,Ue.pos).line;if(N.assert(De>=0),Ee<=De)return X(wy(De,ie),ve,ie,Le);const Me=wy(Ee,ie),{column:We,character:At}=Y(Me,ve,ie,Le);return We===0?We:ie.text.charCodeAt(Me+At)===42?We-1:We}function o(ie,ve,Le){let Ue=ve;for(;Ue>0;){const De=ie.text.charCodeAt(Ue);if(!Cg(De))break;Ue--}const Ee=am(Ue,ie);return X(Ee,Ue,ie,Le)}function s(ie,ve,Le,Ue,Ee,De){let Me,We=Le;for(;We;){if(LK(We,ve,ie)&&Ce(De,We,Me,ie,!0)){const Se=R(We,ie),je=A(Le,We,Ue,ie),ot=je!==0?Ee&&je===2?De.indentSize:0:Ue!==Se.line?De.indentSize:0;return p(We,Se,void 0,ot,ie,!0,De)}const At=ne(We,ie,De,!0);if(At!==-1)return At;Me=We,We=We.parent}return u(De)}function l(ie,ve,Le,Ue){const Ee=Le.getLineAndCharacterOfPosition(ie.getStart(Le));return p(ie,Ee,ve,0,Le,!1,Ue)}e.getIndentationForNode=l;function u(ie){return ie.baseIndentSize||0}e.getBaseIndentation=u;function p(ie,ve,Le,Ue,Ee,De,Me){var We;let At=ie.parent;for(;At;){let Se=!0;if(Le){const vt=ie.getStart(Ee);Se=vt<Le.pos||vt>Le.end}const je=h(At,ie,Ee),ot=je.line===ve.line||C(At,ie,ve.line,Ee);if(Se){const vt=(We=K(ie,Ee))==null?void 0:We[0],$e=!!vt&&R(vt,Ee).line>je.line;let It=ne(ie,Ee,Me,$e);if(It!==-1||(It=y(ie,At,ve,ot,Ee,Me),It!==-1))return It+Ue}Ce(Me,At,ie,Ee,De)&&!ot&&(Ue+=Me.indentSize);const Bt=M(At,ie,ve.line,Ee);ie=At,At=ie.parent,ve=Bt?Ee.getLineAndCharacterOfPosition(ie.getStart(Ee)):je}return Ue+u(Me)}function h(ie,ve,Le){const Ue=K(ve,Le),Ee=Ue?Ue.pos:ie.getStart(Le);return Le.getLineAndCharacterOfPosition(Ee)}function m(ie,ve,Le){const Ue=Zce(ie);return Ue&&Ue.listItemIndex>0?he(Ue.list.getChildren(),Ue.listItemIndex-1,ve,Le):-1}function y(ie,ve,Le,Ue,Ee,De){return(Ju(ie)||hL(ie))&&(ve.kind===312||!Ue)?ye(Le,Ee,De):-1}let T;(ie=>{ie[ie.Unknown=0]="Unknown",ie[ie.OpenBrace=1]="OpenBrace",ie[ie.CloseBrace=2]="CloseBrace"})(T||(T={}));function A(ie,ve,Le,Ue){const Ee=m1(ie,ve,Ue);if(!Ee)return 0;if(Ee.kind===19)return 1;if(Ee.kind===20){const De=R(Ee,Ue).line;return Le===De?2:0}return 0}function R(ie,ve){return ve.getLineAndCharacterOfPosition(ie.getStart(ve))}function M(ie,ve,Le,Ue){if(!(sa(ie)&&Or(ie.arguments,ve)))return!1;const Ee=ie.expression.getEnd();return ys(Ue,Ee).line===Le}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=M;function C(ie,ve,Le,Ue){if(ie.kind===245&&ie.elseStatement===ve){const Ee=vs(ie,93,Ue);return N.assert(Ee!==void 0),R(Ee,Ue).line===Le}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=C;function O(ie,ve,Le,Ue){if(jR(ie)&&(ve===ie.whenTrue||ve===ie.whenFalse)){const Ee=ys(Ue,ie.condition.end).line;if(ve===ie.whenTrue)return Le===Ee;{const De=R(ie.whenTrue,Ue).line,Me=ys(Ue,ie.whenTrue.end).line;return Ee===De&&Me===Le}}return!1}e.childIsUnindentedBranchOfConditionalExpression=O;function U(ie,ve,Le,Ue){if(S_(ie)){if(!ie.arguments)return!1;const Ee=In(ie.arguments,At=>At.pos===ve.pos);if(!Ee)return!1;const De=ie.arguments.indexOf(Ee);if(De===0)return!1;const Me=ie.arguments[De-1],We=ys(Ue,Me.getEnd()).line;if(Le===We)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=U;function K(ie,ve){return ie.parent&&V(ie.getStart(ve),ie.getEnd(),ie.parent,ve)}e.getContainingList=K;function Q(ie,ve,Le){return ve&&V(ie,ie,ve,Le)}function V(ie,ve,Le,Ue){switch(Le.kind){case 183:return Ee(Le.typeArguments);case 210:return Ee(Le.properties);case 209:return Ee(Le.elements);case 187:return Ee(Le.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Ee(Le.typeParameters)||Ee(Le.parameters);case 177:return Ee(Le.parameters);case 263:case 231:case 264:case 265:case 352:return Ee(Le.typeParameters);case 214:case 213:return Ee(Le.typeArguments)||Ee(Le.arguments);case 261:return Ee(Le.declarations);case 275:case 279:return Ee(Le.elements);case 206:case 207:return Ee(Le.elements)}function Ee(De){return De&&nO(se(Le,De,Ue),ie,ve)?De:void 0}}function se(ie,ve,Le){const Ue=ie.getChildren(Le);for(let Ee=1;Ee<Ue.length-1;Ee++)if(Ue[Ee].pos===ve.pos&&Ue[Ee].end===ve.end)return{pos:Ue[Ee-1].end,end:Ue[Ee+1].getStart(Le)};return ve}function G(ie,ve,Le){return ie?ye(ve.getLineAndCharacterOfPosition(ie.pos),ve,Le):-1}function ne(ie,ve,Le,Ue){if(ie.parent&&ie.parent.kind===261)return-1;const Ee=K(ie,ve);if(Ee){const De=Ee.indexOf(ie);if(De!==-1){const Me=he(Ee,De,ve,Le);if(Me!==-1)return Me}return G(Ee,ve,Le)+(Ue?Le.indentSize:0)}return-1}function he(ie,ve,Le,Ue){N.assert(ve>=0&&ve<ie.length);const Ee=ie[ve];let De=R(Ee,Le);for(let Me=ve-1;Me>=0;Me--){if(ie[Me].kind===28)continue;if(Le.getLineAndCharacterOfPosition(ie[Me].end).line!==De.line)return ye(De,Le,Ue);De=R(ie[Me],Le)}return-1}function ye(ie,ve,Le){const Ue=ve.getPositionOfLineAndCharacter(ie.line,0);return X(Ue,Ue+ie.character,ve,Le)}function Y(ie,ve,Le,Ue){let Ee=0,De=0;for(let Me=ie;Me<ve;Me++){const We=Le.text.charCodeAt(Me);if(!E_(We))break;We===9?De+=Ue.tabSize+De%Ue.tabSize:De++,Ee++}return{column:De,character:Ee}}e.findFirstNonWhitespaceCharacterAndColumn=Y;function X(ie,ve,Le,Ue){return Y(ie,ve,Le,Ue).column}e.findFirstNonWhitespaceColumn=X;function oe(ie,ve,Le,Ue,Ee){const De=Le?Le.kind:0;switch(ve.kind){case 244:case 263:case 231:case 264:case 266:case 265:case 209:case 241:case 268:case 210:case 187:case 200:case 189:case 217:case 211:case 213:case 214:case 243:case 277:case 253:case 227:case 207:case 206:case 286:case 289:case 285:case 294:case 173:case 179:case 180:case 169:case 184:case 185:case 196:case 215:case 223:case 279:case 275:case 281:case 276:case 172:case 296:case 297:return!0;case 269:return ie.indentSwitchCase??!0;case 260:case 303:case 226:if(!ie.indentMultiLineObjectLiteralBeginningOnBlankLine&&Ue&&De===210)return de(Ue,Le);if(ve.kind===226&&Ue&&Le&&De===284){const Me=Ue.getLineAndCharacterOfPosition(Pa(Ue.text,ve.pos)).line,We=Ue.getLineAndCharacterOfPosition(Pa(Ue.text,Le.pos)).line;return Me!==We}if(ve.kind!==226)return!0;break;case 246:case 247:case 249:case 250:case 248:case 245:case 262:case 218:case 174:case 176:case 177:case 178:return De!==241;case 219:return Ue&&De===217?de(Ue,Le):De!==241;case 278:return De!==279;case 272:return De!==273||!!Le.namedBindings&&Le.namedBindings.kind!==275;case 284:return De!==287;case 288:return De!==290;case 193:case 192:if(De===187||De===189)return!1;break}return Ee}e.nodeWillIndentChild=oe;function pe(ie,ve){switch(ie){case 253:case 257:case 251:case 252:return ve.kind!==241;default:return!1}}function Ce(ie,ve,Le,Ue,Ee=!1){return oe(ie,ve,Le,Ue,!1)&&!(Ee&&Le&&pe(Le.kind,ve))}e.shouldIndentChildNode=Ce;function de(ie,ve){const Le=Pa(ie.text,ve.pos),Ue=ie.getLineAndCharacterOfPosition(Le).line,Ee=ie.getLineAndCharacterOfPosition(ve.end).line;return Ue===Ee}})(B_||(B_={}))}}),kc={};ee(kc,{FormattingContext:()=>T_e,FormattingRequestKind:()=>S_e,RuleAction:()=>I_e,RuleFlags:()=>x_e,SmartIndenter:()=>B_,anyContext:()=>Rz,createTextRangeWithKind:()=>OQ,formatDocument:()=>pat,formatNodeGivenIndentation:()=>yat,formatOnClosingCurly:()=>dat,formatOnEnter:()=>lat,formatOnOpeningCurly:()=>uat,formatOnSemicolon:()=>cat,formatSelection:()=>fat,getAllRules:()=>nwe,getFormatContext:()=>Zot,getFormattingScanner:()=>A_e,getIndentationString:()=>z_e,getRangeOfEnclosingComment:()=>Rwe});var o8=I({"src/services/_namespaces/ts.formatting.ts"(){yot(),bot(),Eot(),Qot(),sat(),Sat(),Tat()}}),si=I({"src/services/_namespaces/ts.ts"(){ra(),Kw(),CHe(),eqe(),iqe(),tDe(),hqe(),gqe(),Aqe(),kqe(),wqe(),Wqe(),Hqe(),qqe(),fYe(),mYe(),gYe(),WYe(),zYe(),Ia(),Wme(),Yme(),_rt(),brt(),Wrt(),IDe(),qDe(),iit(),pit(),xh(),bit(),Kit(),not(),aot(),vot(),o8()}});function Aat(){return Cwe??(Cwe=new hm(Re))}function Dwe(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+=`'${e}' `,s+=i?`has been deprecated since v${i}`:"is deprecated",s+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",s+=o?` ${ig(o,[e])}`:"",s}function Iat(e,t,r,i){const o=Dwe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function xat(e,t,r,i){let o=!1;return()=>{Nwe&&!o&&(N.log.warn(Dwe(e,!1,t,r,i)),o=!0)}}function Rat(e,t={}){const r=typeof t.typeScriptVersion=="string"?new hm(t.typeScriptVersion):t.typeScriptVersion??Aat(),i=typeof t.errorAfter=="string"?new hm(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new hm(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new hm(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?Iat(e,i,s,t.message):u?xat(e,i,s,t.message):Ya}function Dat(e,t){return function(){return e(),t.apply(this,arguments)}}function B_e(e,t){const r=Rat((t==null?void 0:t.name)??N.getFunctionName(e),t);return Dat(r,e)}var Nwe,Cwe,Pwe=I({"src/deprecatedCompat/deprecate.ts"(){zQ(),Nwe=!0}});function FQ(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(const l of Object.keys(i)){const u=+l;!isNaN(u)&&Is(t,`${u}`)&&(t[u]=B_e(t[u],{...i[u],name:e}))}const o=Nat(t,r);return s;function s(...l){const u=o(l),p=u!==void 0?t[u]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function Nat(e,t){return r=>{for(let i=0;Is(e,`${i}`)&&Is(t,`${i}`);i++){const o=t[i];if(o(r))return i}}}function Mwe(e){return{overload:t=>({bind:r=>({finish:()=>FQ(e,t,r),deprecate:i=>({finish:()=>FQ(e,t,r,i)})})})}}var Cat=I({"src/deprecatedCompat/deprecations.ts"(){zQ(),Pwe()}}),Pat=I({"src/deprecatedCompat/5.0/identifierProperties.ts"(){zQ(),Pwe(),ioe(e=>{const t=e.getIdentifierConstructor();Is(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:B_e(function(){return r0(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Is(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:B_e(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),zQ=I({"src/deprecatedCompat/_namespaces/ts.ts"(){ra(),Cat(),Pat()}}),Mat=I({"src/typingsInstallerCore/_namespaces/ts.ts"(){ra(),Kw(),V_e()}});function Lwe(e,t,r,i){try{const o=iD(t,$r(e,"index.d.ts"),{moduleResolution:2},r);return o.resolvedModule&&o.resolvedModule.resolvedFileName}catch(o){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`);return}}function Lat(e,t,r,i){let o=!1;for(let s=r.length;s>0;){const l=kwe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function kwe(e,t,r,i){const o=r.length-i;let s,l=i;for(;s=`${e} install --ignore-scripts ${(l===r.length?r:r.slice(o,o+l)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(s.length<8e3);)l=l-Math.floor(l/2);return{command:s,remaining:i-l}}function wwe(e){return`@types/${e}@ts${_e}`}var Owe,Wwe,kat=I({"src/typingsInstallerCore/typingsInstaller.ts"(){Mat(),V_e(),Owe={isEnabled:()=>!1,writeLine:Ya},Wwe=class{constructor(e,t,r,i,o,s=Owe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=o,this.log=s,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});const r={kind:M7,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:N.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:ZP,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${N0(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();const t=F_.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=ym(ai(t),u=>{if(this.installTypingHost.fileExists($r(u,"package.json")))return u})||o;if(l)this.installWorker(-1,[r],l,u=>{const p=u?`Package ${r} installed.`:`There was an error installing ${r}.`,h={kind:Jw,projectName:i,id:s,success:u,message:p};this.sendResponse(h)});else{const u={kind:Jw,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=F_.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=F_.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const t=$r(e,"package.json"),r=$r(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){const i=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${N0(i)}`),this.log.writeLine(`Loaded content of '${r}':${N0(o)}`)),i.devDependencies&&o.dependencies)for(const s in i.devDependencies){if(!Is(o.dependencies,s))continue;const l=ic(s);if(!l)continue;const u=Lwe(e,l,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(l);continue}const p=this.packageNameToTypingLocation.get(l);if(p){if(p.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${u}' conflicts with existing typing file '${p}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${u}'`);const h=E6(o.dependencies,s),m=h&&h.version;if(!m)continue;const y={typingLocation:u,version:new hm(m)};this.packageNameToTypingLocation.set(l,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return eo(e,t=>{const r=aD(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}const i=F_.validatePackageName(t);if(i!==F_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(F_.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&F_.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){const t=$r(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);const o=this.filterTypings(i);if(o.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:L7,eventId:s,typingsInstallerVersion:Re,projectName:e.projectName});const l=o.map(wwe);this.installTypingsAsync(s,l,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(const h of o)this.missingTypingsSet.add(h);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);const p=[];for(const h of o){const m=Lwe(t,h,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(h);continue}const y=this.typesRegistry.get(h),T=new hm(y[`ts${_e}`]||y[this.latestDistTag]),A={typingLocation:m,version:T};this.packageNameToTypingLocation.set(h,A),p.push(m)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(p)}`),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{const p={kind:k7,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Re};this.sendResponse(p)}})}ensureDirectoryExists(e,t){const r=ai(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}const r=this.projectWatchers.get(e),i=new Set(t);!r||fh(i,o=>!r.has(o))||fh(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:ZP,projectName:e,files:t})):this.sendResponse({kind:ZP,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Hw}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount<this.throttleLimit&&this.pendingRunRequests.length;){this.inFlightRequestCount++;const e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),G_e={};ee(G_e,{TypingsInstaller:()=>Wwe,getNpmCommandForInstallation:()=>kwe,installNpmPackages:()=>Lat,typingsName:()=>wwe});var wat=I({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){kat()}}),V_e=I({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){w7(),wat()}}),Oat=I({"src/server/types.ts"(){}});function j_e(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function fl(e){return ha(e)}function a8(e,t,r){const i=dp(e)?e:go(e,t);return r(i)}function Fwe(e){return e}function zwe(){const e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function U_e(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function H_e(e){return`/dev/null/inferredProject${e}*`}function q_e(e){return`/dev/null/autoImportProviderProject${e}*`}function J_e(e){return`/dev/null/auxiliaryProject${e}*`}function K_e(){return[]}var BQ,gc,GQ,Zv,Wat=I({"src/server/utilitiesPublic.ts"(){ob(),BQ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(BQ||{}),gc=K_e(),GQ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(GQ||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(o,s){throw new Error(`Project '${s.getProjectName()}' does not contain document '${o}'`)}e.ThrowProjectDoesNotContainDocument=i})(Zv||(Zv={}))}});function VQ(e){const t=ic(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function Bwe(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}const i=Tv(e,t,tl,r);i>=0&&e.splice(i,1)}var jQ,UQ,Fat=I({"src/server/utilities.ts"(){ob(),cT(),jQ=class LFe{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){const o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(LFe.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){const r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){var o,s;(o=id)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=id)==null||s.logStopScheduledOperation()}},UQ=class kFe{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(kFe.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=id)==null||r.logStartScheduledOperation("GC collect");const o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){const l=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${s}, after ${l}`)}(i=id)==null||i.logStopScheduledOperation()}}}}),HQ,X_e,Y_e,$_e,Q_e,Z_e,ehe,the,nhe,rhe,ihe,ohe,ahe,she,lhe=I({"src/server/protocol.ts"(){HQ=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(HQ||{}),X_e=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(X_e||{}),Y_e=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Y_e||{}),$_e=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))($_e||{}),Q_e=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Q_e||{}),Z_e=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Z_e||{}),ehe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(ehe||{}),the=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(the||{}),nhe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(nhe||{}),rhe=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(rhe||{}),ihe=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(ihe||{}),ohe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(ohe||{}),ahe=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(ahe||{}),she=(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))(she||{})}}),che={};ee(che,{ClassificationType:()=>she,CommandTypes:()=>HQ,CompletionTriggerKind:()=>Z_e,IndentStyle:()=>ehe,JsxEmit:()=>nhe,ModuleKind:()=>rhe,ModuleResolutionKind:()=>ihe,NewLineKind:()=>ohe,OrganizeImportsMode:()=>X_e,PollingWatchKind:()=>Q_e,ScriptTarget:()=>ahe,SemicolonPreference:()=>the,WatchDirectoryKind:()=>$_e,WatchFileKind:()=>Y_e});var zat=I({"src/server/_namespaces/ts.server.protocol.ts"(){lhe()}});function s8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&ic(e)[0]==="^"||e.includes(":^")&&!e.includes(ol)}function Gwe(e){return!e||c8(e)?Zv.ThrowNoProject():e}function Bat(e){N.assert(typeof e=="number",`Expected position ${e} to be a number.`),N.assert(e>=0,"Expected position to be non-negative.")}function Gat(e){N.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),N.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),N.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),N.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var qQ,JQ,Vat=I({"src/server/scriptInfo.ts"(){ob(),cT(),qQ=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return N.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=ED(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=W7.fromString(N.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const r=this.getLineMap(),i=r[e],o=e+1<r.length?r[e+1]:this.text.length;return pc(i,o)}lineOffsetToPosition(e,t,r){const i=this.tryUseScriptVersionCache();return i?i.lineOffsetToPosition(e,t):t4(this.getLineMap(),e-1,t-1,this.text,r)}positionToLineOffset(e){const t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);const{line:r,character:i}=Vx(this.getLineMap(),e);return{line:r+1,offset:i+1}}getFileTextAndSize(e){let t;const r=e||this.info.fileName,i=()=>t===void 0?t=this.host.readFile(r)||"":t;if(!GA(this.info.fileName)){const o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>Wz)return N.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${o}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,o),{text:"",fileSize:o}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=Yz.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=Yz.fromString(N.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(N.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return N.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=bA(N.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};const t=this.getLineMap();return Cq(this.text,t)}},JQ=class{constructor(e,t,r,i,o,s){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=o,this.containingProjects=[],this.isDynamic=s8(t),this.textStorage=new qQ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||B3(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){N.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return Or(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:wx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){w0(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!jD(e)&&e.addMissingFileRoot(t.fileName)}jo(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Zv.ThrowNoProject();case 1:return Gwe(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s<this.containingProjects.length;s++){const l=this.containingProjects[s];if(w0(l)){if(!l.isSourceOfProjectReferenceRedirect(this.fileName)){if(o===void 0&&s!==this.containingProjects.length-1&&(o=l.projectService.findDefaultConfiguredProject(this)||!1),o===l)return l;i||(i=l)}t||(t=l)}else!e&&XQ(l)?e=l:!r&&jD(l)&&(r=l)}return Gwe(o||i||t||e||r)}}registerFileUpdate(){for(const e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=O7(this.host.newLine),Mx(this.formatSettings,e))),t&&(this.preferences||(this.preferences=Mf),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,ED(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){N.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return this.textStorage.reloadWithFileText(e)?(this.markContainingProjectsAsDirty(),!0):!1}editContent(e,t,r){this.textStorage.edit(e,t,r),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(const e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return!Xe(this.containingProjects,e=>!e.isOrphan())}isContainedByBackgroundProject(){return bt(this.containingProjects,c8)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){Bat(e);const t=this.textStorage.positionToLineOffset(e);return Gat(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Mo(this.sourceMapFilePath)&&(Cf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function Vwe(e,t){if(e===t||(e||gc).length===0&&(t||gc).length===0)return!0;const r=new Map;let i=0;for(const o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(const o of t){const s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function jat(e,t){return e.enable!==t.enable||!Vwe(e.include,t.include)||!Vwe(e.exclude,t.exclude)}function Uat(e,t){return jy(e)!==jy(t)}function Hat(e,t){return e===t?!1:!Hm(e,t)}var Lz,KQ,qat=I({"src/server/typingsCache.ts"(){ob(),cT(),Lz={isKnownTypesPackageName:qm,installPackage:Jo,enqueueInstallTypingsRequest:Ya,attach:Ya,onProjectClosed:Ya,globalTypingsCacheLocation:void 0},KQ=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,r){const i=e.getTypeAcquisition();if(!i||!i.enable)return;const o=this.perProjectCache.get(e.getProjectName());(r||!o||jat(i,o.typeAcquisition)||Uat(e.getCompilationSettings(),o.compilerOptions)||Hat(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:gc,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){const s=iS(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?gc:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function l8(e,t=!1){const r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const i of e){const o=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=o;break;case 2:r.jsx+=1,r.jsxSize+=o;break;case 3:Su(i.fileName)?(r.dts+=1,r.dtsSize+=o):(r.ts+=1,r.tsSize+=o);break;case 4:r.tsx+=1,r.tsxSize+=o;break;case 7:r.deferred+=1,r.deferredSize+=o;break}}return r}function Jat(e){const t=l8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function uhe(e){const t=l8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function dhe(e){const t=l8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function phe(e){return!e.some(t=>Il(t,".ts")&&!Su(t)||Il(t,".tsx"))}function fhe(e){return e.generatedFilePath!==void 0}function Kat(e,t){var r,i;const o=e.getSourceFiles();(r=sr)==null||r.push(sr.Phase.Session,"getUnresolvedImports",{count:o.length});const s=e.getTypeChecker().getAmbientModules().map(u=>Zf(u.getName())),l=HN(Do(o,u=>Xat(e,u,s,t)));return(i=sr)==null||i.pop(),l}function Xat(e,t,r,i){return dA(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!KC(s.extension))&&!Xc(l)&&!r.some(u=>u===l)&&(o=Rn(o,Sw(l).packageName))},t),o||gc})}function jD(e){return e.projectKind===0}function w0(e){return e.projectKind===1}function XQ(e){return e.projectKind===2}function c8(e){return e.projectKind===3||e.projectKind===4}var IM,lT,YQ,$Q,QQ,ZQ,eZ,kz,Yat=I({"src/server/project.ts"(){ob(),ob(),cT(),IM=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(IM||{}),lT=class wFe{constructor(t,r,i,o,s,l,u,p,h,m,y){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=u,this.compileOnSaveEnabled=p,this.watchOptions=h,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=qm,this.dirty=!1,this.typingFiles=gc,this.moduleSpecifierCache=Ihe(this),this.createHash=ia(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=F_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=m,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(y),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new DY(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||jy(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=Q5(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:N.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const T=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=A=>this.writeLog(A):T.trace&&(this.trace=A=>T.trace(A)),this.realpath=ia(T,T.realpath),this.resolutionCache=WJ(this,this.currentDirectory,!0),this.languageService=ipe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),c8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return Vp(this),dhe(this)}isJsOnlyProject(){return Vp(this),Jat(this)}static resolveModule(t,r,i,o){return wFe.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){N.assertIsDefined(i.require);let s,l;for(const u of r){const p=Lu(i.resolvePath($r(u,"node_modules")));o(`Loading ${t.name} from ${u} (resolved to ${p})`);const h=i.require(p,t.name);if(!h.error){l=h.module;break}const m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to load module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){N.assertIsDefined(i.importPlugin);let s,l;for(const u of r){const p=$r(u,"node_modules");o(`Dynamically importing ${t.name} from ${u} (resolved to ${p})`);let h;try{h=await i.importPlugin(p,t.name)}catch(y){h={module:void 0,error:y}}if(!h.error){l=h.module;break}const m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to dynamically import module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=dU(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return et;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),qr(t,this.typingFiles)||et}getOrCreateScriptInfoAndAttachToProject(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){const i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){const r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const t=ai(ha(this.projectService.getExecutingFilePath()));return $r(t,Z2(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,o,s){return this.directoryStructureHost.readDirectory(t,r,i,o,s)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){const r=this.toPath(t);return!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,o,s,l){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,o,s,l)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l)}resolveLibrary(t,r,i,o){return this.resolutionCache.resolveLibrary(t,r,i,o)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return il(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),Lc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),Lc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),Lc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return mn(this.projectErrors,t=>!t.file)||gc}getAllProjectErrors(){return this.projectErrors||gc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Vp(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(Vp(this),this.builderState=Nm.create(this.program,this.builderState,!0),eo(Nm.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:gc};const{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const l of s){const u=go(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&Rf(this.compilerOptions)){const l=s.filter(u=>Su(u.name));if(l.length===1){const u=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):QN(l[0].text);Nm.updateSignatureOfFile(this.builderState,p,u.resolvedPath)}}}return{emitSkipped:i,diagnostics:o}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(N.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return iS(Do(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){const r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),Xe(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(const r of this.rootFiles)r.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(ep(this.missingFilesMap,Xm),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){const r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Wt(this.program.getSourceFiles(),t=>{const r=this.projectService.getScriptInfoForPath(t.resolvedPath);return N.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return gc}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){const s=ope(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}const i=[];for(const o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){const o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(const s of o.extendedSourceFiles)i.push(s)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){const r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(const i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;const r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r;return this.rootFilesMap&&((r=this.rootFilesMap.get(t.path))==null?void 0:r.info)===t}addRoot(t,r){N.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){const r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){Vp(this)}updateGraph(){var t,r,i,o,s;(t=sr)==null||t.push(sr.Phase.Session,"updateGraph",{name:this.projectName,kind:IM[this.projectKind]}),(r=id)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const l=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||gc;for(const m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=Kat(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;const h=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),h&&this.getPackageJsonAutoImportProvider(),(o=id)==null||o.logStopUpdateGraph(),(s=sr)==null||s.pop(),!l}updateTypingFiles(t){N6(t,this.typingFiles,Lx(!this.useCaseSensitiveFileNames()),Ya,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&ep(this.typingWatchers,Xm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:qw})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}const r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const i=(o,s)=>{const l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),Lc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Il(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(Dg(u,$r(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),Lc.TypingInstallerLocationDirectory,this))};for(const o of t){const s=ic(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(gm(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){const l=o.indexOf(ol,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(gm(this.projectService.typingsInstaller.globalTypingsCacheLocation,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(o,"DirectoryWatcher")}r.forEach((o,s)=>{o.close(),this.typingWatchers.delete(s)})}getCurrentProgram(){return this.program}removeExistingTypings(t){const r=AF(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;const i=this.languageService.getCurrentProgram();N.assert(i===this.program),N.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const o=Xs(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(qm,qm);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=sr)==null||t.push(sr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=sr)==null||r.pop(),N.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,i){for(const m of i.getSourceFiles()){const y=this.program.getSourceFileByPath(m.resolvedPath);(!y||m.resolvedPath===m.path&&y.resolvedPath!==m.path)&&this.detachScriptInfoFromProject(m.fileName,!!this.program.getSourceFileByPath(m.path),!0)}i.forEachResolvedProjectReference(m=>{this.program.getResolvedProjectReferenceByPath(m.sourceFile.path)||this.detachScriptInfoFromProject(m.sourceFile.fileName,void 0,!0)})}if(iJ(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,y)=>this.addMissingFileWatcher(m,y)),this.generatedFilesMap){const m=Ps(this.compilerOptions);fhe(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(Ad(m)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():m?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((y,T)=>{const A=this.program.getSourceFileByPath(T);(!A||A.resolvedPath!==T||!this.isValidGeneratedFileWatcher(d3(A.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),y))&&(Cf(y),this.generatedFilesMap.delete(T))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&fh(this.changedFilesForExportMapCache,m=>{const y=i.getSourceFileByPath(m),T=this.program.getSourceFileByPath(m);return!y||!T?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(y,T,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const p=this.externalFiles||gc;this.externalFiles=this.getExternalFiles(),N6(this.externalFiles,p,Lx(!this.useCaseSensitiveFileNames()),m=>{const y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);y==null||y.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));const h=Xs()-o;return this.sendPerformanceEvent("UpdateGraph",h),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${z6[this.program.structureIsReused]}`:""} Elapsed: ${h}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),u}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){const o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(w0(this)){const s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s==null?void 0:s.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return hD}const o=this.projectService.watchFactory.watchFile(go(r,this.currentDirectory),(s,l)=>{w0(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),Lc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(Ps(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{const i=this.toPath(r);if(this.generatedFilesMap){if(fhe(this.generatedFilesMap)){N.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),Lc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(fhe(this.generatedFilesMap)?Cf(this.generatedFilesMap):ep(this.generatedFilesMap,Cf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?Zv.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending
`;if(!this.program)return` Files (0) NoProgram
`;const o=this.program.getSourceFiles();let s=` Files (${o.length})
`;if(t){for(const l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""}
`;r&&(s+=`
`,BJ(this.program,l=>s+=` ${l}
`))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${IM[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(o=this.noDtsResolutionProject)==null||o.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;const i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),A4(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,o;const s=r?p=>zo(p.entries(),([h,m])=>({fileName:h,isSourceOfProjectReferenceRedirect:m})):p=>zo(p.keys());this.isInitialLoadPending()||Vp(this);const l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:jD(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:l,projectErrors:this.getGlobalProjectErrors()};const p=this.lastReportedFileNames,h=((i=this.externalFiles)==null?void 0:i.map(M=>({fileName:fl(M),isSourceOfProjectReferenceRedirect:!1})))||gc,m=TE(this.getFileNamesWithRedirectInfo(!!r).concat(h),M=>M.fileName,M=>M.isSourceOfProjectReferenceRedirect),y=new Map,T=new Map,A=u?zo(u.keys()):[],R=[];return zc(m,(M,C)=>{p.has(C)?r&&M!==p.get(C)&&R.push({fileName:C,isSourceOfProjectReferenceRedirect:M}):y.set(C,M)}),zc(p,(M,C)=>{m.has(C)||T.set(C,M)}),this.lastReportedFileNames=m,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(y),removed:s(T),updated:r?A.map(M=>({fileName:M,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(M)})):A,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const p=this.getFileNamesWithRedirectInfo(!!r),h=((o=this.externalFiles)==null?void 0:o.map(y=>({fileName:fl(y),isSourceOfProjectReferenceRedirect:!1})))||gc,m=p.concat(h);return this.lastReportedFileNames=TE(m,y=>y.fileName,y=>y.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?m:m.map(y=>y.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){wx(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,$r(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();for(const o of this.projectService.globalPlugins)o&&(t.plugins&&t.plugins.some(s=>s.name===o)||(this.projectService.logger.info(`Loading global plugin ${o}`),this.enablePlugin({name:o,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}const i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:uOe}),s=o.create(i);for(const l of Object.keys(this.languageService))l in s||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${l} in created LS. Patching.`),s[l]=this.languageService[l]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=s,this.plugins.push({name:r.name,module:o})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?gc:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile($r(this.currentDirectory,fD),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=xX(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||vO(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Vp(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const o=this.includePackageJsonAutoImports();if(o){(t=sr)==null||t.push(sr.Phase.Session,"getPackageJsonAutoImportProvider");const s=Xs();if(this.autoImportProviderHost=ZQ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Vp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Xs()-s),(r=sr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=sr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!zc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(fl(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return N.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new $Q(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0}}},YQ=class extends lT{constructor(e,t,r,i,o,s,l){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,i,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=l,this.projectRootPath=o&&e.toCanonicalFileName(o),!o&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=GK(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){N.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Jn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Xe(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:uhe(this),include:et,exclude:et}}},$Q=class extends lT{constructor(e,t,r,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},QQ=class mbe extends lT{constructor(t,r,i,o){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,o,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=ia(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ia(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return et;const u=r.getCurrentProgram();if(!u)return et;const p=Xs();let h,m;const y=$r(r.currentDirectory,fD),T=r.getPackageJsonsForAutoImport($r(r.currentDirectory,y));for(const C of T)(s=C.dependencies)==null||s.forEach((O,U)=>R(U)),(l=C.peerDependencies)==null||l.forEach((O,U)=>R(U));let A=0;if(h){const C=r.getSymlinkCache();for(const O of zo(h.keys())){if(t===2&&A>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),et;const U=aq(O,r.currentDirectory,o,i,u.getModuleResolutionCache());if(U){const Q=M(U,u,C);if(Q){m=So(m,Q),A+=Q.length?1:0;continue}}if(!Xe([r.currentDirectory,r.getGlobalTypingsCacheLocation()],Q=>{if(Q){const V=aq(`@types/${O}`,Q,o,i,u.getModuleResolutionCache());if(V){const se=M(V,u,C);return m=So(m,se),A+=se!=null&&se.length?1:0,!0}}})&&U&&o.allowJs&&o.maxNodeModuleJsDepth){const Q=M(U,u,C,!0);m=So(m,Q),A+=Q!=null&&Q.length?1:0}}}return m!=null&&m.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${A} dependencies in ${Xs()-p} ms`),m||et;function R(C){uo(C,"@types/")||(h||(h=new Set)).add(C)}function M(C,O,U,K){var Q;const V=fq(C,o,i,O.getModuleResolutionCache(),K);if(V){const se=(Q=i.realpath)==null?void 0:Q.call(i,C.packageDirectory),G=se?r.toPath(se):void 0,ne=G&&G!==r.toPath(C.packageDirectory);return ne&&U.setSymlinkedDirectory(C.packageDirectory,{real:Fc(se),realPath:Fc(G)}),eo(V,he=>{const ye=ne?he.replace(C.packageDirectory,se):he;if(!O.getSourceFile(ye)&&!(ne&&O.getSourceFile(he)))return ye})}}}static create(t,r,i,o){if(t===0)return;const s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(l.length)return new mbe(r,l,o,s)}isEmpty(){return!bt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=mbe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||et}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},QQ.maxDependencies=10,QQ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0},ZQ=QQ,eZ=class extends lT{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,ai(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Iv,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=ha(e),r=this.projectService.toCanonicalFileName(t);let i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(ha(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=qm;const t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const i=N.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){N.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const o=ai(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(const o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return mn(this.projectErrors,e=>!e.file)||gc}getAllProjectErrors(){return this.projectErrors||gc}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return HD(this,e.path,t=>OI(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&zc(t.openFilesImpactedByConfigFile,(r,i)=>{const o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!HD(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return LP(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){fF(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},kz=class extends lT{constructor(e,t,r,i,o,s,l,u){super(e,2,t,r,!0,o,i,s,u,t.host,ai(l||Lu(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function jwe(e){const t=new Map;for(const r of e)if(typeof r.type=="object"){const i=r.type;i.forEach(o=>{N.assert(typeof o=="number")}),t.set(r.name,i)}return t}function UD(e){return Mo(e.indentStyle)&&(e.indentStyle=$we.get(e.indentStyle.toLowerCase()),N.assert(e.indentStyle!==void 0)),e}function wz(e){return Xwe.forEach((t,r)=>{const i=e[r];Mo(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function u8(e,t){let r,i;return tD.forEach(o=>{const s=e[o.name];if(s===void 0)return;const l=Ywe.get(o.name);(r||(r={}))[o.name]=l?Mo(s)?l.get(s.toLowerCase()):s:JS(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function mhe(e){let t;return _w.forEach(r=>{const i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function tZ(e){return Mo(e)?nZ(e):e}function nZ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function _he(e){const{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function Uwe(e,t){for(const r of t)if(r.getProjectName()===e)return r}function rZ(e){return!!e.containingProjects}function Hwe(e){return!!e.configFileInfo}function HD(e,t,r,i,o){var s;const l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let u;const p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){const m=fl(p.sourceFile.fileName),y=e.projectService.findConfiguredProjectByProjectName(m);if(y){const T=r(y);if(T)return T}else if(i!==0){u=new Map;const T=hhe(l,e.getCompilerOptions(),(A,R)=>p===A?h(A,R):void 0,i,e.projectService,u);if(T)return T;u.clear()}}return hhe(l,e.getCompilerOptions(),(m,y)=>p!==m?h(m,y):void 0,i,e.projectService,u);function h(m,y){const T=fl(m.sourceFile.fileName),A=e.projectService.findConfiguredProjectByProjectName(T)||(y===0?void 0:y===1?e.projectService.createConfiguredProject(T):y===2?e.projectService.createAndLoadConfiguredProject(T,o):N.assertNever(y));return A&&r(A)}}function hhe(e,t,r,i,o,s){const l=t.disableReferencedProjectLoad?0:i;return Xe(e,u=>{if(!u)return;const p=fl(u.sourceFile.fileName),h=o.toCanonicalFileName(p),m=s==null?void 0:s.get(h);if(m!==void 0&&m>=l)return;const y=r(u,l);return y||((s||(s=new Map)).set(h,l),u.references&&hhe(u.references,u.commandLine.options,r,l,o,s))})}function qwe(e,t){return e.potentialProjectReferences&&fh(e.potentialProjectReferences,t)}function $at(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?qwe(e,i):Xe(e.getProjectReferences(),r)}function ghe(e,t,r){const i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function Jwe(e,t){return $at(e,r=>ghe(e,t,r.sourceFile.path),r=>ghe(e,t,e.toPath(pD(r))),r=>ghe(e,t,r))}function Qat(e,t){return`${Mo(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Kwe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function OI(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function Vp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function vhe(e){w0(e)&&(e.projectOptions=!0)}function yhe(e){let t=1;return()=>e(t++)}function bhe(){return{idToCallbacks:new Map,pathToId:new Map}}function Zat(e,t){if(!t||!e.eventHandler||!e.session)return;const r=bhe(),i=bhe(),o=bhe();let s=1;return e.session.addProtocolHandler("watchChange",A=>(h(A.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(A,R){return p(r,A,R,M=>({eventName:Uz,data:{id:M,path:A}}))}function u(A,R,M){return p(M?o:i,A,R,C=>({eventName:Hz,data:{id:C,path:A,recursive:!!M,ignoreUpdate:A.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:A,idToCallbacks:R},M,C,O){const U=e.toPath(M);let K=A.get(U);K||A.set(U,K=s++);let Q=R.get(K);return Q||(R.set(K,Q=new Set),e.eventHandler(O(K))),Q.add(C),{close(){const V=R.get(K);V!=null&&V.delete(C)&&(V.size||(R.delete(K),A.delete(U),e.eventHandler({eventName:qz,data:{id:K}})))}}}function h(A){To(A)?A.forEach(m):m(A)}function m({id:A,created:R,deleted:M,updated:C}){y(A,R,0),y(A,M,2),y(A,C,1)}function y(A,R,M){R!=null&&R.length&&(T(r,A,R,(C,O)=>C(O,M)),T(i,A,R,(C,O)=>C(O)),T(o,A,R,(C,O)=>C(O)))}function T(A,R,M,C){var O;(O=A.idToCallbacks.get(R))==null||O.forEach(U=>{M.forEach(K=>C(U,Lu(K)))})}}function est(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Ehe(e){return e.kind!==void 0}function She(e){e.print(!1,!1,!1)}var Oz,Wz,d8,Fz,zz,Bz,Gz,Vz,jz,iZ,Uz,Hz,qz,The,Xwe,Ywe,$we,oZ,Jz,Kz,aZ,sZ,Ahe,lZ,tst=I({"src/server/editorServices.ts"(){ob(),cT(),lhe(),Oz=20*1024*1024,Wz=4*1024*1024,d8="projectsUpdatedInBackground",Fz="projectLoadingStart",zz="projectLoadingFinish",Bz="largeFileReferenced",Gz="configFileDiag",Vz="projectLanguageServiceState",jz="projectInfo",iZ="openFileInfo",Uz="createFileWatcher",Hz="createDirectoryWatcher",qz="closeFileWatcher",The="*ensureProjectForOpenFiles*",Xwe=jwe(lg),Ywe=jwe(tD),$we=new Map(Object.entries({none:0,block:1,smart:2})),oZ={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},Jz={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){const i=Gx(e);i&&bt(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>bt(t,r=>r.isMixedContent&&Il(e,r.extension))},Kz={getFileName:e=>e.fileName,getScriptKind:e=>tZ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},aZ={close:Ya},sZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(sZ||{}),Ahe=class _be{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=yhe(H_e),this.newAutoImportProviderProjectName=yhe(q_e),this.newAuxiliaryProjectName=yhe(J_e),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=oZ,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=Ya,this.verifyDocumentRegistry=Ya,this.verifyProgram=Ya,this.onProjectCreation=Ya;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||Lz,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||gc,this.pluginProbeLocations=t.pluginProbeLocations||gc,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?$r(ai(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=$p()),this.currentDirectory=fl(this.host.getCurrentDirectory()),this.toCanonicalFileName=Mu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Fc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new jQ(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new KQ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:O7(this.host.newLine),preferences:Mf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=LX(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):Ya;this.packageJsonCache=xhe(this),this.watchFactory=this.serverMode!==0?{watchFile:gD,watchDirectory:gD}:oJ(Zat(this,t.canUseWatchEvents)||this.host,i,o,Qat),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return il(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return go(t,this.host.getCurrentDirectory())}setDocument(t,r,i){const o=N.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){const i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;const i={eventName:Vz,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{const t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const r=JSON.parse(t);for(const i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(const i in r.simpleMap)Is(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=oZ,this.legacySafelist.clear()}}updateTypingsForProject(t){const r=this.findProject(t.projectName);if(r)switch(t.kind){case Hw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case qw:this.typingsCache.enqueueInstallTypingsForProject(r,r.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(The,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),c8(t))return;const r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&Vp(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:d8,data:{openFiles:zo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;const i={eventName:Bz,data:{file:t,fileSize:r,maxFileSize:Wz}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:Fz,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const r={eventName:zz,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(const i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){N.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const i=wz(t),o=u8(t,r),s=mhe(t);i.allowNonTsExtensions=!0;const l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(const u of this.inferredProjects)(l?u.projectRootPath===l:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(s),u.setWatchOptions(o==null?void 0:o.watchOptions),u.setProjectErrors(o==null?void 0:o.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return U_e(t)?Uwe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(fl(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){const r=Mo(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();const r=Mo(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(Mo(t)?t:t.fileName),Zv.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const r=i=>{t=Vp(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){const r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){const r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){r===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(Mo(t.sourceMapFilePath)){const r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r&&r.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){const r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);const r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){const i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,u=>{const p=this.toPath(u),h=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(u,p);if(ic(p)==="package.json"&&!vO(p)&&(h&&h.fileExists||!h&&this.host.fileExists(u))){const y=this.getNormalizedAbsolutePath(u);this.logger.info(`Config: ${i} Detected new package.json: ${y}`),this.packageJsonCache.addOrUpdate(y,p),this.watchPackageJsonFile(y,p,l)}const m=this.findConfiguredProjectByProjectName(i);ww({watchedDirPath:this.toPath(t),fileOrDirectory:u,fileOrDirectoryPath:p,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:(m==null?void 0:m.getCurrentProgram())||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:y=>this.logger.info(y),toPath:y=>this.toPath(y),getScriptKind:m?y=>m.getScriptKind(y):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((y,T)=>{if(!y)return;const A=this.getConfiguredProjectByCanonicalConfigFilePath(T);if(!A)return;const R=m===A?1:0;if(!(A.pendingUpdateLevel!==void 0&&A.pendingUpdateLevel>R))if(this.openFiles.has(p))if(N.checkDefined(this.getScriptInfoForPath(p)).isAttached(A)){const C=Math.max(R,A.openFileWatchTriggered.get(p)||0);A.openFileWatchTriggered.set(p,C)}else A.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(A);else A.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(A)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),Lc.WildcardDirectory,i);const l={packageJsonWatches:void 0,close(){var u;s&&(s.close(),s=void 0,(u=l.packageJsonWatches)==null||u.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){const i=this.configFileExistenceInfoCache.get(t);if(!(i!=null&&i.config))return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{const u=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(u)if(o=!0,l===t){if(u.isInitialLoadPending())return;u.pendingUpdateLevel=2,u.pendingUpdateReason=r,this.delayUpdateProjectGraph(u)}else u.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(u)}),o}onConfigFileChanged(t,r){var i;const o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;const s=(i=o.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;s&&this.removeProject(s)}else o.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(o.openFilesImpactedByConfigFile,!1,!0,r!==2?tl:Iv,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),N.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>N.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(zo(Kb(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(o=>o.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:_A(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:_A(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){N.assert(t.isOrphan());const i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:ai(dp(t.fileName)?t.fileName:go(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(wx(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(const o of this.inferredProjects){if(o===i||o.isOrphan())continue;const s=o.getRootScriptInfos();N.assert(s.length===1||!!o.projectRootPath),s.length===1&&Xe(s[0].containingProjects,l=>l!==s[0].containingProjects[0]&&!l.isOrphan())&&o.removeFile(s[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){const i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);const o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(const l of t.containingProjects){if(w0(l)){t.hasMixedContent&&t.registerFileUpdate();const u=l.openFileWatchTriggered.get(t.path);u!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevel<u&&(l.pendingUpdateLevel=u,l.markFileAsDirty(t.path)))}else jD(l)&&l.isRoot(t)&&(l.isProjectWithSingleRoot()&&(s=!0),l.removeFile(t,i,!0));l.languageServiceEnabled||l.markAsDirty()}return this.openFiles.delete(t.path),this.configFileForOpenFiles.delete(t.path),!r&&s&&this.assignOrphanScriptInfosToInferredProject(),i?this.watchClosedScriptInfo(t):this.handleDeletedFile(t),s}deleteScriptInfo(t){this.filenameToScriptInfo.delete(t.path),this.filenameToScriptInfoVersion.set(t.path,t.textStorage.version);const r=t.getRealpathIfDifferent();r&&this.realpathToScriptInfos.remove(r,t)}configFileExists(t,r,i){var o;let s=this.configFileExistenceInfoCache.get(r);if(s)return rZ(i)&&!((o=s.openFilesImpactedByConfigFile)!=null&&o.has(i.path))&&(s.openFilesImpactedByConfigFile||(s.openFilesImpactedByConfigFile=new Map)).set(i.path,!1),s.exists;const l=this.host.fileExists(t);let u;return rZ(i)&&(u||(u=new Map)).set(i.path,!1),s={exists:l,openFilesImpactedByConfigFile:u},this.configFileExistenceInfoCache.set(r,s),l}createConfigFileWatcherForParsedConfig(t,r,i){var o,s;const l=this.configFileExistenceInfoCache.get(r);(!l.watcher||l.watcher===aZ)&&(l.watcher=this.watchFactory.watchFile(t,(p,h)=>this.onConfigFileChanged(r,h),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l==null?void 0:l.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),Lc.ConfigFile,i));const u=l.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&zc(t.openFilesImpactedByConfigFile,tl)}releaseParsedConfig(t,r){var i,o,s;const l=this.configFileExistenceInfoCache.get(t);(i=l.config)!=null&&i.projects.delete(r.canonicalConfigFilePath)&&((o=l.config)!=null&&o.projects.size||(l.config=void 0,rJ(t,this.sharedExtendedConfigFileWatchers),N.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?y7(Wc(ai(t)))||(l.watcher.close(),l.watcher=aZ):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){N.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;const l=this.configFileExistenceInfoCache.get(r);if(l){const u=(i=l.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(o=l.openFilesImpactedByConfigFile)==null||o.delete(t.path),u&&this.closeConfigFileWatcherOnReleaseOfOpenFile(l),!((s=l.openFilesImpactedByConfigFile)!=null&&s.size)&&!l.config&&(N.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){N.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o||(o={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile||(o.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),o.watcher||(o.watcher=y7(Wc(ai(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,Lc.ConfigFileForInferredRoot):aZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;const o=this.configFileExistenceInfoCache.get(r);(i=o==null?void 0:o.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(N.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;N.assert(!rZ(t)||this.openFiles.has(t.path));const i=this.openFiles.get(t.path);if(N.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=ai(t.fileName);const l=()=>gm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l();let p=!Hwe(t);do{if(p){const m=a8(s,this.currentDirectory,this.toCanonicalFileName),y=$r(s,"tsconfig.json");let T=r($r(m,"tsconfig.json"),y);if(T)return y;const A=$r(s,"jsconfig.json");if(T=r($r(m,"jsconfig.json"),A),T)return A;if(Q6(m))break}const h=ai(s);if(h===s)break;s=h,p=!0}while(u||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;const r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&OI(i,t)?i:i==null?void 0:i.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!Hwe(t)){const i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${ai(t.fileName)}`);const r=this.forEachConfigFileLocation(t,(i,o)=>this.configFileExists(o,i,t));return r?this.logger.info(`For info: ${t.fileName} :: Config file name: ${r}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),rZ(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(She),this.configuredProjects.forEach(She),this.inferredProjects.forEach(She),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(o=>o.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){const r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return Uwe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=Oz;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>s-=u||0);let l=0;for(const u of i){const p=o.getFileName(u);if(!GA(p)&&(l+=this.host.getFileSize(p),l>Oz||l>s)){const h=i.map(m=>o.getFileName(m)).filter(m=>!GA(m)).map(m=>({name:m,size:this.host.getFileSize(m)})).sort((m,y)=>y.size-m.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${h.map(m=>`${m.name}:${m.size}`).join(", ")}`),p}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){const l=wz(i),u=u8(i,ai(Lu(t))),p=new kz(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,Kz),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u==null?void 0:u.watchOptions);return p.setProjectErrors(u==null?void 0:u.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,Kz,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){vhe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){vhe(t);return}const r=w0(t)?t.projectOptions:void 0;vhe(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:l8(t.getScriptInfos(),!0),compilerOptions:ise(t.getCompilationSettings()),typeAcquisition:s(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:o(),projectType:t instanceof kz?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Re};this.eventHandler({eventName:jz,data:i});function o(){return w0(t)&&VQ(t.getConfigFilePath())||"other"}function s({enable:l,include:u,exclude:p}){return{enable:l,include:u!==void 0&&u.length!==0,exclude:p!==void 0&&p.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t){var r;(r=sr)==null||r.instant(sr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);const i=this.toCanonicalFileName(t);let o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:i7(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const s=new eZ(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){const i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){const i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){const i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);const s=ha(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=l.config.parsedCommandLine;N.assert(!!u.fileNames);const p=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=NP(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);const h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,u.fileNames,Jz);h?(t.disableLanguageService(h),this.configFileExistenceInfoCache.forEach((y,T)=>this.stopWatchingWildCards(T,t))):(t.setCompilerOptions(p),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);const m=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,m,Jz,p,u.typeAcquisition,u.compileOnSave,u.watchOptions),(o=sr)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,u;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}const p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||i7(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),h=DP(t,R=>this.host.readFile(R)),m=ow(t,Mo(h)?h:""),y=m.parseDiagnostics;Mo(h)||y.push(h);const T=cw(m,p,ai(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);T.errors.length&&y.push(...T.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:T.fileNames,options:T.options,watchOptions:T.watchOptions,projectReferences:T.projectReferences},void 0," ")}`);const A=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=T,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:T,cachedDirectoryStructureHost:p,projects:new Map},!A&&!j3(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(T.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),o7(r,T.options,this.sharedExtendedConfigFileWatchers,(R,M)=>this.watchFactory.watchFile(R,()=>{var C;a7(this.extendedConfigCache,M,U=>this.toPath(U));let O=!1;(C=this.sharedExtendedConfigFileWatchers.get(M))==null||C.projects.forEach(U=>{O=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(U,`Change in extended config file ${R} detected`)||O}),O&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,Lc.ExtendedConfigFile,t),R=>this.toPath(R)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,kw(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(s,l)=>this.watchWildcardDirectory(s,l,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;ep(i.watchedDirectories,Cf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){const i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!zc(i.config.projects,tl)&&(i.config.watchedDirectories&&(ep(i.config.watchedDirectories,Cf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){const o=t.getRootFilesMap(),s=new Map;for(const l of r){const u=i.getFileName(l),p=fl(u),h=s8(p);let m;if(!h&&!t.fileExists(u)){m=a8(p,this.currentDirectory,this.toCanonicalFileName);const y=o.get(m);y?(y.info&&(t.removeFile(y.info,!1,!0),y.info=void 0),y.fileName=p):o.set(m,{fileName:p})}else{const y=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),T=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),A=N.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,y,T,t.directoryStructureHost));m=A.path;const R=o.get(m);!R||R.info!==A?(t.addRoot(A,p),A.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(A)):R.fileName=p}s.set(m,!0)}o.size>s.size&&o.forEach((l,u)=>{s.has(u)||(l.info?t.removeFile(l.info,t.fileExists(l.info.fileName),!0):o.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,u){t.setCompilerOptions(o),t.setWatchOptions(u),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){const r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),Jz),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;N.assert(r.updateLevel===1);const i=r.parsedCommandLine.options.configFile.configFileSpecs,o=CP(i,ai(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,Jz)}reloadConfiguredProject(t,r,i,o){const s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();const l=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${l}`),this.loadConfiguredProject(t,r),t.updateGraph(),this.sendConfigFileDiagEvent(t,l)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:Gz,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){const o=this.toCanonicalFileName(r);for(const s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(const o of this.inferredProjects)o.projectRootPath&&gm(o.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>o.projectRootPath.length||(i=o));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){N.assert(!this.useSingleInferredProject);const r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(const i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){const o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects;let s,l;i&&(s=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),l=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),s===void 0&&(s=this.watchOptionsForInferredProjects),l===void 0&&(l=this.typeAcquisitionForInferredProjects),s=s||void 0;const u=new YQ(this,this.documentRegistry,o,s==null?void 0:s.watchOptions,i,t,l);return u.setProjectErrors(s==null?void 0:s.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(fl(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(fl(t))}getScriptInfoOrConfig(t){const r=fl(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;const o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){const r=zo(this.filenameToScriptInfo.entries(),([i,o])=>({path:i,fileName:o.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}.
All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){const o=t.getRealpathIfDifferent();o&&Xe(this.realpathToScriptInfos.get(o),i),Xe(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(const s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?zc(r,(l,u)=>u===o.path?!1:Or(l,s))||r.add(o.path,s):(r=$p(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(N.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!uo(t.path,this.globalCacheLocationDirectoryPath))){const r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,Lc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;const u=v7(this.toPath(s));if(!u)return;const p=ic(u);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(p==="package.json"||p==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(h=>{var m;(m=h.getModuleSpecifierCache())==null||m.clear()}),o.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{const h=this.getScriptInfoForPath(u);h?Kwe(h)&&this.refreshScriptInfo(h):vA(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,Lc.NodeModules);const o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;const o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return N.assert(!((i=s.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(s.affectedModuleSpecifierCacheProjects||(s.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var l;(l=s.affectedModuleSpecifierCacheProjects)==null||l.delete(r),s.close()}}}watchClosedScriptInfoInNodeModules(t){const r=t+"/node_modules",i=this.toPath(r),o=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return o.refreshScriptInfoRefCount++,{close:()=>{o.refreshScriptInfoRefCount--,o.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||wp).getTime()}refreshScriptInfo(t){const r=this.getModifiedTime(t);if(r!==t.mTime){const i=lV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+ol,this.filenameToScriptInfo.forEach(r=>{Kwe(r)&&uo(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s){if(dp(t)||s8(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);const l=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(l)return l}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,r,i,o,s){return this.getOrCreateScriptInfoWorker(t,r,!0,i,o,s)}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,s,l)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,u){N.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const p=a8(t,r,this.toCanonicalFileName);let h=this.getScriptInfoForPath(p);if(!h){const m=s8(t);if(N.assert(dp(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:zo(this.openFilesWithNonRootedDiskPath.keys())})}
Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),N.assert(!dp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:zo(this.openFilesWithNonRootedDiskPath.keys())})}
Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),N.assert(!m||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:zo(this.openFilesWithNonRootedDiskPath.keys())})}
Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!m&&!(u||this.host).fileExists(t))return;h=new JQ(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!dp(t)&&(!m||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),h):this.watchClosedScriptInfo(h)}return i&&(this.stopWatchingScriptInfo(h),h.open(o),l&&h.registerFileUpdate()),h}getScriptInfoForNormalizedPath(t){return!dp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(a8(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){const o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),Mo(o.sourceMapFilePath)){const m=this.getScriptInfoForPath(o.sourceMapFilePath);if(m&&(m.getSnapshot(),m.documentPositionMapper!==void 0))return m.sourceInfos=this.addSourceInfoToSourceMap(i,t,m.sourceInfos),m.documentPositionMapper?m.documentPositionMapper:void 0;o.sourceMapFilePath=void 0}else if(o.sourceMapFilePath){o.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceMapFilePath.sourceInfos);return}else if(o.sourceMapFilePath!==void 0)return;let s,l,u=(m,y)=>{const T=this.getOrCreateScriptInfoNotOpenedByClient(m,t.currentDirectory,this.host);if(!T){l=y;return}s=T;const A=T.getSnapshot();return T.documentPositionMapper!==void 0?T.documentPositionMapper:ED(A)};const p=t.projectName,h=WX({getCanonicalFileName:this.toCanonicalFileName,log:m=>this.logger.info(m),getSourceFileLike:m=>this.getSourceFileLike(m,p,o)},o.fileName,o.textStorage.getLineInfo(),u);return u=void 0,s?(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.documentPositionMapper=h||!1,s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):l?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:go(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,h}addSourceInfoToSourceMap(t,r,i){if(t){const o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{const o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!Mo(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Lc.MissingSourceMapFile)}getSourceFileLike(t,r,i){const o=r.projectName?r:this.findProject(r);if(o){const l=o.toPath(t),u=o.getSourceFile(l);if(u&&u.resolvedPath===l)return u}const s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&Mo(i.sourceMapFilePath)&&s!==i){const l=this.getScriptInfoForPath(i.sourceMapFilePath);l&&(l.sourceInfos||(l.sourceInfos=new Set)).add(s.path)}return s.cacheSourceFile?s.cacheSourceFile.sourceFile:(s.sourceFileLike||(s.sourceFileLike={get text(){return N.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{const u=s.positionToLineOffset(l);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(l,u,p)=>s.lineOffsetToPosition(l+1,u+1,p)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){const i=this.getScriptInfoForNormalizedPath(fl(t.file));i&&(i.setOptions(UD(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...UD(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(s=>s.forEach(l=>{!l.isClosed()&&l.hasExternalProjectRef()&&l.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(l.getProjectName())&&l.updateGraph()})),o!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(s=>{s.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(r=u8(t.watchOptions))==null?void 0:r.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||t.fileWatcher&&this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,r)=>{this.throttledOperations.cancel(r),this.pendingProjectUpdates.delete(r)}),this.throttledOperations.cancel(The),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Iv,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(t,r,i,o,s){const l=new Map,u=p=>{l.has(p.canonicalConfigFilePath)||(l.set(p.canonicalConfigFilePath,!0),this.reloadConfiguredProject(p,s,!1,r))};t==null||t.forEach((p,h)=>{if(this.configFileForOpenFiles.delete(h),!o(p))return;const m=this.getScriptInfoForPath(h);N.assert(m.isScriptOpen());const y=this.getConfigFileNameForFile(m);if(y){const T=this.findConfiguredProjectByProjectName(y)||this.createConfiguredProject(y);l.has(T.canonicalConfigFilePath)||(l.set(T.canonicalConfigFilePath,!0),i?(T.pendingUpdateLevel=2,T.pendingUpdateReason=s,r&&this.clearSemanticCache(T),this.delayUpdateProjectGraph(T)):(this.reloadConfiguredProject(T,s,!1,r),OI(T,m)||HD(T,m.path,R=>(u(R),OI(R,m)),1)&&HD(T,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){N.assert(t.containingProjects.length>0);const r=t.containingProjects[0];!r.isOrphan()&&jD(r)&&r.isRoot(t)&&Xe(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Vp),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(fl(t),r,i,!1,o?fl(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){const i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;const{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;const u={fileName:fl(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(u);if(!p)return;let h=this.findConfiguredProjectByProjectName(p);if(!h){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l!=null&&l.containingProjects.length?o:r;h=this.createAndLoadConfiguredProject(p,`Creating project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`)}Vp(h);const m=A=>{const R=this.getScriptInfo(s);return R&&OI(A,R)};if(h.isSolution()||!m(h)){if(h=HD(h,s,A=>(Vp(A),m(A)?A:void 0),2,`Creating project referenced in solution ${h.projectName} to find possible configured project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`),!h)return;if(h===t)return o}T(h);const y=this.getScriptInfo(s);if(!y||!y.containingProjects.length)return;return y.containingProjects.forEach(A=>{w0(A)&&T(A)}),o;function T(A){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(A.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return In(this.externalProjects,r=>(Vp(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){const l=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,r,i,o);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i,o=this.findExternalProjectContainingOpenScriptInfo(t),s,l,u=!1;return!o&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(o=this.findConfiguredProjectByProjectName(r),o?Vp(o):(o=this.createLoadAndUpdateConfiguredProject(r,`Creating possible configured project for ${t.fileName} to open`),u=!0),l=o.containsScriptInfo(t)?o:void 0,s=o,OI(o,t)||HD(o,t.path,p=>{if(Vp(p),To(s)?s.push(p):s=[o,p],OI(p,t))return l=p,p;!l&&p.containsScriptInfo(t)&&(l=p)},2,`Creating project referenced in solution ${o.projectName} to find possible configured project for ${t.fileName} to open`),l?(r=l.getConfigFilePath(),(l!==o||u)&&(i=l.getAllProjectErrors(),this.sendConfigFileDiagEvent(l,t.fileName))):r=void 0,this.createAncestorProjects(t,o))),t.containingProjects.forEach(Vp),t.isOrphan()&&(To(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),N.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),N.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}createAncestorProjects(t,r){if(t.isAttached(r))for(;;){if(!r.isInitialLoadPending()&&(!r.getCompilerOptions().composite||r.getCompilerOptions().disableSolutionSearching))return;const i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;const o=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${r.getProjectName()} of open file ${t.fileName}`);o.isInitialLoadPending()&&o.setPotentialProjectReference(r.canonicalConfigFilePath),r=o}}loadAncestorProjectTree(t){t=t||v6(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);const r=new Set;for(const i of zo(this.configuredProjects.values()))qwe(i,o=>t.has(o))&&Vp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Xb(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;const s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(const l of s){if(!l)continue;const u=vJ(l.references,m=>r.has(m.sourceFile.path)?m:void 0);if(!u)continue;const p=fl(l.sourceFile.fileName),h=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);Vp(h),this.ensureProjectChildren(h,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(const r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){const l=this.getOrCreateOpenScriptInfo(t,r,i,o,s),{retainProjects:u,...p}=this.assignProjectToOpenedScriptInfo(l);return this.cleanupAfterOpeningFile(u),this.telemetryOnOpenFile(l),this.printProjects(),p}removeOrphanConfiguredProjects(t){const r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((u,p)=>{const h=this.getConfiguredProjectByCanonicalConfigFilePath(p);return h&&s(h)})};t&&(To(t)?t.forEach(s):s(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(l=>{l.hasOpenRef()?s(l):r.has(l.canonicalConfigFilePath)&&Jwe(l,u=>o(u)&&s(l))}),r.forEach(l=>this.removeProject(l));function o(l){return l.hasOpenRef()||!r.has(l.canonicalConfigFilePath)}function s(l){r.delete(l.canonicalConfigFilePath)&&(i(l),Jwe(l,s))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(Mo(r.sourceMapFilePath)){const o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!fh(i,o=>{const s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(Mo(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);const o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}),t.forEach(r=>{this.stopWatchingScriptInfo(r),this.deleteScriptInfo(r),r.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Am(this.allJsFilesForOpenFileTelemetry,t.path))return;const r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;const i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:iZ,data:{info:{checkJs:o}}})}closeClientFile(t,r){const i=this.getScriptInfoForNormalizedPath(fl(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(const s of r){const l=In(t,u=>u.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){const i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,this.configuredProjects.values(),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s=!1;if(t)for(const u of t){const p=this.getOrCreateOpenScriptInfo(fl(u.fileName),u.content,tZ(u.scriptKind),u.hasMixedContent,u.projectRootPath?fl(u.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(const u of r){const p=this.getScriptInfo(u.fileName);N.assert(!!p),this.applyChangesToFile(p,u.changes)}if(i)for(const u of i)s=this.closeClientFile(u,!0)||s;let l;o&&(l=Do(o,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):Ne(i)&&this.printProjects()}applyChangesToFile(t,r){for(const i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t==null||t.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){const i=fl(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{const s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){const r=TE(this.externalProjects,i=>i.getProjectName(),i=>!0);fh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(const i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);fh(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=oZ}applySafeList(t){const r=t.typeAcquisition;N.assert(!!r,"proj.typeAcquisition should be set by now");const i=this.applySafeListWorker(t,t.rootFiles,r);return(i==null?void 0:i.excludedFiles)??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;const o=i.include||(i.include=[]),s=[],l=r.map(y=>Lu(y.fileName));for(const y of Object.keys(this.safelist)){const T=this.safelist[y];for(const A of l)if(T.match.test(A)){if(this.logger.info(`Excluding files based on rule ${y} matching file '${A}'`),T.types)for(const R of T.types)o.includes(R)||o.push(R);if(T.exclude)for(const R of T.exclude){const M=A.replace(T.match,(...C)=>R.map(O=>typeof O=="number"?Mo(C[O])?_be.escapeFilenameForRegex(C[O]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${y} - not enough groups`),"\\*"):O).join(""));s.includes(M)||s.push(M)}else{const R=_be.escapeFilenameForRegex(A);s.includes(R)||s.push(R)}}}const u=s.map(y=>new RegExp(y,"i"));let p,h;for(let y=0;y<r.length;y++)if(u.some(T=>T.test(l[y])))m(y);else{if(i.enable){const T=ic(sh(l[y]));if(Il(T,"js")){const A=Ad(T),R=YB(A),M=this.legacySafelist.get(R);if(M!==void 0){this.logger.info(`Excluded '${l[y]}' because it matched ${R} from the legacy safelist`),m(y),o.includes(M)||o.push(M);continue}}}/^.+[.-]min\.js$/.test(l[y])?m(y):p==null||p.push(r[y])}return h?{rootFiles:p,excludedFiles:h}:void 0;function m(y){h||(N.assert(!p),p=r.slice(0,y),h=[]),h.push(l[y])}}openExternalProject(t,r){const i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName);let s,l=[];for(const u of t.rootFiles){const p=fl(u.fileName);if(VQ(p)){if(this.serverMode===0&&this.host.fileExists(p)){let h=this.findConfiguredProjectByProjectName(p);h||(h=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(p,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(p,`Creating configured project in external project: ${t.projectFileName}`)),o!=null&&o.has(h)||h.addExternalProjectReference(),(s??(s=new Set)).add(h),o==null||o.delete(h)}}else l.push(u)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);const u=t.typeAcquisition||{};u.include=u.include||[],u.exclude=u.exclude||[],u.enable===void 0&&(u.enable=phe(l.map(m=>m.fileName)));const p=this.applySafeListWorker(t,l,u),h=(p==null?void 0:p.excludedFiles)??[];if(l=(p==null?void 0:p.rootFiles)??l,i){i.excludedFiles=h;const m=wz(t.options),y=u8(t.options,i.getCurrentDirectory()),T=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,m,l,Kz);T?i.disableLanguageService(T):i.enableLanguageService(),i.setProjectErrors(y==null?void 0:y.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,Kz,m,u,t.options.compileOnSave,y==null?void 0:y.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,u,h).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(const t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`),!r.name||Sw(r.name).rest){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){const o=lT.importServicePluginAsync(r,i,this.host,l=>this.logger.info(l));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let s=this.pendingPluginEnablements.get(t);s||this.pendingPluginEnablements.set(t,s=[]),s.push(o);return}this.endEnablePlugin(t,lT.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){const l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){const u=r.name;r=l,r.name=u}t.enableProxy(i,r)}else Xe(o,l=>this.logger.info(l)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const t=zo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){N.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Wt(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){const i=await Promise.all(r);if(!t.isClosed()){for(const o of i)this.endEnablePlugin(t,o);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){const o=this.packageJsonCache,s=i&&this.toPath(i),l=[],u=p=>{switch(o.directoryHasPackageJson(p)){case 3:return o.searchDirectoryAndAncestors(p),u(p);case-1:const h=$r(p,"package.json");this.watchPackageJsonFile(h,this.toPath(h),r);const m=o.getInDirectory(p);m&&l.push(m)}if(s&&s===p)return!0};return ym(ai(t),u),l}getNearestAncestorDirectoryWithPackageJson(t){return ym(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists($r(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){N.assert(i!==void 0);let o=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!o){let s=this.watchFactory.watchFile(t,(l,u)=>{switch(u){case 0:return N.fail();case 1:this.packageJsonCache.addOrUpdate(l,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,Lc.PackageJson);o={projects:new Set,close:()=>{var l;o.projects.size||!s||(s.close(),s=void 0,(l=this.packageJsonFilesMap)==null||l.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=est())}},Ahe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,lZ=Ahe}});function Ihe(e){let t,r,i;const o={get(p,h,m,y){if(!(!r||i!==l(p,m,y)))return r.get(h)},set(p,h,m,y,T,A){if(s(p,m,y).set(h,u(T,A,!1)),A){for(const R of T)if(R.isInNodeModules){const M=R.path.substring(0,R.path.indexOf(Ah)+Ah.length-1),C=e.toPath(M);t!=null&&t.has(C)||(t||(t=new Map)).set(C,e.watchNodeModulesForPackageJsonChanges(M))}}},setModulePaths(p,h,m,y,T){const A=s(p,m,y),R=A.get(h);R?R.modulePaths=T:A.set(h,u(T,void 0,void 0))},setBlockedByPackageJsonDependencies(p,h,m,y,T){const A=s(p,m,y),R=A.get(h);R?R.isBlockedByPackageJsonDependencies=T:A.set(h,u(void 0,void 0,T))},clear(){t==null||t.forEach(Xm),r==null||r.clear(),t==null||t.clear(),i=void 0},count(){return r?r.size:0}};return N.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,h,m){const y=l(p,h,m);return r&&i!==y&&o.clear(),i=y,r||(r=new Map)}function l(p,h,m){return`${p},${h.importModuleSpecifierEnding},${h.importModuleSpecifierPreference},${m.overrideImportMode}`}function u(p,h,m){return{modulePaths:p,moduleSpecifiers:h,isBlockedByPackageJsonDependencies:m}}}var nst=I({"src/server/moduleSpecifierCache.ts"(){ob()}});function xhe(e){const t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(ai(l),!0)},getInDirectory:l=>t.get(e.toPath($r(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{ym(l,u=>{const p=e.toPath(u);if(s(p)!==3)return!0;const h=$r(u,"package.json");gO(e,h)?i(h,$r(p,"package.json")):r.set(p,!0)})}};function i(l,u){const p=N.checkDefined(mX(l,e.host));t.set(u,p),r.delete(ai(u))}function o(l){t.delete(l),r.delete(ai(l))}function s(l){return t.has($r(l,"package.json"))?-1:r.has(l)?0:3}}var rst=I({"src/server/packageJsonCache.ts"(){ob()}});function ist(e){const t=e[0],r=e[1];return(1e9*t+r)/1e6}function Qwe(e,t){if((jD(e)||XQ(e))&&e.isJsOnlyProject()){const r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function ost(e){return Rf(e)||!!e.emitDecoratorMetadata}function Zwe(e,t,r){const i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:O_(r.messageText,`
`),code:r.code,category:lS(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Wt(r.relatedInformation,cZ)}}function cZ(e){return e.file?{span:{start:p8(ys(e.file,e.start)),end:p8(ys(e.file,e.start+e.length)),file:e.file.fileName},message:O_(e.messageText,`
`),category:lS(e),code:e.code}:{message:O_(e.messageText,`
`),category:lS(e),code:e.code}}function p8(e){return{line:e.line+1,offset:e.character+1}}function f8(e,t){const r=e.file&&p8(ys(e.file,e.start)),i=e.file&&p8(ys(e.file,e.start+e.length)),o=O_(e.messageText,`
`),{code:s,source:l}=e,u=lS(e),p={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Wt(e.relatedInformation,cZ)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function ast(e,t){return e.every(r=>Kl(r.span)<t)}function Rhe(e,t,r,i){const o=t.hasLevel(3),s=JSON.stringify(e);return o&&t.info(`${e.type}:${N0(e)}`),`Content-Length: ${1+r(s,"utf8")}\r
\r
${s}${i}`}function Dhe(e,t){return{seq:0,type:"event",event:e,body:t}}function sst(e,t,r,i){const o=kp(To(r)?r:r.projects,s=>i(s,e));return!To(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{const u=t(l);o.push(...Do(s,p=>i(p,u)))}),SE(o,xv)}function uZ(e){return KB(({textSpan:t})=>t.start+100003*t.length,ZK(e))}function lst(e,t,r,i,o,s,l){const u=eOe(e,t,r,!0,(m,y)=>m.getLanguageService().findRenameLocations(y.fileName,y.pos,i,o,s),(m,y)=>y(xM(m)));if(To(u))return u;const p=[],h=uZ(l);return u.forEach((m,y)=>{for(const T of m)!h.has(T)&&!dZ(xM(T),y)&&(p.push(T),h.add(T))}),p}function cst(e,t,r){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Kc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function ust(e,t,r,i,o){var s,l;const u=eOe(e,t,r,!1,(y,T)=>(o.info(`Finding references to ${T.fileName} position ${T.pos} in project ${y.getProjectName()}`),y.getLanguageService().findReferences(T.fileName,T.pos)),(y,T)=>{T(xM(y.definition));for(const A of y.references)T(xM(A))});if(To(u))return u;const p=u.get(t);if(((l=(s=p==null?void 0:p[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)u.forEach(y=>{for(const T of y)for(const A of T.references)delete A.isDefinition});else{const y=uZ(i);for(const A of p)for(const R of A.references)if(R.isDefinition){y.add(R);break}const T=new Set;for(;;){let A=!1;if(u.forEach((R,M)=>{if(T.has(M))return;M.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,y)&&(T.add(M),A=!0)}),!A)break}u.forEach((A,R)=>{if(!T.has(R))for(const M of A)for(const C of M.references)C.isDefinition=!1})}const h=[],m=uZ(i);return u.forEach((y,T)=>{for(const A of y){const R=dZ(xM(A.definition),T),M=R===void 0?A.definition:{...A.definition,textSpan:vu(R.pos,A.definition.textSpan.length),fileName:R.fileName,contextSpan:fst(A.definition,T)};let C=In(h,O=>QK(O.definition,M,i));C||(C={definition:M,references:[]},h.push(C));for(const O of A.references)!m.has(O)&&!dZ(xM(O),T)&&(m.add(O),C.references.push(O))}}),h.filter(y=>y.references.length!==0)}function Nhe(e,t,r){for(const i of To(e)?e:e.projects)r(i,t);!To(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(const s of i)r(s,o)})}function eOe(e,t,r,i,o,s){const l=new Map,u=M2();u.enqueue({project:t,location:r}),Nhe(e,r.fileName,(M,C)=>{const O={fileName:C,pos:r.pos};u.enqueue({project:M,location:O})});const p=t.projectService,h=t.getCancellationToken(),m=cst(t,r,i),y=Sd(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),T=Sd(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetSourcePosition(m)),A=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(h.isCancellationRequested())break e;const{project:M,location:C}=u.dequeue();if(l.has(M)||tOe(M,C)||(Vp(M),!M.containsFile(fl(C.fileName))))continue;const O=R(M,C);l.set(M,O??gc),A.add(pst(M))}m&&(p.loadAncestorProjectTree(A),p.forEachEnabledProject(M=>{if(h.isCancellationRequested()||l.has(M))return;const C=dst(m,M,y,T);C&&u.enqueue({project:M,location:C})}))}if(l.size===1)return jB(l.values());return l;function R(M,C){const O=o(M,C);if(O){for(const U of O)s(U,K=>{const Q=p.getOriginalLocationEnsuringConfiguredProject(M,K);if(!Q)return;const V=p.getScriptInfo(Q.fileName);for(const G of V.containingProjects)!G.isOrphan()&&!l.has(G)&&u.enqueue({project:G,location:Q});const se=p.getSymlinkedProjects(V);se&&se.forEach((G,ne)=>{for(const he of G)!he.isOrphan()&&!l.has(he)&&u.enqueue({project:he,location:{fileName:ne,pos:Q.pos}})})});return O}}}function dst(e,t,r,i){if(t.containsFile(fl(e.fileName))&&!tOe(t,e))return e;const o=r();if(o&&t.containsFile(fl(o.fileName)))return o;const s=i();return s&&t.containsFile(fl(s.fileName))?s:void 0}function tOe(e,t){if(!t)return!1;const r=e.getLanguageService().getProgram();if(!r)return!1;const i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function pst(e){return w0(e)?e.canonicalConfigFilePath:e.getProjectName()}function xM({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function dZ(e,t){return oM(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function nOe(e,t){return a5(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function fst(e,t){return tX(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Rh(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Kl(e))}}function Che(e,t,r){const i=Rh(e,r),o=t&&Rh(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function mst(e,t){return{start:rOe(t,e.span.start),end:rOe(t,Kl(e.span)),newText:e.newText}}function rOe(e,t){return Ehe(e)?hst(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function _st(e,t){const r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function hst(e){return{line:e.line+1,offset:e.character+1}}function gst(e){N.assert(e.textChanges.length===1);const t=Ua(e.textChanges);return N.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function Phe(e,t,r,i){const o=vst(e,t,i),{line:s,character:l}=Vx(bA(o),r);return{line:s+1,offset:l+1}}function vst(e,t,r){for(const{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){const{newText:l,span:{start:u,length:p}}=o[s];e=e.slice(0,u)+l+e.slice(u+p)}return e}function iOe(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){const u=N.checkDefined(e.getScriptInfo(t)),p=Che(r,i,u),h=l?void 0:yst(u,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function yst(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Kl(r)).replace(/\r|\n/g,"")}function bst(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var Mhe,Lhe,oOe,khe,aOe,whe,Est=I({"src/server/session.ts"(){ob(),cT(),lhe(),Mhe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Lhe=HQ,oOe=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){const r=this.requestId;N.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){const i=this.requestId;N.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r))},t,e))}executeAction(e){var t,r,i,o,s,l;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=sr)==null||t.instant(sr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=sr)==null||r.push(sr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=sr)==null||i.pop())}catch(p){(o=sr)==null||o.popAll(),u=!0,p instanceof zx?(s=sr)==null||s.instant(sr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=sr)==null||l.instant(sr.Phase.Session,"stepError",{seq:this.requestId,message:p.message}),this.operationHost.logError(p,`delayed processing of request ${this.requestId}`))}(u||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},khe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],aOe=[...khe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],whe=class dte{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const s={version:Re};return this.requiredResponse(s)},openExternalProject:s=>(this.projectService.openExternalProject(s.arguments,!0),this.requiredResponse(!0)),openExternalProjects:s=>(this.projectService.openExternalProjects(s.arguments.projects),this.requiredResponse(!0)),closeExternalProject:s=>(this.projectService.closeExternalProject(s.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:s=>{const l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);const u=Wt(l,p=>!p.projectErrors||p.projectErrors.length===0?p:{info:p.info,changes:p.changes,files:p.files,projectErrors:this.convertToDiagnosticsWithLinePosition(p.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&Qa(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&Qa(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:Kb(GB(l.textChanges),u=>{const p=N.checkDefined(this.projectService.getScriptInfo(l.fileName)),h=p.lineOffsetToPosition(u.start.line,u.start.offset),m=p.lineOffsetToPosition(u.end.line,u.end.offset);return h>=0?{span:{start:h,length:m-h},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&Qa(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:GB(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:s=>this.requiredResponse(this.getDefinition(s.arguments,!0)),"definition-full":s=>this.requiredResponse(this.getDefinition(s.arguments,!1)),definitionAndBoundSpan:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!0)),"definitionAndBoundSpan-full":s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!1)),findSourceDefinition:s=>this.requiredResponse(this.findSourceDefinition(s.arguments)),"emit-output":s=>this.requiredResponse(this.getEmitOutput(s.arguments)),typeDefinition:s=>this.requiredResponse(this.getTypeDefinition(s.arguments)),implementation:s=>this.requiredResponse(this.getImplementation(s.arguments,!0)),"implementation-full":s=>this.requiredResponse(this.getImplementation(s.arguments,!1)),references:s=>this.requiredResponse(this.getReferences(s.arguments,!0)),"references-full":s=>this.requiredResponse(this.getReferences(s.arguments,!1)),rename:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!0)),"renameLocations-full":s=>this.requiredResponse(this.getRenameLocations(s.arguments,!1)),"rename-full":s=>this.requiredResponse(this.getRenameInfo(s.arguments)),open:s=>(this.openClientFile(fl(s.arguments.file),s.arguments.fileContent,nZ(s.arguments.scriptKindName),s.arguments.projectRootPath?fl(s.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!0)),"quickinfo-full":s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!1)),getOutliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!0)),outliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!1)),todoComments:s=>this.requiredResponse(this.getTodoComments(s.arguments)),indentation:s=>this.requiredResponse(this.getIndentation(s.arguments)),nameOrDottedNameSpan:s=>this.requiredResponse(this.getNameOrDottedNameSpan(s.arguments)),breakpointStatement:s=>this.requiredResponse(this.getBreakpointStatement(s.arguments)),braceCompletion:s=>this.requiredResponse(this.isValidBraceCompletion(s.arguments)),docCommentTemplate:s=>this.requiredResponse(this.getDocCommentTemplate(s.arguments)),getSpanOfEnclosingComment:s=>this.requiredResponse(this.getSpanOfEnclosingComment(s.arguments)),fileReferences:s=>this.requiredResponse(this.getFileReferences(s.arguments,!0)),"fileReferences-full":s=>this.requiredResponse(this.getFileReferences(s.arguments,!1)),format:s=>this.requiredResponse(this.getFormattingEditsForRange(s.arguments)),formatonkey:s=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(s.arguments)),"format-full":s=>this.requiredResponse(this.getFormattingEditsForDocumentFull(s.arguments)),"formatonkey-full":s=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(s.arguments)),"formatRange-full":s=>this.requiredResponse(this.getFormattingEditsForRangeFull(s.arguments)),completionInfo:s=>this.requiredResponse(this.getCompletions(s.arguments,"completionInfo")),completions:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions")),"completions-full":s=>this.requiredResponse(this.getCompletions(s.arguments,"completions-full")),completionEntryDetails:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!1)),"completionEntryDetails-full":s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!0)),compileOnSaveAffectedFileList:s=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(s.arguments)),compileOnSaveEmitFile:s=>this.requiredResponse(this.emitFile(s.arguments)),signatureHelp:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!0)),"signatureHelp-full":s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!1)),"compilerOptionsDiagnostics-full":s=>this.requiredResponse(this.getCompilerOptionsDiagnostics(s.arguments)),"encodedSyntacticClassifications-full":s=>this.requiredResponse(this.getEncodedSyntacticClassifications(s.arguments)),"encodedSemanticClassifications-full":s=>this.requiredResponse(this.getEncodedSemanticClassifications(s.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:s=>this.requiredResponse(this.getSemanticDiagnosticsSync(s.arguments)),syntacticDiagnosticsSync:s=>this.requiredResponse(this.getSyntacticDiagnosticsSync(s.arguments)),suggestionDiagnosticsSync:s=>this.requiredResponse(this.getSuggestionDiagnosticsSync(s.arguments)),geterr:s=>(this.errorCheck.startNew(l=>this.getDiagnostics(l,s.arguments.delay,s.arguments.files)),this.notRequired()),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired()),change:s=>(this.change(s.arguments),this.notRequired()),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.doOutput(void 0,"configure",s.seq,!0),this.notRequired()),reload:s=>(this.reload(s.arguments,s.seq),this.requiredResponse({reloadFinished:!0})),saveto:s=>{const l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{const l=s.arguments;return this.closeClientFile(l.file),this.notRequired()},navto:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!0)),"navto-full":s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!1)),brace:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!0)),"brace-full":s=>this.requiredResponse(this.getBraceMatching(s.arguments,!1)),navbar:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!0)),"navbar-full":s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!1)),navtree:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!0)),"navtree-full":s=>this.requiredResponse(this.getNavigationTree(s.arguments,!1)),documentHighlights:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!0)),"documentHighlights-full":s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!1)),compilerOptionsForInferredProjects:s=>(this.setCompilerOptionsForInferredProjects(s.arguments),this.requiredResponse(!0)),projectInfo:s=>this.requiredResponse(this.getProjectInfo(s.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:s=>this.requiredResponse(this.getJsxClosingTag(s.arguments)),linkedEditingRange:s=>this.requiredResponse(this.getLinkedEditingRange(s.arguments)),getCodeFixes:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!0)),"getCodeFixes-full":s=>this.requiredResponse(this.getCodeFixes(s.arguments,!1)),getCombinedCodeFix:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!0)),"getCombinedCodeFix-full":s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!1)),applyCodeActionCommand:s=>this.requiredResponse(this.applyCodeActionCommand(s.arguments)),getSupportedCodeFixes:s=>this.requiredResponse(this.getSupportedCodeFixes(s.arguments)),getApplicableRefactors:s=>this.requiredResponse(this.getApplicableRefactors(s.arguments)),getEditsForRefactor:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!0)),getMoveToRefactoringFileSuggestions:s=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(s.arguments)),"getEditsForRefactor-full":s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!1)),organizeImports:s=>this.requiredResponse(this.organizeImports(s.arguments,!0)),"organizeImports-full":s=>this.requiredResponse(this.organizeImports(s.arguments,!1)),getEditsForFileRename:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!0)),"getEditsForFileRename-full":s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!1)),configurePlugin:s=>(this.configurePlugin(s.arguments),this.doOutput(void 0,"configurePlugin",s.seq,!0),this.notRequired()),selectionRange:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!0)),"selectionRange-full":s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!1)),prepareCallHierarchy:s=>this.requiredResponse(this.prepareCallHierarchy(s.arguments)),provideCallHierarchyIncomingCalls:s=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(s.arguments)),provideCallHierarchyOutgoingCalls:s=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(s.arguments)),toggleLineComment:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!0)),"toggleLineComment-full":s=>this.requiredResponse(this.toggleLineComment(s.arguments,!1)),toggleMultilineComment:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!0)),"toggleMultilineComment-full":s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!1)),commentSelection:s=>this.requiredResponse(this.commentSelection(s.arguments,!0)),"commentSelection-full":s=>this.requiredResponse(this.commentSelection(s.arguments,!1)),uncommentSelection:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!0)),"uncommentSelection-full":s=>this.requiredResponse(this.uncommentSelection(s.arguments,!1)),provideInlayHints:s=>this.requiredResponse(this.provideInlayHints(s.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||Lz,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;const i={executeWithRequestId:(s,l)=>this.executeWithRequestId(s,l),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:s=>this.sendRequestCompletedEvent(s),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new oOe(i);const o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new lZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new UQ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:khe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:aOe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:N.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case d8:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case Fz:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case zz:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case Bz:case Uz:case Hz:case qz:this.event(t.data,t.eventName);break;case Gz:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Wt(t.data.diagnostics,r=>f8(r,!0))},t.eventName);break;case Vz:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case jz:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},d8))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`:
`+QP(t.message),t.stack&&(o+=`
`+QP(t.stack))),this.logger.hasLevel(3)){if(i)try{const{file:s,project:l}=this.getFileAndProject(i),u=l.getScriptInfoForNormalizedPath(s);if(u){const p=ED(u.getSnapshot());o+=`
File text of ${i.file}:${QP(p)}
`}}catch{}if(t.ProgramFiles){o+=`
Program files: ${JSON.stringify(t.ProgramFiles)}
`,o+=`
Projects::
`;let s=0;const l=u=>{o+=`
Project '${u.projectName}' (${IM[u.projectKind]}) ${s}
`,o+=u.filesToString(!0),o+=`
-----------------------------------------------
`,s++};this.projectService.externalProjects.forEach(l),this.projectService.configuredProjects.forEach(l),this.projectService.inferredProjects.forEach(l)}}this.logger.msg(o,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${N0(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;const i=Rhe(t,this.logger,this.byteLength,this.host.newLine);(r=id)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(Dhe(r,t))}doOutput(t,r,i,o,s){const l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let u;if(To(t))l.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:p,...h}=t;l.body=h,u=p}else l.body=t;else l.body=t;u&&(l.metadata=u)}else N.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});const s=Qwe(r,t)?gc:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=sr)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=sr)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=sr)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>Zwe(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){N.assert(!this.suppressDiagnosticEvents);const s=this.changeSeq,l=Math.min(i,200);let u=0;const p=()=>{u++,r.length>u&&t.delay("checkOne",l,h)},h=()=>{if(this.changeSeq!==s)return;let m=r[u];if(Mo(m)&&(m=this.toPendingErrorCheck(m),!m)){p();return}const{fileName:y,project:T}=m;if(Vp(T),!!T.containsFile(y,o)&&(this.syntacticCheck(y,T),this.changeSeq===s)){if(T.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(y,T),this.changeSeq===s){if(this.getPreferences(y).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(y,T),p()})}})}};r.length>u&&this.changeSeq===s&&t.delay("checkOne",i,h)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(const i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",zo(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){const{file:r,project:i}=this.getFileAndProject(t),o=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,o)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){const r=this.getProject(t.projectFileName),i=fl(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){const o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=mn(So(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Wt(l,u=>f8(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:O_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:lS(r),code:r.code,source:r.source,startLocation:r.file&&p8(ys(r.file,r.start)),endLocation:r.file&&p8(ys(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Wt(r.relatedInformation,cZ)}))}getCompilerOptionsDiagnostics(t){const r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(mn(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:O_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:lS(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Wt(i.relatedInformation,cZ)}))}getDiagnosticsWorker(t,r,i,o){const{project:s,file:l}=this.getFileAndProject(t);if(r&&Qwe(s,l))return gc;const u=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,u):p.map(h=>Zwe(l,s,h))}getDefinition(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||gc,o);return r?this.mapDefinitionInfo(l,o):l.map(dte.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{const o=nOe(i,r);return o?{...o,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=N.checkDefined(o.getScriptInfo(i)),u=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!u||!u.definitions)return{definitions:gc,textSpan:void 0};const p=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:h}=u;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Rh(h,l)}:{definitions:p.map(dte.mapToOriginalLocation),textSpan:h}}findSourceDefinition(t){var r;const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s);let u=this.mapDefinitionInfoLocations(l||gc,o).slice();if(this.projectService.serverMode===0&&(!bt(u,A=>fl(A.fileName)!==i&&!A.isAmbient)||bt(u,A=>!!A.failedAliasResolution))){const A=KB(O=>O.textSpan.start,ZK(this.host.useCaseSensitiveFileNames));u==null||u.forEach(O=>A.add(O));const R=o.getNoDtsResolutionProject(i),M=R.getLanguageService(),C=(r=M.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(O=>fl(O.fileName)!==i);if(bt(C))for(const O of C){if(O.unverified){const U=y(O,o.getLanguageService().getProgram(),M.getProgram());if(bt(U)){for(const K of U)A.add(K);continue}}A.add(O)}else{const O=u.filter(U=>fl(U.fileName)!==i&&U.isAmbient);for(const U of bt(O)?O:m()){const K=h(U.fileName,i,R);if(!K)continue;const Q=this.projectService.getOrCreateScriptInfoNotOpenedByClient(K,R.currentDirectory,R.directoryStructureHost);if(!Q)continue;R.containsScriptInfo(Q)||(R.addRoot(Q),R.updateGraph());const V=M.getProgram(),se=N.checkDefined(V.getSourceFile(K));for(const G of T(U.name,se,V))A.add(G)}}u=zo(A.values())}return u=u.filter(A=>!A.isAmbient&&!A.failedAliasResolution),this.mapDefinitionInfo(u,o);function h(A,R,M){var C,O,U;const K=J3(A);if(K&&A.lastIndexOf(Ah)===K.topLevelNodeModulesIndex){const Q=A.substring(0,K.packageRootIndex),V=(C=o.getModuleResolutionCache())==null?void 0:C.getPackageJsonInfoCache(),se=o.getCompilationSettings(),G=Ew(go(Q+"/package.json",o.getCurrentDirectory()),bw(V,o,se));if(!G)return;const ne=fq(G,{moduleResolution:2},o,o.getModuleResolutionCache()),he=A.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ye=wP(Aw(he)),Y=o.toPath(A);if(ne&&bt(ne,X=>o.toPath(X)===Y))return(O=M.resolutionCache.resolveSingleModuleNameWithoutWatching(ye,R).resolvedModule)==null?void 0:O.resolvedFileName;{const X=A.substring(K.packageRootIndex+1),oe=`${ye}/${Ad(X)}`;return(U=M.resolutionCache.resolveSingleModuleNameWithoutWatching(oe,R).resolvedModule)==null?void 0:U.resolvedFileName}}}function m(){const A=o.getLanguageService(),R=A.getProgram(),M=Vd(R.getSourceFile(i),s);return(ls(M)||Ve(M))&&ws(M.parent)&&noe(M,C=>{var O;if(C===M)return;const U=(O=A.getDefinitionAtPosition(i,C.getStart(),!0,!1))==null?void 0:O.filter(K=>fl(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:Qf(M)}));if(bt(U))return U})||gc}function y(A,R,M){var C;const O=M.getSourceFile(A.fileName);if(!O)return;const U=Vd(R.getSourceFile(i),s),K=R.getTypeChecker().getSymbolAtLocation(U),Q=K&&pl(K,276);if(!Q)return;const V=((C=Q.propertyName)==null?void 0:C.text)||Q.name.text;return T(V,O,M)}function T(A,R,M){const C=Ws.Core.getTopMostDeclarationNamesInFile(A,R);return eo(C,O=>{const U=M.getTypeChecker().getSymbolAtLocation(O),K=xC(O);if(U&&K)return FD.createDefinitionInfo(K,M.getTypeChecker(),U,K,!0)})}}getEmitOutput(t){const{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>f8(s,!0))}:o}mapJSDocTagInfo(t,r,i){return t?t.map(o=>{var s;return{...o,text:i?this.mapDisplayParts(o.text,r):(s=o.text)==null?void 0:s.map(l=>l.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r),parameters:o.parameters.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r)})),tags:this.mapJSDocTagInfo(o.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(N.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){const o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,Kl(r));return{file:t,start:{line:s.line+1,offset:s.character+1},end:{line:l.line+1,offset:l.character+1}}}toFileSpanWithContext(t,r,i,o){const s=this.toFileSpan(t,r,o),l=i&&this.toFileSpan(t,i,o);return l?{...s,contextStart:l.start,contextEnd:l.end}:s}getTypeDefinition(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||gc,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{const o=nOe(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||gc,o);return r?l.map(({fileName:u,textSpan:p,contextSpan:h})=>this.toFileSpanWithContext(u,p,h,o)):l.map(dte.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?gc:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){const{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(o,s)=>o.getLanguageService().getSemanticDiagnostics(s).filter(l=>!!l.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?gc:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getJsxClosingTagAtPosition(r,o);return s===void 0?void 0:{newText:s.newText,caretOffset:0}}getLinkedEditingRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getLinkedEditingRangeAtPosition(r,o),l=this.projectService.getScriptInfoForNormalizedPath(r);if(!(l===void 0||s===void 0))return _st(s,l)}getDocumentHighlights(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDocumentHighlights(i,s,t.filesToSearch);return l?r?l.map(({fileName:u,highlightSpans:p})=>{const h=o.getScriptInfo(u);return{file:u,highlightSpans:p.map(({textSpan:m,kind:y,contextSpan:T})=>({...Che(m,T,h),kind:y}))}}):l:gc}provideInlayHints(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{const{position:u,displayParts:p}=l;return{...l,position:o.positionToLineOffset(u),displayParts:p==null?void 0:p.map(({text:h,span:m,file:y})=>{if(m){N.assertIsDefined(y,"Target file should be defined together with its span.");const T=this.projectService.getScriptInfo(y);return{text:h,span:{start:T.positionToLineOffset(m.start),end:T.positionToLineOffset(m.start+m.length),file:y}}}else return{text:h}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,i,o){const{project:s}=this.getFileAndProjectWorker(t,r);return Vp(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,o,s)}getProjects(t,r,i){let o,s;if(t.projectFileName){const l=this.getProject(t.projectFileName);l&&(o=[l])}else{const l=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(l)r||this.projectService.ensureDefaultProjectForFile(l);else return i?gc:(this.projectService.logErrorForScriptInfoNotFound(t.file),Zv.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=mn(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),Zv.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){const i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return Zv.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){const i=fl(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),u=this.getPreferences(i),p=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,u),N.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];const h=lst(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(h)}:h}mapRenameInfo(t,r){if(t.canRename){const{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:h}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:Rh(h,r)}}else return t}toSpanGroups(t){const r=new Map;for(const{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:p,...h}of t){let m=r.get(i);m||r.set(i,m={file:i,locs:[]});const y=N.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...Che(o,s,y),...h})}return zo(r.values())}getReferences(t,r){const i=fl(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=ust(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;const u=this.getPreferences(i),p=this.getDefaultProject(t),h=p.getScriptInfoForNormalizedPath(i),m=p.getLanguageService().getQuickInfoAtPosition(i,s),y=m?OO(m.displayParts):"",T=m&&m.textSpan,A=T?h.positionToLineOffset(T.start).offset:0,R=T?h.getSnapshot().getText(T.start,Kl(T)):"";return{refs:Do(l,C=>C.references.map(O=>iOe(this.projectService,O,u))),symbolName:R,symbolStartOffset:A,symbolDisplayString:y}}getFileReferences(t,r){const i=this.getProjects(t),o=t.file,s=this.getPreferences(fl(o)),l=[],u=uZ(this.host.useCaseSensitiveFileNames);return Nhe(i,void 0,h=>{if(h.getCancellationToken().isCancellationRequested())return;const m=h.getLanguageService().getFileReferences(o);if(m)for(const y of m)u.has(y)||(l.push(y),u.add(y))}),r?{refs:l.map(h=>iOe(this.projectService,h,s)),symbolName:`"${t.file}"`}:l}openClientFile(t,r,i,o){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,o)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){const{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){const i=fl(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){const l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(u=>({textSpan:Rh(u.textSpan,l),hintSpan:Rh(u.hintSpan,l),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return s}getTodoComments(t){const{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,o,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?UD(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;const u=!!this.getPreferences(i).displayPartsForJSDoc;if(r){const p=OO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(Kl(l.textSpan)),displayString:p,documentation:u?this.mapDisplayParts(l.documentation,o):OO(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,u)}}else return u?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=o.lineOffsetToPosition(t.endLine,t.endOffset),u=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(u)return u.map(p=>this.convertTextChangeToCodeEdit(p,o))}getFormattingEditsForRangeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?UD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?UD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?UD(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),u=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key===`
`&&(!u||u.length===0||ast(u,s))){const{lineText:p,absolutePosition:h}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){const m=i.getIndentationAtPosition(r,s,l);let y=0,T,A;for(T=0,A=p.length;T<A;T++)if(p.charAt(T)===" ")y++;else if(p.charAt(T)===" ")y+=l.tabSize;else break;if(m!==y){const R=h+T;u.push({span:pc(h,R),newText:kc.getIndentationString(m,l)})}}}if(u)return u.map(p=>({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset(Kl(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getCompletionsAtPosition(i,l,{..._he(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(r==="completions-full")return u;const p=t.prefix||"",h=eo(u.entries,y=>{if(u.isMemberCompletion||uo(y.name.toLowerCase(),p.toLowerCase())){const{name:T,kind:A,kindModifiers:R,sortText:M,insertText:C,filterText:O,replacementSpan:U,hasAction:K,source:Q,sourceDisplay:V,labelDetails:se,isSnippet:G,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ye,data:Y}=y,X=U?Rh(U,s):void 0;return{name:T,kind:A,kindModifiers:R,sortText:M,insertText:C,filterText:O,replacementSpan:X,isSnippet:G,hasAction:K||void 0,source:Q,sourceDisplay:V,labelDetails:se,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ye,data:Y}}});return r==="completions"?(u.metadata&&(h.metadata=u.metadata),h):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&Rh(u.optionalReplacementSpan,s),entries:h}}getCompletionEntryDetails(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.projectService.getFormatCodeOptions(i),p=!!this.getPreferences(i).displayPartsForJSDoc,h=eo(t.entryNames,m=>{const{name:y,source:T,data:A}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return o.getLanguageService().getCompletionEntryDetails(i,l,y,u,T,this.getPreferences(i),A?oa(A,bst):void 0)});return r?p?h:h.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,o,!1)})):h.map(m=>({...m,codeActions:Wt(m.codeActions,y=>this.mapCodeAction(y)),documentation:this.mapDisplayParts(m.documentation,o),tags:this.mapJSDocTagInfo(m.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){const r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?sst(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;const l=o.getCompilationSettings();if(!(l.noEmit||Su(s.fileName)&&!ost(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!Ps(l)}}):gc}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||Zv.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,p,h)=>this.host.writeFile(u,p,h));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>f8(u,!0))}:!s}getSignatureHelpItems(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getSignatureHelpItems(i,l,t),p=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){const h=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(h.start),end:s.positionToLineOffset(h.start+h.length)},items:this.mapSignatureHelpItems(u.items,o,p)}}else return p||!u?u:{...u,items:u.items.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)}))}}toPendingErrorCheck(t){const r=fl(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){const r=this.projectService.getScriptInfo(t.file);N.assert(!!r),r.textStorage.switchToScriptVersionCache();const i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,Jte({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){const i=fl(t.file),o=t.tmpfile===void 0?void 0:fl(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;const r=ha(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Wt(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>Rh(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Rh(i,r)),nameSpan:t.nameSpan&&Rh(t.nameSpan,r),childItems:Wt(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){const i=this.getFullNavigateToItems(t);return r?Do(i,({project:o,navigateToItems:s})=>s.map(l=>{const u=o.getScriptInfo(l.fileName),p={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:u.positionToLineOffset(l.textSpan.start),end:u.positionToLineOffset(Kl(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(p.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(p.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(p.containerKind=l.containerKind),p})):Do(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){const{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){N.assertIsDefined(t.file);const{file:T,project:A}=this.getFileAndProject(t);return[{project:A,navigateToItems:A.getLanguageService().getNavigateToItems(i,o,T)}]}const l=this.getHostPreferences(),u=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(T=>h(T));else{const T=this.getProjects(t);Nhe(T,void 0,A=>h(A))}return u;function h(T){const A=T.getLanguageService().getNavigateToItems(i,o,void 0,T.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=mn(A,M=>m(M)&&!dZ(xM(M),T));R.length&&u.push({project:T,navigateToItems:R})}function m(T){const A=T.name;if(!p.has(A))return p.set(A,[T]),!0;const R=p.get(A);for(const M of R)if(y(M,T))return!1;return R.push(T),!0}function y(T,A){return T===A?!0:!T||!A?!1:T.containerKind===A.containerKind&&T.containerName===A.containerName&&T.fileName===A.fileName&&T.isCaseSensitive===A.isCaseSensitive&&T.kind===A.kind&&T.kindModifiers===A.kindModifiers&&T.matchKind===A.matchKind&&T.name===A.name&&T.textSpan.start===A.textSpan.start&&T.textSpan.length===A.textSpan.length}}getSupportedCodeFixes(t){if(!t)return EY();if(t.file){const{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}const r=this.getProject(t.projectFileName);return r||Zv.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),N.checkDefined(i===void 0?o:i);function s(l){return l.position!==void 0?l.position:r.lineOffsetToPosition(l.line,l.offset)}}getRange(t,r){const{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(l===void 0)return{edits:[]};if(r){const{renameFilename:u,renameLocation:p,edits:h}=l;let m;if(u!==void 0&&p!==void 0){const y=o.getScriptInfoForNormalizedPath(fl(u));m=Phe(ED(y.getSnapshot()),u,p,h)}return{renameLocation:m,renameFilename:u,edits:this.mapTextChangesToCodeEdits(h),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}organizeImports(t,r){N.assert(t.scope.type==="file");const{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){const i=fl(t.oldFilePath),o=fl(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(h=>{const m=h.getLanguageService().getEditsForFileRename(i,o,s,l),y=[];for(const T of m)u.has(T.fileName)||(p.push(T),y.push(T.fileName));for(const T of y)u.add(T)}),r?p.map(h=>this.mapTextChangeToCodeEdit(h)):p}getCodeFixes(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:u}=this.getStartAndEndPosition(t,s);let p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(h){const m=o.getLanguageService(),y=[...m.getSyntacticDiagnostics(i),...m.getSemanticDiagnostics(i),...m.getSuggestionDiagnostics(i)].map(A=>tL(l,u-l,A.start,A.length)&&A.code),T=t.errorCodes.find(A=>!y.includes(A));throw T!==void 0&&(h.message=`BADCLIENT: Bad error code, ${T} not found in range ${l}..${u} (found: ${y.join(", ")}); could have caused this error:
${h.message}`),h}return r?p.map(h=>this.mapCodeFixAction(h)):p}getCombinedCodeFix({scope:t,fixId:r},i){N.assert(t.type==="file");const{file:o,project:s}=this.getFileAndProject(t.args),l=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(l.changes),commands:l.commands}:l}applyCodeActionCommand(t){const r=t.command;for(const i of mA(r)){const{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(l=>{},l=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:l}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:l}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){const r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),N.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>mst(i,r))}:gst(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getBraceMatchingAtPosition(i,l);return u?r?u.map(p=>Rh(p,s)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;const{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;const l=o.filter(M=>!M.includes("lib.d.ts"));if(l.length===0)return;const u=[],p=[],h=[],m=[],y=fl(i),T=this.projectService.ensureDefaultProjectForFile(y);for(const M of l)this.getCanonicalFileName(M)===this.getCanonicalFileName(i)?u.push(M):this.projectService.getScriptInfo(M).isScriptOpen()?p.push(M):Su(M)?m.push(M):h.push(M);const R=[...u,...p,...h,...m].map(M=>({fileName:M,project:T}));this.updateErrorCheck(t,R,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){const{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=N.checkDefined(this.projectService.getScriptInfo(o));return Wt(i,u=>{const p=this.getPosition(u,l),h=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(h,l):h})}toggleLineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),u=o.toggleLineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}toggleMultilineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.toggleMultilineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}commentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.commentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}uncommentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.uncommentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}mapSelectionRange(t,r){const i={textSpan:Rh(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=fl(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),Zv.ThrowNoProject())}toProtocolCallHierarchyItem(t){const r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Rh(t.span,r),selectionSpan:Rh(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){const r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Rh(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Rh(i,r))}}prepareCallHierarchy(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){const s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&gX(l,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyIncomingCall(l))}provideCallHierarchyOutgoingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyOutgoingCall(l,o))}getCanonicalFileName(t){const r=this.host.useCaseSensitiveFileNames?t:sh(t);return ha(r)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){N.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){N.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r){try{return this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t)}}executeCommand(t){const r=this.handlers.get(t.command);if(r){const i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${N0(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,u,p,h,m,y,T;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let A;this.logger.hasLevel(2)&&(A=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${QP(this.toStringMessage(t))}`));let R,M;try{R=this.parseMessage(t),M=R.arguments&&R.arguments.file?R.arguments:void 0,(r=sr)==null||r.instant(sr.Phase.Session,"request",{seq:R.seq,command:R.command}),(i=id)==null||i.logStartCommand(""+R.command,this.toStringMessage(t).substring(0,100)),(o=sr)==null||o.push(sr.Phase.Session,"executeCommand",{seq:R.seq,command:R.command},!0);const{response:C,responseRequired:O}=this.executeCommand(R);if((s=sr)==null||s.pop(),this.logger.hasLevel(2)){const U=ist(this.hrtime(A)).toFixed(4);O?this.logger.perftrc(`${R.seq}::${R.command}: elapsed time (in milliseconds) ${U}`):this.logger.perftrc(`${R.seq}::${R.command}: async elapsed time (in milliseconds) ${U}`)}(l=id)==null||l.logStopCommand(""+R.command,"Success"),(u=sr)==null||u.instant(sr.Phase.Session,"response",{seq:R.seq,command:R.command,success:!!C}),C?this.doOutput(C,R.command,R.seq,!0):O&&this.doOutput(void 0,R.command,R.seq,!1,"No content available.")}catch(C){if((p=sr)==null||p.popAll(),C instanceof zx){(h=id)==null||h.logStopCommand(""+(R&&R.command),"Canceled: "+C),(m=sr)==null||m.instant(sr.Phase.Session,"commandCanceled",{seq:R==null?void 0:R.seq,command:R==null?void 0:R.command}),this.doOutput({canceled:!0},R.command,R.seq,!0);return}this.logErrorWorker(C,this.toStringMessage(t),M),(y=id)==null||y.logStopCommand(""+(R&&R.command),"Error: "+C),(T=sr)==null||T.instant(sr.Phase.Session,"commandError",{seq:R==null?void 0:R.seq,command:R==null?void 0:R.command,message:C.message}),this.doOutput(void 0,R?R.command:"unknown",R?R.seq:0,!1,"Error processing request. "+C.message+`
`+C.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),WI,pZ,sOe,lOe,Xz,Yz,Ohe,RM,FI,m8,Sst=I({"src/server/scriptVersionCache.ts"(){ob(),cT(),WI=4,pZ=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(pZ||{}),sOe=class{constructor(){this.goSubtree=!0,this.lineIndex=new RM,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new FI,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;const i=RM.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(s=this.endBranch[u],u>0?o=this.endBranch[u-1]:o=this.branchNode);s&&o.remove(s);const l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let u=new Array(i.length-1),p=l;for(let y=1;y<i.length;y++)u[y-1]=new m8(i[y]);let h=this.startPath.length-2;for(;h>=0;){const y=this.startPath[h];u=y.insertAt(p,u),h--,p=y}let m=u.length;for(;m>0;){const y=new FI;y.add(this.lineIndex.root),u=y.insertAt(this.lineIndex.root,u),m=u.length,this.lineIndex.root=y}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let p=this.startPath.length-2;p>=0;p--)this.startPath[p].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){const s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function u(p){return p.isLeaf()?new m8(""):new FI}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=u(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=u(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(l)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},lOe=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return nL(vu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Xz=class lA{constructor(){this.changes=[],this.versions=new Array(lA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%lA.maxVersions}currentVersionToIndex(){return this.currentVersion%lA.maxVersions}edit(t,r,i){this.changes.push(new lOe(t,r,i)),(this.changes.length>lA.changeNumberThreshold||r>lA.changeLengthThreshold||i&&i.length>lA.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(const i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new Ohe(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=lA.maxVersions&&(this.minVersion=this.currentVersion-lA.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){const r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return vu(o,s)}getTextChangesBetweenVersions(t,r){if(t<r)if(t>=this.minVersion){const i=[];for(let o=t+1;o<=r;o++){const s=this.versions[this.versionToIndex(o)];for(const l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return Vne(i)}else return;else return vL}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const r=new lA,i=new Ohe(0,r,new RM);r.versions[r.currentVersion]=i;const o=RM.linesFromText(t);return i.index.load(o.lines),r}},Xz.changeNumberThreshold=8,Xz.changeLengthThreshold=256,Xz.maxVersions=8,Yz=Xz,Ohe=class OFe{constructor(t,r,i,o=gc){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof OFe&&this.cache===t.cache)return this.version<=t.version?vL:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},RM=class hbe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){const{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){const r=this.getLineCount();if(t<=r){const{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const r=[];for(let i=0;i<t.length;i++)r[i]=new m8(t[i]);this.root=hbe.buildTreeFromBottom(r)}else this.root=new FI}walk(t,r,i){this.root.walk(t,r,i)}getText(t,r){let i="";return r>0&&t<this.root.charCount()&&this.walk(t,r,{goSubtree:!0,done:!1,leaf:(o,s,l)=>{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());const o={goSubtree:!0,done:!1,leaf(s,l,u){t(u,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return N.assert(r===0),i!==void 0?(this.load(hbe.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){const u=this.getText(0,this.root.charCount());o=u.slice(0,t)+i+u.slice(t+r)}const s=new sOe;let l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const u=this.getText(t,1);i?i=u+i:i=u,r=0,l=!0}else if(r>0){const u=t+r,{zeroBasedColumn:p,lineText:h}=this.positionToColumnAndLineText(u);p===0&&(r+=h.length,i=i?i+h:h)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){const u=s.lineIndex.getText(0,s.lineIndex.getLength());N.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length<WI)return new FI(t);const r=new Array(Math.ceil(t.length/WI));let i=0;for(let o=0;o<r.length;o++){const s=Math.min(i+WI,t.length);r[o]=new FI(t.slice(i,s)),i=s}return this.buildTreeFromBottom(r)}static linesFromText(t){const r=bA(t);if(r.length===0)return{lines:[],lineMap:r};const i=new Array(r.length),o=r.length-1;for(let l=0;l<o;l++)i[l]=t.substring(r[l],r[l+1]);const s=t.substring(r[o]);return s.length>0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},FI=class gbe{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){let o=0,s=this.children[o].charCount(),l=t;for(;l>=s;)this.skipChild(l,r,o,i,0),l-=s,o++,s=this.children[o].charCount();if(l+r<=s){if(this.execWalk(l,r,i,o,2))return}else{if(this.execWalk(l,s-l,i,o,1))return;let u=r-(s-l);for(o++,s=this.children[o].charCount();u>s;){if(this.execWalk(0,s,i,o,3))return;u-=s,o++,s=this.children[o].charCount()}if(u>0&&this.execWalk(0,u,i,o,4))return}if(i.pre){const u=this.children.length;if(o<u-1)for(let p=o+1;p<u;p++)this.skipChild(0,0,p,i,5)}}charOffsetToLineInfo(t,r){if(this.children.length===0)return{oneBasedLine:t,zeroBasedColumn:r,lineText:void 0};for(const s of this.children){if(s.charCount()>r)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}const i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const o=N.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(const i of this.children){const o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r;const i=this.children.length;t++;const o=t;if(t<i){for(r=new gbe;t<i;)r.add(this.children[t]),t++;r.updateCounts()}return this.children.length=o,r}remove(t){const r=this.findChildIndex(t),i=this.children.length;if(r<i-1)for(let o=r;o<i-1;o++)this.children[o]=this.children[o+1];this.children.pop()}findChildIndex(t){const r=this.children.indexOf(t);return N.assert(r!==-1),r}insertAt(t,r){let i=this.findChildIndex(t);const o=this.children.length,s=r.length;if(o<WI&&i===o-1&&s===1)return this.add(r[0]),this.updateCounts(),[];{const l=this.splitAfter(i);let u=0;for(i++;i<WI&&u<s;)this.children[i]=r[u],i++,u++;let p=[],h=0;if(u<s){h=Math.ceil((s-u)/WI),p=new Array(h);let m=0;for(let T=0;T<h;T++)p[T]=new gbe;let y=p[0];for(;u<s;)y.add(r[u]),u++,y.children.length===WI&&(m++,y=p[m]);for(let T=p.length-1;T>=0;T--)p[T].children.length===0&&p.pop()}l&&p.push(l),this.updateCounts();for(let m=0;m<h;m++)p[m].updateCounts();return p}}add(t){this.children.push(t),N.assert(this.children.length<=WI)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},m8=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,r){r.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}}}}),Whe,Fhe,Tst=I({"src/server/typingInstallerAdapter.ts"(){ob(),cT(),Whe=class WFe{constructor(t,r,i,o,s,l){this.telemetryEnabled=t,this.logger=r,this.host=i,this.globalTypingsCacheLocation=o,this.event=s,this.maxActiveRequestCount=l,this.activeRequestCount=0,this.requestQueue=M2(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(t){var r;return F_.validatePackageName(t)!==F_.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((r=this.typesRegistryCache)!=null&&r.has(t)))}installPackage(t){this.packageInstallId++;const r={kind:"installPackage",...t,id:this.packageInstallId},i=new Promise((o,s)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){const o=j_e(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${N0(o)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(o):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${o.projectName}`),this.requestQueue.enqueue(o),this.requestMap.set(o.projectName,o))}handleMessage(t){var r,i;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${N0(t)}`),t.kind){case M7:this.typesRegistryCache=new Map(Object.entries(t.typesRegistry));break;case Jw:{const o=(r=this.packageInstalledPromise)==null?void 0:r.get(t.id);N.assertIsDefined(o,"Should find the promise for package install"),(i=this.packageInstalledPromise)==null||i.delete(t.id),t.success?o.resolve({successMessage:t.message}):o.reject(t.message),this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case nK:{const o={message:t.message};this.event(o,"typesInstallerInitializationFailed");break}case L7:{const o={eventId:t.eventId,packages:t.packagesToInstall};this.event(o,"beginInstallTypes");break}case k7:{if(this.telemetryEnabled){const l={telemetryEventName:"typingsInstalled",payload:{installedPackages:t.packagesToInstall.join(","),installSuccess:t.installSuccess,typingsInstallerVersion:t.typingsInstallerVersion}};this.event(l,"telemetry")}const o={eventId:t.eventId,packages:t.packagesToInstall,success:t.installSuccess};this.event(o,"endInstallTypes");break}case qw:{this.projectService.updateTypingsForProject(t);break}case Hw:{for(this.activeRequestCount>0?this.activeRequestCount--:N.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${o.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case ZP:this.projectService.watchTypingLocations(t);break}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${N0(t)}`),this.installer.send(t)},WFe.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Whe.requestDelayMillis=100,Fhe=Whe}}),cOe={};ee(cOe,{ActionInvalidate:()=>qw,ActionPackageInstalled:()=>Jw,ActionSet:()=>Hw,ActionWatchTypingLocations:()=>ZP,Arguments:()=>rK,AutoImportProviderProject:()=>ZQ,AuxiliaryProject:()=>$Q,CharRangeSection:()=>pZ,CloseFileWatcherEvent:()=>qz,CommandNames:()=>Lhe,ConfigFileDiagEvent:()=>Gz,ConfiguredProject:()=>eZ,CreateDirectoryWatcherEvent:()=>Hz,CreateFileWatcherEvent:()=>Uz,Errors:()=>Zv,EventBeginInstallTypes:()=>L7,EventEndInstallTypes:()=>k7,EventInitializationFailed:()=>nK,EventTypesRegistry:()=>M7,ExternalProject:()=>kz,GcTimer:()=>UQ,InferredProject:()=>YQ,LargeFileReferencedEvent:()=>Bz,LineIndex:()=>RM,LineLeaf:()=>m8,LineNode:()=>FI,LogLevel:()=>BQ,Msg:()=>GQ,OpenFileInfoTelemetryEvent:()=>iZ,Project:()=>lT,ProjectInfoTelemetryEvent:()=>jz,ProjectKind:()=>IM,ProjectLanguageServiceStateEvent:()=>Vz,ProjectLoadingFinishEvent:()=>zz,ProjectLoadingStartEvent:()=>Fz,ProjectReferenceProjectLoadKind:()=>sZ,ProjectService:()=>lZ,ProjectsUpdatedInBackgroundEvent:()=>d8,ScriptInfo:()=>JQ,ScriptVersionCache:()=>Yz,Session:()=>whe,TextStorage:()=>qQ,ThrottledOperations:()=>jQ,TypingsCache:()=>KQ,TypingsInstallerAdapter:()=>Fhe,allFilesAreJsOrDts:()=>dhe,allRootFilesAreJsOrDts:()=>uhe,asNormalizedPath:()=>Fwe,convertCompilerOptions:()=>wz,convertFormatOptions:()=>UD,convertScriptKindName:()=>nZ,convertTypeAcquisition:()=>mhe,convertUserPreferences:()=>_he,convertWatchOptions:()=>u8,countEachFileTypes:()=>l8,createInstallTypingsRequest:()=>j_e,createModuleSpecifierCache:()=>Ihe,createNormalizedPathMap:()=>zwe,createPackageJsonCache:()=>xhe,createSortedArray:()=>K_e,emptyArray:()=>gc,findArgument:()=>xRe,forEachResolvedProjectReferenceProject:()=>HD,formatDiagnosticToProtocol:()=>f8,formatMessage:()=>Rhe,getBaseConfigFileName:()=>VQ,getLocationInNewDocument:()=>Phe,hasArgument:()=>IRe,hasNoTypeScriptSource:()=>phe,indent:()=>QP,isBackgroundProject:()=>c8,isConfigFile:()=>Ehe,isConfiguredProject:()=>w0,isDynamicFileName:()=>s8,isExternalProject:()=>XQ,isInferredProject:()=>jD,isInferredProjectName:()=>U_e,makeAutoImportProviderProjectName:()=>q_e,makeAuxiliaryProjectName:()=>J_e,makeInferredProjectName:()=>H_e,maxFileSize:()=>Wz,maxProgramSizeForNonTsFiles:()=>Oz,normalizedPathToPath:()=>a8,nowString:()=>RRe,nullCancellationToken:()=>Mhe,nullTypingsInstaller:()=>Lz,projectContainsInfoDirectly:()=>OI,protocol:()=>che,removeSorted:()=>Bwe,stringifyIndented:()=>N0,toEvent:()=>Dhe,toNormalizedPath:()=>fl,tryConvertScriptKindName:()=>tZ,typingsInstaller:()=>G_e,updateProjectIfDirty:()=>Vp});var cT=I({"src/server/_namespaces/ts.server.ts"(){w7(),V_e(),Oat(),Wat(),Fat(),zat(),Vat(),qat(),Yat(),tst(),nst(),rst(),Est(),Sst(),Tst()}}),uOe={};ee(uOe,{ANONYMOUS:()=>I5,AccessFlags:()=>PG,AssertionLevel:()=>nG,AssignmentDeclarationKind:()=>BG,AssignmentKind:()=>DU,Associativity:()=>CU,BreakpointResolver:()=>NY,BuilderFileEmit:()=>LJ,BuilderProgramKind:()=>kJ,BuilderState:()=>Nm,BundleFileSectionKind:()=>iV,CallHierarchy:()=>DI,CharacterCodes:()=>$G,CheckFlags:()=>xG,CheckMode:()=>WF,ClassificationType:()=>SK,ClassificationTypeNames:()=>EK,CommentDirectiveType:()=>dG,Comparison:()=>Ge,CompletionInfoFlags:()=>mK,CompletionTriggerKind:()=>cK,Completions:()=>LI,ContainerFlags:()=>Sq,ContextFlags:()=>gG,Debug:()=>N,DiagnosticCategory:()=>F2,Diagnostics:()=>f,DocumentHighlights:()=>D5,ElementFlags:()=>CG,EmitFlags:()=>J6,EmitHint:()=>tV,EmitOnly:()=>fG,EndOfLineState:()=>gK,EnumKind:()=>IG,ExitStatus:()=>mG,ExportKind:()=>CX,Extension:()=>QG,ExternalEmitHelpers:()=>eV,FileIncludeKind:()=>F6,FilePreprocessingDiagnosticsKind:()=>pG,FileSystemEntryKind:()=>uV,FileWatcherEventKind:()=>cV,FindAllReferences:()=>Ws,FlattenLevel:()=>Bq,FlowFlags:()=>W2,ForegroundColorEscapeSequences:()=>IJ,FunctionFlags:()=>NU,GeneratedIdentifierFlags:()=>W6,GetLiteralTextFlags:()=>IU,GoToDefinition:()=>FD,HighlightSpanKind:()=>dK,IdentifierNameMap:()=>gI,IdentifierNameMultiMap:()=>zq,ImportKind:()=>NX,ImportsNotUsedAsValues:()=>qG,IndentStyle:()=>pK,IndexFlags:()=>MG,IndexKind:()=>wG,InferenceFlags:()=>FG,InferencePriority:()=>WG,InlayHintKind:()=>uK,InlayHints:()=>EQ,InternalEmitFlags:()=>ZG,InternalSymbolName:()=>RG,InvalidatedProjectKind:()=>tK,JSDocParsingMode:()=>sV,JsDoc:()=>k0,JsTyping:()=>F_,JsxEmit:()=>HG,JsxFlags:()=>cG,JsxReferenceKind:()=>LG,LanguageServiceMode:()=>aK,LanguageVariant:()=>XG,LexicalEnvironmentFlags:()=>rV,ListFormat:()=>oV,LogLevel:()=>iG,MemberOverrideStatus:()=>_G,ModifierFlags:()=>w6,ModuleDetectionKind:()=>GG,ModuleInstanceState:()=>Eq,ModuleKind:()=>$N,ModuleResolutionKind:()=>Bx,ModuleSpecifierEnding:()=>zU,NavigateTo:()=>ode,NavigationBar:()=>_de,NewLineKind:()=>JG,NodeBuilderFlags:()=>vG,NodeCheckFlags:()=>DG,NodeFactoryFlags:()=>JU,NodeFlags:()=>k6,NodeResolutionFeatures:()=>vq,ObjectFlags:()=>V6,OperationCanceledException:()=>zx,OperatorPrecedence:()=>PU,OrganizeImports:()=>Cm,OrganizeImportsMode:()=>lK,OuterExpressionKinds:()=>nV,OutliningElementsCollector:()=>IQ,OutliningSpanKind:()=>_K,OutputFileType:()=>hK,PackageJsonAutoImportPreference:()=>oK,PackageJsonDependencyGroup:()=>iK,PatternMatchKind:()=>N5,PollingInterval:()=>K6,PollingWatchKind:()=>UG,PragmaKindFlags:()=>aV,PrivateIdentifierKind:()=>eH,ProcessLevel:()=>Uq,ProgramUpdateLevel:()=>aJ,QuotePreference:()=>TX,RelationComparisonResult:()=>O6,Rename:()=>xz,ScriptElementKind:()=>yK,ScriptElementKindModifier:()=>bK,ScriptKind:()=>U6,ScriptSnapshot:()=>W7,ScriptTarget:()=>KG,SemanticClassificationFormat:()=>sK,SemanticMeaning:()=>SX,SemicolonPreference:()=>fK,SignatureCheckMode:()=>FF,SignatureFlags:()=>j6,SignatureHelp:()=>QO,SignatureKind:()=>kG,SmartSelectionRange:()=>DQ,SnippetKind:()=>q6,SortKind:()=>tG,StructureIsReused:()=>z6,SymbolAccessibility:()=>EG,SymbolDisplay:()=>Qv,SymbolDisplayPartKind:()=>Xw,SymbolFlags:()=>B6,SymbolFormatFlags:()=>bG,SyntaxKind:()=>L6,SyntheticSymbolKind:()=>SG,Ternary:()=>zG,ThrottledCancellationToken:()=>DY,TokenClass:()=>vK,TokenFlags:()=>uG,TransformFlags:()=>H6,TypeFacts:()=>OF,TypeFlags:()=>G6,TypeFormatFlags:()=>yG,TypeMapKind:()=>OG,TypePredicateKind:()=>TG,TypeReferenceSerializationKind:()=>AG,UnionReduction:()=>hG,UpToDateStatusType:()=>$J,VarianceFlags:()=>NG,Version:()=>hm,VersionRange:()=>k2,WatchDirectoryFlags:()=>YG,WatchDirectoryKind:()=>jG,WatchFileKind:()=>VG,WatchLogLevel:()=>sJ,WatchType:()=>Lc,accessPrivateIdentifier:()=>nle,addDisposableResourceHelper:()=>wW,addEmitFlags:()=>P_,addEmitHelper:()=>qA,addEmitHelpers:()=>zg,addInternalEmitFlags:()=>UA,addNodeFactoryPatcher:()=>KSe,addObjectAllocatorPatcher:()=>ioe,addRange:()=>qr,addRelatedInfo:()=>Ma,addSyntheticLeadingComment:()=>uP,addSyntheticTrailingComment:()=>lW,addToSeen:()=>Am,advancedAsyncSuperHelper:()=>Wk,affectsDeclarationPathOptionDeclarations:()=>eq,affectsEmitOptionDeclarations:()=>ZH,allKeysStartWithDot:()=>NF,altDirectorySeparator:()=>q2,and:()=>R6,append:()=>Rn,appendIfUnique:()=>Rg,arrayFrom:()=>zo,arrayIsEqualTo:()=>Hm,arrayIsHomogeneous:()=>Aoe,arrayIsSorted:()=>y6,arrayOf:()=>$te,arrayReverseIterator:()=>GB,arrayToMap:()=>TE,arrayToMultiMap:()=>P2,arrayToNumericMap:()=>Zte,arraysEqual:()=>Ba,assertType:()=>DEe,assign:()=>Mx,assignHelper:()=>_W,asyncDelegator:()=>gW,asyncGeneratorHelper:()=>hW,asyncSuperHelper:()=>Ok,asyncValues:()=>vW,attachFileToDiagnostics:()=>zA,awaitHelper:()=>JA,awaiterHelper:()=>bW,base64decode:()=>Jie,base64encode:()=>qie,binarySearch:()=>Tv,binarySearchKey:()=>pA,bindSourceFile:()=>Pse,breakIntoCharacterSpans:()=>Que,breakIntoWordSpans:()=>Zue,buildLinkParts:()=>Sue,buildOpts:()=>vF,buildOverload:()=>Mwe,bundlerModuleNameResolver:()=>Ese,canBeConvertedToAsync:()=>GX,canHaveDecorators:()=>qS,canHaveExportModifier:()=>vk,canHaveFlowNode:()=>qL,canHaveIllegalDecorators:()=>NH,canHaveIllegalModifiers:()=>wae,canHaveIllegalType:()=>TTe,canHaveIllegalTypeParameters:()=>kae,canHaveJSDoc:()=>JL,canHaveLocals:()=>dh,canHaveModifiers:()=>Rm,canHaveSymbol:()=>T_,canJsonReportNoInputFiles:()=>NP,canProduceDiagnostics:()=>QF,canUsePropertyAccess:()=>EU,canWatchAffectingLocation:()=>cce,canWatchAtTypes:()=>lce,canWatchDirectoryOrFile:()=>y7,cartesianProduct:()=>cne,cast:()=>oa,chainBundle:()=>Dm,chainDiagnosticMessages:()=>Vo,changeAnyExtension:()=>U2,changeCompilerHostLikeToUseCache:()=>Ww,changeExtension:()=>_0,changeFullExtension:()=>Dne,changesAffectModuleResolution:()=>A4,changesAffectingProgramStructure:()=>Cre,childIsDecorated:()=>SC,classElementOrClassElementParameterIsDecorated:()=>mj,classHasClassThisAssignment:()=>Gq,classHasDeclaredOrExplicitlyAssignedName:()=>Vq,classHasExplicitlyAssignedName:()=>XF,classOrConstructorParameterIsDecorated:()=>Lv,classPrivateFieldGetHelper:()=>MW,classPrivateFieldInHelper:()=>kW,classPrivateFieldSetHelper:()=>LW,classicNameResolver:()=>Rse,classifier:()=>upe,cleanExtendedConfigCache:()=>a7,clear:()=>jo,clearMap:()=>ep,clearSharedExtendedConfigFileWatcher:()=>rJ,climbPastPropertyAccess:()=>z7,climbPastPropertyOrElementAccess:()=>Xce,clone:()=>qB,cloneCompilerOptions:()=>GK,closeFileWatcher:()=>Xm,closeFileWatcherOf:()=>Cf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>Vne,collectExternalModuleInfo:()=>wq,combine:()=>Px,combinePaths:()=>$r,commentPragmas:()=>z2,commonOptionsWithBuild:()=>fw,commonPackageFolders:()=>kU,compact:()=>C2,compareBooleans:()=>Ey,compareDataObjects:()=>iU,compareDiagnostics:()=>HC,compareDiagnosticsSkipRelatedInformation:()=>N3,compareEmitHelpers:()=>eae,compareNumberOfDirectorySeparators:()=>_k,comparePaths:()=>Dg,comparePathsCaseInsensitive:()=>t1e,comparePathsCaseSensitive:()=>e1e,comparePatternKeys:()=>hq,compareProperties:()=>one,compareStringsCaseInsensitive:()=>I6,compareStringsCaseInsensitiveEslintCompatible:()=>nne,compareStringsCaseSensitive:()=>Uu,compareStringsCaseSensitiveUI:()=>L2,compareTextSpans:()=>A6,compareValues:()=>nl,compileOnSaveCommandLineOption:()=>dw,compilerOptionsAffectDeclarationPath:()=>moe,compilerOptionsAffectEmit:()=>foe,compilerOptionsAffectSemanticDiagnostics:()=>poe,compilerOptionsDidYouMeanDiagnostics:()=>hw,compilerOptionsIndicateEsModules:()=>JK,compose:()=>xEe,computeCommonSourceDirectoryOfFilenames:()=>Gle,computeLineAndCharacterOfPosition:()=>Vx,computeLineOfPosition:()=>tC,computeLineStarts:()=>bA,computePositionOfLineAndCharacter:()=>t4,computeSignature:()=>QS,computeSignatureWithDiagnostics:()=>NJ,computeSuggestionDiagnostics:()=>FX,computedOptions:()=>_c,concatenate:()=>So,concatenateDiagnosticMessageChains:()=>loe,consumesNodeCoreModules:()=>v5,contains:()=>Or,containsIgnoredPath:()=>eP,containsObjectRestOrSpread:()=>nw,containsParseError:()=>eR,containsPath:()=>gm,convertCompilerOptionsForTelemetry:()=>ise,convertCompilerOptionsFromJson:()=>xAe,convertJsonOption:()=>JS,convertToBase64:()=>Hie,convertToJson:()=>lw,convertToObject:()=>Zae,convertToOptionsWithAbsolutePaths:()=>JH,convertToRelativePath:()=>eC,convertToTSConfig:()=>pAe,convertTypeAcquisitionFromJson:()=>RAe,copyComments:()=>nT,copyEntries:()=>I4,copyLeadingComments:()=>ID,copyProperties:()=>JB,copyTrailingAsLeadingComments:()=>_O,copyTrailingComments:()=>lM,couldStartTrivia:()=>Mne,countWhere:()=>ou,createAbstractBuilder:()=>Lxe,createAccessorPropertyBackingField:()=>PH,createAccessorPropertyGetRedirector:()=>jae,createAccessorPropertySetRedirector:()=>Uae,createBaseNodeFactory:()=>Foe,createBinaryExpressionTrampoline:()=>aF,createBindingHelper:()=>FR,createBuildInfo:()=>Mw,createBuilderProgram:()=>CJ,createBuilderProgramUsingProgramBuildInfo:()=>ace,createBuilderStatusReporter:()=>Tce,createCacheWithRedirects:()=>lq,createCacheableExportInfoMap:()=>xX,createCachedDirectoryStructureHost:()=>i7,createClassNamedEvaluationHelperBlock:()=>lle,createClassThisAssignmentBlock:()=>ale,createClassifier:()=>YRe,createCommentDirectivesMap:()=>Ore,createCompilerDiagnostic:()=>Ul,createCompilerDiagnosticForInvalidCustomType:()=>Kae,createCompilerDiagnosticFromMessageChain:()=>D3,createCompilerHost:()=>Vle,createCompilerHostFromProgramHost:()=>JJ,createCompilerHostWorker:()=>uJ,createDetachedDiagnostic:()=>CR,createDiagnosticCollection:()=>ER,createDiagnosticForFileFromMessageChain:()=>cj,createDiagnosticForNode:()=>kr,createDiagnosticForNodeArray:()=>rR,createDiagnosticForNodeArrayFromMessageChain:()=>IL,createDiagnosticForNodeFromMessageChain:()=>Lg,createDiagnosticForNodeInSourceFile:()=>Xf,createDiagnosticForRange:()=>Kre,createDiagnosticMessageChainFromDiagnostic:()=>Jre,createDiagnosticReporter:()=>Vw,createDocumentPositionMapper:()=>Yse,createDocumentRegistry:()=>Gue,createDocumentRegistryInternal:()=>LX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>wJ,createEmitHelperFactory:()=>Zoe,createEmptyExports:()=>Kk,createExpressionForJsxElement:()=>Rae,createExpressionForJsxFragment:()=>Dae,createExpressionForObjectLiteralElementLike:()=>Nae,createExpressionForPropertyName:()=>TH,createExpressionFromEntityName:()=>Xk,createExternalHelpersImportDeclarationIfNeeded:()=>xH,createFileDiagnostic:()=>$c,createFileDiagnosticFromMessageChain:()=>k4,createForOfBindingStatement:()=>SH,createGetCanonicalFileName:()=>Mu,createGetSourceFile:()=>lJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Uv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Mle,createGetSymbolWalker:()=>Mse,createIncrementalCompilerHost:()=>XJ,createIncrementalProgram:()=>Ece,createInputFiles:()=>YSe,createInputFilesWithFilePaths:()=>HU,createInputFilesWithFileTexts:()=>qU,createJsxFactoryExpression:()=>EH,createLanguageService:()=>ipe,createLanguageServiceSourceFile:()=>Z5,createMemberAccessForPropertyName:()=>HS,createModeAwareCache:()=>_I,createModeAwareCacheKey:()=>kP,createModuleNotFoundChain:()=>x4,createModuleResolutionCache:()=>rD,createModuleResolutionLoader:()=>hJ,createModuleResolutionLoaderUsingGlobalCache:()=>fce,createModuleSpecifierResolutionHost:()=>tT,createMultiMap:()=>$p,createNodeConverters:()=>Boe,createNodeFactory:()=>Dk,createOptionNameMap:()=>cF,createOverload:()=>FQ,createPackageJsonImportFilter:()=>dM,createPackageJsonInfo:()=>mX,createParenthesizerRules:()=>zoe,createPatternMatcher:()=>que,createPrependNodes:()=>TJ,createPrinter:()=>R0,createPrinterWithDefaults:()=>tJ,createPrinterWithRemoveComments:()=>d1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>nJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Lw,createProgram:()=>d7,createProgramHost:()=>KJ,createPropertyNameNodeForIdentifierOrLiteral:()=>q3,createQueue:()=>M2,createRange:()=>Af,createRedirectedBuilderProgram:()=>MJ,createResolutionCache:()=>WJ,createRuntimeTypeSerializer:()=>fle,createScanner:()=>Nv,createSemanticDiagnosticsBuilderProgram:()=>Mxe,createSet:()=>KB,createSolutionBuilder:()=>Xxe,createSolutionBuilderHost:()=>Jxe,createSolutionBuilderWithWatch:()=>Yxe,createSolutionBuilderWithWatchHost:()=>Kxe,createSortedArray:()=>BB,createSourceFile:()=>iw,createSourceMapGenerator:()=>qse,createSourceMapSource:()=>$Se,createSuperAccessVariableStatement:()=>$F,createSymbolTable:()=>ca,createSymlinkCache:()=>dU,createSystemWatchFunctions:()=>Ane,createTextChange:()=>aO,createTextChangeFromStartLength:()=>Z7,createTextChangeRange:()=>nL,createTextRangeFromNode:()=>UK,createTextRangeFromSpan:()=>Q7,createTextSpan:()=>vu,createTextSpanFromBounds:()=>pc,createTextSpanFromNode:()=>Dd,createTextSpanFromRange:()=>tb,createTextSpanFromStringLiteralLikeContent:()=>jK,createTextWriter:()=>ok,createTokenRange:()=>tU,createTypeChecker:()=>Bse,createTypeReferenceDirectiveResolutionCache:()=>xF,createTypeReferenceResolutionLoader:()=>l7,createUnparsedSourceFile:()=>UU,createWatchCompilerHost:()=>Uxe,createWatchCompilerHostOfConfigFile:()=>vce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>yce,createWatchFactory:()=>qJ,createWatchHost:()=>HJ,createWatchProgram:()=>Hxe,createWatchStatusReporter:()=>mce,createWriteFileMeasuringIO:()=>cJ,declarationNameToString:()=>xs,decodeMappings:()=>Mq,decodedTextSpanIntersectsWith:()=>tL,decorateHelper:()=>uW,deduplicate:()=>SE,defaultIncludeSpec:()=>EF,defaultInitCompilerOptions:()=>yF,defaultMaximumTruncationLength:()=>Sk,detectSortCaseSensitivity:()=>qN,diagnosticCategoryName:()=>lS,diagnosticToString:()=>iT,directoryProbablyExists:()=>Km,directorySeparator:()=>ol,displayPart:()=>rp,displayPartsToString:()=>OO,disposeEmitNodes:()=>KU,disposeResourcesHelper:()=>OW,documentSpansEqual:()=>QK,dumpTracingLegend:()=>Ene,elementAt:()=>Rv,elideNodes:()=>Vae,emitComments:()=>kie,emitDetachedComments:()=>wie,emitFiles:()=>t7,emitFilesAndReportErrors:()=>T7,emitFilesAndReportErrorsAndGetExitStatus:()=>gce,emitModuleKindIsNonNodeESM:()=>C3,emitNewLineBeforeLeadingCommentOfPosition:()=>Lie,emitNewLineBeforeLeadingComments:()=>Pie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Mie,emitSkippedWithNoDiagnostics:()=>h7,emitUsingBuildInfo:()=>Wle,emptyArray:()=>et,emptyFileSystemEntries:()=>iW,emptyMap:()=>P6,emptyOptions:()=>Mf,emptySet:()=>dne,endsWith:()=>Al,ensurePathIsNonModuleName:()=>AE,ensureScriptKind:()=>z3,ensureTrailingDirectorySeparator:()=>Fc,entityNameToString:()=>fp,enumerateInsertsAndDeletes:()=>N6,equalOwnProperties:()=>Qte,equateStringsCaseInsensitive:()=>$b,equateStringsCaseSensitive:()=>oS,equateValues:()=>xv,esDecorateHelper:()=>fW,escapeJsxAttributeString:()=>Gj,escapeLeadingUnderscores:()=>_l,escapeNonAsciiString:()=>ik,escapeSnippetText:()=>JE,escapeString:()=>tg,escapeTemplateSubstitution:()=>zj,every:()=>Jn,expandPreOrPostfixIncrementOrDecrementExpression:()=>eF,explainFiles:()=>BJ,explainIfFileIsRedirectAndImpliedFormat:()=>GJ,exportAssignmentIsAlias:()=>gR,exportStarHelper:()=>PW,expressionResultIsUnused:()=>xoe,extend:()=>T6,extendsHelper:()=>EW,extensionFromPath:()=>XC,extensionIsTS:()=>V3,extensionsNotSupportingExtensionlessResolution:()=>Rk,externalHelpersModuleNameText:()=>Vy,factory:()=>w,fileExtensionIs:()=>Il,fileExtensionIsOneOf:()=>Sc,fileIncludeReasonToDiagnostics:()=>UJ,fileShouldUseJavaScriptRequire:()=>EX,filter:()=>mn,filterMutate:()=>li,filterSemanticDiagnostics:()=>p7,find:()=>In,findAncestor:()=>Vn,findBestPatternMatch:()=>QB,findChildOfKind:()=>vs,findComputedPropertyNameCacheAssignment:()=>sF,findConfigFile:()=>Ble,findContainingList:()=>U7,findDiagnosticForNode:()=>Lue,findFirstNonJsxWhitespaceToken:()=>eue,findIndex:()=>mi,findLast:()=>oi,findLastIndex:()=>Yi,findListItemInfo:()=>Zce,findMap:()=>ja,findModifier:()=>SD,findNextToken:()=>m1,findPackageJson:()=>Pue,findPackageJsons:()=>fX,findPrecedingMatchingToken:()=>Y7,findPrecedingToken:()=>Ic,findSuperStatementIndexPath:()=>qF,findTokenOnLeftOfPosition:()=>J7,findUseStrictPrologue:()=>IH,first:()=>Ua,firstDefined:()=>Ht,firstDefinedIterator:()=>pn,firstIterator:()=>jB,firstOrOnly:()=>vX,firstOrUndefined:()=>Kc,firstOrUndefinedIterator:()=>b6,fixupCompilerOptions:()=>jX,flatMap:()=>Do,flatMapIterator:()=>EE,flatMapToMutable:()=>kp,flatten:()=>Cs,flattenCommaList:()=>Hae,flattenDestructuringAssignment:()=>XS,flattenDestructuringBinding:()=>u1,flattenDiagnosticMessageText:()=>O_,forEach:()=>Xe,forEachAncestor:()=>Pre,forEachAncestorDirectory:()=>ym,forEachChild:()=>Uo,forEachChildRecursively:()=>RP,forEachEmittedFile:()=>$q,forEachEnclosingBlockScopeContainer:()=>Ure,forEachEntry:()=>zc,forEachExternalModuleToImportFrom:()=>DX,forEachImportClauseDeclaration:()=>r3,forEachKey:()=>fh,forEachLeadingCommentRange:()=>Y2,forEachNameInAccessChainWalkingLeft:()=>noe,forEachPropertyAssignment:()=>sR,forEachResolvedProjectReference:()=>vJ,forEachReturnStatement:()=>LE,forEachRight:()=>$t,forEachTrailingCommentRange:()=>$2,forEachTsConfigPropArray:()=>NL,forEachUnique:()=>eX,forEachYieldExpression:()=>Yre,forSomeAncestorDirectory:()=>ySe,formatColorAndReset:()=>p1,formatDiagnostic:()=>dJ,formatDiagnostics:()=>fxe,formatDiagnosticsWithColorAndContext:()=>jle,formatGeneratedName:()=>S0,formatGeneratedNamePart:()=>QR,formatLocation:()=>pJ,formatMessage:()=>lU,formatStringFromArgs:()=>ig,formatting:()=>kc,fullTripleSlashAMDReferencePathRegEx:()=>RU,fullTripleSlashReferencePathRegEx:()=>xU,generateDjb2Hash:()=>QN,generateTSConfig:()=>gAe,generatorHelper:()=>DW,getAdjustedReferenceLocation:()=>wK,getAdjustedRenameLocation:()=>q7,getAliasDeclarationFromName:()=>Dj,getAllAccessorDeclarations:()=>NS,getAllDecoratorsOfClass:()=>Wq,getAllDecoratorsOfClassElement:()=>KF,getAllJSDocTags:()=>c4,getAllJSDocTagsOfKind:()=>C1e,getAllKeys:()=>AEe,getAllProjectOutputs:()=>e7,getAllSuperTypeNodes:()=>RC,getAllUnscopedEmitHelpers:()=>ZU,getAllowJSCompilerOption:()=>jy,getAllowSyntheticDefaultImports:()=>MS,getAncestor:()=>f0,getAnyExtensionFromPath:()=>Gx,getAreDeclarationMapsEnabled:()=>Ak,getAssignedExpandoInitializer:()=>DA,getAssignedName:()=>s4,getAssignedNameOfIdentifier:()=>GP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>GL,getAssignmentTargetKind:()=>MA,getAutomaticTypeDirectiveNames:()=>AF,getBaseFileName:()=>ic,getBinaryOperatorPrecedence:()=>rk,getBuildInfo:()=>n7,getBuildInfoFileVersionMap:()=>PJ,getBuildInfoText:()=>Ole,getBuildOrderFromAnyBuildOrder:()=>D7,getBuilderCreationParameters:()=>g7,getBuilderFileEmit:()=>eb,getCheckFlags:()=>xl,getClassExtendsHeritageElement:()=>FE,getClassLikeDeclarationOfSymbol:()=>Wg,getCombinedLocalAndExportSymbolFlags:()=>RR,getCombinedModifierFlags:()=>n0,getCombinedNodeFlags:()=>Cv,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>SV,getCommentRange:()=>M_,getCommonSourceDirectory:()=>KP,getCommonSourceDirectoryOfConfig:()=>cD,getCompilerOptionValue:()=>M3,getCompilerOptionsDiffValue:()=>_Ae,getConditions:()=>Qy,getConfigFileParsingDiagnostics:()=>$S,getConstantValue:()=>qoe,getContainerFlags:()=>bq,getContainerNode:()=>eT,getContainingClass:()=>au,getContainingClassExcludingClassDecorators:()=>j4,getContainingClassStaticBlock:()=>oie,getContainingFunction:()=>Bp,getContainingFunctionDeclaration:()=>iie,getContainingFunctionOrClassStaticBlock:()=>V4,getContainingNodeArray:()=>Roe,getContainingObjectLiteralElement:()=>WO,getContextualTypeFromParent:()=>u5,getContextualTypeFromParentOrAncestorTypeNode:()=>H7,getCurrentTime:()=>Uw,getDeclarationDiagnostics:()=>Lle,getDeclarationEmitExtensionForPath:()=>p3,getDeclarationEmitOutputFilePath:()=>xie,getDeclarationEmitOutputFilePathWorker:()=>d3,getDeclarationFileExtension:()=>wH,getDeclarationFromName:()=>xC,getDeclarationModifierFlagsFromSymbol:()=>xf,getDeclarationOfKind:()=>pl,getDeclarationsOfKind:()=>Dre,getDeclaredExpandoInitializer:()=>WL,getDecorators:()=>Ry,getDefaultCompilerOptions:()=>Q5,getDefaultExportInfoWorker:()=>R5,getDefaultFormatCodeSettings:()=>O7,getDefaultLibFileName:()=>Z2,getDefaultLibFilePath:()=>ope,getDefaultLikeExportInfo:()=>x5,getDiagnosticText:()=>oAe,getDiagnosticsWithinSpan:()=>kue,getDirectoryPath:()=>ai,getDirectoryToWatchFailedLookupLocation:()=>OJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>dce,getDocumentPositionMapper:()=>WX,getDocumentSpansEqualityComparer:()=>ZK,getESModuleInterop:()=>gh,getEditsForFileRename:()=>jue,getEffectiveBaseTypeNode:()=>I_,getEffectiveConstraintOfTypeParameter:()=>Jx,getEffectiveContainerForJSDocTemplateTag:()=>i3,getEffectiveImplementsTypeNodes:()=>vR,getEffectiveInitializer:()=>OL,getEffectiveJSDocHost:()=>p0,getEffectiveModifierFlags:()=>ud,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zie,getEffectiveModifierFlagsNoCache:()=>Bie,getEffectiveReturnTypeNode:()=>em,getEffectiveSetAccessorTypeAnnotationNode:()=>Cie,getEffectiveTypeAnnotationNode:()=>yu,getEffectiveTypeParameterDeclarations:()=>Dy,getEffectiveTypeRoots:()=>LP,getElementOrPropertyAccessArgumentExpressionOrName:()=>n3,getElementOrPropertyAccessName:()=>kg,getElementsOfBindingOrAssignmentPattern:()=>$R,getEmitDeclarations:()=>Rf,getEmitFlags:()=>Ga,getEmitHelpers:()=>cW,getEmitModuleDetectionKind:()=>MU,getEmitModuleKind:()=>wu,getEmitModuleResolutionKind:()=>pd,getEmitScriptTarget:()=>os,getEmitStandardClassFields:()=>doe,getEnclosingBlockScopeContainer:()=>mh,getEnclosingContainer:()=>lj,getEncodedSemanticClassifications:()=>PX,getEncodedSyntacticClassifications:()=>MX,getEndLinePosition:()=>EL,getEntityNameFromTypeNode:()=>ML,getEntrypointsFromPackageJsonInfo:()=>fq,getErrorCountForSummary:()=>E7,getErrorSpanForNode:()=>vS,getErrorSummaryText:()=>_ce,getEscapedTextOfIdentifierOrLiteral:()=>CC,getEscapedTextOfJsxAttributeName:()=>iP,getEscapedTextOfJsxNamespacedName:()=>VA,getExpandoInitializer:()=>u0,getExportAssignmentExpression:()=>Nj,getExportInfoMap:()=>bO,getExportNeedsImportStarHelper:()=>$se,getExpressionAssociativity:()=>Oj,getExpressionPrecedence:()=>MC,getExternalHelpersModuleName:()=>$k,getExternalModuleImportEqualsDeclarationExpression:()=>TC,getExternalModuleName:()=>fR,getExternalModuleNameFromDeclaration:()=>Aie,getExternalModuleNameFromPath:()=>jj,getExternalModuleNameLiteral:()=>dI,getExternalModuleRequireArgument:()=>hj,getFallbackOptions:()=>Ow,getFileEmitOutput:()=>Yle,getFileMatcherPatterns:()=>F3,getFileNamesFromConfigSpecs:()=>CP,getFileWatcherEventKind:()=>lV,getFilesInErrorForSummary:()=>S7,getFirstConstructorWithBody:()=>ng,getFirstIdentifier:()=>Gp,getFirstNonSpaceCharacterPosition:()=>Iue,getFirstProjectOutput:()=>eJ,getFixableErrorSpanExpression:()=>hX,getFormatCodeSettingsForWriting:()=>S5,getFullWidth:()=>yL,getFunctionFlags:()=>Bc,getHeritageClause:()=>ZL,getHostSignatureFromJSDoc:()=>d0,getIdentifierAutoGenerate:()=>nTe,getIdentifierGeneratedImportReference:()=>Qoe,getIdentifierTypeArguments:()=>LS,getImmediatelyInvokedFunctionExpression:()=>bS,getImpliedNodeFormatForFile:()=>Bw,getImpliedNodeFormatForFileWorker:()=>EJ,getImportNeedsImportDefaultHelper:()=>kq,getImportNeedsImportStarHelper:()=>UF,getIndentSize:()=>TR,getIndentString:()=>c3,getInferredLibraryNameResolveFrom:()=>u7,getInitializedVariables:()=>VC,getInitializerOfBinaryExpression:()=>Ej,getInitializerOfBindingOrAssignmentElement:()=>Zk,getInterfaceBaseTypeNodes:()=>DC,getInternalEmitFlags:()=>Em,getInvokedExpression:()=>q4,getIsolatedModules:()=>rm,getJSDocAugmentsTag:()=>$ne,getJSDocClassTag:()=>AV,getJSDocCommentRanges:()=>dj,getJSDocCommentsAndTags:()=>Tj,getJSDocDeprecatedTag:()=>IV,getJSDocDeprecatedTagNoCache:()=>ire,getJSDocEnumTag:()=>xV,getJSDocHost:()=>AS,getJSDocImplementsTags:()=>Qne,getJSDocOverloadTags:()=>Ij,getJSDocOverrideTagNoCache:()=>rre,getJSDocParameterTags:()=>qx,getJSDocParameterTagsNoCache:()=>Jne,getJSDocPrivateTag:()=>I1e,getJSDocPrivateTagNoCache:()=>ere,getJSDocProtectedTag:()=>x1e,getJSDocProtectedTagNoCache:()=>tre,getJSDocPublicTag:()=>A1e,getJSDocPublicTagNoCache:()=>Zne,getJSDocReadonlyTag:()=>R1e,getJSDocReadonlyTagNoCache:()=>nre,getJSDocReturnTag:()=>ore,getJSDocReturnType:()=>iL,getJSDocRoot:()=>hR,getJSDocSatisfiesExpressionType:()=>TU,getJSDocSatisfiesTag:()=>RV,getJSDocTags:()=>a0,getJSDocTagsNoCache:()=>N1e,getJSDocTemplateTag:()=>D1e,getJSDocThisTag:()=>l4,getJSDocType:()=>o0,getJSDocTypeAliasName:()=>DH,getJSDocTypeAssertionType:()=>nF,getJSDocTypeParameterDeclarations:()=>h3,getJSDocTypeParameterTags:()=>Kne,getJSDocTypeParameterTagsNoCache:()=>Xne,getJSDocTypeTag:()=>i0,getJSXImplicitImportBase:()=>k3,getJSXRuntimeImport:()=>w3,getJSXTransformEnabled:()=>L3,getKeyForCompilerOptions:()=>sq,getLanguageVariant:()=>pk,getLastChild:()=>oU,getLeadingCommentRanges:()=>qh,getLeadingCommentRangesOfNode:()=>uj,getLeftmostAccessExpression:()=>DR,getLeftmostExpression:()=>NR,getLibraryNameFromLibFileName:()=>yJ,getLineAndCharacterOfPosition:()=>ys,getLineInfo:()=>Cq,getLineOfLocalPosition:()=>kC,getLineOfLocalPositionFromLineMap:()=>RS,getLineStartPositionForPosition:()=>am,getLineStarts:()=>Ng,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qie,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>$ie,getLinesBetweenPositions:()=>nC,getLinesBetweenRangeEndAndRangeStart:()=>nU,getLinesBetweenRangeEndPositions:()=>gSe,getLiteralText:()=>Wre,getLocalNameForExternalImport:()=>YR,getLocalSymbolForExportDefault:()=>xR,getLocaleSpecificMessage:()=>Wo,getLocaleTimeString:()=>jw,getMappedContextSpan:()=>tX,getMappedDocumentSpan:()=>a5,getMappedLocation:()=>oM,getMatchedFileSpec:()=>VJ,getMatchedIncludeSpec:()=>jJ,getMeaningFromDeclaration:()=>Yw,getMeaningFromLocation:()=>ZS,getMembersOfDeclaration:()=>$re,getModeForFileReference:()=>Fw,getModeForResolutionAtIndex:()=>Ule,getModeForUsageLocation:()=>mJ,getModifiedTime:()=>gA,getModifiers:()=>xE,getModuleInstanceState:()=>jg,getModuleNameStringLiteralAt:()=>Gw,getModuleSpecifierEndingPreference:()=>voe,getModuleSpecifierResolverHost:()=>KK,getNameForExportedSymbol:()=>y5,getNameFromImportAttribute:()=>Y3,getNameFromIndexInfo:()=>Hre,getNameFromPropertyName:()=>cO,getNameOfAccessExpression:()=>sU,getNameOfCompilerOptionValue:()=>qH,getNameOfDeclaration:()=>Lo,getNameOfExpando:()=>yj,getNameOfJSDocTypedef:()=>qne,getNameOrArgument:()=>BL,getNameTable:()=>TY,getNamesForExportedSymbol:()=>wue,getNamespaceDeclarationNode:()=>mR,getNewLineCharacter:()=>Fv,getNewLineKind:()=>yO,getNewLineOrDefaultFromHost:()=>Xv,getNewTargetContainer:()=>sie,getNextJSDocCommentLocation:()=>Aj,getNodeForGeneratedName:()=>tw,getNodeId:()=>as,getNodeKind:()=>f1,getNodeModifiers:()=>nM,getNodeModulePathParts:()=>J3,getNonAssignedNameOfDeclaration:()=>a4,getNonAssignmentOperatorForCompoundAssignment:()=>FP,getNonAugmentationDeclaration:()=>nj,getNonDecoratorTokenPosOfNode:()=>$V,getNormalizedAbsolutePath:()=>go,getNormalizedAbsolutePathWithoutRoot:()=>mV,getNormalizedPathComponents:()=>j2,getObjectFlags:()=>Wr,getOperator:()=>Fj,getOperatorAssociativity:()=>Wj,getOperatorPrecedence:()=>nk,getOptionFromName:()=>VH,getOptionsForLibraryResolution:()=>cq,getOptionsNameMap:()=>eD,getOrCreateEmitNode:()=>Ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Lae,getOrUpdate:()=>dA,getOriginalNode:()=>Pl,getOriginalNodeId:()=>Wu,getOriginalSourceFile:()=>sSe,getOutputDeclarationFileName:()=>JP,getOutputDeclarationFileNameWorker:()=>Qq,getOutputExtension:()=>ZF,getOutputFileNames:()=>dxe,getOutputJSFileNameWorker:()=>Zq,getOutputPathsFor:()=>qP,getOutputPathsForBundle:()=>HP,getOwnEmitOutputFilePath:()=>Iie,getOwnKeys:()=>Hh,getOwnValues:()=>fA,getPackageJsonInfo:()=>a1,getPackageJsonTypesVersionsPaths:()=>TF,getPackageJsonsVisibleToFile:()=>Mue,getPackageNameFromTypesPackageName:()=>wP,getPackageScopeForPath:()=>Ew,getParameterSymbolFromJSDoc:()=>KL,getParameterTypeNode:()=>DSe,getParentNodeInSpan:()=>dO,getParseTreeNode:()=>No,getParsedCommandLineOfConfigFile:()=>aw,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>hV,getPathFromPathComponents:()=>Ay,getPathUpdater:()=>wX,getPathsBasePath:()=>f3,getPatternFromSpec:()=>_oe,getPendingEmitKind:()=>mD,getPositionOfLineAndCharacter:()=>K2,getPossibleGenericSignatures:()=>WK,getPossibleOriginalInputExtensionForExtension:()=>Rie,getPossibleTypeArgumentsInfo:()=>FK,getPreEmitDiagnostics:()=>pxe,getPrecedingNonSpaceCharacterPosition:()=>l5,getPrivateIdentifier:()=>Fq,getProperties:()=>Oq,getProperty:()=>E6,getPropertyArrayElementValue:()=>rie,getPropertyAssignmentAliasLikeExpression:()=>bie,getPropertyNameForPropertyNameNode:()=>IS,getPropertyNameForUniqueESSymbol:()=>oSe,getPropertyNameFromType:()=>nm,getPropertyNameOfBindingOrAssignmentElement:()=>RH,getPropertySymbolFromBindingElement:()=>o5,getPropertySymbolsFromContextualType:()=>ez,getQuoteFromPreference:()=>YK,getQuotePreference:()=>lf,getRangesWhere:()=>zB,getRefactorContextSpan:()=>II,getReferencedFileLocation:()=>XP,getRegexFromPattern:()=>By,getRegularExpressionForWildcard:()=>qC,getRegularExpressionsForWildcards:()=>O3,getRelativePathFromDirectory:()=>vm,getRelativePathFromFile:()=>H2,getRelativePathToDirectoryOrUrl:()=>yA,getRenameLocation:()=>mO,getReplacementSpanForContextToken:()=>VK,getResolutionDiagnostic:()=>AJ,getResolutionModeOverride:()=>uD,getResolveJsonModule:()=>g0,getResolvePackageJsonExports:()=>tW,getResolvePackageJsonImports:()=>nW,getResolvedExternalModuleName:()=>u3,getRestIndicatorOfBindingOrAssignmentElement:()=>iF,getRestParameterElementType:()=>pj,getRightMostAssignedExpression:()=>FL,getRootDeclaration:()=>R_,getRootDirectoryOfResolutionCache:()=>pce,getRootLength:()=>uh,getRootPathSplitLength:()=>Wxe,getScriptKind:()=>aX,getScriptKindFromFileName:()=>B3,getScriptTargetFeatures:()=>Z3,getSelectedEffectiveModifierFlags:()=>wA,getSelectedSyntacticModifierFlags:()=>Wie,getSemanticClassifications:()=>zue,getSemanticJsxChildren:()=>bR,getSetAccessorTypeAnnotationNode:()=>Die,getSetAccessorValueParameter:()=>wC,getSetExternalModuleIndicator:()=>fk,getShebang:()=>r4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Sj,getSingleVariableOfVariableStatement:()=>PA,getSnapshotText:()=>ED,getSnippetElement:()=>XU,getSourceFileOfModule:()=>D4,getSourceFileOfNode:()=>Un,getSourceFilePathInNewDir:()=>m3,getSourceFilePathInNewDirWorker:()=>_3,getSourceFileVersionAsHashFromText:()=>A7,getSourceFilesToEmit:()=>Uj,getSourceMapRange:()=>Bv,getSourceMapper:()=>tde,getSourceTextOfNodeFromSourceFile:()=>CE,getSpanOfTokenAtPosition:()=>_h,getSpellingSuggestion:()=>KN,getStartPositionOfLine:()=>wy,getStartPositionOfRange:()=>GC,getStartsOnNewLine:()=>cP,getStaticPropertiesAndClassStaticBlock:()=>JF,getStrictOptionValue:()=>dd,getStringComparer:()=>Lx,getSubPatternFromSpec:()=>W3,getSuperCallFromStatement:()=>HF,getSuperContainer:()=>CL,getSupportedCodeFixes:()=>EY,getSupportedExtensions:()=>JC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>mk,getSwitchedType:()=>dX,getSymbolId:()=>Sa,getSymbolNameForPrivateIdentifier:()=>ek,getSymbolTarget:()=>sX,getSyntacticClassifications:()=>Bue,getSyntacticModifierFlags:()=>Fy,getSyntacticModifierFlagsNoCache:()=>Kj,getSynthesizedDeepClone:()=>ll,getSynthesizedDeepCloneWithReplacements:()=>fO,getSynthesizedDeepClones:()=>_1,getSynthesizedDeepClonesWithReplacements:()=>lX,getSyntheticLeadingComments:()=>WR,getSyntheticTrailingComments:()=>Lk,getTargetLabel:()=>B7,getTargetOfBindingOrAssignmentElement:()=>$y,getTemporaryModuleResolutionState:()=>bw,getTextOfConstantValue:()=>Fre,getTextOfIdentifierOrLiteral:()=>Qf,getTextOfJSDocComment:()=>aL,getTextOfJsxAttributeName:()=>Ek,getTextOfJsxNamespacedName:()=>oP,getTextOfNode:()=>fc,getTextOfNodeFromSourceText:()=>gC,getTextOfPropertyName:()=>nR,getThisContainer:()=>Fd,getThisParameter:()=>BE,getTokenAtPosition:()=>po,getTokenPosOfNode:()=>l0,getTokenSourceMapRange:()=>eTe,getTouchingPropertyName:()=>Vd,getTouchingToken:()=>bD,getTrailingCommentRanges:()=>Zb,getTrailingSemicolonDeferringWriter:()=>Vj,getTransformFlagsSubtreeExclusions:()=>Goe,getTransformers:()=>Xq,getTsBuildInfoEmitOutputFilePath:()=>Hv,getTsConfigObjectLiteralExpression:()=>EC,getTsConfigPropArrayElementValue:()=>G4,getTypeAnnotationNode:()=>Nie,getTypeArgumentOrTypeParameterList:()=>lue,getTypeKeywordOfTypeOnlyImport:()=>$K,getTypeNode:()=>Yoe,getTypeNodeIfAccessible:()=>uM,getTypeParameterFromJsDoc:()=>mie,getTypeParameterOwner:()=>y1e,getTypesPackageName:()=>CF,getUILocale:()=>rne,getUniqueName:()=>rT,getUniqueSymbolId:()=>Aue,getUseDefineForClassFields:()=>lP,getWatchErrorSummaryDiagnosticMessage:()=>FJ,getWatchFactory:()=>oJ,group:()=>JN,groupBy:()=>S6,guessIndentation:()=>xre,handleNoEmitOptions:()=>SJ,hasAbstractModifier:()=>jE,hasAccessorModifier:()=>D_,hasAmbientModifier:()=>Jj,hasChangesInResolutions:()=>KV,hasChildOfKind:()=>rO,hasContextSensitiveParameters:()=>H3,hasDecorators:()=>Tf,hasDocComment:()=>aue,hasDynamicName:()=>Wy,hasEffectiveModifier:()=>_p,hasEffectiveModifiers:()=>g3,hasEffectiveReadonlyModifier:()=>OC,hasExtension:()=>vA,hasIndexSignature:()=>uX,hasInitializer:()=>Ly,hasInvalidEscape:()=>Bj,hasJSDocNodes:()=>Wp,hasJSDocParameterTags:()=>Yne,hasJSFileExtension:()=>UE,hasJsonModuleEmitEnabled:()=>P3,hasOnlyExpressionInitializer:()=>_S,hasOverrideModifier:()=>v3,hasPossibleExternalModuleReference:()=>jre,hasProperty:()=>Is,hasPropertyAccessExpressionWithName:()=>Qw,hasQuestionToken:()=>CA,hasRecordedExternalHelpers:()=>Mae,hasResolutionModeOverride:()=>Moe,hasRestParameter:()=>UV,hasScopeMarker:()=>vre,hasStaticModifier:()=>mc,hasSyntacticModifier:()=>Qr,hasSyntacticModifiers:()=>Oie,hasTSFileExtension:()=>GA,hasTabstop:()=>Noe,hasTrailingDirectorySeparator:()=>Dv,hasType:()=>S4,hasTypeArguments:()=>eSe,hasZeroOrOneAsteriskCharacter:()=>uU,helperString:()=>QU,hostGetCanonicalFileName:()=>wv,hostUsesCaseSensitiveFileNames:()=>AR,idText:()=>Sr,identifierIsThisKeyword:()=>qj,identifierToKeywordKind:()=>r0,identity:()=>tl,identitySourceMapConsumer:()=>jF,ignoreSourceNewlines:()=>$U,ignoredPaths:()=>V2,importDefaultHelper:()=>CW,importFromModuleSpecifier:()=>IC,importNameElisionDisabled:()=>cU,importStarHelper:()=>wk,indexOfAnyCharCode:()=>Jc,indexOfNode:()=>tR,indicesOf:()=>N2,inferredTypesContainingFile:()=>fD,injectClassNamedEvaluationHelperBlockIfMissing:()=>YF,injectClassThisAssignmentIfMissing:()=>sle,insertImports:()=>iM,insertLeadingStatement:()=>yTe,insertSorted:()=>by,insertStatementAfterCustomPrologue:()=>hS,insertStatementAfterStandardPrologue:()=>U1e,insertStatementsAfterCustomPrologue:()=>XV,insertStatementsAfterStandardPrologue:()=>Yh,intersperse:()=>io,intrinsicTagNameToString:()=>AU,introducesArgumentsExoticObject:()=>tie,inverseJsxOptionMap:()=>PP,isAbstractConstructorSymbol:()=>Zie,isAbstractModifier:()=>aae,isAccessExpression:()=>ws,isAccessibilityModifier:()=>BK,isAccessor:()=>Cy,isAccessorModifier:()=>lae,isAliasSymbolDeclaration:()=>nSe,isAliasableExpression:()=>QL,isAmbientModule:()=>ku,isAmbientPropertyDeclaration:()=>ij,isAnonymousFunctionDefinition:()=>PC,isAnyDirectorySeparator:()=>dV,isAnyImportOrBareOrAccessedRequire:()=>Vre,isAnyImportOrReExport:()=>TL,isAnyImportSyntax:()=>gS,isAnySupportedFileExtension:()=>RSe,isApplicableVersionedTypesKey:()=>Tw,isArgumentExpressionOfElementAccess:()=>NK,isArray:()=>To,isArrayBindingElement:()=>h4,isArrayBindingOrAssignmentElement:()=>fL,isArrayBindingOrAssignmentPattern:()=>FV,isArrayBindingPattern:()=>YE,isArrayLiteralExpression:()=>fd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Jv,isArrayTypeNode:()=>Vk,isArrowFunction:()=>Gs,isAsExpression:()=>Uk,isAssertClause:()=>_ae,isAssertEntry:()=>dTe,isAssertionExpression:()=>mS,isAssertsKeyword:()=>iae,isAssignmentDeclaration:()=>AC,isAssignmentExpression:()=>Pc,isAssignmentOperator:()=>Ov,isAssignmentPattern:()=>mC,isAssignmentTarget:()=>eg,isAsteriskToken:()=>Fk,isAsyncFunction:()=>NC,isAsyncModifier:()=>pP,isAutoAccessorPropertyDeclaration:()=>Wd,isAwaitExpression:()=>Ky,isAwaitKeyword:()=>oH,isBigIntLiteral:()=>WW,isBinaryExpression:()=>mr,isBinaryOperatorToken:()=>Gae,isBindableObjectDefinePropertyCall:()=>SS,isBindableStaticAccessExpression:()=>OE,isBindableStaticElementAccessExpression:()=>t3,isBindableStaticNameExpression:()=>TS,isBindingElement:()=>$a,isBindingElementOfBareOrAccessedRequire:()=>uie,isBindingName:()=>pS,isBindingOrAssignmentElement:()=>pre,isBindingOrAssignmentPattern:()=>dL,isBindingPattern:()=>ta,isBlock:()=>Ko,isBlockOrCatchScoped:()=>QV,isBlockScope:()=>oj,isBlockScopedContainerTopLevel:()=>Gre,isBooleanLiteral:()=>fC,isBreakOrContinueStatement:()=>cC,isBreakStatement:()=>lTe,isBuildInfoFile:()=>wle,isBuilderProgram:()=>hce,isBundle:()=>pH,isBundleFileTextLike:()=>toe,isCallChain:()=>uS,isCallExpression:()=>sa,isCallExpressionTarget:()=>TK,isCallLikeExpression:()=>NE,isCallLikeOrFunctionLikeExpression:()=>zV,isCallOrNewExpression:()=>S_,isCallOrNewExpressionTarget:()=>AK,isCallSignatureDeclaration:()=>ZA,isCallToHelper:()=>dP,isCaseBlock:()=>yP,isCaseClause:()=>UR,isCaseKeyword:()=>cae,isCaseOrDefaultClause:()=>b4,isCatchClause:()=>r1,isCatchClauseVariableDeclaration:()=>Doe,isCatchClauseVariableDeclarationOrBindingElement:()=>ZV,isCheckJsEnabledForFile:()=>gk,isChildOfNodeWithKind:()=>q1e,isCircularBuildOrder:()=>bI,isClassDeclaration:()=>Ac,isClassElement:()=>Yc,isClassExpression:()=>Qc,isClassInstanceProperty:()=>ure,isClassLike:()=>di,isClassMemberModifier:()=>wV,isClassNamedEvaluationHelperBlock:()=>yI,isClassOrTypeElement:()=>_4,isClassStaticBlockDeclaration:()=>Rl,isClassThisAssignmentBlock:()=>BP,isCollapsedRange:()=>hSe,isColonToken:()=>nae,isCommaExpression:()=>Yk,isCommaListExpression:()=>hP,isCommaSequence:()=>AP,isCommaToken:()=>tae,isComment:()=>$7,isCommonJsExportPropertyAssignment:()=>z4,isCommonJsExportedExpression:()=>Zre,isCompoundAssignment:()=>WP,isComputedNonLiteralName:()=>AL,isComputedPropertyName:()=>Za,isConciseBody:()=>v4,isConditionalExpression:()=>jR,isConditionalTypeNode:()=>rI,isConstTypeReference:()=>Pg,isConstructSignatureDeclaration:()=>Bk,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>zR,isContextualKeyword:()=>a3,isContinueStatement:()=>sTe,isCustomPrologue:()=>DL,isDebuggerStatement:()=>cTe,isDeclaration:()=>Ju,isDeclarationBindingElement:()=>uL,isDeclarationFileName:()=>Su,isDeclarationName:()=>wg,isDeclarationNameOfEnumOrNamespace:()=>rU,isDeclarationReadonly:()=>w4,isDeclarationStatement:()=>Sre,isDeclarationWithTypeParameterChildren:()=>sj,isDeclarationWithTypeParameters:()=>aj,isDecorator:()=>Eu,isDecoratorTarget:()=>Jce,isDefaultClause:()=>EP,isDefaultImport:()=>NA,isDefaultModifier:()=>GW,isDefaultedExpandoInitializer:()=>die,isDeleteExpression:()=>pae,isDeleteTarget:()=>Rj,isDeprecatedDeclaration:()=>b5,isDestructuringAssignment:()=>Wv,isDiagnosticWithLocation:()=>_X,isDiskPathRoot:()=>pV,isDoStatement:()=>oTe,isDocumentRegistryEntry:()=>EO,isDotDotDotToken:()=>zW,isDottedName:()=>FC,isDynamicName:()=>l3,isESSymbolIdentifier:()=>aSe,isEffectiveExternalModule:()=>RA,isEffectiveModuleDeclaration:()=>Bre,isEffectiveStrictModeSourceFile:()=>rj,isElementAccessChain:()=>DV,isElementAccessExpression:()=>$s,isEmittedFileOfProgram:()=>zle,isEmptyArrayLiteral:()=>Uie,isEmptyBindingElement:()=>Une,isEmptyBindingPattern:()=>jne,isEmptyObjectLiteral:()=>Zj,isEmptyStatement:()=>cH,isEmptyStringLiteral:()=>_j,isEntityName:()=>Qd,isEntityNameExpression:()=>Bl,isEnumConst:()=>ME,isEnumDeclaration:()=>y0,isEnumMember:()=>i1,isEqualityOperatorKind:()=>d5,isEqualsGreaterThanToken:()=>rae,isExclamationToken:()=>zk,isExcludedFile:()=>tse,isExclusivelyTypeOnlyImportOrExport:()=>fJ,isExpandoPropertyDeclaration:()=>X3,isExportAssignment:()=>kl,isExportDeclaration:()=>Yl,isExportModifier:()=>$A,isExportName:()=>tF,isExportNamespaceAsDefaultDeclaration:()=>P4,isExportOrDefaultModifier:()=>ew,isExportSpecifier:()=>Ku,isExportsIdentifier:()=>ES,isExportsOrModuleExportsOrAlias:()=>s1,isExpression:()=>yt,isExpressionNode:()=>Qh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>$ce,isExpressionOfOptionalChainRoot:()=>p4,isExpressionStatement:()=>Zc,isExpressionWithTypeArguments:()=>Vv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>y3,isExternalModule:()=>sc,isExternalModuleAugmentation:()=>PE,isExternalModuleImportEqualsDeclaration:()=>c0,isExternalModuleIndicator:()=>mL,isExternalModuleNameRelative:()=>Xc,isExternalModuleReference:()=>Sh,isExternalModuleSymbol:()=>sO,isExternalOrCommonJsModule:()=>Fp,isFileLevelReservedGeneratedIdentifier:()=>cL,isFileLevelUniqueName:()=>N4,isFileProbablyExternalModule:()=>rw,isFirstDeclarationOfSymbolParameter:()=>nX,isFixablePromiseHandler:()=>BX,isForInOrOfStatement:()=>Yx,isForInStatement:()=>JW,isForInitializer:()=>Sf,isForOfStatement:()=>Hk,isForStatement:()=>zS,isFunctionBlock:()=>kE,isFunctionBody:()=>GV,isFunctionDeclaration:()=>Tc,isFunctionExpression:()=>Os,isFunctionExpressionOrArrowFunction:()=>qE,isFunctionLike:()=>ea,isFunctionLikeDeclaration:()=>Bs,isFunctionLikeKind:()=>TA,isFunctionLikeOrClassStaticBlockDeclaration:()=>Xx,isFunctionOrConstructorTypeNode:()=>dre,isFunctionOrModuleBlock:()=>OV,isFunctionSymbol:()=>fie,isFunctionTypeNode:()=>yh,isFutureReservedKeyword:()=>rSe,isGeneratedIdentifier:()=>al,isGeneratedPrivateIdentifier:()=>dS,isGetAccessor:()=>My,isGetAccessorDeclaration:()=>tf,isGetOrSetAccessorDeclaration:()=>u4,isGlobalDeclaration:()=>HRe,isGlobalScopeAugmentation:()=>A_,isGrammarError:()=>wre,isHeritageClause:()=>nf,isHoistedFunction:()=>W4,isHoistedVariableStatement:()=>F4,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>Mj,isIdentifierName:()=>yie,isIdentifierOrThisTypeNode:()=>Wae,isIdentifierPart:()=>e0,isIdentifierStart:()=>Jh,isIdentifierText:()=>Zp,isIdentifierTypePredicate:()=>nie,isIdentifierTypeReference:()=>Toe,isIfStatement:()=>FS,isIgnoredFileFromWildCardWatching:()=>ww,isImplicitGlob:()=>fU,isImportAttribute:()=>hae,isImportAttributeName:()=>cre,isImportAttributes:()=>aI,isImportCall:()=>zp,isImportClause:()=>bh,isImportDeclaration:()=>Mc,isImportEqualsDeclaration:()=>eu,isImportKeyword:()=>mP,isImportMeta:()=>oR,isImportOrExportSpecifier:()=>SA,isImportOrExportSpecifierName:()=>Tue,isImportSpecifier:()=>tp,isImportTypeAssertionContainer:()=>uTe,isImportTypeNode:()=>ag,isImportableFile:()=>RX,isInComment:()=>qv,isInCompoundLikeAssignment:()=>xj,isInExpressionContext:()=>K4,isInJSDoc:()=>kL,isInJSFile:()=>lr,isInJSXText:()=>iue,isInJsonFile:()=>Y4,isInNonReferenceComment:()=>due,isInReferenceComment:()=>uue,isInRightSideOfInternalImportEqualsDeclaration:()=>F7,isInString:()=>SI,isInTemplateString:()=>OK,isInTopLevelContext:()=>U4,isInTypeQuery:()=>DS,isIncrementalCompilation:()=>sP,isIndexSignatureDeclaration:()=>XE,isIndexedAccessTypeNode:()=>WS,isInferTypeNode:()=>kS,isInfinityOrNaNString:()=>tP,isInitializedProperty:()=>Dw,isInitializedVariable:()=>dk,isInsideJsxElement:()=>X7,isInsideJsxElementOrAttribute:()=>rue,isInsideNodeModules:()=>vO,isInsideTemplateLiteral:()=>oO,isInstanceOfExpression:()=>b3,isInstantiatedModule:()=>Aq,isInterfaceDeclaration:()=>md,isInternalDeclaration:()=>HV,isInternalModuleImportEqualsDeclaration:()=>uR,isInternalName:()=>AH,isIntersectionTypeNode:()=>nI,isIntrinsicJsxName:()=>SR,isIterationStatement:()=>Py,isJSDoc:()=>Zm,isJSDocAllType:()=>Eae,isJSDocAugmentsTag:()=>uI,isJSDocAuthorTag:()=>_Te,isJSDocCallbackTag:()=>mH,isJSDocClassTag:()=>Tae,isJSDocCommentContainingNode:()=>E4,isJSDocConstructSignature:()=>_R,isJSDocDeprecatedTag:()=>yH,isJSDocEnumTag:()=>Jk,isJSDocFunctionType:()=>qR,isJSDocImplementsTag:()=>QW,isJSDocIndexSignature:()=>$4,isJSDocLikeText:()=>LH,isJSDocLink:()=>yae,isJSDocLinkCode:()=>bae,isJSDocLinkLike:()=>xA,isJSDocLinkPlain:()=>fTe,isJSDocMemberName:()=>b0,isJSDocNameReference:()=>SP,isJSDocNamepathType:()=>mTe,isJSDocNamespaceBody:()=>F1e,isJSDocNode:()=>$x,isJSDocNonNullableType:()=>KW,isJSDocNullableType:()=>HR,isJSDocOptionalParameter:()=>bk,isJSDocOptionalType:()=>fH,isJSDocOverloadTag:()=>JR,isJSDocOverrideTag:()=>YW,isJSDocParameterTag:()=>e_,isJSDocPrivateTag:()=>hH,isJSDocPropertyLikeTag:()=>uC,isJSDocPropertyTag:()=>Aae,isJSDocProtectedTag:()=>gH,isJSDocPublicTag:()=>_H,isJSDocReadonlyTag:()=>vH,isJSDocReturnTag:()=>$W,isJSDocSatisfiesExpression:()=>SU,isJSDocSatisfiesTag:()=>ZW,isJSDocSeeTag:()=>hTe,isJSDocSignature:()=>E0,isJSDocTag:()=>Qx,isJSDocTemplateTag:()=>om,isJSDocThisTag:()=>bH,isJSDocThrowsTag:()=>vTe,isJSDocTypeAlias:()=>$f,isJSDocTypeAssertion:()=>XR,isJSDocTypeExpression:()=>o1,isJSDocTypeLiteral:()=>jS,isJSDocTypeTag:()=>TP,isJSDocTypedefTag:()=>US,isJSDocUnknownTag:()=>gTe,isJSDocUnknownType:()=>Sae,isJSDocVariadicType:()=>XW,isJSXTagName:()=>cR,isJsonEqual:()=>j3,isJsonSourceFile:()=>Yf,isJsxAttribute:()=>w_,isJsxAttributeLike:()=>y4,isJsxAttributeName:()=>Poe,isJsxAttributes:()=>n1,isJsxChild:()=>gL,isJsxClosingElement:()=>e1,isJsxClosingFragment:()=>gae,isJsxElement:()=>sg,isJsxExpression:()=>bP,isJsxFragment:()=>t1,isJsxNamespacedName:()=>Qm,isJsxOpeningElement:()=>k_,isJsxOpeningFragment:()=>lI,isJsxOpeningLikeElement:()=>ld,isJsxOpeningLikeElementTagName:()=>Kce,isJsxSelfClosingElement:()=>GS,isJsxSpreadAttribute:()=>cI,isJsxTagNameExpression:()=>_C,isJsxText:()=>KA,isJumpStatementTarget:()=>Zw,isKeyword:()=>Bd,isKeywordOrPunctuation:()=>o3,isKnownSymbol:()=>tk,isLabelName:()=>RK,isLabelOfLabeledStatement:()=>xK,isLabeledStatement:()=>ZE,isLateVisibilityPaintedStatement:()=>L4,isLeftHandSideExpression:()=>Zd,isLeftHandSideOfAssignment:()=>_Se,isLet:()=>O4,isLineBreak:()=>Hu,isLiteralComputedPropertyDeclarationName:()=>$L,isLiteralExpression:()=>DE,isLiteralExpressionOfObject:()=>LV,isLiteralImportTypeNode:()=>Oy,isLiteralKind:()=>dC,isLiteralLikeAccess:()=>e3,isLiteralLikeElementAccess:()=>zL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>G7,isLiteralTypeLikeExpression:()=>ATe,isLiteralTypeLiteral:()=>hre,isLiteralTypeNode:()=>Jy,isLocalName:()=>Gg,isLogicalOperator:()=>Gie,isLogicalOrCoalescingAssignmentExpression:()=>Xj,isLogicalOrCoalescingAssignmentOperator:()=>WC,isLogicalOrCoalescingBinaryExpression:()=>sk,isLogicalOrCoalescingBinaryOperator:()=>ak,isMappedTypeNode:()=>GR,isMemberName:()=>Kh,isMetaProperty:()=>_P,isMethodDeclaration:()=>Hl,isMethodOrAccessor:()=>AA,isMethodSignature:()=>vh,isMinusToken:()=>iH,isMissingDeclaration:()=>pTe,isMissingPackageJsonInfo:()=>vse,isModifier:()=>Aa,isModifierKind:()=>Pv,isModifierLike:()=>sl,isModuleAugmentationExternal:()=>tj,isModuleBlock:()=>L_,isModuleBody:()=>yre,isModuleDeclaration:()=>Xl,isModuleExportsAccessExpression:()=>Zh,isModuleIdentifier:()=>bj,isModuleName:()=>Bae,isModuleOrEnumDeclaration:()=>_L,isModuleReference:()=>Are,isModuleSpecifierLike:()=>i5,isModuleWithStringLiteralName:()=>M4,isNameOfFunctionDeclaration:()=>PK,isNameOfModuleDeclaration:()=>CK,isNamedClassElement:()=>L1e,isNamedDeclaration:()=>ad,isNamedEvaluation:()=>mp,isNamedEvaluationSource:()=>Lj,isNamedExportBindings:()=>CV,isNamedExports:()=>Nf,isNamedImportBindings:()=>VV,isNamedImports:()=>Bg,isNamedImportsOrExports:()=>R3,isNamedTupleMember:()=>BR,isNamespaceBody:()=>W1e,isNamespaceExport:()=>Eh,isNamespaceExportDeclaration:()=>qk,isNamespaceImport:()=>Yy,isNamespaceReexportDeclaration:()=>cie,isNewExpression:()=>$E,isNewExpressionTarget:()=>eM,isNoSubstitutionTemplateLiteral:()=>XA,isNode:()=>P1e,isNodeArray:()=>RE,isNodeArrayMultiLine:()=>Yie,isNodeDescendantOf:()=>WE,isNodeKind:()=>sL,isNodeLikeSystem:()=>eG,isNodeModulesDirectory:()=>Q6,isNodeWithPossibleHoistedDeclaration:()=>hie,isNonContextualKeyword:()=>Pj,isNonExportDefaultModifier:()=>xTe,isNonGlobalAmbientModule:()=>ej,isNonGlobalDeclaration:()=>Fue,isNonNullAccess:()=>Coe,isNonNullChain:()=>f4,isNonNullExpression:()=>oI,isNonStaticMethodOrAccessorWithPrivateName:()=>Qse,isNotEmittedOrPartiallyEmittedNode:()=>O1e,isNotEmittedStatement:()=>dH,isNullishCoalesce:()=>NV,isNumber:()=>Av,isNumericLiteral:()=>hp,isNumericLiteralName:()=>og,isObjectBindingElementWithoutPropertyName:()=>uO,isObjectBindingOrAssignmentElement:()=>pL,isObjectBindingOrAssignmentPattern:()=>WV,isObjectBindingPattern:()=>im,isObjectLiteralElement:()=>jV,isObjectLiteralElementLike:()=>Mg,isObjectLiteralExpression:()=>La,isObjectLiteralMethod:()=>Tm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>B4,isObjectTypeDeclaration:()=>FA,isOctalDigit:()=>n4,isOmittedExpression:()=>Gc,isOptionalChain:()=>qu,isOptionalChainRoot:()=>sC,isOptionalDeclaration:()=>rP,isOptionalJSDocPropertyLikeTag:()=>yk,isOptionalTypeNode:()=>VW,isOuterExpression:()=>rF,isOutermostOptionalChain:()=>lC,isOverrideModifier:()=>sae,isPackageJsonInfo:()=>IF,isPackedArrayLiteral:()=>bU,isParameter:()=>Ao,isParameterDeclaration:()=>zE,isParameterPropertyDeclaration:()=>pp,isParameterPropertyModifier:()=>pC,isParenthesizedExpression:()=>Gd,isParenthesizedTypeNode:()=>wS,isParseTreeNode:()=>aC,isPartOfTypeNode:()=>$h,isPartOfTypeQuery:()=>X4,isPartiallyEmittedExpression:()=>qW,isPatternMatch:()=>x6,isPinnedComment:()=>C4,isPlainJsFile:()=>bL,isPlusToken:()=>rH,isPossiblyTypeArgumentPosition:()=>iO,isPostfixUnaryExpression:()=>sH,isPrefixUnaryExpression:()=>Xy,isPrivateIdentifier:()=>qi,isPrivateIdentifierClassElementDeclaration:()=>sd,isPrivateIdentifierPropertyAccessExpression:()=>Kx,isPrivateIdentifierSymbol:()=>Eie,isProgramBundleEmitBuildInfo:()=>tce,isProgramUptoDate:()=>bJ,isPrologueDirective:()=>Sm,isPropertyAccessChain:()=>d4,isPropertyAccessEntityNameExpression:()=>lk,isPropertyAccessExpression:()=>Fr,isPropertyAccessOrQualifiedName:()=>mre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>fre,isPropertyAssignment:()=>hc,isPropertyDeclaration:()=>qo,isPropertyName:()=>oc,isPropertyNameLiteral:()=>x_,isPropertySignature:()=>gp,isProtoSetter:()=>Sie,isPrototypeAccess:()=>zy,isPrototypePropertyAssignment:()=>VL,isPunctuation:()=>Cj,isPushOrUnshiftIdentifier:()=>kj,isQualifiedName:()=>Id,isQuestionDotToken:()=>BW,isQuestionOrExclamationToken:()=>Oae,isQuestionOrPlusOrMinusToken:()=>zae,isQuestionToken:()=>Hy,isRawSourceMap:()=>Kse,isReadonlyKeyword:()=>oae,isReadonlyKeywordOrPlusOrMinusToken:()=>Fae,isRecognizedTripleSlashComment:()=>YV,isReferenceFileLocation:()=>dD,isReferencedFile:()=>D0,isRegularExpressionLiteral:()=>tH,isRequireCall:()=>Td,isRequireVariableStatement:()=>vj,isRestParameter:()=>Xh,isRestTypeNode:()=>jW,isReturnStatement:()=>Im,isReturnStatementWithFixablePromiseHandler:()=>C5,isRightSideOfAccessExpression:()=>Qj,isRightSideOfInstanceofExpression:()=>jie,isRightSideOfPropertyAccess:()=>vD,isRightSideOfQualifiedName:()=>Yce,isRightSideOfQualifiedNameOrPropertyAccess:()=>zC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vie,isRootedDiskPath:()=>dp,isSameEntityName:()=>dR,isSatisfiesExpression:()=>lH,isScopeMarker:()=>gre,isSemicolonClassElement:()=>fae,isSetAccessor:()=>Mv,isSetAccessorDeclaration:()=>vp,isShebangTrivia:()=>gV,isShiftOperatorOrHigher:()=>CH,isShorthandAmbientModuleSymbol:()=>vC,isShorthandPropertyAssignment:()=>np,isSignedNumericLiteral:()=>s3,isSimpleCopiableExpression:()=>c1,isSimpleInlineableExpression:()=>Ih,isSimpleParameter:()=>rle,isSimpleParameterList:()=>Nw,isSingleOrDoubleQuote:()=>wL,isSourceFile:()=>$i,isSourceFileFromLibrary:()=>xD,isSourceFileJS:()=>cd,isSourceFileNotJS:()=>X1e,isSourceFileNotJson:()=>gj,isSourceMapping:()=>Xse,isSpecialPropertyDeclaration:()=>pie,isSpreadAssignment:()=>jv,isSpreadElement:()=>$m,isStatement:()=>Hi,isStatementButNotDeclaration:()=>hL,isStatementOrBlock:()=>Tre,isStatementWithLocals:()=>kre,isStatic:()=>aa,isStaticModifier:()=>QA,isString:()=>Mo,isStringAKeyword:()=>iSe,isStringANonContextualKeyword:()=>LA,isStringAndEmptyAnonymousObjectIntersection:()=>cue,isStringDoubleQuoted:()=>Z4,isStringLiteral:()=>Na,isStringLiteralLike:()=>ls,isStringLiteralOrJsxExpression:()=>Ire,isStringLiteralOrTemplate:()=>Nue,isStringOrNumericLiteralLike:()=>ef,isStringOrRegularExpressionOrTemplateLiteral:()=>zK,isStringTextContainingNode:()=>kV,isSuperCall:()=>yS,isSuperKeyword:()=>fP,isSuperOrSuperProperty:()=>K1e,isSuperProperty:()=>zd,isSupportedSourceFileName:()=>yoe,isSwitchStatement:()=>vP,isSyntaxList:()=>KR,isSyntheticExpression:()=>iTe,isSyntheticReference:()=>sI,isTagName:()=>DK,isTaggedTemplateExpression:()=>QE,isTaggedTemplateTag:()=>qce,isTemplateExpression:()=>UW,isTemplateHead:()=>YA,isTemplateLiteral:()=>IA,isTemplateLiteralKind:()=>Ny,isTemplateLiteralToken:()=>sre,isTemplateLiteralTypeNode:()=>uae,isTemplateLiteralTypeSpan:()=>aH,isTemplateMiddle:()=>nH,isTemplateMiddleOrTemplateTail:()=>m4,isTemplateSpan:()=>gP,isTemplateTail:()=>FW,isTextWhiteSpaceLike:()=>_ue,isThis:()=>yD,isThisContainerOrFunctionBlock:()=>aie,isThisIdentifier:()=>VE,isThisInTypeQuery:()=>kA,isThisInitializedDeclaration:()=>H4,isThisInitializedObjectBindingExpression:()=>lie,isThisProperty:()=>PL,isThisTypeNode:()=>jk,isThisTypeParameter:()=>nP,isThisTypePredicate:()=>J1e,isThrowStatement:()=>uH,isToken:()=>EA,isTokenKind:()=>MV,isTraceEnabled:()=>Vg,isTransientSymbol:()=>ph,isTrivia:()=>yR,isTryStatement:()=>BS,isTupleTypeNode:()=>tI,isTypeAlias:()=>HL,isTypeAliasDeclaration:()=>xm,isTypeAssertionExpression:()=>dae,isTypeDeclaration:()=>kR,isTypeElement:()=>fS,isTypeKeyword:()=>rM,isTypeKeywordToken:()=>HK,isTypeKeywordTokenOrIdentifier:()=>e5,isTypeLiteralNode:()=>yp,isTypeNode:()=>ji,isTypeNodeKind:()=>aU,isTypeOfExpression:()=>VR,isTypeOnlyExportDeclaration:()=>lre,isTypeOnlyImportDeclaration:()=>lL,isTypeOnlyImportOrExportDeclaration:()=>s0,isTypeOperatorNode:()=>OS,isTypeParameterDeclaration:()=>hl,isTypePredicateNode:()=>Gk,isTypeQueryNode:()=>eI,isTypeReferenceNode:()=>Df,isTypeReferenceType:()=>T4,isTypeUsableAsPropertyName:()=>tm,isUMDExportSymbol:()=>x3,isUnaryExpression:()=>BV,isUnaryExpressionWithWrite:()=>_re,isUnicodeIdentifierStart:()=>e4,isUnionTypeNode:()=>qy,isUnparsedNode:()=>PV,isUnparsedPrepend:()=>vae,isUnparsedSource:()=>VS,isUnparsedTextLike:()=>are,isUrl:()=>Rne,isValidBigIntString:()=>U3,isValidESSymbolDeclaration:()=>eie,isValidTypeOnlyAliasUseSite:()=>h0,isValueSignatureDeclaration:()=>gie,isVarAwaitUsing:()=>xL,isVarConst:()=>iR,isVarUsing:()=>RL,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>bC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>wE,isVariableDeclarationInitializedToRequire:()=>Q4,isVariableDeclarationList:()=>Vc,isVariableLike:()=>aR,isVariableLikeOrAccessor:()=>Qre,isVariableStatement:()=>Ll,isVoidExpression:()=>iI,isWatchSet:()=>vSe,isWhileStatement:()=>aTe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>E_,isWithStatement:()=>mae,isWriteAccess:()=>WA,isWriteOnlyAccess:()=>I3,isYieldExpression:()=>HW,jsxModeNeedsExplicitImport:()=>bX,keywordPart:()=>Ep,last:()=>Xa,lastOrUndefined:()=>el,length:()=>Ne,libMap:()=>_F,libs:()=>pw,lineBreakPart:()=>AD,linkNamePart:()=>Eue,linkPart:()=>iX,linkTextPart:()=>s5,listFiles:()=>zJ,loadModuleFromGlobalCache:()=>Dse,loadWithModeAwareCache:()=>zw,makeIdentifierFromModuleName:()=>zre,makeImport:()=>Kv,makeImportIfNecessary:()=>mue,makeStringLiteral:()=>AI,mangleScopedPackageName:()=>aD,map:()=>Wt,mapAllOrFail:()=>Jb,mapDefined:()=>eo,mapDefinedEntries:()=>v6,mapDefinedIterator:()=>Kb,mapEntries:()=>Kte,mapIterator:()=>Qa,mapOneOrMany:()=>gX,mapToDisplayParts:()=>nb,matchFiles:()=>mU,matchPatternOrExact:()=>_U,matchedText:()=>lne,matchesExclude:()=>mF,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>soe,memoize:()=>Sd,memoizeCached:()=>tne,memoizeOne:()=>lh,memoizeWeak:()=>IEe,metadataHelper:()=>dW,min:()=>XB,minAndMax:()=>Eoe,missingFileModifiedTime:()=>wp,modifierToFlag:()=>OA,modifiersToFlags:()=>N_,moduleOptionDeclaration:()=>YH,moduleResolutionIsEqualTo:()=>Mre,moduleResolutionNameAndModeGetter:()=>m7,moduleResolutionOptionDeclarations:()=>hF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>BA,moduleResolutionUsesNodeModules:()=>t5,moduleSpecifiers:()=>l1,moveEmitHelpers:()=>Koe,moveRangeEnd:()=>T3,moveRangePastDecorators:()=>Og,moveRangePastModifiers:()=>C_,moveRangePos:()=>m0,moveSyntheticComments:()=>Hoe,mutateMap:()=>UC,mutateMapSkippingNewValues:()=>rg,needsParentheses:()=>c5,needsScopeMarker:()=>g4,newCaseClauseTracker:()=>T5,newPrivateEnvironment:()=>tle,noEmitNotification:()=>Cw,noEmitSubstitution:()=>jP,noTransformers:()=>Yq,noTruncationMaximumTruncationLength:()=>Q3,nodeCanBeDecorated:()=>J4,nodeHasName:()=>rL,nodeIsDecorated:()=>lR,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Kf,nodeIsSynthesized:()=>Ys,nodeModuleNameResolver:()=>Sse,nodeModulesPathPart:()=>Ah,nodeNextJsonConfigResolver:()=>Tse,nodeOrChildIsDecorated:()=>LL,nodeOverlapsWithStartEnd:()=>V7,nodePosToString:()=>B1e,nodeSeenTracker:()=>TI,nodeStartsNewLexicalEnvironment:()=>wj,nodeToDisplayParts:()=>zRe,noop:()=>Ya,noopFileWatcher:()=>hD,normalizePath:()=>ha,normalizeSlashes:()=>Lu,not:()=>D6,notImplemented:()=>Jo,notImplementedResolver:()=>r7,nullNodeConverters:()=>VU,nullParenthesizerRules:()=>GU,nullTransformationContext:()=>UP,objectAllocator:()=>su,operatorPart:()=>aM,optionDeclarations:()=>lg,optionMapToObject:()=>dF,optionsAffectingProgramStructure:()=>tq,optionsForBuild:()=>rq,optionsForWatch:()=>tD,optionsHaveChanges:()=>Zx,optionsHaveModuleResolutionChanges:()=>Nre,or:()=>Jm,orderedRemoveItem:()=>wx,orderedRemoveItemAt:()=>Sy,outFile:()=>Ps,packageIdToPackageName:()=>R4,packageIdToString:()=>ky,paramHelper:()=>pW,parameterIsThisKeyword:()=>GE,parameterNamePart:()=>gue,parseBaseNodeFactory:()=>FH,parseBigInt:()=>Soe,parseBuildCommand:()=>iAe,parseCommandLine:()=>nAe,parseCommandLineWorker:()=>GH,parseConfigFileTextToJson:()=>jH,parseConfigFileWithSystem:()=>zxe,parseConfigHostFromCompilerHostLike:()=>f7,parseCustomTypeOption:()=>uF,parseIsolatedEntityName:()=>pI,parseIsolatedJSDocComment:()=>Jae,parseJSDocTypeExpressionForTests:()=>jTe,parseJsonConfigFileContent:()=>vAe,parseJsonSourceFileConfigFileContent:()=>cw,parseJsonText:()=>ow,parseListTypeOption:()=>Xae,parseNodeFactory:()=>Th,parseNodeModuleFromPath:()=>yw,parsePackageName:()=>Sw,parsePseudoBigInt:()=>$C,parseValidBigInt:()=>yU,patchWriteFileEnsuringDirectory:()=>Ine,pathContainsNodeModules:()=>x0,pathIsAbsolute:()=>ZN,pathIsBareSpecifier:()=>fV,pathIsRelative:()=>Op,patternText:()=>sne,perfLogger:()=>id,performIncrementalCompilation:()=>jxe,performance:()=>yne,plainJSErrors:()=>_7,positionBelongsToNode:()=>LK,positionIsASICandidate:()=>f5,positionIsSynthesized:()=>Ym,positionsAreOnSameLine:()=>If,preProcessFile:()=>pDe,probablyUsesSemicolons:()=>hO,processCommentPragmas:()=>OH,processPragmasIntoFields:()=>WH,processTaggedTemplateExpression:()=>jq,programContainsEsModules:()=>fue,programContainsModules:()=>pue,projectReferenceIsEqualTo:()=>JV,propKeyHelper:()=>IW,propertyNamePart:()=>vue,pseudoBigIntToString:()=>HE,punctuationPart:()=>$u,pushIfUnique:()=>Ef,quote:()=>cM,quotePreferenceFromString:()=>XK,rangeContainsPosition:()=>eO,rangeContainsPositionExclusive:()=>tO,rangeContainsRange:()=>sf,rangeContainsRangeExclusive:()=>Qce,rangeContainsStartEnd:()=>nO,rangeEndIsOnSameLineAsRangeStart:()=>uk,rangeEndPositionsAreOnSameLine:()=>Kie,rangeEquals:()=>VB,rangeIsOnSingleLine:()=>CS,rangeOfNode:()=>gU,rangeOfTypeParameters:()=>vU,rangeOverlapsWithStartEnd:()=>tM,rangeStartIsOnSameLineAsRangeEnd:()=>Xie,rangeStartPositionsAreOnSameLine:()=>A3,readBuilderProgram:()=>R7,readConfigFile:()=>sw,readHelper:()=>TW,readJson:()=>BC,readJsonConfigFile:()=>Qae,readJsonOrUndefined:()=>eU,reduceEachLeadingCommentRange:()=>Lne,reduceEachTrailingCommentRange:()=>kne,reduceLeft:()=>rd,reduceLeftIterator:()=>Pr,reducePathComponents:()=>cS,refactor:()=>RI,regExpEscape:()=>ISe,relativeComplement:()=>Xte,removeAllComments:()=>Pk,removeEmitHelper:()=>tTe,removeExtension:()=>hk,removeFileExtension:()=>Ad,removeIgnoredPath:()=>v7,removeMinAndVersionNumbers:()=>YB,removeOptionality:()=>oue,removePrefix:()=>XN,removeSuffix:()=>kx,removeTrailingDirectorySeparator:()=>Qb,repeatString:()=>lO,replaceElement:()=>HB,replaceFirstStar:()=>jA,resolutionExtensionIsTSOrJson:()=>KC,resolveConfigFileProjectName:()=>YJ,resolveJSModule:()=>bse,resolveLibrary:()=>RF,resolveModuleName:()=>iD,resolveModuleNameFromCache:()=>tIe,resolvePackageNameToPackageJson:()=>aq,resolvePath:()=>Iy,resolveProjectReferencePath:()=>pD,resolveTripleslashReference:()=>s7,resolveTypeReferenceDirective:()=>hse,resolvingEmptyArray:()=>$3,restHelper:()=>yW,returnFalse:()=>qm,returnNoopFileWatcher:()=>gD,returnTrue:()=>Iv,returnUndefined:()=>Yb,returnsPromise:()=>zX,runInitializersHelper:()=>mW,sameFlatMap:()=>Cx,sameMap:()=>Zo,sameMapping:()=>VIe,scanShebangTrivia:()=>vV,scanTokenAtPosition:()=>Xre,scanner:()=>Qu,screenStartingMessageCodes:()=>x7,semanticDiagnosticsOptionDeclarations:()=>QH,serializeCompilerOptions:()=>pF,server:()=>cOe,servicesVersion:()=>ape,setCommentRange:()=>ac,setConfigFileInOptions:()=>KH,setConstantValue:()=>Joe,setEachParent:()=>LR,setEmitFlags:()=>pr,setFunctionNameHelper:()=>xW,setGetSourceFileAsHashVersioned:()=>I7,setIdentifierAutoGenerate:()=>kk,setIdentifierGeneratedImportReference:()=>$oe,setIdentifierTypeArguments:()=>Gv,setInternalEmitFlags:()=>Mk,setLocalizedDiagnosticMessages:()=>aoe,setModuleDefaultHelper:()=>NW,setNodeFlags:()=>Ioe,setObjectAllocator:()=>ooe,setOriginalNode:()=>Nr,setParent:()=>Ha,setParentRecursive:()=>Gy,setPrivateIdentifier:()=>KS,setSnippetElement:()=>YU,setSourceMapRange:()=>Da,setStackTraceLimit:()=>qEe,setStartsOnNewLine:()=>sW,setSyntheticLeadingComments:()=>v0,setSyntheticTrailingComments:()=>HA,setSys:()=>$Ee,setSysLog:()=>Tne,setTextRange:()=>dt,setTextRangeEnd:()=>MR,setTextRangePos:()=>QC,setTextRangePosEnd:()=>hh,setTextRangePosWidth:()=>ZC,setTokenSourceMapRange:()=>Uoe,setTypeNode:()=>Xoe,setUILocale:()=>ine,setValueDeclaration:()=>jL,shouldAllowImportingTsExtension:()=>sD,shouldPreserveConstEnums:()=>KE,shouldUseUriStyleNodeCoreModules:()=>E5,showModuleSpecifier:()=>eoe,signatureHasLiteralTypes:()=>Iq,signatureHasRestParameter:()=>Yu,signatureToDisplayParts:()=>oX,single:()=>UB,singleElementArray:()=>hA,singleIterator:()=>Jte,singleOrMany:()=>ah,singleOrUndefined:()=>oh,skipAlias:()=>bu,skipAssertions:()=>ETe,skipConstraint:()=>qK,skipOuterExpressions:()=>$l,skipParentheses:()=>hs,skipPartiallyEmittedExpressions:()=>bm,skipTrivia:()=>Pa,skipTypeChecking:()=>YC,skipTypeParentheses:()=>YL,skipWhile:()=>une,sliceAfter:()=>hU,some:()=>bt,sort:()=>iS,sortAndDeduplicate:()=>HN,sortAndDeduplicateDiagnostics:()=>Ux,sourceFileAffectingCompilerOptions:()=>gF,sourceFileMayBeEmitted:()=>xS,sourceMapCommentRegExp:()=>GF,sourceMapCommentRegExpDontCareLineStart:()=>Lq,spacePart:()=>wl,spanMap:()=>FB,spreadArrayHelper:()=>AW,stableSort:()=>Sv,startEndContainsRange:()=>MK,startEndOverlapsWithStartEnd:()=>j7,startOnNewLine:()=>Xu,startTracing:()=>bne,startsWith:()=>uo,startsWithDirectory:()=>_V,startsWithUnderscore:()=>yX,startsWithUseStrict:()=>Cae,stringContainsAt:()=>Wue,stringToToken:()=>IE,stripQuotes:()=>Zf,supportedDeclarationExtensions:()=>Ik,supportedJSExtensions:()=>FU,supportedJSExtensionsFlat:()=>OR,supportedLocaleDirectories:()=>qV,supportedTSExtensions:()=>wR,supportedTSExtensionsFlat:()=>WU,supportedTSImplementationExtensions:()=>xk,suppressLeadingAndTrailingTrivia:()=>Sp,suppressLeadingTrivia:()=>cX,suppressTrailingTrivia:()=>xue,symbolEscapedNameNoDefault:()=>r5,symbolName:()=>El,symbolNameNoDefault:()=>n5,symbolPart:()=>hue,symbolToDisplayParts:()=>sM,syntaxMayBeASICandidate:()=>IX,syntaxRequiresTrailingSemicolonOrASI:()=>p5,sys:()=>gu,sysLog:()=>B2,tagNamesAreEquivalent:()=>T0,takeWhile:()=>C6,targetOptionDeclaration:()=>mw,templateObjectHelper:()=>SW,testFormatSettings:()=>Hce,textChangeRangeIsUnchanged:()=>Gne,textChangeRangeNewSpan:()=>oC,textChanges:()=>_r,textOrKeywordPart:()=>rX,textPart:()=>cf,textRangeContainsPositionInclusive:()=>eL,textSpanContainsPosition:()=>EV,textSpanContainsTextSpan:()=>Wne,textSpanEnd:()=>Kl,textSpanIntersection:()=>Bne,textSpanIntersectsWith:()=>o4,textSpanIntersectsWithPosition:()=>zne,textSpanIntersectsWithTextSpan:()=>v1e,textSpanIsEmpty:()=>One,textSpanOverlap:()=>Fne,textSpanOverlapsWith:()=>g1e,textSpansEqual:()=>TD,textToKeywordObj:()=>Q2,timestamp:()=>Xs,toArray:()=>mA,toBuilderFileEmit:()=>ice,toBuilderStateFileInfoForMultiEmit:()=>rce,toEditorSettings:()=>wO,toFileNameLowerCase:()=>sh,toLowerCase:()=>ene,toPath:()=>il,toProgramEmitPending:()=>oce,tokenIsIdentifierOrKeyword:()=>od,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Pne,tokenToString:()=>pa,trace:()=>bo,tracing:()=>sr,tracingEnabled:()=>O2,transform:()=>uCe,transformClassFields:()=>ple,transformDeclarations:()=>Kq,transformECMAScriptModule:()=>Jq,transformES2015:()=>Rle,transformES2016:()=>xle,transformES2017:()=>hle,transformES2018:()=>gle,transformES2019:()=>vle,transformES2020:()=>yle,transformES2021:()=>ble,transformES5:()=>Dle,transformESDecorators:()=>_le,transformESNext:()=>Ele,transformGenerators:()=>Nle,transformJsx:()=>Ile,transformLegacyDecorators:()=>mle,transformModule:()=>qq,transformNamedEvaluation:()=>bp,transformNodeModule:()=>Ple,transformNodes:()=>Pw,transformSystemModule:()=>Cle,transformTypeScript:()=>dle,transpile:()=>bDe,transpileModule:()=>nde,transpileOptionValueCompilerOptions:()=>nq,tryAddToSet:()=>Xb,tryAndIgnoreErrors:()=>h5,tryCast:()=>ri,tryDirectoryExists:()=>_5,tryExtractTSExtension:()=>E3,tryFileExists:()=>gO,tryGetClassExtendingExpressionWithTypeArguments:()=>Yj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>$j,tryGetDirectories:()=>m5,tryGetExtensionFromPath:()=>Fg,tryGetImportFromModuleSpecifier:()=>UL,tryGetJSDocSatisfiesTypeNode:()=>K3,tryGetModuleNameFromFile:()=>Qk,tryGetModuleSpecifierFromDeclaration:()=>pR,tryGetNativePerformanceHooks:()=>hne,tryGetPropertyAccessOrIdentifierToString:()=>ck,tryGetPropertyNameOfBindingOrAssignmentElement:()=>oF,tryGetSourceMappingURL:()=>Jse,tryGetTextOfPropertyName:()=>yC,tryIOAndConsumeErrors:()=>g5,tryParseJson:()=>S3,tryParsePattern:()=>PR,tryParsePatterns:()=>G3,tryParseRawSourceMap:()=>Pq,tryReadDirectory:()=>pX,tryReadFile:()=>DP,tryRemoveDirectoryPrefix:()=>pU,tryRemoveExtension:()=>boe,tryRemovePrefix:()=>ZB,tryRemoveSuffix:()=>ane,typeAcquisitionDeclarations:()=>_w,typeAliasNamePart:()=>yue,typeDirectiveIsEqualTo:()=>Lre,typeKeywords:()=>A5,typeParameterNamePart:()=>bue,typeToDisplayParts:()=>pO,unchangedPollThresholds:()=>G2,unchangedTextChangeRange:()=>vL,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Aw,unorderedRemoveItem:()=>_A,unorderedRemoveItemAt:()=>$B,unreachableCodeIsError:()=>coe,unusedLabelIsError:()=>uoe,unwrapInnermostStatementOfLabel:()=>fj,updateErrorForNoInputFiles:()=>fF,updateLanguageServiceSourceFile:()=>SY,updateMissingFilePathsWatch:()=>iJ,updateResolutionField:()=>nD,updateSharedExtendedConfigFileWatcher:()=>o7,updateSourceFile:()=>kH,updateWatchingWildcardDirectories:()=>kw,usesExtensionsOnImports:()=>goe,usingSingleLineStringWriter:()=>hC,utf16EncodeAsString:()=>jx,validateLocaleAndSetLanguage:()=>b1e,valuesHelper:()=>RW,version:()=>Re,versionMajorMinor:()=>_e,visitArray:()=>Rw,visitCommaListElements:()=>BF,visitEachChild:()=>xn,visitFunctionBody:()=>af,visitIterationBody:()=>xd,visitLexicalEnvironment:()=>Nq,visitNode:()=>nt,visitNodes:()=>jn,visitParameterList:()=>Dl,walkUpBindingElementsAndPatterns:()=>Hx,walkUpLexicalEnvironments:()=>ele,walkUpOuterExpressions:()=>Pae,walkUpParenthesizedExpressions:()=>kv,walkUpParenthesizedTypes:()=>XL,walkUpParenthesizedTypesAndGetParentAndChild:()=>vie,whitespaceOrMapCommentRegExp:()=>VF,writeCommentRange:()=>IR,writeFile:()=>LC,writeFileEnsuringDirectories:()=>Hj,zipWith:()=>gi});var ob=I({"src/server/_namespaces/ts.ts"(){ra(),Kw(),si(),zQ(),cT()}}),dOe={};ee(dOe,{ActionInvalidate:()=>qw,ActionPackageInstalled:()=>Jw,ActionSet:()=>Hw,ActionWatchTypingLocations:()=>ZP,Arguments:()=>rK,AutoImportProviderProject:()=>ZQ,AuxiliaryProject:()=>$Q,CharRangeSection:()=>pZ,CloseFileWatcherEvent:()=>qz,CommandNames:()=>Lhe,ConfigFileDiagEvent:()=>Gz,ConfiguredProject:()=>eZ,CreateDirectoryWatcherEvent:()=>Hz,CreateFileWatcherEvent:()=>Uz,Errors:()=>Zv,EventBeginInstallTypes:()=>L7,EventEndInstallTypes:()=>k7,EventInitializationFailed:()=>nK,EventTypesRegistry:()=>M7,ExternalProject:()=>kz,GcTimer:()=>UQ,InferredProject:()=>YQ,LargeFileReferencedEvent:()=>Bz,LineIndex:()=>RM,LineLeaf:()=>m8,LineNode:()=>FI,LogLevel:()=>BQ,Msg:()=>GQ,OpenFileInfoTelemetryEvent:()=>iZ,Project:()=>lT,ProjectInfoTelemetryEvent:()=>jz,ProjectKind:()=>IM,ProjectLanguageServiceStateEvent:()=>Vz,ProjectLoadingFinishEvent:()=>zz,ProjectLoadingStartEvent:()=>Fz,ProjectReferenceProjectLoadKind:()=>sZ,ProjectService:()=>lZ,ProjectsUpdatedInBackgroundEvent:()=>d8,ScriptInfo:()=>JQ,ScriptVersionCache:()=>Yz,Session:()=>whe,TextStorage:()=>qQ,ThrottledOperations:()=>jQ,TypingsCache:()=>KQ,TypingsInstallerAdapter:()=>Fhe,allFilesAreJsOrDts:()=>dhe,allRootFilesAreJsOrDts:()=>uhe,asNormalizedPath:()=>Fwe,convertCompilerOptions:()=>wz,convertFormatOptions:()=>UD,convertScriptKindName:()=>nZ,convertTypeAcquisition:()=>mhe,convertUserPreferences:()=>_he,convertWatchOptions:()=>u8,countEachFileTypes:()=>l8,createInstallTypingsRequest:()=>j_e,createModuleSpecifierCache:()=>Ihe,createNormalizedPathMap:()=>zwe,createPackageJsonCache:()=>xhe,createSortedArray:()=>K_e,emptyArray:()=>gc,findArgument:()=>xRe,forEachResolvedProjectReferenceProject:()=>HD,formatDiagnosticToProtocol:()=>f8,formatMessage:()=>Rhe,getBaseConfigFileName:()=>VQ,getLocationInNewDocument:()=>Phe,hasArgument:()=>IRe,hasNoTypeScriptSource:()=>phe,indent:()=>QP,isBackgroundProject:()=>c8,isConfigFile:()=>Ehe,isConfiguredProject:()=>w0,isDynamicFileName:()=>s8,isExternalProject:()=>XQ,isInferredProject:()=>jD,isInferredProjectName:()=>U_e,makeAutoImportProviderProjectName:()=>q_e,makeAuxiliaryProjectName:()=>J_e,makeInferredProjectName:()=>H_e,maxFileSize:()=>Wz,maxProgramSizeForNonTsFiles:()=>Oz,normalizedPathToPath:()=>a8,nowString:()=>RRe,nullCancellationToken:()=>Mhe,nullTypingsInstaller:()=>Lz,projectContainsInfoDirectly:()=>OI,protocol:()=>che,removeSorted:()=>Bwe,stringifyIndented:()=>N0,toEvent:()=>Dhe,toNormalizedPath:()=>fl,tryConvertScriptKindName:()=>tZ,typingsInstaller:()=>G_e,updateProjectIfDirty:()=>Vp});var Ast=I({"src/typescript/_namespaces/ts.server.ts"(){w7(),cT()}}),pOe={};ee(pOe,{ANONYMOUS:()=>I5,AccessFlags:()=>PG,AssertionLevel:()=>nG,AssignmentDeclarationKind:()=>BG,AssignmentKind:()=>DU,Associativity:()=>CU,BreakpointResolver:()=>NY,BuilderFileEmit:()=>LJ,BuilderProgramKind:()=>kJ,BuilderState:()=>Nm,BundleFileSectionKind:()=>iV,CallHierarchy:()=>DI,CharacterCodes:()=>$G,CheckFlags:()=>xG,CheckMode:()=>WF,ClassificationType:()=>SK,ClassificationTypeNames:()=>EK,CommentDirectiveType:()=>dG,Comparison:()=>Ge,CompletionInfoFlags:()=>mK,CompletionTriggerKind:()=>cK,Completions:()=>LI,ContainerFlags:()=>Sq,ContextFlags:()=>gG,Debug:()=>N,DiagnosticCategory:()=>F2,Diagnostics:()=>f,DocumentHighlights:()=>D5,ElementFlags:()=>CG,EmitFlags:()=>J6,EmitHint:()=>tV,EmitOnly:()=>fG,EndOfLineState:()=>gK,EnumKind:()=>IG,ExitStatus:()=>mG,ExportKind:()=>CX,Extension:()=>QG,ExternalEmitHelpers:()=>eV,FileIncludeKind:()=>F6,FilePreprocessingDiagnosticsKind:()=>pG,FileSystemEntryKind:()=>uV,FileWatcherEventKind:()=>cV,FindAllReferences:()=>Ws,FlattenLevel:()=>Bq,FlowFlags:()=>W2,ForegroundColorEscapeSequences:()=>IJ,FunctionFlags:()=>NU,GeneratedIdentifierFlags:()=>W6,GetLiteralTextFlags:()=>IU,GoToDefinition:()=>FD,HighlightSpanKind:()=>dK,IdentifierNameMap:()=>gI,IdentifierNameMultiMap:()=>zq,ImportKind:()=>NX,ImportsNotUsedAsValues:()=>qG,IndentStyle:()=>pK,IndexFlags:()=>MG,IndexKind:()=>wG,InferenceFlags:()=>FG,InferencePriority:()=>WG,InlayHintKind:()=>uK,InlayHints:()=>EQ,InternalEmitFlags:()=>ZG,InternalSymbolName:()=>RG,InvalidatedProjectKind:()=>tK,JSDocParsingMode:()=>sV,JsDoc:()=>k0,JsTyping:()=>F_,JsxEmit:()=>HG,JsxFlags:()=>cG,JsxReferenceKind:()=>LG,LanguageServiceMode:()=>aK,LanguageVariant:()=>XG,LexicalEnvironmentFlags:()=>rV,ListFormat:()=>oV,LogLevel:()=>iG,MemberOverrideStatus:()=>_G,ModifierFlags:()=>w6,ModuleDetectionKind:()=>GG,ModuleInstanceState:()=>Eq,ModuleKind:()=>$N,ModuleResolutionKind:()=>Bx,ModuleSpecifierEnding:()=>zU,NavigateTo:()=>ode,NavigationBar:()=>_de,NewLineKind:()=>JG,NodeBuilderFlags:()=>vG,NodeCheckFlags:()=>DG,NodeFactoryFlags:()=>JU,NodeFlags:()=>k6,NodeResolutionFeatures:()=>vq,ObjectFlags:()=>V6,OperationCanceledException:()=>zx,OperatorPrecedence:()=>PU,OrganizeImports:()=>Cm,OrganizeImportsMode:()=>lK,OuterExpressionKinds:()=>nV,OutliningElementsCollector:()=>IQ,OutliningSpanKind:()=>_K,OutputFileType:()=>hK,PackageJsonAutoImportPreference:()=>oK,PackageJsonDependencyGroup:()=>iK,PatternMatchKind:()=>N5,PollingInterval:()=>K6,PollingWatchKind:()=>UG,PragmaKindFlags:()=>aV,PrivateIdentifierKind:()=>eH,ProcessLevel:()=>Uq,ProgramUpdateLevel:()=>aJ,QuotePreference:()=>TX,RelationComparisonResult:()=>O6,Rename:()=>xz,ScriptElementKind:()=>yK,ScriptElementKindModifier:()=>bK,ScriptKind:()=>U6,ScriptSnapshot:()=>W7,ScriptTarget:()=>KG,SemanticClassificationFormat:()=>sK,SemanticMeaning:()=>SX,SemicolonPreference:()=>fK,SignatureCheckMode:()=>FF,SignatureFlags:()=>j6,SignatureHelp:()=>QO,SignatureKind:()=>kG,SmartSelectionRange:()=>DQ,SnippetKind:()=>q6,SortKind:()=>tG,StructureIsReused:()=>z6,SymbolAccessibility:()=>EG,SymbolDisplay:()=>Qv,SymbolDisplayPartKind:()=>Xw,SymbolFlags:()=>B6,SymbolFormatFlags:()=>bG,SyntaxKind:()=>L6,SyntheticSymbolKind:()=>SG,Ternary:()=>zG,ThrottledCancellationToken:()=>DY,TokenClass:()=>vK,TokenFlags:()=>uG,TransformFlags:()=>H6,TypeFacts:()=>OF,TypeFlags:()=>G6,TypeFormatFlags:()=>yG,TypeMapKind:()=>OG,TypePredicateKind:()=>TG,TypeReferenceSerializationKind:()=>AG,UnionReduction:()=>hG,UpToDateStatusType:()=>$J,VarianceFlags:()=>NG,Version:()=>hm,VersionRange:()=>k2,WatchDirectoryFlags:()=>YG,WatchDirectoryKind:()=>jG,WatchFileKind:()=>VG,WatchLogLevel:()=>sJ,WatchType:()=>Lc,accessPrivateIdentifier:()=>nle,addDisposableResourceHelper:()=>wW,addEmitFlags:()=>P_,addEmitHelper:()=>qA,addEmitHelpers:()=>zg,addInternalEmitFlags:()=>UA,addNodeFactoryPatcher:()=>KSe,addObjectAllocatorPatcher:()=>ioe,addRange:()=>qr,addRelatedInfo:()=>Ma,addSyntheticLeadingComment:()=>uP,addSyntheticTrailingComment:()=>lW,addToSeen:()=>Am,advancedAsyncSuperHelper:()=>Wk,affectsDeclarationPathOptionDeclarations:()=>eq,affectsEmitOptionDeclarations:()=>ZH,allKeysStartWithDot:()=>NF,altDirectorySeparator:()=>q2,and:()=>R6,append:()=>Rn,appendIfUnique:()=>Rg,arrayFrom:()=>zo,arrayIsEqualTo:()=>Hm,arrayIsHomogeneous:()=>Aoe,arrayIsSorted:()=>y6,arrayOf:()=>$te,arrayReverseIterator:()=>GB,arrayToMap:()=>TE,arrayToMultiMap:()=>P2,arrayToNumericMap:()=>Zte,arraysEqual:()=>Ba,assertType:()=>DEe,assign:()=>Mx,assignHelper:()=>_W,asyncDelegator:()=>gW,asyncGeneratorHelper:()=>hW,asyncSuperHelper:()=>Ok,asyncValues:()=>vW,attachFileToDiagnostics:()=>zA,awaitHelper:()=>JA,awaiterHelper:()=>bW,base64decode:()=>Jie,base64encode:()=>qie,binarySearch:()=>Tv,binarySearchKey:()=>pA,bindSourceFile:()=>Pse,breakIntoCharacterSpans:()=>Que,breakIntoWordSpans:()=>Zue,buildLinkParts:()=>Sue,buildOpts:()=>vF,buildOverload:()=>Mwe,bundlerModuleNameResolver:()=>Ese,canBeConvertedToAsync:()=>GX,canHaveDecorators:()=>qS,canHaveExportModifier:()=>vk,canHaveFlowNode:()=>qL,canHaveIllegalDecorators:()=>NH,canHaveIllegalModifiers:()=>wae,canHaveIllegalType:()=>TTe,canHaveIllegalTypeParameters:()=>kae,canHaveJSDoc:()=>JL,canHaveLocals:()=>dh,canHaveModifiers:()=>Rm,canHaveSymbol:()=>T_,canJsonReportNoInputFiles:()=>NP,canProduceDiagnostics:()=>QF,canUsePropertyAccess:()=>EU,canWatchAffectingLocation:()=>cce,canWatchAtTypes:()=>lce,canWatchDirectoryOrFile:()=>y7,cartesianProduct:()=>cne,cast:()=>oa,chainBundle:()=>Dm,chainDiagnosticMessages:()=>Vo,changeAnyExtension:()=>U2,changeCompilerHostLikeToUseCache:()=>Ww,changeExtension:()=>_0,changeFullExtension:()=>Dne,changesAffectModuleResolution:()=>A4,changesAffectingProgramStructure:()=>Cre,childIsDecorated:()=>SC,classElementOrClassElementParameterIsDecorated:()=>mj,classHasClassThisAssignment:()=>Gq,classHasDeclaredOrExplicitlyAssignedName:()=>Vq,classHasExplicitlyAssignedName:()=>XF,classOrConstructorParameterIsDecorated:()=>Lv,classPrivateFieldGetHelper:()=>MW,classPrivateFieldInHelper:()=>kW,classPrivateFieldSetHelper:()=>LW,classicNameResolver:()=>Rse,classifier:()=>upe,cleanExtendedConfigCache:()=>a7,clear:()=>jo,clearMap:()=>ep,clearSharedExtendedConfigFileWatcher:()=>rJ,climbPastPropertyAccess:()=>z7,climbPastPropertyOrElementAccess:()=>Xce,clone:()=>qB,cloneCompilerOptions:()=>GK,closeFileWatcher:()=>Xm,closeFileWatcherOf:()=>Cf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>Vne,collectExternalModuleInfo:()=>wq,combine:()=>Px,combinePaths:()=>$r,commentPragmas:()=>z2,commonOptionsWithBuild:()=>fw,commonPackageFolders:()=>kU,compact:()=>C2,compareBooleans:()=>Ey,compareDataObjects:()=>iU,compareDiagnostics:()=>HC,compareDiagnosticsSkipRelatedInformation:()=>N3,compareEmitHelpers:()=>eae,compareNumberOfDirectorySeparators:()=>_k,comparePaths:()=>Dg,comparePathsCaseInsensitive:()=>t1e,comparePathsCaseSensitive:()=>e1e,comparePatternKeys:()=>hq,compareProperties:()=>one,compareStringsCaseInsensitive:()=>I6,compareStringsCaseInsensitiveEslintCompatible:()=>nne,compareStringsCaseSensitive:()=>Uu,compareStringsCaseSensitiveUI:()=>L2,compareTextSpans:()=>A6,compareValues:()=>nl,compileOnSaveCommandLineOption:()=>dw,compilerOptionsAffectDeclarationPath:()=>moe,compilerOptionsAffectEmit:()=>foe,compilerOptionsAffectSemanticDiagnostics:()=>poe,compilerOptionsDidYouMeanDiagnostics:()=>hw,compilerOptionsIndicateEsModules:()=>JK,compose:()=>xEe,computeCommonSourceDirectoryOfFilenames:()=>Gle,computeLineAndCharacterOfPosition:()=>Vx,computeLineOfPosition:()=>tC,computeLineStarts:()=>bA,computePositionOfLineAndCharacter:()=>t4,computeSignature:()=>QS,computeSignatureWithDiagnostics:()=>NJ,computeSuggestionDiagnostics:()=>FX,computedOptions:()=>_c,concatenate:()=>So,concatenateDiagnosticMessageChains:()=>loe,consumesNodeCoreModules:()=>v5,contains:()=>Or,containsIgnoredPath:()=>eP,containsObjectRestOrSpread:()=>nw,containsParseError:()=>eR,containsPath:()=>gm,convertCompilerOptionsForTelemetry:()=>ise,convertCompilerOptionsFromJson:()=>xAe,convertJsonOption:()=>JS,convertToBase64:()=>Hie,convertToJson:()=>lw,convertToObject:()=>Zae,convertToOptionsWithAbsolutePaths:()=>JH,convertToRelativePath:()=>eC,convertToTSConfig:()=>pAe,convertTypeAcquisitionFromJson:()=>RAe,copyComments:()=>nT,copyEntries:()=>I4,copyLeadingComments:()=>ID,copyProperties:()=>JB,copyTrailingAsLeadingComments:()=>_O,copyTrailingComments:()=>lM,couldStartTrivia:()=>Mne,countWhere:()=>ou,createAbstractBuilder:()=>Lxe,createAccessorPropertyBackingField:()=>PH,createAccessorPropertyGetRedirector:()=>jae,createAccessorPropertySetRedirector:()=>Uae,createBaseNodeFactory:()=>Foe,createBinaryExpressionTrampoline:()=>aF,createBindingHelper:()=>FR,createBuildInfo:()=>Mw,createBuilderProgram:()=>CJ,createBuilderProgramUsingProgramBuildInfo:()=>ace,createBuilderStatusReporter:()=>Tce,createCacheWithRedirects:()=>lq,createCacheableExportInfoMap:()=>xX,createCachedDirectoryStructureHost:()=>i7,createClassNamedEvaluationHelperBlock:()=>lle,createClassThisAssignmentBlock:()=>ale,createClassifier:()=>YRe,createCommentDirectivesMap:()=>Ore,createCompilerDiagnostic:()=>Ul,createCompilerDiagnosticForInvalidCustomType:()=>Kae,createCompilerDiagnosticFromMessageChain:()=>D3,createCompilerHost:()=>Vle,createCompilerHostFromProgramHost:()=>JJ,createCompilerHostWorker:()=>uJ,createDetachedDiagnostic:()=>CR,createDiagnosticCollection:()=>ER,createDiagnosticForFileFromMessageChain:()=>cj,createDiagnosticForNode:()=>kr,createDiagnosticForNodeArray:()=>rR,createDiagnosticForNodeArrayFromMessageChain:()=>IL,createDiagnosticForNodeFromMessageChain:()=>Lg,createDiagnosticForNodeInSourceFile:()=>Xf,createDiagnosticForRange:()=>Kre,createDiagnosticMessageChainFromDiagnostic:()=>Jre,createDiagnosticReporter:()=>Vw,createDocumentPositionMapper:()=>Yse,createDocumentRegistry:()=>Gue,createDocumentRegistryInternal:()=>LX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>wJ,createEmitHelperFactory:()=>Zoe,createEmptyExports:()=>Kk,createExpressionForJsxElement:()=>Rae,createExpressionForJsxFragment:()=>Dae,createExpressionForObjectLiteralElementLike:()=>Nae,createExpressionForPropertyName:()=>TH,createExpressionFromEntityName:()=>Xk,createExternalHelpersImportDeclarationIfNeeded:()=>xH,createFileDiagnostic:()=>$c,createFileDiagnosticFromMessageChain:()=>k4,createForOfBindingStatement:()=>SH,createGetCanonicalFileName:()=>Mu,createGetSourceFile:()=>lJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Uv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Mle,createGetSymbolWalker:()=>Mse,createIncrementalCompilerHost:()=>XJ,createIncrementalProgram:()=>Ece,createInputFiles:()=>YSe,createInputFilesWithFilePaths:()=>HU,createInputFilesWithFileTexts:()=>qU,createJsxFactoryExpression:()=>EH,createLanguageService:()=>ipe,createLanguageServiceSourceFile:()=>Z5,createMemberAccessForPropertyName:()=>HS,createModeAwareCache:()=>_I,createModeAwareCacheKey:()=>kP,createModuleNotFoundChain:()=>x4,createModuleResolutionCache:()=>rD,createModuleResolutionLoader:()=>hJ,createModuleResolutionLoaderUsingGlobalCache:()=>fce,createModuleSpecifierResolutionHost:()=>tT,createMultiMap:()=>$p,createNodeConverters:()=>Boe,createNodeFactory:()=>Dk,createOptionNameMap:()=>cF,createOverload:()=>FQ,createPackageJsonImportFilter:()=>dM,createPackageJsonInfo:()=>mX,createParenthesizerRules:()=>zoe,createPatternMatcher:()=>que,createPrependNodes:()=>TJ,createPrinter:()=>R0,createPrinterWithDefaults:()=>tJ,createPrinterWithRemoveComments:()=>d1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>nJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Lw,createProgram:()=>d7,createProgramHost:()=>KJ,createPropertyNameNodeForIdentifierOrLiteral:()=>q3,createQueue:()=>M2,createRange:()=>Af,createRedirectedBuilderProgram:()=>MJ,createResolutionCache:()=>WJ,createRuntimeTypeSerializer:()=>fle,createScanner:()=>Nv,createSemanticDiagnosticsBuilderProgram:()=>Mxe,createSet:()=>KB,createSolutionBuilder:()=>Xxe,createSolutionBuilderHost:()=>Jxe,createSolutionBuilderWithWatch:()=>Yxe,createSolutionBuilderWithWatchHost:()=>Kxe,createSortedArray:()=>BB,createSourceFile:()=>iw,createSourceMapGenerator:()=>qse,createSourceMapSource:()=>$Se,createSuperAccessVariableStatement:()=>$F,createSymbolTable:()=>ca,createSymlinkCache:()=>dU,createSystemWatchFunctions:()=>Ane,createTextChange:()=>aO,createTextChangeFromStartLength:()=>Z7,createTextChangeRange:()=>nL,createTextRangeFromNode:()=>UK,createTextRangeFromSpan:()=>Q7,createTextSpan:()=>vu,createTextSpanFromBounds:()=>pc,createTextSpanFromNode:()=>Dd,createTextSpanFromRange:()=>tb,createTextSpanFromStringLiteralLikeContent:()=>jK,createTextWriter:()=>ok,createTokenRange:()=>tU,createTypeChecker:()=>Bse,createTypeReferenceDirectiveResolutionCache:()=>xF,createTypeReferenceResolutionLoader:()=>l7,createUnparsedSourceFile:()=>UU,createWatchCompilerHost:()=>Uxe,createWatchCompilerHostOfConfigFile:()=>vce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>yce,createWatchFactory:()=>qJ,createWatchHost:()=>HJ,createWatchProgram:()=>Hxe,createWatchStatusReporter:()=>mce,createWriteFileMeasuringIO:()=>cJ,declarationNameToString:()=>xs,decodeMappings:()=>Mq,decodedTextSpanIntersectsWith:()=>tL,decorateHelper:()=>uW,deduplicate:()=>SE,defaultIncludeSpec:()=>EF,defaultInitCompilerOptions:()=>yF,defaultMaximumTruncationLength:()=>Sk,detectSortCaseSensitivity:()=>qN,diagnosticCategoryName:()=>lS,diagnosticToString:()=>iT,directoryProbablyExists:()=>Km,directorySeparator:()=>ol,displayPart:()=>rp,displayPartsToString:()=>OO,disposeEmitNodes:()=>KU,disposeResourcesHelper:()=>OW,documentSpansEqual:()=>QK,dumpTracingLegend:()=>Ene,elementAt:()=>Rv,elideNodes:()=>Vae,emitComments:()=>kie,emitDetachedComments:()=>wie,emitFiles:()=>t7,emitFilesAndReportErrors:()=>T7,emitFilesAndReportErrorsAndGetExitStatus:()=>gce,emitModuleKindIsNonNodeESM:()=>C3,emitNewLineBeforeLeadingCommentOfPosition:()=>Lie,emitNewLineBeforeLeadingComments:()=>Pie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Mie,emitSkippedWithNoDiagnostics:()=>h7,emitUsingBuildInfo:()=>Wle,emptyArray:()=>et,emptyFileSystemEntries:()=>iW,emptyMap:()=>P6,emptyOptions:()=>Mf,emptySet:()=>dne,endsWith:()=>Al,ensurePathIsNonModuleName:()=>AE,ensureScriptKind:()=>z3,ensureTrailingDirectorySeparator:()=>Fc,entityNameToString:()=>fp,enumerateInsertsAndDeletes:()=>N6,equalOwnProperties:()=>Qte,equateStringsCaseInsensitive:()=>$b,equateStringsCaseSensitive:()=>oS,equateValues:()=>xv,esDecorateHelper:()=>fW,escapeJsxAttributeString:()=>Gj,escapeLeadingUnderscores:()=>_l,escapeNonAsciiString:()=>ik,escapeSnippetText:()=>JE,escapeString:()=>tg,escapeTemplateSubstitution:()=>zj,every:()=>Jn,expandPreOrPostfixIncrementOrDecrementExpression:()=>eF,explainFiles:()=>BJ,explainIfFileIsRedirectAndImpliedFormat:()=>GJ,exportAssignmentIsAlias:()=>gR,exportStarHelper:()=>PW,expressionResultIsUnused:()=>xoe,extend:()=>T6,extendsHelper:()=>EW,extensionFromPath:()=>XC,extensionIsTS:()=>V3,extensionsNotSupportingExtensionlessResolution:()=>Rk,externalHelpersModuleNameText:()=>Vy,factory:()=>w,fileExtensionIs:()=>Il,fileExtensionIsOneOf:()=>Sc,fileIncludeReasonToDiagnostics:()=>UJ,fileShouldUseJavaScriptRequire:()=>EX,filter:()=>mn,filterMutate:()=>li,filterSemanticDiagnostics:()=>p7,find:()=>In,findAncestor:()=>Vn,findBestPatternMatch:()=>QB,findChildOfKind:()=>vs,findComputedPropertyNameCacheAssignment:()=>sF,findConfigFile:()=>Ble,findContainingList:()=>U7,findDiagnosticForNode:()=>Lue,findFirstNonJsxWhitespaceToken:()=>eue,findIndex:()=>mi,findLast:()=>oi,findLastIndex:()=>Yi,findListItemInfo:()=>Zce,findMap:()=>ja,findModifier:()=>SD,findNextToken:()=>m1,findPackageJson:()=>Pue,findPackageJsons:()=>fX,findPrecedingMatchingToken:()=>Y7,findPrecedingToken:()=>Ic,findSuperStatementIndexPath:()=>qF,findTokenOnLeftOfPosition:()=>J7,findUseStrictPrologue:()=>IH,first:()=>Ua,firstDefined:()=>Ht,firstDefinedIterator:()=>pn,firstIterator:()=>jB,firstOrOnly:()=>vX,firstOrUndefined:()=>Kc,firstOrUndefinedIterator:()=>b6,fixupCompilerOptions:()=>jX,flatMap:()=>Do,flatMapIterator:()=>EE,flatMapToMutable:()=>kp,flatten:()=>Cs,flattenCommaList:()=>Hae,flattenDestructuringAssignment:()=>XS,flattenDestructuringBinding:()=>u1,flattenDiagnosticMessageText:()=>O_,forEach:()=>Xe,forEachAncestor:()=>Pre,forEachAncestorDirectory:()=>ym,forEachChild:()=>Uo,forEachChildRecursively:()=>RP,forEachEmittedFile:()=>$q,forEachEnclosingBlockScopeContainer:()=>Ure,forEachEntry:()=>zc,forEachExternalModuleToImportFrom:()=>DX,forEachImportClauseDeclaration:()=>r3,forEachKey:()=>fh,forEachLeadingCommentRange:()=>Y2,forEachNameInAccessChainWalkingLeft:()=>noe,forEachPropertyAssignment:()=>sR,forEachResolvedProjectReference:()=>vJ,forEachReturnStatement:()=>LE,forEachRight:()=>$t,forEachTrailingCommentRange:()=>$2,forEachTsConfigPropArray:()=>NL,forEachUnique:()=>eX,forEachYieldExpression:()=>Yre,forSomeAncestorDirectory:()=>ySe,formatColorAndReset:()=>p1,formatDiagnostic:()=>dJ,formatDiagnostics:()=>fxe,formatDiagnosticsWithColorAndContext:()=>jle,formatGeneratedName:()=>S0,formatGeneratedNamePart:()=>QR,formatLocation:()=>pJ,formatMessage:()=>lU,formatStringFromArgs:()=>ig,formatting:()=>kc,fullTripleSlashAMDReferencePathRegEx:()=>RU,fullTripleSlashReferencePathRegEx:()=>xU,generateDjb2Hash:()=>QN,generateTSConfig:()=>gAe,generatorHelper:()=>DW,getAdjustedReferenceLocation:()=>wK,getAdjustedRenameLocation:()=>q7,getAliasDeclarationFromName:()=>Dj,getAllAccessorDeclarations:()=>NS,getAllDecoratorsOfClass:()=>Wq,getAllDecoratorsOfClassElement:()=>KF,getAllJSDocTags:()=>c4,getAllJSDocTagsOfKind:()=>C1e,getAllKeys:()=>AEe,getAllProjectOutputs:()=>e7,getAllSuperTypeNodes:()=>RC,getAllUnscopedEmitHelpers:()=>ZU,getAllowJSCompilerOption:()=>jy,getAllowSyntheticDefaultImports:()=>MS,getAncestor:()=>f0,getAnyExtensionFromPath:()=>Gx,getAreDeclarationMapsEnabled:()=>Ak,getAssignedExpandoInitializer:()=>DA,getAssignedName:()=>s4,getAssignedNameOfIdentifier:()=>GP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>GL,getAssignmentTargetKind:()=>MA,getAutomaticTypeDirectiveNames:()=>AF,getBaseFileName:()=>ic,getBinaryOperatorPrecedence:()=>rk,getBuildInfo:()=>n7,getBuildInfoFileVersionMap:()=>PJ,getBuildInfoText:()=>Ole,getBuildOrderFromAnyBuildOrder:()=>D7,getBuilderCreationParameters:()=>g7,getBuilderFileEmit:()=>eb,getCheckFlags:()=>xl,getClassExtendsHeritageElement:()=>FE,getClassLikeDeclarationOfSymbol:()=>Wg,getCombinedLocalAndExportSymbolFlags:()=>RR,getCombinedModifierFlags:()=>n0,getCombinedNodeFlags:()=>Cv,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>SV,getCommentRange:()=>M_,getCommonSourceDirectory:()=>KP,getCommonSourceDirectoryOfConfig:()=>cD,getCompilerOptionValue:()=>M3,getCompilerOptionsDiffValue:()=>_Ae,getConditions:()=>Qy,getConfigFileParsingDiagnostics:()=>$S,getConstantValue:()=>qoe,getContainerFlags:()=>bq,getContainerNode:()=>eT,getContainingClass:()=>au,getContainingClassExcludingClassDecorators:()=>j4,getContainingClassStaticBlock:()=>oie,getContainingFunction:()=>Bp,getContainingFunctionDeclaration:()=>iie,getContainingFunctionOrClassStaticBlock:()=>V4,getContainingNodeArray:()=>Roe,getContainingObjectLiteralElement:()=>WO,getContextualTypeFromParent:()=>u5,getContextualTypeFromParentOrAncestorTypeNode:()=>H7,getCurrentTime:()=>Uw,getDeclarationDiagnostics:()=>Lle,getDeclarationEmitExtensionForPath:()=>p3,getDeclarationEmitOutputFilePath:()=>xie,getDeclarationEmitOutputFilePathWorker:()=>d3,getDeclarationFileExtension:()=>wH,getDeclarationFromName:()=>xC,getDeclarationModifierFlagsFromSymbol:()=>xf,getDeclarationOfKind:()=>pl,getDeclarationsOfKind:()=>Dre,getDeclaredExpandoInitializer:()=>WL,getDecorators:()=>Ry,getDefaultCompilerOptions:()=>Q5,getDefaultExportInfoWorker:()=>R5,getDefaultFormatCodeSettings:()=>O7,getDefaultLibFileName:()=>Z2,getDefaultLibFilePath:()=>ope,getDefaultLikeExportInfo:()=>x5,getDiagnosticText:()=>oAe,getDiagnosticsWithinSpan:()=>kue,getDirectoryPath:()=>ai,getDirectoryToWatchFailedLookupLocation:()=>OJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>dce,getDocumentPositionMapper:()=>WX,getDocumentSpansEqualityComparer:()=>ZK,getESModuleInterop:()=>gh,getEditsForFileRename:()=>jue,getEffectiveBaseTypeNode:()=>I_,getEffectiveConstraintOfTypeParameter:()=>Jx,getEffectiveContainerForJSDocTemplateTag:()=>i3,getEffectiveImplementsTypeNodes:()=>vR,getEffectiveInitializer:()=>OL,getEffectiveJSDocHost:()=>p0,getEffectiveModifierFlags:()=>ud,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zie,getEffectiveModifierFlagsNoCache:()=>Bie,getEffectiveReturnTypeNode:()=>em,getEffectiveSetAccessorTypeAnnotationNode:()=>Cie,getEffectiveTypeAnnotationNode:()=>yu,getEffectiveTypeParameterDeclarations:()=>Dy,getEffectiveTypeRoots:()=>LP,getElementOrPropertyAccessArgumentExpressionOrName:()=>n3,getElementOrPropertyAccessName:()=>kg,getElementsOfBindingOrAssignmentPattern:()=>$R,getEmitDeclarations:()=>Rf,getEmitFlags:()=>Ga,getEmitHelpers:()=>cW,getEmitModuleDetectionKind:()=>MU,getEmitModuleKind:()=>wu,getEmitModuleResolutionKind:()=>pd,getEmitScriptTarget:()=>os,getEmitStandardClassFields:()=>doe,getEnclosingBlockScopeContainer:()=>mh,getEnclosingContainer:()=>lj,getEncodedSemanticClassifications:()=>PX,getEncodedSyntacticClassifications:()=>MX,getEndLinePosition:()=>EL,getEntityNameFromTypeNode:()=>ML,getEntrypointsFromPackageJsonInfo:()=>fq,getErrorCountForSummary:()=>E7,getErrorSpanForNode:()=>vS,getErrorSummaryText:()=>_ce,getEscapedTextOfIdentifierOrLiteral:()=>CC,getEscapedTextOfJsxAttributeName:()=>iP,getEscapedTextOfJsxNamespacedName:()=>VA,getExpandoInitializer:()=>u0,getExportAssignmentExpression:()=>Nj,getExportInfoMap:()=>bO,getExportNeedsImportStarHelper:()=>$se,getExpressionAssociativity:()=>Oj,getExpressionPrecedence:()=>MC,getExternalHelpersModuleName:()=>$k,getExternalModuleImportEqualsDeclarationExpression:()=>TC,getExternalModuleName:()=>fR,getExternalModuleNameFromDeclaration:()=>Aie,getExternalModuleNameFromPath:()=>jj,getExternalModuleNameLiteral:()=>dI,getExternalModuleRequireArgument:()=>hj,getFallbackOptions:()=>Ow,getFileEmitOutput:()=>Yle,getFileMatcherPatterns:()=>F3,getFileNamesFromConfigSpecs:()=>CP,getFileWatcherEventKind:()=>lV,getFilesInErrorForSummary:()=>S7,getFirstConstructorWithBody:()=>ng,getFirstIdentifier:()=>Gp,getFirstNonSpaceCharacterPosition:()=>Iue,getFirstProjectOutput:()=>eJ,getFixableErrorSpanExpression:()=>hX,getFormatCodeSettingsForWriting:()=>S5,getFullWidth:()=>yL,getFunctionFlags:()=>Bc,getHeritageClause:()=>ZL,getHostSignatureFromJSDoc:()=>d0,getIdentifierAutoGenerate:()=>nTe,getIdentifierGeneratedImportReference:()=>Qoe,getIdentifierTypeArguments:()=>LS,getImmediatelyInvokedFunctionExpression:()=>bS,getImpliedNodeFormatForFile:()=>Bw,getImpliedNodeFormatForFileWorker:()=>EJ,getImportNeedsImportDefaultHelper:()=>kq,getImportNeedsImportStarHelper:()=>UF,getIndentSize:()=>TR,getIndentString:()=>c3,getInferredLibraryNameResolveFrom:()=>u7,getInitializedVariables:()=>VC,getInitializerOfBinaryExpression:()=>Ej,getInitializerOfBindingOrAssignmentElement:()=>Zk,getInterfaceBaseTypeNodes:()=>DC,getInternalEmitFlags:()=>Em,getInvokedExpression:()=>q4,getIsolatedModules:()=>rm,getJSDocAugmentsTag:()=>$ne,getJSDocClassTag:()=>AV,getJSDocCommentRanges:()=>dj,getJSDocCommentsAndTags:()=>Tj,getJSDocDeprecatedTag:()=>IV,getJSDocDeprecatedTagNoCache:()=>ire,getJSDocEnumTag:()=>xV,getJSDocHost:()=>AS,getJSDocImplementsTags:()=>Qne,getJSDocOverloadTags:()=>Ij,getJSDocOverrideTagNoCache:()=>rre,getJSDocParameterTags:()=>qx,getJSDocParameterTagsNoCache:()=>Jne,getJSDocPrivateTag:()=>I1e,getJSDocPrivateTagNoCache:()=>ere,getJSDocProtectedTag:()=>x1e,getJSDocProtectedTagNoCache:()=>tre,getJSDocPublicTag:()=>A1e,getJSDocPublicTagNoCache:()=>Zne,getJSDocReadonlyTag:()=>R1e,getJSDocReadonlyTagNoCache:()=>nre,getJSDocReturnTag:()=>ore,getJSDocReturnType:()=>iL,getJSDocRoot:()=>hR,getJSDocSatisfiesExpressionType:()=>TU,getJSDocSatisfiesTag:()=>RV,getJSDocTags:()=>a0,getJSDocTagsNoCache:()=>N1e,getJSDocTemplateTag:()=>D1e,getJSDocThisTag:()=>l4,getJSDocType:()=>o0,getJSDocTypeAliasName:()=>DH,getJSDocTypeAssertionType:()=>nF,getJSDocTypeParameterDeclarations:()=>h3,getJSDocTypeParameterTags:()=>Kne,getJSDocTypeParameterTagsNoCache:()=>Xne,getJSDocTypeTag:()=>i0,getJSXImplicitImportBase:()=>k3,getJSXRuntimeImport:()=>w3,getJSXTransformEnabled:()=>L3,getKeyForCompilerOptions:()=>sq,getLanguageVariant:()=>pk,getLastChild:()=>oU,getLeadingCommentRanges:()=>qh,getLeadingCommentRangesOfNode:()=>uj,getLeftmostAccessExpression:()=>DR,getLeftmostExpression:()=>NR,getLibraryNameFromLibFileName:()=>yJ,getLineAndCharacterOfPosition:()=>ys,getLineInfo:()=>Cq,getLineOfLocalPosition:()=>kC,getLineOfLocalPositionFromLineMap:()=>RS,getLineStartPositionForPosition:()=>am,getLineStarts:()=>Ng,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qie,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>$ie,getLinesBetweenPositions:()=>nC,getLinesBetweenRangeEndAndRangeStart:()=>nU,getLinesBetweenRangeEndPositions:()=>gSe,getLiteralText:()=>Wre,getLocalNameForExternalImport:()=>YR,getLocalSymbolForExportDefault:()=>xR,getLocaleSpecificMessage:()=>Wo,getLocaleTimeString:()=>jw,getMappedContextSpan:()=>tX,getMappedDocumentSpan:()=>a5,getMappedLocation:()=>oM,getMatchedFileSpec:()=>VJ,getMatchedIncludeSpec:()=>jJ,getMeaningFromDeclaration:()=>Yw,getMeaningFromLocation:()=>ZS,getMembersOfDeclaration:()=>$re,getModeForFileReference:()=>Fw,getModeForResolutionAtIndex:()=>Ule,getModeForUsageLocation:()=>mJ,getModifiedTime:()=>gA,getModifiers:()=>xE,getModuleInstanceState:()=>jg,getModuleNameStringLiteralAt:()=>Gw,getModuleSpecifierEndingPreference:()=>voe,getModuleSpecifierResolverHost:()=>KK,getNameForExportedSymbol:()=>y5,getNameFromImportAttribute:()=>Y3,getNameFromIndexInfo:()=>Hre,getNameFromPropertyName:()=>cO,getNameOfAccessExpression:()=>sU,getNameOfCompilerOptionValue:()=>qH,getNameOfDeclaration:()=>Lo,getNameOfExpando:()=>yj,getNameOfJSDocTypedef:()=>qne,getNameOrArgument:()=>BL,getNameTable:()=>TY,getNamesForExportedSymbol:()=>wue,getNamespaceDeclarationNode:()=>mR,getNewLineCharacter:()=>Fv,getNewLineKind:()=>yO,getNewLineOrDefaultFromHost:()=>Xv,getNewTargetContainer:()=>sie,getNextJSDocCommentLocation:()=>Aj,getNodeForGeneratedName:()=>tw,getNodeId:()=>as,getNodeKind:()=>f1,getNodeModifiers:()=>nM,getNodeModulePathParts:()=>J3,getNonAssignedNameOfDeclaration:()=>a4,getNonAssignmentOperatorForCompoundAssignment:()=>FP,getNonAugmentationDeclaration:()=>nj,getNonDecoratorTokenPosOfNode:()=>$V,getNormalizedAbsolutePath:()=>go,getNormalizedAbsolutePathWithoutRoot:()=>mV,getNormalizedPathComponents:()=>j2,getObjectFlags:()=>Wr,getOperator:()=>Fj,getOperatorAssociativity:()=>Wj,getOperatorPrecedence:()=>nk,getOptionFromName:()=>VH,getOptionsForLibraryResolution:()=>cq,getOptionsNameMap:()=>eD,getOrCreateEmitNode:()=>Ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Lae,getOrUpdate:()=>dA,getOriginalNode:()=>Pl,getOriginalNodeId:()=>Wu,getOriginalSourceFile:()=>sSe,getOutputDeclarationFileName:()=>JP,getOutputDeclarationFileNameWorker:()=>Qq,getOutputExtension:()=>ZF,getOutputFileNames:()=>dxe,getOutputJSFileNameWorker:()=>Zq,getOutputPathsFor:()=>qP,getOutputPathsForBundle:()=>HP,getOwnEmitOutputFilePath:()=>Iie,getOwnKeys:()=>Hh,getOwnValues:()=>fA,getPackageJsonInfo:()=>a1,getPackageJsonTypesVersionsPaths:()=>TF,getPackageJsonsVisibleToFile:()=>Mue,getPackageNameFromTypesPackageName:()=>wP,getPackageScopeForPath:()=>Ew,getParameterSymbolFromJSDoc:()=>KL,getParameterTypeNode:()=>DSe,getParentNodeInSpan:()=>dO,getParseTreeNode:()=>No,getParsedCommandLineOfConfigFile:()=>aw,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>hV,getPathFromPathComponents:()=>Ay,getPathUpdater:()=>wX,getPathsBasePath:()=>f3,getPatternFromSpec:()=>_oe,getPendingEmitKind:()=>mD,getPositionOfLineAndCharacter:()=>K2,getPossibleGenericSignatures:()=>WK,getPossibleOriginalInputExtensionForExtension:()=>Rie,getPossibleTypeArgumentsInfo:()=>FK,getPreEmitDiagnostics:()=>pxe,getPrecedingNonSpaceCharacterPosition:()=>l5,getPrivateIdentifier:()=>Fq,getProperties:()=>Oq,getProperty:()=>E6,getPropertyArrayElementValue:()=>rie,getPropertyAssignmentAliasLikeExpression:()=>bie,getPropertyNameForPropertyNameNode:()=>IS,getPropertyNameForUniqueESSymbol:()=>oSe,getPropertyNameFromType:()=>nm,getPropertyNameOfBindingOrAssignmentElement:()=>RH,getPropertySymbolFromBindingElement:()=>o5,getPropertySymbolsFromContextualType:()=>ez,getQuoteFromPreference:()=>YK,getQuotePreference:()=>lf,getRangesWhere:()=>zB,getRefactorContextSpan:()=>II,getReferencedFileLocation:()=>XP,getRegexFromPattern:()=>By,getRegularExpressionForWildcard:()=>qC,getRegularExpressionsForWildcards:()=>O3,getRelativePathFromDirectory:()=>vm,getRelativePathFromFile:()=>H2,getRelativePathToDirectoryOrUrl:()=>yA,getRenameLocation:()=>mO,getReplacementSpanForContextToken:()=>VK,getResolutionDiagnostic:()=>AJ,getResolutionModeOverride:()=>uD,getResolveJsonModule:()=>g0,getResolvePackageJsonExports:()=>tW,getResolvePackageJsonImports:()=>nW,getResolvedExternalModuleName:()=>u3,getRestIndicatorOfBindingOrAssignmentElement:()=>iF,getRestParameterElementType:()=>pj,getRightMostAssignedExpression:()=>FL,getRootDeclaration:()=>R_,getRootDirectoryOfResolutionCache:()=>pce,getRootLength:()=>uh,getRootPathSplitLength:()=>Wxe,getScriptKind:()=>aX,getScriptKindFromFileName:()=>B3,getScriptTargetFeatures:()=>Z3,getSelectedEffectiveModifierFlags:()=>wA,getSelectedSyntacticModifierFlags:()=>Wie,getSemanticClassifications:()=>zue,getSemanticJsxChildren:()=>bR,getSetAccessorTypeAnnotationNode:()=>Die,getSetAccessorValueParameter:()=>wC,getSetExternalModuleIndicator:()=>fk,getShebang:()=>r4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Sj,getSingleVariableOfVariableStatement:()=>PA,getSnapshotText:()=>ED,getSnippetElement:()=>XU,getSourceFileOfModule:()=>D4,getSourceFileOfNode:()=>Un,getSourceFilePathInNewDir:()=>m3,getSourceFilePathInNewDirWorker:()=>_3,getSourceFileVersionAsHashFromText:()=>A7,getSourceFilesToEmit:()=>Uj,getSourceMapRange:()=>Bv,getSourceMapper:()=>tde,getSourceTextOfNodeFromSourceFile:()=>CE,getSpanOfTokenAtPosition:()=>_h,getSpellingSuggestion:()=>KN,getStartPositionOfLine:()=>wy,getStartPositionOfRange:()=>GC,getStartsOnNewLine:()=>cP,getStaticPropertiesAndClassStaticBlock:()=>JF,getStrictOptionValue:()=>dd,getStringComparer:()=>Lx,getSubPatternFromSpec:()=>W3,getSuperCallFromStatement:()=>HF,getSuperContainer:()=>CL,getSupportedCodeFixes:()=>EY,getSupportedExtensions:()=>JC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>mk,getSwitchedType:()=>dX,getSymbolId:()=>Sa,getSymbolNameForPrivateIdentifier:()=>ek,getSymbolTarget:()=>sX,getSyntacticClassifications:()=>Bue,getSyntacticModifierFlags:()=>Fy,getSyntacticModifierFlagsNoCache:()=>Kj,getSynthesizedDeepClone:()=>ll,getSynthesizedDeepCloneWithReplacements:()=>fO,getSynthesizedDeepClones:()=>_1,getSynthesizedDeepClonesWithReplacements:()=>lX,getSyntheticLeadingComments:()=>WR,getSyntheticTrailingComments:()=>Lk,getTargetLabel:()=>B7,getTargetOfBindingOrAssignmentElement:()=>$y,getTemporaryModuleResolutionState:()=>bw,getTextOfConstantValue:()=>Fre,getTextOfIdentifierOrLiteral:()=>Qf,getTextOfJSDocComment:()=>aL,getTextOfJsxAttributeName:()=>Ek,getTextOfJsxNamespacedName:()=>oP,getTextOfNode:()=>fc,getTextOfNodeFromSourceText:()=>gC,getTextOfPropertyName:()=>nR,getThisContainer:()=>Fd,getThisParameter:()=>BE,getTokenAtPosition:()=>po,getTokenPosOfNode:()=>l0,getTokenSourceMapRange:()=>eTe,getTouchingPropertyName:()=>Vd,getTouchingToken:()=>bD,getTrailingCommentRanges:()=>Zb,getTrailingSemicolonDeferringWriter:()=>Vj,getTransformFlagsSubtreeExclusions:()=>Goe,getTransformers:()=>Xq,getTsBuildInfoEmitOutputFilePath:()=>Hv,getTsConfigObjectLiteralExpression:()=>EC,getTsConfigPropArrayElementValue:()=>G4,getTypeAnnotationNode:()=>Nie,getTypeArgumentOrTypeParameterList:()=>lue,getTypeKeywordOfTypeOnlyImport:()=>$K,getTypeNode:()=>Yoe,getTypeNodeIfAccessible:()=>uM,getTypeParameterFromJsDoc:()=>mie,getTypeParameterOwner:()=>y1e,getTypesPackageName:()=>CF,getUILocale:()=>rne,getUniqueName:()=>rT,getUniqueSymbolId:()=>Aue,getUseDefineForClassFields:()=>lP,getWatchErrorSummaryDiagnosticMessage:()=>FJ,getWatchFactory:()=>oJ,group:()=>JN,groupBy:()=>S6,guessIndentation:()=>xre,handleNoEmitOptions:()=>SJ,hasAbstractModifier:()=>jE,hasAccessorModifier:()=>D_,hasAmbientModifier:()=>Jj,hasChangesInResolutions:()=>KV,hasChildOfKind:()=>rO,hasContextSensitiveParameters:()=>H3,hasDecorators:()=>Tf,hasDocComment:()=>aue,hasDynamicName:()=>Wy,hasEffectiveModifier:()=>_p,hasEffectiveModifiers:()=>g3,hasEffectiveReadonlyModifier:()=>OC,hasExtension:()=>vA,hasIndexSignature:()=>uX,hasInitializer:()=>Ly,hasInvalidEscape:()=>Bj,hasJSDocNodes:()=>Wp,hasJSDocParameterTags:()=>Yne,hasJSFileExtension:()=>UE,hasJsonModuleEmitEnabled:()=>P3,hasOnlyExpressionInitializer:()=>_S,hasOverrideModifier:()=>v3,hasPossibleExternalModuleReference:()=>jre,hasProperty:()=>Is,hasPropertyAccessExpressionWithName:()=>Qw,hasQuestionToken:()=>CA,hasRecordedExternalHelpers:()=>Mae,hasResolutionModeOverride:()=>Moe,hasRestParameter:()=>UV,hasScopeMarker:()=>vre,hasStaticModifier:()=>mc,hasSyntacticModifier:()=>Qr,hasSyntacticModifiers:()=>Oie,hasTSFileExtension:()=>GA,hasTabstop:()=>Noe,hasTrailingDirectorySeparator:()=>Dv,hasType:()=>S4,hasTypeArguments:()=>eSe,hasZeroOrOneAsteriskCharacter:()=>uU,helperString:()=>QU,hostGetCanonicalFileName:()=>wv,hostUsesCaseSensitiveFileNames:()=>AR,idText:()=>Sr,identifierIsThisKeyword:()=>qj,identifierToKeywordKind:()=>r0,identity:()=>tl,identitySourceMapConsumer:()=>jF,ignoreSourceNewlines:()=>$U,ignoredPaths:()=>V2,importDefaultHelper:()=>CW,importFromModuleSpecifier:()=>IC,importNameElisionDisabled:()=>cU,importStarHelper:()=>wk,indexOfAnyCharCode:()=>Jc,indexOfNode:()=>tR,indicesOf:()=>N2,inferredTypesContainingFile:()=>fD,injectClassNamedEvaluationHelperBlockIfMissing:()=>YF,injectClassThisAssignmentIfMissing:()=>sle,insertImports:()=>iM,insertLeadingStatement:()=>yTe,insertSorted:()=>by,insertStatementAfterCustomPrologue:()=>hS,insertStatementAfterStandardPrologue:()=>U1e,insertStatementsAfterCustomPrologue:()=>XV,insertStatementsAfterStandardPrologue:()=>Yh,intersperse:()=>io,intrinsicTagNameToString:()=>AU,introducesArgumentsExoticObject:()=>tie,inverseJsxOptionMap:()=>PP,isAbstractConstructorSymbol:()=>Zie,isAbstractModifier:()=>aae,isAccessExpression:()=>ws,isAccessibilityModifier:()=>BK,isAccessor:()=>Cy,isAccessorModifier:()=>lae,isAliasSymbolDeclaration:()=>nSe,isAliasableExpression:()=>QL,isAmbientModule:()=>ku,isAmbientPropertyDeclaration:()=>ij,isAnonymousFunctionDefinition:()=>PC,isAnyDirectorySeparator:()=>dV,isAnyImportOrBareOrAccessedRequire:()=>Vre,isAnyImportOrReExport:()=>TL,isAnyImportSyntax:()=>gS,isAnySupportedFileExtension:()=>RSe,isApplicableVersionedTypesKey:()=>Tw,isArgumentExpressionOfElementAccess:()=>NK,isArray:()=>To,isArrayBindingElement:()=>h4,isArrayBindingOrAssignmentElement:()=>fL,isArrayBindingOrAssignmentPattern:()=>FV,isArrayBindingPattern:()=>YE,isArrayLiteralExpression:()=>fd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Jv,isArrayTypeNode:()=>Vk,isArrowFunction:()=>Gs,isAsExpression:()=>Uk,isAssertClause:()=>_ae,isAssertEntry:()=>dTe,isAssertionExpression:()=>mS,isAssertsKeyword:()=>iae,isAssignmentDeclaration:()=>AC,isAssignmentExpression:()=>Pc,isAssignmentOperator:()=>Ov,isAssignmentPattern:()=>mC,isAssignmentTarget:()=>eg,isAsteriskToken:()=>Fk,isAsyncFunction:()=>NC,isAsyncModifier:()=>pP,isAutoAccessorPropertyDeclaration:()=>Wd,isAwaitExpression:()=>Ky,isAwaitKeyword:()=>oH,isBigIntLiteral:()=>WW,isBinaryExpression:()=>mr,isBinaryOperatorToken:()=>Gae,isBindableObjectDefinePropertyCall:()=>SS,isBindableStaticAccessExpression:()=>OE,isBindableStaticElementAccessExpression:()=>t3,isBindableStaticNameExpression:()=>TS,isBindingElement:()=>$a,isBindingElementOfBareOrAccessedRequire:()=>uie,isBindingName:()=>pS,isBindingOrAssignmentElement:()=>pre,isBindingOrAssignmentPattern:()=>dL,isBindingPattern:()=>ta,isBlock:()=>Ko,isBlockOrCatchScoped:()=>QV,isBlockScope:()=>oj,isBlockScopedContainerTopLevel:()=>Gre,isBooleanLiteral:()=>fC,isBreakOrContinueStatement:()=>cC,isBreakStatement:()=>lTe,isBuildInfoFile:()=>wle,isBuilderProgram:()=>hce,isBundle:()=>pH,isBundleFileTextLike:()=>toe,isCallChain:()=>uS,isCallExpression:()=>sa,isCallExpressionTarget:()=>TK,isCallLikeExpression:()=>NE,isCallLikeOrFunctionLikeExpression:()=>zV,isCallOrNewExpression:()=>S_,isCallOrNewExpressionTarget:()=>AK,isCallSignatureDeclaration:()=>ZA,isCallToHelper:()=>dP,isCaseBlock:()=>yP,isCaseClause:()=>UR,isCaseKeyword:()=>cae,isCaseOrDefaultClause:()=>b4,isCatchClause:()=>r1,isCatchClauseVariableDeclaration:()=>Doe,isCatchClauseVariableDeclarationOrBindingElement:()=>ZV,isCheckJsEnabledForFile:()=>gk,isChildOfNodeWithKind:()=>q1e,isCircularBuildOrder:()=>bI,isClassDeclaration:()=>Ac,isClassElement:()=>Yc,isClassExpression:()=>Qc,isClassInstanceProperty:()=>ure,isClassLike:()=>di,isClassMemberModifier:()=>wV,isClassNamedEvaluationHelperBlock:()=>yI,isClassOrTypeElement:()=>_4,isClassStaticBlockDeclaration:()=>Rl,isClassThisAssignmentBlock:()=>BP,isCollapsedRange:()=>hSe,isColonToken:()=>nae,isCommaExpression:()=>Yk,isCommaListExpression:()=>hP,isCommaSequence:()=>AP,isCommaToken:()=>tae,isComment:()=>$7,isCommonJsExportPropertyAssignment:()=>z4,isCommonJsExportedExpression:()=>Zre,isCompoundAssignment:()=>WP,isComputedNonLiteralName:()=>AL,isComputedPropertyName:()=>Za,isConciseBody:()=>v4,isConditionalExpression:()=>jR,isConditionalTypeNode:()=>rI,isConstTypeReference:()=>Pg,isConstructSignatureDeclaration:()=>Bk,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>zR,isContextualKeyword:()=>a3,isContinueStatement:()=>sTe,isCustomPrologue:()=>DL,isDebuggerStatement:()=>cTe,isDeclaration:()=>Ju,isDeclarationBindingElement:()=>uL,isDeclarationFileName:()=>Su,isDeclarationName:()=>wg,isDeclarationNameOfEnumOrNamespace:()=>rU,isDeclarationReadonly:()=>w4,isDeclarationStatement:()=>Sre,isDeclarationWithTypeParameterChildren:()=>sj,isDeclarationWithTypeParameters:()=>aj,isDecorator:()=>Eu,isDecoratorTarget:()=>Jce,isDefaultClause:()=>EP,isDefaultImport:()=>NA,isDefaultModifier:()=>GW,isDefaultedExpandoInitializer:()=>die,isDeleteExpression:()=>pae,isDeleteTarget:()=>Rj,isDeprecatedDeclaration:()=>b5,isDestructuringAssignment:()=>Wv,isDiagnosticWithLocation:()=>_X,isDiskPathRoot:()=>pV,isDoStatement:()=>oTe,isDocumentRegistryEntry:()=>EO,isDotDotDotToken:()=>zW,isDottedName:()=>FC,isDynamicName:()=>l3,isESSymbolIdentifier:()=>aSe,isEffectiveExternalModule:()=>RA,isEffectiveModuleDeclaration:()=>Bre,isEffectiveStrictModeSourceFile:()=>rj,isElementAccessChain:()=>DV,isElementAccessExpression:()=>$s,isEmittedFileOfProgram:()=>zle,isEmptyArrayLiteral:()=>Uie,isEmptyBindingElement:()=>Une,isEmptyBindingPattern:()=>jne,isEmptyObjectLiteral:()=>Zj,isEmptyStatement:()=>cH,isEmptyStringLiteral:()=>_j,isEntityName:()=>Qd,isEntityNameExpression:()=>Bl,isEnumConst:()=>ME,isEnumDeclaration:()=>y0,isEnumMember:()=>i1,isEqualityOperatorKind:()=>d5,isEqualsGreaterThanToken:()=>rae,isExclamationToken:()=>zk,isExcludedFile:()=>tse,isExclusivelyTypeOnlyImportOrExport:()=>fJ,isExpandoPropertyDeclaration:()=>X3,isExportAssignment:()=>kl,isExportDeclaration:()=>Yl,isExportModifier:()=>$A,isExportName:()=>tF,isExportNamespaceAsDefaultDeclaration:()=>P4,isExportOrDefaultModifier:()=>ew,isExportSpecifier:()=>Ku,isExportsIdentifier:()=>ES,isExportsOrModuleExportsOrAlias:()=>s1,isExpression:()=>yt,isExpressionNode:()=>Qh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>$ce,isExpressionOfOptionalChainRoot:()=>p4,isExpressionStatement:()=>Zc,isExpressionWithTypeArguments:()=>Vv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>y3,isExternalModule:()=>sc,isExternalModuleAugmentation:()=>PE,isExternalModuleImportEqualsDeclaration:()=>c0,isExternalModuleIndicator:()=>mL,isExternalModuleNameRelative:()=>Xc,isExternalModuleReference:()=>Sh,isExternalModuleSymbol:()=>sO,isExternalOrCommonJsModule:()=>Fp,isFileLevelReservedGeneratedIdentifier:()=>cL,isFileLevelUniqueName:()=>N4,isFileProbablyExternalModule:()=>rw,isFirstDeclarationOfSymbolParameter:()=>nX,isFixablePromiseHandler:()=>BX,isForInOrOfStatement:()=>Yx,isForInStatement:()=>JW,isForInitializer:()=>Sf,isForOfStatement:()=>Hk,isForStatement:()=>zS,isFunctionBlock:()=>kE,isFunctionBody:()=>GV,isFunctionDeclaration:()=>Tc,isFunctionExpression:()=>Os,isFunctionExpressionOrArrowFunction:()=>qE,isFunctionLike:()=>ea,isFunctionLikeDeclaration:()=>Bs,isFunctionLikeKind:()=>TA,isFunctionLikeOrClassStaticBlockDeclaration:()=>Xx,isFunctionOrConstructorTypeNode:()=>dre,isFunctionOrModuleBlock:()=>OV,isFunctionSymbol:()=>fie,isFunctionTypeNode:()=>yh,isFutureReservedKeyword:()=>rSe,isGeneratedIdentifier:()=>al,isGeneratedPrivateIdentifier:()=>dS,isGetAccessor:()=>My,isGetAccessorDeclaration:()=>tf,isGetOrSetAccessorDeclaration:()=>u4,isGlobalDeclaration:()=>HRe,isGlobalScopeAugmentation:()=>A_,isGrammarError:()=>wre,isHeritageClause:()=>nf,isHoistedFunction:()=>W4,isHoistedVariableStatement:()=>F4,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>Mj,isIdentifierName:()=>yie,isIdentifierOrThisTypeNode:()=>Wae,isIdentifierPart:()=>e0,isIdentifierStart:()=>Jh,isIdentifierText:()=>Zp,isIdentifierTypePredicate:()=>nie,isIdentifierTypeReference:()=>Toe,isIfStatement:()=>FS,isIgnoredFileFromWildCardWatching:()=>ww,isImplicitGlob:()=>fU,isImportAttribute:()=>hae,isImportAttributeName:()=>cre,isImportAttributes:()=>aI,isImportCall:()=>zp,isImportClause:()=>bh,isImportDeclaration:()=>Mc,isImportEqualsDeclaration:()=>eu,isImportKeyword:()=>mP,isImportMeta:()=>oR,isImportOrExportSpecifier:()=>SA,isImportOrExportSpecifierName:()=>Tue,isImportSpecifier:()=>tp,isImportTypeAssertionContainer:()=>uTe,isImportTypeNode:()=>ag,isImportableFile:()=>RX,isInComment:()=>qv,isInCompoundLikeAssignment:()=>xj,isInExpressionContext:()=>K4,isInJSDoc:()=>kL,isInJSFile:()=>lr,isInJSXText:()=>iue,isInJsonFile:()=>Y4,isInNonReferenceComment:()=>due,isInReferenceComment:()=>uue,isInRightSideOfInternalImportEqualsDeclaration:()=>F7,isInString:()=>SI,isInTemplateString:()=>OK,isInTopLevelContext:()=>U4,isInTypeQuery:()=>DS,isIncrementalCompilation:()=>sP,isIndexSignatureDeclaration:()=>XE,isIndexedAccessTypeNode:()=>WS,isInferTypeNode:()=>kS,isInfinityOrNaNString:()=>tP,isInitializedProperty:()=>Dw,isInitializedVariable:()=>dk,isInsideJsxElement:()=>X7,isInsideJsxElementOrAttribute:()=>rue,isInsideNodeModules:()=>vO,isInsideTemplateLiteral:()=>oO,isInstanceOfExpression:()=>b3,isInstantiatedModule:()=>Aq,isInterfaceDeclaration:()=>md,isInternalDeclaration:()=>HV,isInternalModuleImportEqualsDeclaration:()=>uR,isInternalName:()=>AH,isIntersectionTypeNode:()=>nI,isIntrinsicJsxName:()=>SR,isIterationStatement:()=>Py,isJSDoc:()=>Zm,isJSDocAllType:()=>Eae,isJSDocAugmentsTag:()=>uI,isJSDocAuthorTag:()=>_Te,isJSDocCallbackTag:()=>mH,isJSDocClassTag:()=>Tae,isJSDocCommentContainingNode:()=>E4,isJSDocConstructSignature:()=>_R,isJSDocDeprecatedTag:()=>yH,isJSDocEnumTag:()=>Jk,isJSDocFunctionType:()=>qR,isJSDocImplementsTag:()=>QW,isJSDocIndexSignature:()=>$4,isJSDocLikeText:()=>LH,isJSDocLink:()=>yae,isJSDocLinkCode:()=>bae,isJSDocLinkLike:()=>xA,isJSDocLinkPlain:()=>fTe,isJSDocMemberName:()=>b0,isJSDocNameReference:()=>SP,isJSDocNamepathType:()=>mTe,isJSDocNamespaceBody:()=>F1e,isJSDocNode:()=>$x,isJSDocNonNullableType:()=>KW,isJSDocNullableType:()=>HR,isJSDocOptionalParameter:()=>bk,isJSDocOptionalType:()=>fH,isJSDocOverloadTag:()=>JR,isJSDocOverrideTag:()=>YW,isJSDocParameterTag:()=>e_,isJSDocPrivateTag:()=>hH,isJSDocPropertyLikeTag:()=>uC,isJSDocPropertyTag:()=>Aae,isJSDocProtectedTag:()=>gH,isJSDocPublicTag:()=>_H,isJSDocReadonlyTag:()=>vH,isJSDocReturnTag:()=>$W,isJSDocSatisfiesExpression:()=>SU,isJSDocSatisfiesTag:()=>ZW,isJSDocSeeTag:()=>hTe,isJSDocSignature:()=>E0,isJSDocTag:()=>Qx,isJSDocTemplateTag:()=>om,isJSDocThisTag:()=>bH,isJSDocThrowsTag:()=>vTe,isJSDocTypeAlias:()=>$f,isJSDocTypeAssertion:()=>XR,isJSDocTypeExpression:()=>o1,isJSDocTypeLiteral:()=>jS,isJSDocTypeTag:()=>TP,isJSDocTypedefTag:()=>US,isJSDocUnknownTag:()=>gTe,isJSDocUnknownType:()=>Sae,isJSDocVariadicType:()=>XW,isJSXTagName:()=>cR,isJsonEqual:()=>j3,isJsonSourceFile:()=>Yf,isJsxAttribute:()=>w_,isJsxAttributeLike:()=>y4,isJsxAttributeName:()=>Poe,isJsxAttributes:()=>n1,isJsxChild:()=>gL,isJsxClosingElement:()=>e1,isJsxClosingFragment:()=>gae,isJsxElement:()=>sg,isJsxExpression:()=>bP,isJsxFragment:()=>t1,isJsxNamespacedName:()=>Qm,isJsxOpeningElement:()=>k_,isJsxOpeningFragment:()=>lI,isJsxOpeningLikeElement:()=>ld,isJsxOpeningLikeElementTagName:()=>Kce,isJsxSelfClosingElement:()=>GS,isJsxSpreadAttribute:()=>cI,isJsxTagNameExpression:()=>_C,isJsxText:()=>KA,isJumpStatementTarget:()=>Zw,isKeyword:()=>Bd,isKeywordOrPunctuation:()=>o3,isKnownSymbol:()=>tk,isLabelName:()=>RK,isLabelOfLabeledStatement:()=>xK,isLabeledStatement:()=>ZE,isLateVisibilityPaintedStatement:()=>L4,isLeftHandSideExpression:()=>Zd,isLeftHandSideOfAssignment:()=>_Se,isLet:()=>O4,isLineBreak:()=>Hu,isLiteralComputedPropertyDeclarationName:()=>$L,isLiteralExpression:()=>DE,isLiteralExpressionOfObject:()=>LV,isLiteralImportTypeNode:()=>Oy,isLiteralKind:()=>dC,isLiteralLikeAccess:()=>e3,isLiteralLikeElementAccess:()=>zL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>G7,isLiteralTypeLikeExpression:()=>ATe,isLiteralTypeLiteral:()=>hre,isLiteralTypeNode:()=>Jy,isLocalName:()=>Gg,isLogicalOperator:()=>Gie,isLogicalOrCoalescingAssignmentExpression:()=>Xj,isLogicalOrCoalescingAssignmentOperator:()=>WC,isLogicalOrCoalescingBinaryExpression:()=>sk,isLogicalOrCoalescingBinaryOperator:()=>ak,isMappedTypeNode:()=>GR,isMemberName:()=>Kh,isMetaProperty:()=>_P,isMethodDeclaration:()=>Hl,isMethodOrAccessor:()=>AA,isMethodSignature:()=>vh,isMinusToken:()=>iH,isMissingDeclaration:()=>pTe,isMissingPackageJsonInfo:()=>vse,isModifier:()=>Aa,isModifierKind:()=>Pv,isModifierLike:()=>sl,isModuleAugmentationExternal:()=>tj,isModuleBlock:()=>L_,isModuleBody:()=>yre,isModuleDeclaration:()=>Xl,isModuleExportsAccessExpression:()=>Zh,isModuleIdentifier:()=>bj,isModuleName:()=>Bae,isModuleOrEnumDeclaration:()=>_L,isModuleReference:()=>Are,isModuleSpecifierLike:()=>i5,isModuleWithStringLiteralName:()=>M4,isNameOfFunctionDeclaration:()=>PK,isNameOfModuleDeclaration:()=>CK,isNamedClassElement:()=>L1e,isNamedDeclaration:()=>ad,isNamedEvaluation:()=>mp,isNamedEvaluationSource:()=>Lj,isNamedExportBindings:()=>CV,isNamedExports:()=>Nf,isNamedImportBindings:()=>VV,isNamedImports:()=>Bg,isNamedImportsOrExports:()=>R3,isNamedTupleMember:()=>BR,isNamespaceBody:()=>W1e,isNamespaceExport:()=>Eh,isNamespaceExportDeclaration:()=>qk,isNamespaceImport:()=>Yy,isNamespaceReexportDeclaration:()=>cie,isNewExpression:()=>$E,isNewExpressionTarget:()=>eM,isNoSubstitutionTemplateLiteral:()=>XA,isNode:()=>P1e,isNodeArray:()=>RE,isNodeArrayMultiLine:()=>Yie,isNodeDescendantOf:()=>WE,isNodeKind:()=>sL,isNodeLikeSystem:()=>eG,isNodeModulesDirectory:()=>Q6,isNodeWithPossibleHoistedDeclaration:()=>hie,isNonContextualKeyword:()=>Pj,isNonExportDefaultModifier:()=>xTe,isNonGlobalAmbientModule:()=>ej,isNonGlobalDeclaration:()=>Fue,isNonNullAccess:()=>Coe,isNonNullChain:()=>f4,isNonNullExpression:()=>oI,isNonStaticMethodOrAccessorWithPrivateName:()=>Qse,isNotEmittedOrPartiallyEmittedNode:()=>O1e,isNotEmittedStatement:()=>dH,isNullishCoalesce:()=>NV,isNumber:()=>Av,isNumericLiteral:()=>hp,isNumericLiteralName:()=>og,isObjectBindingElementWithoutPropertyName:()=>uO,isObjectBindingOrAssignmentElement:()=>pL,isObjectBindingOrAssignmentPattern:()=>WV,isObjectBindingPattern:()=>im,isObjectLiteralElement:()=>jV,isObjectLiteralElementLike:()=>Mg,isObjectLiteralExpression:()=>La,isObjectLiteralMethod:()=>Tm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>B4,isObjectTypeDeclaration:()=>FA,isOctalDigit:()=>n4,isOmittedExpression:()=>Gc,isOptionalChain:()=>qu,isOptionalChainRoot:()=>sC,isOptionalDeclaration:()=>rP,isOptionalJSDocPropertyLikeTag:()=>yk,isOptionalTypeNode:()=>VW,isOuterExpression:()=>rF,isOutermostOptionalChain:()=>lC,isOverrideModifier:()=>sae,isPackageJsonInfo:()=>IF,isPackedArrayLiteral:()=>bU,isParameter:()=>Ao,isParameterDeclaration:()=>zE,isParameterPropertyDeclaration:()=>pp,isParameterPropertyModifier:()=>pC,isParenthesizedExpression:()=>Gd,isParenthesizedTypeNode:()=>wS,isParseTreeNode:()=>aC,isPartOfTypeNode:()=>$h,isPartOfTypeQuery:()=>X4,isPartiallyEmittedExpression:()=>qW,isPatternMatch:()=>x6,isPinnedComment:()=>C4,isPlainJsFile:()=>bL,isPlusToken:()=>rH,isPossiblyTypeArgumentPosition:()=>iO,isPostfixUnaryExpression:()=>sH,isPrefixUnaryExpression:()=>Xy,isPrivateIdentifier:()=>qi,isPrivateIdentifierClassElementDeclaration:()=>sd,isPrivateIdentifierPropertyAccessExpression:()=>Kx,isPrivateIdentifierSymbol:()=>Eie,isProgramBundleEmitBuildInfo:()=>tce,isProgramUptoDate:()=>bJ,isPrologueDirective:()=>Sm,isPropertyAccessChain:()=>d4,isPropertyAccessEntityNameExpression:()=>lk,isPropertyAccessExpression:()=>Fr,isPropertyAccessOrQualifiedName:()=>mre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>fre,isPropertyAssignment:()=>hc,isPropertyDeclaration:()=>qo,isPropertyName:()=>oc,isPropertyNameLiteral:()=>x_,isPropertySignature:()=>gp,isProtoSetter:()=>Sie,isPrototypeAccess:()=>zy,isPrototypePropertyAssignment:()=>VL,isPunctuation:()=>Cj,isPushOrUnshiftIdentifier:()=>kj,isQualifiedName:()=>Id,isQuestionDotToken:()=>BW,isQuestionOrExclamationToken:()=>Oae,isQuestionOrPlusOrMinusToken:()=>zae,isQuestionToken:()=>Hy,isRawSourceMap:()=>Kse,isReadonlyKeyword:()=>oae,isReadonlyKeywordOrPlusOrMinusToken:()=>Fae,isRecognizedTripleSlashComment:()=>YV,isReferenceFileLocation:()=>dD,isReferencedFile:()=>D0,isRegularExpressionLiteral:()=>tH,isRequireCall:()=>Td,isRequireVariableStatement:()=>vj,isRestParameter:()=>Xh,isRestTypeNode:()=>jW,isReturnStatement:()=>Im,isReturnStatementWithFixablePromiseHandler:()=>C5,isRightSideOfAccessExpression:()=>Qj,isRightSideOfInstanceofExpression:()=>jie,isRightSideOfPropertyAccess:()=>vD,isRightSideOfQualifiedName:()=>Yce,isRightSideOfQualifiedNameOrPropertyAccess:()=>zC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vie,isRootedDiskPath:()=>dp,isSameEntityName:()=>dR,isSatisfiesExpression:()=>lH,isScopeMarker:()=>gre,isSemicolonClassElement:()=>fae,isSetAccessor:()=>Mv,isSetAccessorDeclaration:()=>vp,isShebangTrivia:()=>gV,isShiftOperatorOrHigher:()=>CH,isShorthandAmbientModuleSymbol:()=>vC,isShorthandPropertyAssignment:()=>np,isSignedNumericLiteral:()=>s3,isSimpleCopiableExpression:()=>c1,isSimpleInlineableExpression:()=>Ih,isSimpleParameter:()=>rle,isSimpleParameterList:()=>Nw,isSingleOrDoubleQuote:()=>wL,isSourceFile:()=>$i,isSourceFileFromLibrary:()=>xD,isSourceFileJS:()=>cd,isSourceFileNotJS:()=>X1e,isSourceFileNotJson:()=>gj,isSourceMapping:()=>Xse,isSpecialPropertyDeclaration:()=>pie,isSpreadAssignment:()=>jv,isSpreadElement:()=>$m,isStatement:()=>Hi,isStatementButNotDeclaration:()=>hL,isStatementOrBlock:()=>Tre,isStatementWithLocals:()=>kre,isStatic:()=>aa,isStaticModifier:()=>QA,isString:()=>Mo,isStringAKeyword:()=>iSe,isStringANonContextualKeyword:()=>LA,isStringAndEmptyAnonymousObjectIntersection:()=>cue,isStringDoubleQuoted:()=>Z4,isStringLiteral:()=>Na,isStringLiteralLike:()=>ls,isStringLiteralOrJsxExpression:()=>Ire,isStringLiteralOrTemplate:()=>Nue,isStringOrNumericLiteralLike:()=>ef,isStringOrRegularExpressionOrTemplateLiteral:()=>zK,isStringTextContainingNode:()=>kV,isSuperCall:()=>yS,isSuperKeyword:()=>fP,isSuperOrSuperProperty:()=>K1e,isSuperProperty:()=>zd,isSupportedSourceFileName:()=>yoe,isSwitchStatement:()=>vP,isSyntaxList:()=>KR,isSyntheticExpression:()=>iTe,isSyntheticReference:()=>sI,isTagName:()=>DK,isTaggedTemplateExpression:()=>QE,isTaggedTemplateTag:()=>qce,isTemplateExpression:()=>UW,isTemplateHead:()=>YA,isTemplateLiteral:()=>IA,isTemplateLiteralKind:()=>Ny,isTemplateLiteralToken:()=>sre,isTemplateLiteralTypeNode:()=>uae,isTemplateLiteralTypeSpan:()=>aH,isTemplateMiddle:()=>nH,isTemplateMiddleOrTemplateTail:()=>m4,isTemplateSpan:()=>gP,isTemplateTail:()=>FW,isTextWhiteSpaceLike:()=>_ue,isThis:()=>yD,isThisContainerOrFunctionBlock:()=>aie,isThisIdentifier:()=>VE,isThisInTypeQuery:()=>kA,isThisInitializedDeclaration:()=>H4,isThisInitializedObjectBindingExpression:()=>lie,isThisProperty:()=>PL,isThisTypeNode:()=>jk,isThisTypeParameter:()=>nP,isThisTypePredicate:()=>J1e,isThrowStatement:()=>uH,isToken:()=>EA,isTokenKind:()=>MV,isTraceEnabled:()=>Vg,isTransientSymbol:()=>ph,isTrivia:()=>yR,isTryStatement:()=>BS,isTupleTypeNode:()=>tI,isTypeAlias:()=>HL,isTypeAliasDeclaration:()=>xm,isTypeAssertionExpression:()=>dae,isTypeDeclaration:()=>kR,isTypeElement:()=>fS,isTypeKeyword:()=>rM,isTypeKeywordToken:()=>HK,isTypeKeywordTokenOrIdentifier:()=>e5,isTypeLiteralNode:()=>yp,isTypeNode:()=>ji,isTypeNodeKind:()=>aU,isTypeOfExpression:()=>VR,isTypeOnlyExportDeclaration:()=>lre,isTypeOnlyImportDeclaration:()=>lL,isTypeOnlyImportOrExportDeclaration:()=>s0,isTypeOperatorNode:()=>OS,isTypeParameterDeclaration:()=>hl,isTypePredicateNode:()=>Gk,isTypeQueryNode:()=>eI,isTypeReferenceNode:()=>Df,isTypeReferenceType:()=>T4,isTypeUsableAsPropertyName:()=>tm,isUMDExportSymbol:()=>x3,isUnaryExpression:()=>BV,isUnaryExpressionWithWrite:()=>_re,isUnicodeIdentifierStart:()=>e4,isUnionTypeNode:()=>qy,isUnparsedNode:()=>PV,isUnparsedPrepend:()=>vae,isUnparsedSource:()=>VS,isUnparsedTextLike:()=>are,isUrl:()=>Rne,isValidBigIntString:()=>U3,isValidESSymbolDeclaration:()=>eie,isValidTypeOnlyAliasUseSite:()=>h0,isValueSignatureDeclaration:()=>gie,isVarAwaitUsing:()=>xL,isVarConst:()=>iR,isVarUsing:()=>RL,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>bC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>wE,isVariableDeclarationInitializedToRequire:()=>Q4,isVariableDeclarationList:()=>Vc,isVariableLike:()=>aR,isVariableLikeOrAccessor:()=>Qre,isVariableStatement:()=>Ll,isVoidExpression:()=>iI,isWatchSet:()=>vSe,isWhileStatement:()=>aTe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>E_,isWithStatement:()=>mae,isWriteAccess:()=>WA,isWriteOnlyAccess:()=>I3,isYieldExpression:()=>HW,jsxModeNeedsExplicitImport:()=>bX,keywordPart:()=>Ep,last:()=>Xa,lastOrUndefined:()=>el,length:()=>Ne,libMap:()=>_F,libs:()=>pw,lineBreakPart:()=>AD,linkNamePart:()=>Eue,linkPart:()=>iX,linkTextPart:()=>s5,listFiles:()=>zJ,loadModuleFromGlobalCache:()=>Dse,loadWithModeAwareCache:()=>zw,makeIdentifierFromModuleName:()=>zre,makeImport:()=>Kv,makeImportIfNecessary:()=>mue,makeStringLiteral:()=>AI,mangleScopedPackageName:()=>aD,map:()=>Wt,mapAllOrFail:()=>Jb,mapDefined:()=>eo,mapDefinedEntries:()=>v6,mapDefinedIterator:()=>Kb,mapEntries:()=>Kte,mapIterator:()=>Qa,mapOneOrMany:()=>gX,mapToDisplayParts:()=>nb,matchFiles:()=>mU,matchPatternOrExact:()=>_U,matchedText:()=>lne,matchesExclude:()=>mF,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>soe,memoize:()=>Sd,memoizeCached:()=>tne,memoizeOne:()=>lh,memoizeWeak:()=>IEe,metadataHelper:()=>dW,min:()=>XB,minAndMax:()=>Eoe,missingFileModifiedTime:()=>wp,modifierToFlag:()=>OA,modifiersToFlags:()=>N_,moduleOptionDeclaration:()=>YH,moduleResolutionIsEqualTo:()=>Mre,moduleResolutionNameAndModeGetter:()=>m7,moduleResolutionOptionDeclarations:()=>hF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>BA,moduleResolutionUsesNodeModules:()=>t5,moduleSpecifiers:()=>l1,moveEmitHelpers:()=>Koe,moveRangeEnd:()=>T3,moveRangePastDecorators:()=>Og,moveRangePastModifiers:()=>C_,moveRangePos:()=>m0,moveSyntheticComments:()=>Hoe,mutateMap:()=>UC,mutateMapSkippingNewValues:()=>rg,needsParentheses:()=>c5,needsScopeMarker:()=>g4,newCaseClauseTracker:()=>T5,newPrivateEnvironment:()=>tle,noEmitNotification:()=>Cw,noEmitSubstitution:()=>jP,noTransformers:()=>Yq,noTruncationMaximumTruncationLength:()=>Q3,nodeCanBeDecorated:()=>J4,nodeHasName:()=>rL,nodeIsDecorated:()=>lR,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Kf,nodeIsSynthesized:()=>Ys,nodeModuleNameResolver:()=>Sse,nodeModulesPathPart:()=>Ah,nodeNextJsonConfigResolver:()=>Tse,nodeOrChildIsDecorated:()=>LL,nodeOverlapsWithStartEnd:()=>V7,nodePosToString:()=>B1e,nodeSeenTracker:()=>TI,nodeStartsNewLexicalEnvironment:()=>wj,nodeToDisplayParts:()=>zRe,noop:()=>Ya,noopFileWatcher:()=>hD,normalizePath:()=>ha,normalizeSlashes:()=>Lu,not:()=>D6,notImplemented:()=>Jo,notImplementedResolver:()=>r7,nullNodeConverters:()=>VU,nullParenthesizerRules:()=>GU,nullTransformationContext:()=>UP,objectAllocator:()=>su,operatorPart:()=>aM,optionDeclarations:()=>lg,optionMapToObject:()=>dF,optionsAffectingProgramStructure:()=>tq,optionsForBuild:()=>rq,optionsForWatch:()=>tD,optionsHaveChanges:()=>Zx,optionsHaveModuleResolutionChanges:()=>Nre,or:()=>Jm,orderedRemoveItem:()=>wx,orderedRemoveItemAt:()=>Sy,outFile:()=>Ps,packageIdToPackageName:()=>R4,packageIdToString:()=>ky,paramHelper:()=>pW,parameterIsThisKeyword:()=>GE,parameterNamePart:()=>gue,parseBaseNodeFactory:()=>FH,parseBigInt:()=>Soe,parseBuildCommand:()=>iAe,parseCommandLine:()=>nAe,parseCommandLineWorker:()=>GH,parseConfigFileTextToJson:()=>jH,parseConfigFileWithSystem:()=>zxe,parseConfigHostFromCompilerHostLike:()=>f7,parseCustomTypeOption:()=>uF,parseIsolatedEntityName:()=>pI,parseIsolatedJSDocComment:()=>Jae,parseJSDocTypeExpressionForTests:()=>jTe,parseJsonConfigFileContent:()=>vAe,parseJsonSourceFileConfigFileContent:()=>cw,parseJsonText:()=>ow,parseListTypeOption:()=>Xae,parseNodeFactory:()=>Th,parseNodeModuleFromPath:()=>yw,parsePackageName:()=>Sw,parsePseudoBigInt:()=>$C,parseValidBigInt:()=>yU,patchWriteFileEnsuringDirectory:()=>Ine,pathContainsNodeModules:()=>x0,pathIsAbsolute:()=>ZN,pathIsBareSpecifier:()=>fV,pathIsRelative:()=>Op,patternText:()=>sne,perfLogger:()=>id,performIncrementalCompilation:()=>jxe,performance:()=>yne,plainJSErrors:()=>_7,positionBelongsToNode:()=>LK,positionIsASICandidate:()=>f5,positionIsSynthesized:()=>Ym,positionsAreOnSameLine:()=>If,preProcessFile:()=>pDe,probablyUsesSemicolons:()=>hO,processCommentPragmas:()=>OH,processPragmasIntoFields:()=>WH,processTaggedTemplateExpression:()=>jq,programContainsEsModules:()=>fue,programContainsModules:()=>pue,projectReferenceIsEqualTo:()=>JV,propKeyHelper:()=>IW,propertyNamePart:()=>vue,pseudoBigIntToString:()=>HE,punctuationPart:()=>$u,pushIfUnique:()=>Ef,quote:()=>cM,quotePreferenceFromString:()=>XK,rangeContainsPosition:()=>eO,rangeContainsPositionExclusive:()=>tO,rangeContainsRange:()=>sf,rangeContainsRangeExclusive:()=>Qce,rangeContainsStartEnd:()=>nO,rangeEndIsOnSameLineAsRangeStart:()=>uk,rangeEndPositionsAreOnSameLine:()=>Kie,rangeEquals:()=>VB,rangeIsOnSingleLine:()=>CS,rangeOfNode:()=>gU,rangeOfTypeParameters:()=>vU,rangeOverlapsWithStartEnd:()=>tM,rangeStartIsOnSameLineAsRangeEnd:()=>Xie,rangeStartPositionsAreOnSameLine:()=>A3,readBuilderProgram:()=>R7,readConfigFile:()=>sw,readHelper:()=>TW,readJson:()=>BC,readJsonConfigFile:()=>Qae,readJsonOrUndefined:()=>eU,reduceEachLeadingCommentRange:()=>Lne,reduceEachTrailingCommentRange:()=>kne,reduceLeft:()=>rd,reduceLeftIterator:()=>Pr,reducePathComponents:()=>cS,refactor:()=>RI,regExpEscape:()=>ISe,relativeComplement:()=>Xte,removeAllComments:()=>Pk,removeEmitHelper:()=>tTe,removeExtension:()=>hk,removeFileExtension:()=>Ad,removeIgnoredPath:()=>v7,removeMinAndVersionNumbers:()=>YB,removeOptionality:()=>oue,removePrefix:()=>XN,removeSuffix:()=>kx,removeTrailingDirectorySeparator:()=>Qb,repeatString:()=>lO,replaceElement:()=>HB,replaceFirstStar:()=>jA,resolutionExtensionIsTSOrJson:()=>KC,resolveConfigFileProjectName:()=>YJ,resolveJSModule:()=>bse,resolveLibrary:()=>RF,resolveModuleName:()=>iD,resolveModuleNameFromCache:()=>tIe,resolvePackageNameToPackageJson:()=>aq,resolvePath:()=>Iy,resolveProjectReferencePath:()=>pD,resolveTripleslashReference:()=>s7,resolveTypeReferenceDirective:()=>hse,resolvingEmptyArray:()=>$3,restHelper:()=>yW,returnFalse:()=>qm,returnNoopFileWatcher:()=>gD,returnTrue:()=>Iv,returnUndefined:()=>Yb,returnsPromise:()=>zX,runInitializersHelper:()=>mW,sameFlatMap:()=>Cx,sameMap:()=>Zo,sameMapping:()=>VIe,scanShebangTrivia:()=>vV,scanTokenAtPosition:()=>Xre,scanner:()=>Qu,screenStartingMessageCodes:()=>x7,semanticDiagnosticsOptionDeclarations:()=>QH,serializeCompilerOptions:()=>pF,server:()=>dOe,servicesVersion:()=>ape,setCommentRange:()=>ac,setConfigFileInOptions:()=>KH,setConstantValue:()=>Joe,setEachParent:()=>LR,setEmitFlags:()=>pr,setFunctionNameHelper:()=>xW,setGetSourceFileAsHashVersioned:()=>I7,setIdentifierAutoGenerate:()=>kk,setIdentifierGeneratedImportReference:()=>$oe,setIdentifierTypeArguments:()=>Gv,setInternalEmitFlags:()=>Mk,setLocalizedDiagnosticMessages:()=>aoe,setModuleDefaultHelper:()=>NW,setNodeFlags:()=>Ioe,setObjectAllocator:()=>ooe,setOriginalNode:()=>Nr,setParent:()=>Ha,setParentRecursive:()=>Gy,setPrivateIdentifier:()=>KS,setSnippetElement:()=>YU,setSourceMapRange:()=>Da,setStackTraceLimit:()=>qEe,setStartsOnNewLine:()=>sW,setSyntheticLeadingComments:()=>v0,setSyntheticTrailingComments:()=>HA,setSys:()=>$Ee,setSysLog:()=>Tne,setTextRange:()=>dt,setTextRangeEnd:()=>MR,setTextRangePos:()=>QC,setTextRangePosEnd:()=>hh,setTextRangePosWidth:()=>ZC,setTokenSourceMapRange:()=>Uoe,setTypeNode:()=>Xoe,setUILocale:()=>ine,setValueDeclaration:()=>jL,shouldAllowImportingTsExtension:()=>sD,shouldPreserveConstEnums:()=>KE,shouldUseUriStyleNodeCoreModules:()=>E5,showModuleSpecifier:()=>eoe,signatureHasLiteralTypes:()=>Iq,signatureHasRestParameter:()=>Yu,signatureToDisplayParts:()=>oX,single:()=>UB,singleElementArray:()=>hA,singleIterator:()=>Jte,singleOrMany:()=>ah,singleOrUndefined:()=>oh,skipAlias:()=>bu,skipAssertions:()=>ETe,skipConstraint:()=>qK,skipOuterExpressions:()=>$l,skipParentheses:()=>hs,skipPartiallyEmittedExpressions:()=>bm,skipTrivia:()=>Pa,skipTypeChecking:()=>YC,skipTypeParentheses:()=>YL,skipWhile:()=>une,sliceAfter:()=>hU,some:()=>bt,sort:()=>iS,sortAndDeduplicate:()=>HN,sortAndDeduplicateDiagnostics:()=>Ux,sourceFileAffectingCompilerOptions:()=>gF,sourceFileMayBeEmitted:()=>xS,sourceMapCommentRegExp:()=>GF,sourceMapCommentRegExpDontCareLineStart:()=>Lq,spacePart:()=>wl,spanMap:()=>FB,spreadArrayHelper:()=>AW,stableSort:()=>Sv,startEndContainsRange:()=>MK,startEndOverlapsWithStartEnd:()=>j7,startOnNewLine:()=>Xu,startTracing:()=>bne,startsWith:()=>uo,startsWithDirectory:()=>_V,startsWithUnderscore:()=>yX,startsWithUseStrict:()=>Cae,stringContainsAt:()=>Wue,stringToToken:()=>IE,stripQuotes:()=>Zf,supportedDeclarationExtensions:()=>Ik,supportedJSExtensions:()=>FU,supportedJSExtensionsFlat:()=>OR,supportedLocaleDirectories:()=>qV,supportedTSExtensions:()=>wR,supportedTSExtensionsFlat:()=>WU,supportedTSImplementationExtensions:()=>xk,suppressLeadingAndTrailingTrivia:()=>Sp,suppressLeadingTrivia:()=>cX,suppressTrailingTrivia:()=>xue,symbolEscapedNameNoDefault:()=>r5,symbolName:()=>El,symbolNameNoDefault:()=>n5,symbolPart:()=>hue,symbolToDisplayParts:()=>sM,syntaxMayBeASICandidate:()=>IX,syntaxRequiresTrailingSemicolonOrASI:()=>p5,sys:()=>gu,sysLog:()=>B2,tagNamesAreEquivalent:()=>T0,takeWhile:()=>C6,targetOptionDeclaration:()=>mw,templateObjectHelper:()=>SW,testFormatSettings:()=>Hce,textChangeRangeIsUnchanged:()=>Gne,textChangeRangeNewSpan:()=>oC,textChanges:()=>_r,textOrKeywordPart:()=>rX,textPart:()=>cf,textRangeContainsPositionInclusive:()=>eL,textSpanContainsPosition:()=>EV,textSpanContainsTextSpan:()=>Wne,textSpanEnd:()=>Kl,textSpanIntersection:()=>Bne,textSpanIntersectsWith:()=>o4,textSpanIntersectsWithPosition:()=>zne,textSpanIntersectsWithTextSpan:()=>v1e,textSpanIsEmpty:()=>One,textSpanOverlap:()=>Fne,textSpanOverlapsWith:()=>g1e,textSpansEqual:()=>TD,textToKeywordObj:()=>Q2,timestamp:()=>Xs,toArray:()=>mA,toBuilderFileEmit:()=>ice,toBuilderStateFileInfoForMultiEmit:()=>rce,toEditorSettings:()=>wO,toFileNameLowerCase:()=>sh,toLowerCase:()=>ene,toPath:()=>il,toProgramEmitPending:()=>oce,tokenIsIdentifierOrKeyword:()=>od,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Pne,tokenToString:()=>pa,trace:()=>bo,tracing:()=>sr,tracingEnabled:()=>O2,transform:()=>uCe,transformClassFields:()=>ple,transformDeclarations:()=>Kq,transformECMAScriptModule:()=>Jq,transformES2015:()=>Rle,transformES2016:()=>xle,transformES2017:()=>hle,transformES2018:()=>gle,transformES2019:()=>vle,transformES2020:()=>yle,transformES2021:()=>ble,transformES5:()=>Dle,transformESDecorators:()=>_le,transformESNext:()=>Ele,transformGenerators:()=>Nle,transformJsx:()=>Ile,transformLegacyDecorators:()=>mle,transformModule:()=>qq,transformNamedEvaluation:()=>bp,transformNodeModule:()=>Ple,transformNodes:()=>Pw,transformSystemModule:()=>Cle,transformTypeScript:()=>dle,transpile:()=>bDe,transpileModule:()=>nde,transpileOptionValueCompilerOptions:()=>nq,tryAddToSet:()=>Xb,tryAndIgnoreErrors:()=>h5,tryCast:()=>ri,tryDirectoryExists:()=>_5,tryExtractTSExtension:()=>E3,tryFileExists:()=>gO,tryGetClassExtendingExpressionWithTypeArguments:()=>Yj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>$j,tryGetDirectories:()=>m5,tryGetExtensionFromPath:()=>Fg,tryGetImportFromModuleSpecifier:()=>UL,tryGetJSDocSatisfiesTypeNode:()=>K3,tryGetModuleNameFromFile:()=>Qk,tryGetModuleSpecifierFromDeclaration:()=>pR,tryGetNativePerformanceHooks:()=>hne,tryGetPropertyAccessOrIdentifierToString:()=>ck,tryGetPropertyNameOfBindingOrAssignmentElement:()=>oF,tryGetSourceMappingURL:()=>Jse,tryGetTextOfPropertyName:()=>yC,tryIOAndConsumeErrors:()=>g5,tryParseJson:()=>S3,tryParsePattern:()=>PR,tryParsePatterns:()=>G3,tryParseRawSourceMap:()=>Pq,tryReadDirectory:()=>pX,tryReadFile:()=>DP,tryRemoveDirectoryPrefix:()=>pU,tryRemoveExtension:()=>boe,tryRemovePrefix:()=>ZB,tryRemoveSuffix:()=>ane,typeAcquisitionDeclarations:()=>_w,typeAliasNamePart:()=>yue,typeDirectiveIsEqualTo:()=>Lre,typeKeywords:()=>A5,typeParameterNamePart:()=>bue,typeToDisplayParts:()=>pO,unchangedPollThresholds:()=>G2,unchangedTextChangeRange:()=>vL,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Aw,unorderedRemoveItem:()=>_A,unorderedRemoveItemAt:()=>$B,unreachableCodeIsError:()=>coe,unusedLabelIsError:()=>uoe,unwrapInnermostStatementOfLabel:()=>fj,updateErrorForNoInputFiles:()=>fF,updateLanguageServiceSourceFile:()=>SY,updateMissingFilePathsWatch:()=>iJ,updateResolutionField:()=>nD,updateSharedExtendedConfigFileWatcher:()=>o7,updateSourceFile:()=>kH,updateWatchingWildcardDirectories:()=>kw,usesExtensionsOnImports:()=>goe,usingSingleLineStringWriter:()=>hC,utf16EncodeAsString:()=>jx,validateLocaleAndSetLanguage:()=>b1e,valuesHelper:()=>RW,version:()=>Re,versionMajorMinor:()=>_e,visitArray:()=>Rw,visitCommaListElements:()=>BF,visitEachChild:()=>xn,visitFunctionBody:()=>af,visitIterationBody:()=>xd,visitLexicalEnvironment:()=>Nq,visitNode:()=>nt,visitNodes:()=>jn,visitParameterList:()=>Dl,walkUpBindingElementsAndPatterns:()=>Hx,walkUpLexicalEnvironments:()=>ele,walkUpOuterExpressions:()=>Pae,walkUpParenthesizedExpressions:()=>kv,walkUpParenthesizedTypes:()=>XL,walkUpParenthesizedTypesAndGetParentAndChild:()=>vie,whitespaceOrMapCommentRegExp:()=>VF,writeCommentRange:()=>IR,writeFile:()=>LC,writeFileEnsuringDirectories:()=>Hj,zipWith:()=>gi});var fOe=I({"src/typescript/_namespaces/ts.ts"(){ra(),Kw(),si(),ob(),Ast()}}),Ist=z({"src/typescript/typescript.ts"(e,t){fOe(),fOe(),typeof console<"u"&&(N.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=pOe}});return Ist()})();typeof WB<"u"&&WB.exports&&(WB.exports=bE);var _ze=bE.createClassifier,bEe=bE.createLanguageService,hze=bE.displayPartsToString,gze=bE.EndOfLineState,vze=bE.flattenDiagnosticMessageText,yze=bE.IndentStyle,UN=bE.ScriptKind,bze=bE.ScriptTarget,Eze=bE.TokenClass,EEe=bE,co={};co["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" />
`,co["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;
type DecoratorMetadataObject = Record<PropertyKey, unknown> & object;
type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;
/**
* Context provided to a class decorator.
* @template Class The type of the decorated class associated with this context.
*/
interface ClassDecoratorContext<
Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,
> {
/** The kind of element that was decorated. */
readonly kind: "class";
/** The name of the decorated class. */
readonly name: string | undefined;
/**
* Adds a callback to be invoked after the class definition has been finalized.
*
* @example
* \`\`\`ts
* function customElement(name: string): ClassDecoratorFunction {
* return (target, context) => {
* context.addInitializer(function () {
* customElements.define(name, this);
* });
* }
* }
*
* @customElement("my-element")
* class MyElement {}
* \`\`\`
*/
addInitializer(initializer: (this: Class) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class method decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of the decorated class method.
*/
interface ClassMethodDecoratorContext<
This = unknown,
Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,
> {
/** The kind of class element that was decorated. */
readonly kind: "method";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Gets the current value of the method from the provided object.
*
* @example
* let fn = context.access.get(instance);
*/
get(object: This): Value;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*
* @example
* \`\`\`ts
* const bound: ClassMethodDecoratorFunction = (value, context) {
* if (context.private) throw new TypeError("Not supported on private methods.");
* context.addInitializer(function () {
* this[context.name] = this[context.name].bind(this);
* });
* }
*
* class C {
* message = "Hello";
*
* @bound
* m() {
* console.log(this.message);
* }
* }
* \`\`\`
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class getter decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The property type of the decorated class getter.
*/
interface ClassGetterDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "getter";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the getter on the provided object.
*
* @example
* let value = context.access.get(instance);
*/
get(object: This): Value;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class setter decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of the decorated class setter.
*/
interface ClassSetterDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "setter";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the setter on the provided object.
*
* @example
* context.access.set(instance, value);
*/
set(object: This, value: Value): void;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class \`accessor\` field decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of decorated class field.
*/
interface ClassAccessorDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "accessor";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the getter on the provided object.
*
* @example
* let value = context.access.get(instance);
*/
get(object: This): Value;
/**
* Invokes the setter on the provided object.
*
* @example
* context.access.set(instance, value);
*/
set(object: This, value: Value): void;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Describes the target provided to class \`accessor\` field decorators.
* @template This The \`this\` type to which the target applies.
* @template Value The property type for the class \`accessor\` field.
*/
interface ClassAccessorDecoratorTarget<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;
readonly metadata: DecoratorMetadata;
}
`,co["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 | undefined, parameterIndex: number) => void;
`,co["lib.dom.asynciterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window Async Iterable APIs
/////////////////////////////
interface FileSystemDirectoryHandle {
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;
entries(): AsyncIterableIterator<[string, FileSystemHandle]>;
keys(): AsyncIterableIterator<string>;
values(): AsyncIterableIterator<FileSystemHandle>;
}
`,co["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;
minPinLength?: boolean;
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
hmacCreateSecret?: boolean;
}
interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
requireResidentKey?: boolean;
residentKey?: ResidentKeyRequirement;
userVerification?: UserVerificationRequirement;
}
interface AvcEncoderConfig {
format?: AvcBitstreamFormat;
}
interface BiquadFilterOptions extends AudioNodeOptions {
Q?: number;
detune?: number;
frequency?: number;
gain?: number;
type?: BiquadFilterType;
}
interface BlobEventInit {
data: Blob;
timecode?: DOMHighResTimeStamp;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CSSMatrixComponentOptions {
is2D?: boolean;
}
interface CSSNumericType {
angle?: number;
flex?: number;
frequency?: number;
length?: number;
percent?: number;
percentHint?: CSSNumericBaseType;
resolution?: number;
time?: number;
}
interface CSSStyleSheetInit {
baseURL?: string;
disabled?: boolean;
media?: MediaList | string;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface CanvasRenderingContext2DSettings {
alpha?: boolean;
colorSpace?: PredefinedColorSpace;
desynchronized?: boolean;
willReadFrequently?: boolean;
}
interface ChannelMergerOptions extends AudioNodeOptions {
numberOfInputs?: number;
}
interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
interface CheckVisibilityOptions {
checkOpacity?: boolean;
checkVisibilityCSS?: boolean;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface ClipboardEventInit extends EventInit {
clipboardData?: DataTransfer | null;
}
interface ClipboardItemOptions {
presentationStyle?: PresentationStyle;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CompositionEventInit extends UIEventInit {
data?: string;
}
interface ComputedEffectTiming extends EffectTiming {
activeDuration?: CSSNumberish;
currentIteration?: number | null;
endTime?: CSSNumberish;
localTime?: CSSNumberish | null;
progress?: number | null;
startTime?: CSSNumberish;
}
interface ComputedKeyframe {
composite: CompositeOperationOrAuto;
computedOffset: number;
easing: string;
offset: number | null;
[property: string]: string | number | null | undefined;
}
interface ConstantSourceOptions {
offset?: number;
}
interface ConstrainBooleanParameters {
exact?: boolean;
ideal?: boolean;
}
interface ConstrainDOMStringParameters {
exact?: string | string[];
ideal?: string | string[];
}
interface ConstrainDoubleRange extends DoubleRange {
exact?: number;
ideal?: number;
}
interface ConstrainULongRange extends ULongRange {
exact?: number;
ideal?: number;
}
interface ConvolverOptions extends AudioNodeOptions {
buffer?: AudioBuffer | null;
disableNormalization?: boolean;
}
interface CredentialCreationOptions {
publicKey?: PublicKeyCredentialCreationOptions;
signal?: AbortSignal;
}
interface CredentialPropertiesOutput {
rk?: boolean;
}
interface CredentialRequestOptions {
mediation?: CredentialMediationRequirement;
publicKey?: PublicKeyCredentialRequestOptions;
signal?: AbortSignal;
}
interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
interface CustomEventInit<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 | CSSNumericValue | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface ElementCreationOptions {
is?: string;
}
interface ElementDefinitionOptions {
extends?: string;
}
interface EncodedVideoChunkInit {
data: AllowSharedBufferSource;
duration?: number;
timestamp: number;
type: EncodedVideoChunkType;
}
interface EncodedVideoChunkMetadata {
decoderConfig?: VideoDecoderConfig;
}
interface ErrorEventInit extends EventInit {
colno?: number;
error?: any;
filename?: string;
lineno?: number;
message?: string;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
interface EventModifierInit extends UIEventInit {
altKey?: boolean;
ctrlKey?: boolean;
metaKey?: boolean;
modifierAltGraph?: boolean;
modifierCapsLock?: boolean;
modifierFn?: boolean;
modifierFnLock?: boolean;
modifierHyper?: boolean;
modifierNumLock?: boolean;
modifierScrollLock?: boolean;
modifierSuper?: boolean;
modifierSymbol?: boolean;
modifierSymbolLock?: boolean;
shiftKey?: boolean;
}
interface EventSourceInit {
withCredentials?: boolean;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FileSystemCreateWritableOptions {
keepExistingData?: boolean;
}
interface FileSystemFlags {
create?: boolean;
exclusive?: boolean;
}
interface FileSystemGetDirectoryOptions {
create?: boolean;
}
interface FileSystemGetFileOptions {
create?: boolean;
}
interface FileSystemRemoveOptions {
recursive?: boolean;
}
interface FocusEventInit extends UIEventInit {
relatedTarget?: EventTarget | null;
}
interface FocusOptions {
preventScroll?: boolean;
}
interface FontFaceDescriptors {
ascentOverride?: string;
descentOverride?: string;
display?: FontDisplay;
featureSettings?: string;
lineGapOverride?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
weight?: string;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface FormDataEventInit extends EventInit {
formData: FormData;
}
interface FullscreenOptions {
navigationUI?: FullscreenNavigationUI;
}
interface GainOptions extends AudioNodeOptions {
gain?: number;
}
interface GamepadEffectParameters {
duration?: number;
startDelay?: number;
strongMagnitude?: number;
weakMagnitude?: number;
}
interface GamepadEventInit extends EventInit {
gamepad: Gamepad;
}
interface GetAnimationsOptions {
subtree?: boolean;
}
interface GetNotificationOptions {
tag?: string;
}
interface GetRootNodeOptions {
composed?: boolean;
}
interface HashChangeEventInit extends EventInit {
newURL?: string;
oldURL?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface HmacKeyAlgorithm extends KeyAlgorithm {
hash: KeyAlgorithm;
length: number;
}
interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface IDBDatabaseInfo {
name?: string;
version?: number;
}
interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
}
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: string | string[] | null;
}
interface IDBTransactionOptions {
durability?: IDBTransactionDurability;
}
interface IDBVersionChangeEventInit extends EventInit {
newVersion?: number | null;
oldVersion?: number;
}
interface IIRFilterOptions extends AudioNodeOptions {
feedback: number[];
feedforward: number[];
}
interface IdleRequestOptions {
timeout?: number;
}
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
premultiplyAlpha?: PremultiplyAlpha;
resizeHeight?: number;
resizeQuality?: ResizeQuality;
resizeWidth?: number;
}
interface ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
interface ImageDataSettings {
colorSpace?: PredefinedColorSpace;
}
interface ImageEncodeOptions {
quality?: number;
type?: string;
}
interface ImportMeta {
url: string;
}
interface InputEventInit extends UIEventInit {
data?: string | null;
dataTransfer?: DataTransfer | null;
inputType?: string;
isComposing?: boolean;
targetRanges?: StaticRange[];
}
interface IntersectionObserverEntryInit {
boundingClientRect: DOMRectInit;
intersectionRatio: number;
intersectionRect: DOMRectInit;
isIntersecting: boolean;
rootBounds: DOMRectInit | null;
target: Element;
time: DOMHighResTimeStamp;
}
interface IntersectionObserverInit {
root?: Element | Document | null;
rootMargin?: string;
threshold?: number | number[];
}
interface JsonWebKey {
alg?: string;
crv?: string;
d?: string;
dp?: string;
dq?: string;
e?: string;
ext?: boolean;
k?: string;
key_ops?: string[];
kty?: string;
n?: string;
oth?: RsaOtherPrimesInfo[];
p?: string;
q?: string;
qi?: string;
use?: string;
x?: string;
y?: string;
}
interface KeyAlgorithm {
name: string;
}
interface KeyboardEventInit extends EventModifierInit {
/** @deprecated */
charCode?: number;
code?: string;
isComposing?: boolean;
key?: string;
/** @deprecated */
keyCode?: number;
location?: number;
repeat?: boolean;
}
interface Keyframe {
composite?: CompositeOperationOrAuto;
easing?: string;
offset?: number | null;
[property: string]: string | number | null | undefined;
}
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
id?: string;
timeline?: AnimationTimeline | null;
}
interface KeyframeEffectOptions extends EffectTiming {
composite?: CompositeOperation;
iterationComposite?: IterationCompositeOperation;
pseudoElement?: string | null;
}
interface LockInfo {
clientId?: string;
mode?: LockMode;
name?: string;
}
interface LockManagerSnapshot {
held?: LockInfo[];
pending?: LockInfo[];
}
interface LockOptions {
ifAvailable?: boolean;
mode?: LockMode;
signal?: AbortSignal;
steal?: boolean;
}
interface MIDIConnectionEventInit extends EventInit {
port?: MIDIPort;
}
interface MIDIMessageEventInit extends EventInit {
data?: Uint8Array;
}
interface MIDIOptions {
software?: boolean;
sysex?: boolean;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaEncodingConfiguration;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
type: MediaDecodingType;
}
interface MediaElementAudioSourceOptions {
mediaElement: HTMLMediaElement;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MediaEncryptedEventInit extends EventInit {
initData?: ArrayBuffer | null;
initDataType?: string;
}
interface MediaImage {
sizes?: string;
src: string;
type?: string;
}
interface MediaKeyMessageEventInit extends EventInit {
message: ArrayBuffer;
messageType: MediaKeyMessageType;
}
interface MediaKeySystemConfiguration {
audioCapabilities?: MediaKeySystemMediaCapability[];
distinctiveIdentifier?: MediaKeysRequirement;
initDataTypes?: string[];
label?: string;
persistentState?: MediaKeysRequirement;
sessionTypes?: string[];
videoCapabilities?: MediaKeySystemMediaCapability[];
}
interface MediaKeySystemMediaCapability {
contentType?: string;
encryptionScheme?: string | null;
robustness?: string;
}
interface MediaMetadataInit {
album?: string;
artist?: string;
artwork?: MediaImage[];
title?: string;
}
interface MediaPositionState {
duration?: number;
playbackRate?: number;
position?: number;
}
interface MediaQueryListEventInit extends EventInit {
matches?: boolean;
media?: string;
}
interface MediaRecorderOptions {
audioBitsPerSecond?: number;
bitsPerSecond?: number;
mimeType?: string;
videoBitsPerSecond?: number;
}
interface MediaSessionActionDetails {
action: MediaSessionAction;
fastSeek?: boolean;
seekOffset?: number;
seekTime?: number;
}
interface MediaStreamAudioSourceOptions {
mediaStream: MediaStream;
}
interface MediaStreamConstraints {
audio?: boolean | MediaTrackConstraints;
peerIdentity?: string;
preferCurrentTab?: boolean;
video?: boolean | MediaTrackConstraints;
}
interface MediaStreamTrackEventInit extends EventInit {
track: MediaStreamTrack;
}
interface MediaTrackCapabilities {
aspectRatio?: DoubleRange;
autoGainControl?: boolean[];
channelCount?: ULongRange;
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean[];
facingMode?: string[];
frameRate?: DoubleRange;
groupId?: string;
height?: ULongRange;
noiseSuppression?: boolean[];
sampleRate?: ULongRange;
sampleSize?: ULongRange;
width?: ULongRange;
}
interface MediaTrackConstraintSet {
aspectRatio?: ConstrainDouble;
autoGainControl?: ConstrainBoolean;
channelCount?: ConstrainULong;
deviceId?: ConstrainDOMString;
displaySurface?: ConstrainDOMString;
echoCancellation?: ConstrainBoolean;
facingMode?: ConstrainDOMString;
frameRate?: ConstrainDouble;
groupId?: ConstrainDOMString;
height?: ConstrainULong;
noiseSuppression?: ConstrainBoolean;
sampleRate?: ConstrainULong;
sampleSize?: ConstrainULong;
width?: ConstrainULong;
}
interface MediaTrackConstraints extends MediaTrackConstraintSet {
advanced?: MediaTrackConstraintSet[];
}
interface MediaTrackSettings {
aspectRatio?: number;
autoGainControl?: boolean;
channelCount?: number;
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean;
facingMode?: string;
frameRate?: number;
groupId?: string;
height?: number;
noiseSuppression?: boolean;
sampleRate?: number;
sampleSize?: number;
width?: number;
}
interface MediaTrackSupportedConstraints {
aspectRatio?: boolean;
autoGainControl?: boolean;
channelCount?: boolean;
deviceId?: boolean;
displaySurface?: boolean;
echoCancellation?: boolean;
facingMode?: boolean;
frameRate?: boolean;
groupId?: boolean;
height?: boolean;
noiseSuppression?: boolean;
sampleRate?: boolean;
sampleSize?: boolean;
width?: boolean;
}
interface MessageEventInit<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 NotificationOptions {
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
lang?: string;
requireInteraction?: boolean;
silent?: boolean | null;
tag?: string;
}
interface OfflineAudioCompletionEventInit extends EventInit {
renderedBuffer: AudioBuffer;
}
interface OfflineAudioContextOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface OptionalEffectTiming {
delay?: number;
direction?: PlaybackDirection;
duration?: number | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface OscillatorOptions extends AudioNodeOptions {
detune?: number;
frequency?: number;
periodicWave?: PeriodicWave;
type?: OscillatorType;
}
interface PageTransitionEventInit extends EventInit {
persisted?: boolean;
}
interface PannerOptions extends AudioNodeOptions {
coneInnerAngle?: number;
coneOuterAngle?: number;
coneOuterGain?: number;
distanceModel?: DistanceModelType;
maxDistance?: number;
orientationX?: number;
orientationY?: number;
orientationZ?: number;
panningModel?: PanningModelType;
positionX?: number;
positionY?: number;
positionZ?: number;
refDistance?: number;
rolloffFactor?: number;
}
interface PaymentCurrencyAmount {
currency: string;
value: string;
}
interface PaymentDetailsBase {
displayItems?: PaymentItem[];
modifiers?: PaymentDetailsModifier[];
}
interface PaymentDetailsInit extends PaymentDetailsBase {
id?: string;
total: PaymentItem;
}
interface PaymentDetailsModifier {
additionalDisplayItems?: PaymentItem[];
data?: any;
supportedMethods: string;
total?: PaymentItem;
}
interface PaymentDetailsUpdate extends PaymentDetailsBase {
paymentMethodErrors?: any;
total?: PaymentItem;
}
interface PaymentItem {
amount: PaymentCurrencyAmount;
label: string;
pending?: boolean;
}
interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
methodDetails?: any;
methodName?: string;
}
interface PaymentMethodData {
data?: any;
supportedMethods: string;
}
interface PaymentRequestUpdateEventInit extends EventInit {
}
interface PaymentValidationErrors {
error?: string;
paymentMethod?: any;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
interface PerformanceMarkOptions {
detail?: any;
startTime?: DOMHighResTimeStamp;
}
interface PerformanceMeasureOptions {
detail?: any;
duration?: DOMHighResTimeStamp;
end?: string | DOMHighResTimeStamp;
start?: string | DOMHighResTimeStamp;
}
interface PerformanceObserverInit {
buffered?: boolean;
entryTypes?: string[];
type?: string;
}
interface PeriodicWaveConstraints {
disableNormalization?: boolean;
}
interface PeriodicWaveOptions extends PeriodicWaveConstraints {
imag?: number[] | Float32Array;
real?: number[] | Float32Array;
}
interface PermissionDescriptor {
name: PermissionName;
}
interface PictureInPictureEventInit extends EventInit {
pictureInPictureWindow: PictureInPictureWindow;
}
interface PlaneLayout {
offset: number;
stride: number;
}
interface PointerEventInit extends MouseEventInit {
coalescedEvents?: PointerEvent[];
height?: number;
isPrimary?: boolean;
pointerId?: number;
pointerType?: string;
predictedEvents?: PointerEvent[];
pressure?: number;
tangentialPressure?: number;
tiltX?: number;
tiltY?: number;
twist?: number;
width?: number;
}
interface PopStateEventInit extends EventInit {
state?: any;
}
interface PositionOptions {
enableHighAccuracy?: boolean;
maximumAge?: number;
timeout?: number;
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PropertyDefinition {
inherits: boolean;
initialValue?: string;
name: string;
syntax?: string;
}
interface PropertyIndexedKeyframes {
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
easing?: string | string[];
offset?: number | (number | null)[];
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
}
interface PublicKeyCredentialCreationOptions {
attestation?: AttestationConveyancePreference;
authenticatorSelection?: AuthenticatorSelectionCriteria;
challenge: BufferSource;
excludeCredentials?: PublicKeyCredentialDescriptor[];
extensions?: AuthenticationExtensionsClientInputs;
pubKeyCredParams: PublicKeyCredentialParameters[];
rp: PublicKeyCredentialRpEntity;
timeout?: number;
user: PublicKeyCredentialUserEntity;
}
interface PublicKeyCredentialDescriptor {
id: BufferSource;
transports?: AuthenticatorTransport[];
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialEntity {
name: string;
}
interface PublicKeyCredentialParameters {
alg: COSEAlgorithmIdentifier;
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialRequestOptions {
allowCredentials?: PublicKeyCredentialDescriptor[];
challenge: BufferSource;
extensions?: AuthenticationExtensionsClientInputs;
rpId?: string;
timeout?: number;
userVerification?: UserVerificationRequirement;
}
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
id?: string;
}
interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
displayName: string;
id: BufferSource;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: EpochTimeStamp | null;
keys?: Record<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[];
payloadType?: number;
sequenceNumber?: number;
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata {
contributingSources?: number[];
dependencies?: number[];
frameId?: number;
height?: number;
payloadType?: number;
spatialIndex?: number;
synchronizationSource?: number;
temporalIndex?: number;
timestamp?: number;
width?: number;
}
interface RTCErrorEventInit extends EventInit {
error: RTCError;
}
interface RTCErrorInit {
errorDetail: RTCErrorDetailType;
httpRequestStatusCode?: number;
receivedAlert?: number;
sctpCauseCode?: number;
sdpLineNumber?: number;
sentAlert?: number;
}
interface RTCIceCandidateInit {
candidate?: string;
sdpMLineIndex?: number | null;
sdpMid?: string | null;
usernameFragment?: string | null;
}
interface RTCIceCandidatePair {
local?: RTCIceCandidate;
remote?: RTCIceCandidate;
}
interface RTCIceCandidatePairStats extends RTCStats {
availableIncomingBitrate?: number;
availableOutgoingBitrate?: number;
bytesReceived?: number;
bytesSent?: number;
currentRoundTripTime?: number;
lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
lastPacketSentTimestamp?: DOMHighResTimeStamp;
localCandidateId: string;
nominated?: boolean;
remoteCandidateId: string;
requestsReceived?: number;
requestsSent?: number;
responsesReceived?: number;
responsesSent?: number;
state: RTCStatsIceCandidatePairState;
totalRoundTripTime?: number;
transportId: string;
}
interface RTCIceServer {
credential?: string;
urls: string | string[];
username?: string;
}
interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
audioLevel?: number;
bytesReceived?: number;
concealedSamples?: number;
concealmentEvents?: number;
decoderImplementation?: string;
estimatedPlayoutTimestamp?: DOMHighResTimeStamp;
fecPacketsDiscarded?: number;
fecPacketsReceived?: number;
firCount?: number;
frameHeight?: number;
frameWidth?: number;
framesDecoded?: number;
framesDropped?: number;
framesPerSecond?: number;
framesReceived?: number;
headerBytesReceived?: number;
insertedSamplesForDeceleration?: number;
jitterBufferDelay?: number;
jitterBufferEmittedCount?: number;
keyFramesDecoded?: number;
lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
mid?: string;
nackCount?: number;
packetsDiscarded?: number;
pliCount?: number;
qpSum?: number;
remoteId?: string;
removedSamplesForAcceleration?: number;
silentConcealedSamples?: number;
totalAudioEnergy?: number;
totalDecodeTime?: number;
totalInterFrameDelay?: number;
totalProcessingDelay?: number;
totalSamplesDuration?: number;
totalSamplesReceived?: number;
totalSquaredInterFrameDelay?: number;
trackIdentifier: string;
}
interface RTCLocalSessionDescriptionInit {
sdp?: string;
type?: RTCSdpType;
}
interface RTCOfferAnswerOptions {
}
interface RTCOfferOptions extends RTCOfferAnswerOptions {
iceRestart?: boolean;
offerToReceiveAudio?: boolean;
offerToReceiveVideo?: boolean;
}
interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
firCount?: number;
frameHeight?: number;
frameWidth?: number;
framesEncoded?: number;
framesPerSecond?: number;
framesSent?: number;
headerBytesSent?: number;
hugeFramesSent?: number;
keyFramesEncoded?: number;
mediaSourceId?: string;
nackCount?: number;
pliCount?: number;
qpSum?: number;
qualityLimitationResolutionChanges?: number;
remoteId?: string;
retransmittedBytesSent?: number;
retransmittedPacketsSent?: number;
rid?: string;
rtxSsrc?: number;
targetBitrate?: number;
totalEncodeTime?: number;
totalEncodedBytesTarget?: number;
totalPacketSendDelay?: number;
}
interface RTCPeerConnectionIceErrorEventInit extends EventInit {
address?: string | null;
errorCode: number;
errorText?: string;
port?: number | null;
url?: string;
}
interface RTCPeerConnectionIceEventInit extends EventInit {
candidate?: RTCIceCandidate | null;
url?: string | null;
}
interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
jitter?: number;
packetsLost?: number;
packetsReceived?: number;
}
interface RTCRtcpParameters {
cname?: string;
reducedSize?: boolean;
}
interface RTCRtpCapabilities {
codecs: RTCRtpCodecCapability[];
headerExtensions: RTCRtpHeaderExtensionCapability[];
}
interface RTCRtpCodec {
channels?: number;
clockRate: number;
mimeType: string;
sdpFmtpLine?: string;
}
interface RTCRtpCodecCapability extends RTCRtpCodec {
}
interface RTCRtpCodecParameters extends RTCRtpCodec {
payloadType: number;
}
interface RTCRtpCodingParameters {
rid?: string;
}
interface RTCRtpContributingSource {
audioLevel?: number;
rtpTimestamp: number;
source: number;
timestamp: DOMHighResTimeStamp;
}
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
active?: boolean;
maxBitrate?: number;
maxFramerate?: number;
networkPriority?: RTCPriorityType;
priority?: RTCPriorityType;
scaleResolutionDownBy?: number;
}
interface RTCRtpHeaderExtensionCapability {
uri: string;
}
interface RTCRtpHeaderExtensionParameters {
encrypted?: boolean;
id: number;
uri: string;
}
interface RTCRtpParameters {
codecs: RTCRtpCodecParameters[];
headerExtensions: RTCRtpHeaderExtensionParameters[];
rtcp: RTCRtcpParameters;
}
interface RTCRtpReceiveParameters extends RTCRtpParameters {
}
interface RTCRtpSendParameters extends RTCRtpParameters {
degradationPreference?: RTCDegradationPreference;
encodings: RTCRtpEncodingParameters[];
transactionId: string;
}
interface RTCRtpStreamStats extends RTCStats {
codecId?: string;
kind: string;
ssrc: number;
transportId?: string;
}
interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
}
interface RTCRtpTransceiverInit {
direction?: RTCRtpTransceiverDirection;
sendEncodings?: RTCRtpEncodingParameters[];
streams?: MediaStream[];
}
interface RTCSentRtpStreamStats extends RTCRtpStreamStats {
bytesSent?: number;
packetsSent?: number;
}
interface RTCSessionDescriptionInit {
sdp?: string;
type: RTCSdpType;
}
interface RTCSetParameterOptions {
}
interface RTCStats {
id: string;
timestamp: DOMHighResTimeStamp;
type: RTCStatsType;
}
interface RTCTrackEventInit extends EventInit {
receiver: RTCRtpReceiver;
streams?: MediaStream[];
track: MediaStreamTrack;
transceiver: RTCRtpTransceiver;
}
interface RTCTransportStats extends RTCStats {
bytesReceived?: number;
bytesSent?: number;
dtlsCipher?: string;
dtlsState: RTCDtlsTransportState;
localCertificateId?: string;
remoteCertificateId?: string;
selectedCandidatePairId?: string;
srtpCipher?: string;
tlsVersion?: string;
}
interface ReadableStreamGetReaderOptions {
/**
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
*
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
*/
mode?: ReadableStreamReaderMode;
}
interface ReadableStreamReadDoneResult<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 ReportingObserverOptions {
buffered?: boolean;
types?: string[];
}
interface RequestInit {
/** A BodyInit object or null to set request's body. */
body?: BodyInit | null;
/** A string indicating how the request will interact with the browser's cache to set request's cache. */
cache?: RequestCache;
/** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
credentials?: RequestCredentials;
/** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
headers?: HeadersInit;
/** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
integrity?: string;
/** A boolean to set request's keepalive. */
keepalive?: boolean;
/** A string to set request's method. */
method?: string;
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
mode?: RequestMode;
priority?: RequestPriority;
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
redirect?: RequestRedirect;
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
referrer?: string;
/** A referrer policy to set request's referrerPolicy. */
referrerPolicy?: ReferrerPolicy;
/** An AbortSignal to set request's signal. */
signal?: AbortSignal | null;
/** Can only be null. Used to disassociate request from any Window. */
window?: null;
}
interface ResizeObserverOptions {
box?: ResizeObserverBoxOptions;
}
interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
hash: KeyAlgorithm;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
interface RsaKeyAlgorithm extends KeyAlgorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaOaepParams extends Algorithm {
label?: BufferSource;
}
interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
interface RsaPssParams extends Algorithm {
saltLength: number;
}
interface SVGBoundingBoxOptions {
clipped?: boolean;
fill?: boolean;
markers?: boolean;
stroke?: boolean;
}
interface ScrollIntoViewOptions extends ScrollOptions {
block?: ScrollLogicalPosition;
inline?: ScrollLogicalPosition;
}
interface ScrollOptions {
behavior?: ScrollBehavior;
}
interface ScrollToOptions extends ScrollOptions {
left?: number;
top?: number;
}
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
disposition: SecurityPolicyViolationEventDisposition;
documentURI: string;
effectiveDirective: string;
lineNumber?: number;
originalPolicy: string;
referrer?: string;
sample?: string;
sourceFile?: string;
statusCode: number;
violatedDirective: string;
}
interface ShadowRootInit {
delegatesFocus?: boolean;
mode: ShadowRootMode;
slotAssignment?: SlotAssignmentMode;
}
interface ShareData {
files?: File[];
text?: string;
title?: string;
url?: string;
}
interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
error: SpeechSynthesisErrorCode;
}
interface SpeechSynthesisEventInit extends EventInit {
charIndex?: number;
charLength?: number;
elapsedTime?: number;
name?: string;
utterance: SpeechSynthesisUtterance;
}
interface StaticRangeInit {
endContainer: Node;
endOffset: number;
startContainer: Node;
startOffset: number;
}
interface StereoPannerOptions extends AudioNodeOptions {
pan?: number;
}
interface StorageEstimate {
quota?: number;
usage?: number;
}
interface StorageEventInit extends EventInit {
key?: string | null;
newValue?: string | null;
oldValue?: string | null;
storageArea?: Storage | null;
url?: string;
}
interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*
* Errors and closures of the source and destination streams propagate as follows:
*
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
*
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
*
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
*
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
*
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/
preventClose?: boolean;
signal?: AbortSignal;
}
interface StructuredSerializeOptions {
transfer?: Transferable[];
}
interface SubmitEventInit extends EventInit {
submitter?: HTMLElement | null;
}
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read: number;
written: number;
}
interface ToggleEventInit extends EventInit {
newState?: string;
oldState?: string;
}
interface TouchEventInit extends EventModifierInit {
changedTouches?: Touch[];
targetTouches?: Touch[];
touches?: Touch[];
}
interface TouchInit {
altitudeAngle?: number;
azimuthAngle?: number;
clientX?: number;
clientY?: number;
force?: number;
identifier: number;
pageX?: number;
pageY?: number;
radiusX?: number;
radiusY?: number;
rotationAngle?: number;
screenX?: number;
screenY?: number;
target: EventTarget;
touchType?: TouchType;
}
interface TrackEventInit extends EventInit {
track?: TextTrack | null;
}
interface Transformer<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 VideoDecoderConfig {
codec: string;
codedHeight?: number;
codedWidth?: number;
colorSpace?: VideoColorSpaceInit;
description?: AllowSharedBufferSource;
displayAspectHeight?: number;
displayAspectWidth?: number;
hardwareAcceleration?: HardwareAcceleration;
optimizeForLatency?: boolean;
}
interface VideoDecoderInit {
error: WebCodecsErrorCallback;
output: VideoFrameOutputCallback;
}
interface VideoDecoderSupport {
config?: VideoDecoderConfig;
supported?: boolean;
}
interface VideoEncoderConfig {
alpha?: AlphaOption;
avc?: AvcEncoderConfig;
bitrate?: number;
bitrateMode?: VideoEncoderBitrateMode;
codec: string;
displayHeight?: number;
displayWidth?: number;
framerate?: number;
hardwareAcceleration?: HardwareAcceleration;
height: number;
latencyMode?: LatencyMode;
scalabilityMode?: string;
width: number;
}
interface VideoEncoderEncodeOptions {
keyFrame?: boolean;
}
interface VideoEncoderInit {
error: WebCodecsErrorCallback;
output: EncodedVideoChunkOutputCallback;
}
interface VideoEncoderSupport {
config?: VideoEncoderConfig;
supported?: boolean;
}
interface VideoFrameBufferInit {
codedHeight: number;
codedWidth: number;
colorSpace?: VideoColorSpaceInit;
displayHeight?: number;
displayWidth?: number;
duration?: number;
format: VideoPixelFormat;
layout?: PlaneLayout[];
timestamp: number;
visibleRect?: DOMRectInit;
}
interface VideoFrameCallbackMetadata {
captureTime?: DOMHighResTimeStamp;
expectedDisplayTime: DOMHighResTimeStamp;
height: number;
mediaTime: number;
presentationTime: DOMHighResTimeStamp;
presentedFrames: number;
processingDuration?: number;
receiveTime?: DOMHighResTimeStamp;
rtpTimestamp?: number;
width: number;
}
interface VideoFrameCopyToOptions {
layout?: PlaneLayout[];
rect?: DOMRectInit;
}
interface VideoFrameInit {
alpha?: AlphaOption;
displayHeight?: number;
displayWidth?: number;
duration?: number;
timestamp?: number;
visibleRect?: DOMRectInit;
}
interface WaveShaperOptions extends AudioNodeOptions {
curve?: number[] | Float32Array;
oversample?: OverSampleType;
}
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
}
interface WebGLContextEventInit extends EventInit {
statusMessage?: string;
}
interface WebTransportCloseInfo {
closeCode?: number;
reason?: string;
}
interface WebTransportErrorOptions {
source?: WebTransportErrorSource;
streamErrorCode?: number | null;
}
interface WebTransportHash {
algorithm?: string;
value?: BufferSource;
}
interface WebTransportOptions {
allowPooling?: boolean;
congestionControl?: WebTransportCongestionControl;
requireUnreliable?: boolean;
serverCertificateHashes?: WebTransportHash[];
}
interface WebTransportSendStreamOptions {
sendOrder?: number;
}
interface WheelEventInit extends MouseEventInit {
deltaMode?: number;
deltaX?: number;
deltaY?: number;
deltaZ?: number;
}
interface WindowPostMessageOptions extends StructuredSerializeOptions {
targetOrigin?: string;
}
interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
interface WorkletOptions {
credentials?: RequestCredentials;
}
interface WriteParams {
data?: BufferSource | Blob | string | null;
position?: number | null;
size?: number | null;
type: WriteCommandType;
}
type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
declare var NodeFilter: {
readonly FILTER_ACCEPT: 1;
readonly FILTER_REJECT: 2;
readonly FILTER_SKIP: 3;
readonly SHOW_ALL: 0xFFFFFFFF;
readonly SHOW_ELEMENT: 0x1;
readonly SHOW_ATTRIBUTE: 0x2;
readonly SHOW_TEXT: 0x4;
readonly SHOW_CDATA_SECTION: 0x8;
readonly SHOW_ENTITY_REFERENCE: 0x10;
readonly SHOW_ENTITY: 0x20;
readonly SHOW_PROCESSING_INSTRUCTION: 0x40;
readonly SHOW_COMMENT: 0x80;
readonly SHOW_DOCUMENT: 0x100;
readonly SHOW_DOCUMENT_TYPE: 0x200;
readonly SHOW_DOCUMENT_FRAGMENT: 0x400;
readonly SHOW_NOTATION: 0x800;
};
type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
/**
* The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)
*/
interface ANGLE_instanced_arrays {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}
interface ARIAMixin {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */
ariaAtomic: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
ariaAutoComplete: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
ariaBusy: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */
ariaChecked: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */
ariaColCount: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */
ariaColIndex: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */
ariaColSpan: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */
ariaCurrent: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */
ariaDescription: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */
ariaDisabled: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */
ariaExpanded: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */
ariaHasPopup: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */
ariaHidden: string | null;
ariaInvalid: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */
ariaKeyShortcuts: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */
ariaLabel: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */
ariaLevel: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */
ariaLive: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */
ariaModal: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */
ariaMultiLine: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */
ariaMultiSelectable: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */
ariaOrientation: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */
ariaPlaceholder: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */
ariaPosInSet: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */
ariaPressed: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */
ariaReadOnly: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */
ariaRequired: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */
ariaRoleDescription: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */
ariaRowCount: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */
ariaRowIndex: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */
ariaRowSpan: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */
ariaSelected: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */
ariaSetSize: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */
ariaSort: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */
ariaValueMax: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */
ariaValueMin: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */
ariaValueNow: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */
ariaValueText: string | null;
role: string | null;
}
/**
* A controller object that allows you to abort one or more DOM requests as and when desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
*/
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
*/
readonly signal: AbortSignal;
/**
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
*/
abort(reason?: any): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/**
* A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
*/
interface AbortSignal extends EventTarget {
/**
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
*/
readonly aborted: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
onabort: ((this: AbortSignal, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */
readonly reason: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */
throwIfAborted(): void;
addEventListener<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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
abort(reason?: any): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
timeout(milliseconds: number): AbortSignal;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */
interface AbstractRange {
/**
* Returns true if range is collapsed, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed)
*/
readonly collapsed: boolean;
/**
* Returns range's end node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer)
*/
readonly endContainer: Node;
/**
* Returns range's end offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset)
*/
readonly endOffset: number;
/**
* Returns range's start node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer)
*/
readonly startContainer: Node;
/**
* Returns range's start offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset)
*/
readonly startOffset: number;
}
declare var AbstractRange: {
prototype: AbstractRange;
new(): AbstractRange;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode)
*/
interface AnalyserNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */
fftSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */
readonly frequencyBinCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */
maxDecibels: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */
minDecibels: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */
smoothingTimeConstant: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */
getByteFrequencyData(array: Uint8Array): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */
getByteTimeDomainData(array: Uint8Array): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */
getFloatFrequencyData(array: Float32Array): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */
getFloatTimeDomainData(array: Float32Array): void;
}
declare var AnalyserNode: {
prototype: AnalyserNode;
new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
};
interface Animatable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */
getAnimations(options?: GetAnimationsOptions): Animation[];
}
interface AnimationEventMap {
"cancel": AnimationPlaybackEvent;
"finish": AnimationPlaybackEvent;
"remove": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */
interface Animation extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */
currentTime: CSSNumberish | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */
effect: AnimationEffect | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */
readonly finished: Promise<Animation>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */
id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */
onremove: ((this: Animation, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */
readonly pending: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */
readonly playState: AnimationPlayState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */
playbackRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */
readonly ready: Promise<Animation>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */
readonly replaceState: AnimationReplaceState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */
startTime: CSSNumberish | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */
timeline: AnimationTimeline | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */
cancel(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */
commitStyles(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */
finish(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */
pause(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */
persist(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */
play(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */
reverse(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */
updatePlaybackRate(playbackRate: number): void;
addEventListener<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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */
interface AnimationEffect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */
getComputedTiming(): ComputedEffectTiming;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */
getTiming(): EffectTiming;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */
updateTiming(timing?: OptionalEffectTiming): void;
}
declare var AnimationEffect: {
prototype: AnimationEffect;
new(): AnimationEffect;
};
/**
* Events providing information related to animations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent)
*/
interface AnimationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */
readonly animationName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */
readonly elapsedTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */
readonly pseudoElement: string;
}
declare var AnimationEvent: {
prototype: AnimationEvent;
new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
};
interface AnimationFrameProvider {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
requestAnimationFrame(callback: FrameRequestCallback): number;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */
interface AnimationPlaybackEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */
readonly currentTime: CSSNumberish | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */
readonly timelineTime: CSSNumberish | null;
}
declare var AnimationPlaybackEvent: {
prototype: AnimationPlaybackEvent;
new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */
interface AnimationTimeline {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */
readonly currentTime: CSSNumberish | null;
}
declare var AnimationTimeline: {
prototype: AnimationTimeline;
new(): AnimationTimeline;
};
/**
* A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr)
*/
interface Attr extends Node {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */
readonly localName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */
readonly namespaceURI: string | null;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */
readonly ownerElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */
readonly prefix: string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified)
*/
readonly specified: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */
value: string;
}
declare var Attr: {
prototype: Attr;
new(): Attr;
};
/**
* A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer)
*/
interface AudioBuffer {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */
readonly duration: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */
readonly numberOfChannels: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */
readonly sampleRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */
copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */
copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */
getChannelData(channel: number): Float32Array;
}
declare var AudioBuffer: {
prototype: AudioBuffer;
new(options: AudioBufferOptions): AudioBuffer;
};
/**
* An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode)
*/
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */
buffer: AudioBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */
readonly detune: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */
loop: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */
loopEnd: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */
loopStart: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */
readonly playbackRate: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */
start(when?: number, offset?: number, duration?: number): void;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext)
*/
interface AudioContext extends BaseAudioContext {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */
readonly baseLatency: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */
readonly outputLatency: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */
getOutputTimestamp(): AudioTimestamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */
resume(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode)
*/
interface AudioDestinationNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */
readonly maxChannelCount: number;
}
declare var AudioDestinationNode: {
prototype: AudioDestinationNode;
new(): AudioDestinationNode;
};
/**
* The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener)
*/
interface AudioListener {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */
readonly forwardX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */
readonly forwardY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */
readonly forwardZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */
readonly positionX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */
readonly positionY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */
readonly positionZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */
readonly upX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */
readonly upY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */
readonly upZ: AudioParam;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation)
*/
setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition)
*/
setPosition(x: number, y: number, z: number): void;
}
declare var AudioListener: {
prototype: AudioListener;
new(): AudioListener;
};
/**
* A generic interface for representing an audio processing module. Examples include:
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode)
*/
interface AudioNode extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */
channelCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */
channelCountMode: ChannelCountMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */
channelInterpretation: ChannelInterpretation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */
readonly context: BaseAudioContext;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */
readonly numberOfInputs: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */
readonly numberOfOutputs: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */
connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
connect(destinationParam: AudioParam, output?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */
disconnect(): void;
disconnect(output: number): void;
disconnect(destinationNode: AudioNode): void;
disconnect(destinationNode: AudioNode, output: number): void;
disconnect(destinationNode: AudioNode, output: number, input: number): void;
disconnect(destinationParam: AudioParam): void;
disconnect(destinationParam: AudioParam, output: number): void;
}
declare var AudioNode: {
prototype: AudioNode;
new(): AudioNode;
};
/**
* The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam)
*/
interface AudioParam {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */
automationRate: AutomationRate;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */
readonly defaultValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */
readonly maxValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */
readonly minValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */
value: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */
cancelAndHoldAtTime(cancelTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */
cancelScheduledValues(cancelTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */
setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */
setValueAtTime(value: number, startTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
}
declare var AudioParam: {
prototype: AudioParam;
new(): AudioParam;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */
interface AudioParamMap {
forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
}
declare var AudioParamMap: {
prototype: AudioParamMap;
new(): AudioParamMap;
};
/**
* The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent)
*/
interface AudioProcessingEvent extends Event {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer)
*/
readonly inputBuffer: AudioBuffer;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer)
*/
readonly outputBuffer: AudioBuffer;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime)
*/
readonly playbackTime: number;
}
/** @deprecated */
declare var AudioProcessingEvent: {
prototype: AudioProcessingEvent;
new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
};
interface AudioScheduledSourceNodeEventMap {
"ended": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */
interface AudioScheduledSourceNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */
onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */
start(when?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */
stop(when?: number): void;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet)
*/
interface AudioWorklet extends Worklet {
}
declare var AudioWorklet: {
prototype: AudioWorklet;
new(): AudioWorklet;
};
interface AudioWorkletNodeEventMap {
"processorerror": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode)
*/
interface AudioWorkletNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */
onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */
readonly parameters: AudioParamMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */
readonly port: MessagePort;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse)
*/
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */
readonly authenticatorData: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */
readonly signature: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */
readonly userHandle: ArrayBuffer | null;
}
declare var AuthenticatorAssertionResponse: {
prototype: AuthenticatorAssertionResponse;
new(): AuthenticatorAssertionResponse;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse)
*/
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */
readonly attestationObject: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */
getAuthenticatorData(): ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */
getPublicKey(): ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */
getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */
getTransports(): string[];
}
declare var AuthenticatorAttestationResponse: {
prototype: AuthenticatorAttestationResponse;
new(): AuthenticatorAttestationResponse;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse)
*/
interface AuthenticatorResponse {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */
readonly clientDataJSON: ArrayBuffer;
}
declare var AuthenticatorResponse: {
prototype: AuthenticatorResponse;
new(): AuthenticatorResponse;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */
interface BarProp {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */
readonly visible: boolean;
}
declare var BarProp: {
prototype: BarProp;
new(): BarProp;
};
interface BaseAudioContextEventMap {
"statechange": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */
interface BaseAudioContext extends EventTarget {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet)
*/
readonly audioWorklet: AudioWorklet;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */
readonly currentTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */
readonly destination: AudioDestinationNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */
readonly listener: AudioListener;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */
readonly sampleRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */
readonly state: AudioContextState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */
createAnalyser(): AnalyserNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */
createBiquadFilter(): BiquadFilterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */
createBufferSource(): AudioBufferSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */
createConstantSource(): ConstantSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */
createConvolver(): ConvolverNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */
createDelay(maxDelayTime?: number): DelayNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */
createDynamicsCompressor(): DynamicsCompressorNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */
createGain(): GainNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */
createOscillator(): OscillatorNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */
createPanner(): PannerNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */
createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor)
*/
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */
createStereoPanner(): StereoPannerNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */
createWaveShaper(): WaveShaperNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */
decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent)
*/
interface BeforeUnloadEvent extends Event {
/** @deprecated */
returnValue: any;
}
declare var BeforeUnloadEvent: {
prototype: BeforeUnloadEvent;
new(): BeforeUnloadEvent;
};
/**
* A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode)
*/
interface BiquadFilterNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */
readonly Q: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */
readonly detune: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */
readonly frequency: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */
readonly gain: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */
type: BiquadFilterType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var BiquadFilterNode: {
prototype: BiquadFilterNode;
new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
};
/**
* A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
*/
interface Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
slice(start?: number, end?: number, contentType?: string): Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
stream(): ReadableStream<Uint8Array>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */
interface BlobEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */
readonly data: Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */
readonly timecode: DOMHighResTimeStamp;
}
declare var BlobEvent: {
prototype: BlobEvent;
new(type: string, eventInitDict: BlobEventInit): BlobEvent;
};
interface Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
readonly body: ReadableStream<Uint8Array> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
readonly bodyUsed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
blob(): Promise<Blob>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
formData(): Promise<FormData>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
json(): Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */
interface BroadcastChannel extends EventTarget {
/**
* Returns the channel name (as passed to the constructor).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/**
* Closes the BroadcastChannel object, opening it up to garbage collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
*/
close(): void;
/**
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)
*/
postMessage(message: any): void;
addEventListener<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 a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
*/
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
readonly size: QueuingStrategySize<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’t need escaping as they normally do when inside a CDATA section.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection)
*/
interface CDATASection extends Text {
}
declare var CDATASection: {
prototype: CDATASection;
new(): CDATASection;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */
interface CSSAnimation extends Animation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */
readonly animationName: string;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule)
*/
interface CSSConditionRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */
readonly conditionText: string;
}
declare var CSSConditionRule: {
prototype: CSSConditionRule;
new(): CSSConditionRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */
interface CSSContainerRule extends CSSConditionRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */
readonly containerName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */
readonly containerQuery: string;
}
declare var CSSContainerRule: {
prototype: CSSContainerRule;
new(): CSSContainerRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */
interface CSSCounterStyleRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */
additiveSymbols: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */
fallback: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */
negative: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */
pad: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */
prefix: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */
range: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */
speakAs: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */
suffix: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */
symbols: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */
system: string;
}
declare var CSSCounterStyleRule: {
prototype: CSSCounterStyleRule;
new(): CSSCounterStyleRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */
interface CSSFontFaceRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */
readonly style: CSSStyleDeclaration;
}
declare var CSSFontFaceRule: {
prototype: CSSFontFaceRule;
new(): CSSFontFaceRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */
interface CSSFontFeatureValuesRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */
fontFamily: string;
}
declare var CSSFontFeatureValuesRule: {
prototype: CSSFontFeatureValuesRule;
new(): CSSFontFeatureValuesRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */
interface CSSFontPaletteValuesRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */
readonly basePalette: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */
readonly fontFamily: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */
readonly overrideColors: string;
}
declare var CSSFontPaletteValuesRule: {
prototype: CSSFontPaletteValuesRule;
new(): CSSFontPaletteValuesRule;
};
/**
* Any CSS at-rule that contains other rules nested within it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule)
*/
interface CSSGroupingRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */
readonly cssRules: CSSRuleList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */
deleteRule(index: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */
insertRule(rule: string, index?: number): number;
}
declare var CSSGroupingRule: {
prototype: CSSGroupingRule;
new(): CSSGroupingRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */
interface CSSImageValue extends CSSStyleValue {
}
declare var CSSImageValue: {
prototype: CSSImageValue;
new(): CSSImageValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */
interface CSSImportRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */
readonly href: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */
readonly layerName: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */
readonly media: MediaList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */
readonly styleSheet: CSSStyleSheet | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */
readonly supportsText: string | null;
}
declare var CSSImportRule: {
prototype: CSSImportRule;
new(): CSSImportRule;
};
/**
* An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule)
*/
interface CSSKeyframeRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */
keyText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */
readonly style: CSSStyleDeclaration;
}
declare var CSSKeyframeRule: {
prototype: CSSKeyframeRule;
new(): CSSKeyframeRule;
};
/**
* An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule)
*/
interface CSSKeyframesRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
readonly cssRules: CSSRuleList;
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */
appendRule(rule: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */
deleteRule(select: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */
findRule(select: string): CSSKeyframeRule | null;
[index: number]: CSSKeyframeRule;
}
declare var CSSKeyframesRule: {
prototype: CSSKeyframesRule;
new(): CSSKeyframesRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */
interface CSSKeywordValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */
value: string;
}
declare var CSSKeywordValue: {
prototype: CSSKeywordValue;
new(value: string): CSSKeywordValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */
interface CSSLayerBlockRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */
readonly name: string;
}
declare var CSSLayerBlockRule: {
prototype: CSSLayerBlockRule;
new(): CSSLayerBlockRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */
interface CSSLayerStatementRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */
readonly nameList: ReadonlyArray<string>;
}
declare var CSSLayerStatementRule: {
prototype: CSSLayerStatementRule;
new(): CSSLayerStatementRule;
};
interface CSSMathClamp extends CSSMathValue {
readonly lower: CSSNumericValue;
readonly upper: CSSNumericValue;
readonly value: CSSNumericValue;
}
declare var CSSMathClamp: {
prototype: CSSMathClamp;
new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */
interface CSSMathInvert extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathInvert: {
prototype: CSSMathInvert;
new(arg: CSSNumberish): CSSMathInvert;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */
interface CSSMathMax extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMax: {
prototype: CSSMathMax;
new(...args: CSSNumberish[]): CSSMathMax;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */
interface CSSMathMin extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMin: {
prototype: CSSMathMin;
new(...args: CSSNumberish[]): CSSMathMin;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */
interface CSSMathNegate extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathNegate: {
prototype: CSSMathNegate;
new(arg: CSSNumberish): CSSMathNegate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */
interface CSSMathProduct extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathProduct: {
prototype: CSSMathProduct;
new(...args: CSSNumberish[]): CSSMathProduct;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */
interface CSSMathSum extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathSum: {
prototype: CSSMathSum;
new(...args: CSSNumberish[]): CSSMathSum;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */
interface CSSMathValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */
readonly operator: CSSMathOperator;
}
declare var CSSMathValue: {
prototype: CSSMathValue;
new(): CSSMathValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */
interface CSSMatrixComponent extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */
matrix: DOMMatrix;
}
declare var CSSMatrixComponent: {
prototype: CSSMatrixComponent;
new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
};
/**
* A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule)
*/
interface CSSMediaRule extends CSSConditionRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */
readonly media: MediaList;
}
declare var CSSMediaRule: {
prototype: CSSMediaRule;
new(): CSSMediaRule;
};
/**
* An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule)
*/
interface CSSNamespaceRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */
readonly namespaceURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */
readonly prefix: string;
}
declare var CSSNamespaceRule: {
prototype: CSSNamespaceRule;
new(): CSSNamespaceRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */
interface CSSNumericArray {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */
readonly length: number;
forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;
[index: number]: CSSNumericValue;
}
declare var CSSNumericArray: {
prototype: CSSNumericArray;
new(): CSSNumericArray;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */
interface CSSNumericValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */
add(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */
div(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */
equals(...value: CSSNumberish[]): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */
max(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */
min(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */
mul(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */
sub(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */
to(unit: string): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */
toSum(...units: string[]): CSSMathSum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */
type(): CSSNumericType;
}
declare var CSSNumericValue: {
prototype: CSSNumericValue;
new(): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */
parse(cssText: string): CSSNumericValue;
};
/**
* CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule)
*/
interface CSSPageRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */
selectorText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */
readonly style: CSSStyleDeclaration;
}
declare var CSSPageRule: {
prototype: CSSPageRule;
new(): CSSPageRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */
interface CSSPerspective extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */
length: CSSPerspectiveValue;
}
declare var CSSPerspective: {
prototype: CSSPerspective;
new(length: CSSPerspectiveValue): CSSPerspective;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */
interface CSSPropertyRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */
readonly inherits: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */
readonly initialValue: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */
readonly syntax: string;
}
declare var CSSPropertyRule: {
prototype: CSSPropertyRule;
new(): CSSPropertyRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */
interface CSSRotate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */
angle: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */
z: CSSNumberish;
}
declare var CSSRotate: {
prototype: CSSRotate;
new(angle: CSSNumericValue): CSSRotate;
new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;
};
/**
* A single CSS rule. There are several types of rules, listed in the Type constants section below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule)
*/
interface CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */
cssText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */
readonly parentRule: CSSRule | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */
readonly parentStyleSheet: CSSStyleSheet | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type)
*/
readonly type: number;
readonly STYLE_RULE: 1;
readonly CHARSET_RULE: 2;
readonly IMPORT_RULE: 3;
readonly MEDIA_RULE: 4;
readonly FONT_FACE_RULE: 5;
readonly PAGE_RULE: 6;
readonly NAMESPACE_RULE: 10;
readonly KEYFRAMES_RULE: 7;
readonly KEYFRAME_RULE: 8;
readonly SUPPORTS_RULE: 12;
readonly COUNTER_STYLE_RULE: 11;
readonly FONT_FEATURE_VALUES_RULE: 14;
}
declare var CSSRule: {
prototype: CSSRule;
new(): CSSRule;
readonly STYLE_RULE: 1;
readonly CHARSET_RULE: 2;
readonly IMPORT_RULE: 3;
readonly MEDIA_RULE: 4;
readonly FONT_FACE_RULE: 5;
readonly PAGE_RULE: 6;
readonly NAMESPACE_RULE: 10;
readonly KEYFRAMES_RULE: 7;
readonly KEYFRAME_RULE: 8;
readonly SUPPORTS_RULE: 12;
readonly COUNTER_STYLE_RULE: 11;
readonly FONT_FEATURE_VALUES_RULE: 14;
};
/**
* A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList)
*/
interface CSSRuleList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */
item(index: number): CSSRule | null;
[index: number]: CSSRule;
}
declare var CSSRuleList: {
prototype: CSSRuleList;
new(): CSSRuleList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */
interface CSSScale extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */
z: CSSNumberish;
}
declare var CSSScale: {
prototype: CSSScale;
new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */
interface CSSSkew extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */
ax: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */
ay: CSSNumericValue;
}
declare var CSSSkew: {
prototype: CSSSkew;
new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */
interface CSSSkewX extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */
ax: CSSNumericValue;
}
declare var CSSSkewX: {
prototype: CSSSkewX;
new(ax: CSSNumericValue): CSSSkewX;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */
interface CSSSkewY extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */
ay: CSSNumericValue;
}
declare var CSSSkewY: {
prototype: CSSSkewY;
new(ay: CSSNumericValue): CSSSkewY;
};
/**
* An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
*/
interface CSSStyleDeclaration {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
accentColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
alignContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */
alignItems: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */
alignSelf: string;
alignmentBaseline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */
all: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */
animation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */
animationComposition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */
animationDelay: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */
animationDirection: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */
animationDuration: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */
animationFillMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */
animationIterationCount: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */
animationName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */
animationPlayState: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */
animationTimingFunction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */
appearance: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */
aspectRatio: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */
backdropFilter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */
backfaceVisibility: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */
background: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */
backgroundAttachment: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */
backgroundBlendMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */
backgroundClip: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */
backgroundColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */
backgroundImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */
backgroundOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */
backgroundPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */
backgroundPositionX: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */
backgroundPositionY: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */
backgroundRepeat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */
backgroundSize: string;
baselineShift: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */
baselineSource: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */
blockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */
border: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */
borderBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */
borderBlockColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */
borderBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */
borderBlockEndColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */
borderBlockEndStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */
borderBlockEndWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */
borderBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */
borderBlockStartColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */
borderBlockStartStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */
borderBlockStartWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */
borderBlockStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */
borderBlockWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */
borderBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */
borderBottomColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */
borderBottomLeftRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */
borderBottomRightRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */
borderBottomStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */
borderBottomWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */
borderCollapse: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */
borderColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */
borderEndEndRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */
borderEndStartRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */
borderImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */
borderImageOutset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */
borderImageRepeat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */
borderImageSlice: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */
borderImageSource: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */
borderImageWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */
borderInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */
borderInlineColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */
borderInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */
borderInlineEndColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */
borderInlineEndStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */
borderInlineEndWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */
borderInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */
borderInlineStartColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */
borderInlineStartStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */
borderInlineStartWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */
borderInlineStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */
borderInlineWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */
borderLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */
borderLeftColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */
borderLeftStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */
borderLeftWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */
borderRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */
borderRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */
borderRightColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */
borderRightStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */
borderRightWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */
borderSpacing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */
borderStartEndRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */
borderStartStartRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */
borderStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */
borderTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */
borderTopColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */
borderTopLeftRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */
borderTopRightRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */
borderTopStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */
borderTopWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */
borderWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */
bottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */
boxShadow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */
boxSizing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */
breakAfter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */
breakBefore: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */
breakInside: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */
captionSide: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */
caretColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */
clear: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip)
*/
clip: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */
clipPath: string;
clipRule: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
color: string;
colorInterpolation: string;
colorInterpolationFilters: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */
colorScheme: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */
columnCount: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */
columnFill: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */
columnGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */
columnRule: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */
columnRuleColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */
columnRuleStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */
columnRuleWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */
columnSpan: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */
columnWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */
columns: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */
contain: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */
containIntrinsicBlockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */
containIntrinsicHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */
containIntrinsicInlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */
containIntrinsicSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */
containIntrinsicWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */
container: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */
containerName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */
containerType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */
content: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */
counterIncrement: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */
counterReset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */
counterSet: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */
cssFloat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */
cssText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */
cursor: string;
cx: string;
cy: string;
d: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */
direction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */
display: string;
dominantBaseline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */
emptyCells: string;
fill: string;
fillOpacity: string;
fillRule: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */
filter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */
flex: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */
flexBasis: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */
flexDirection: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */
flexFlow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */
flexGrow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */
flexShrink: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */
flexWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */
float: string;
floodColor: string;
floodOpacity: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */
font: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */
fontFamily: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */
fontFeatureSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */
fontKerning: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */
fontOpticalSizing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */
fontPalette: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */
fontSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */
fontSizeAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */
fontStretch: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */
fontStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */
fontSynthesis: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */
fontSynthesisSmallCaps: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */
fontSynthesisStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */
fontSynthesisWeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */
fontVariant: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */
fontVariantAlternates: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */
fontVariantCaps: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */
fontVariantEastAsian: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */
fontVariantLigatures: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */
fontVariantNumeric: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */
fontVariantPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */
fontVariationSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */
fontWeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */
forcedColorAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */
gap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */
grid: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */
gridArea: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */
gridAutoColumns: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */
gridAutoFlow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */
gridAutoRows: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */
gridColumn: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */
gridColumnEnd: string;
/** @deprecated This is a legacy alias of \`columnGap\`. */
gridColumnGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */
gridColumnStart: string;
/** @deprecated This is a legacy alias of \`gap\`. */
gridGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */
gridRow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */
gridRowEnd: string;
/** @deprecated This is a legacy alias of \`rowGap\`. */
gridRowGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */
gridRowStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */
gridTemplate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */
gridTemplateAreas: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */
gridTemplateColumns: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */
gridTemplateRows: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */
height: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */
hyphenateCharacter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */
hyphens: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation)
*/
imageOrientation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */
imageRendering: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */
inlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */
inset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */
insetBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */
insetBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */
insetBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */
insetInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */
insetInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */
insetInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */
isolation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */
justifyContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */
justifyItems: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */
justifySelf: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */
left: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */
letterSpacing: string;
lightingColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */
lineBreak: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */
lineHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */
listStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */
listStyleImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */
listStylePosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */
listStyleType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */
margin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */
marginBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */
marginBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */
marginBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */
marginBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */
marginInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */
marginInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */
marginInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */
marginLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */
marginRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */
marginTop: string;
marker: string;
markerEnd: string;
markerMid: string;
markerStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */
mask: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */
maskClip: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */
maskComposite: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */
maskImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */
maskMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */
maskOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */
maskPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */
maskRepeat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */
maskSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */
maskType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */
mathDepth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */
mathStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */
maxBlockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */
maxHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */
maxInlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */
maxWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */
minBlockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */
minHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */
minInlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */
minWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */
mixBlendMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */
objectFit: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */
objectPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */
offset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */
offsetAnchor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */
offsetDistance: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */
offsetPath: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */
offsetPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */
offsetRotate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */
opacity: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */
order: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */
orphans: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */
outline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */
outlineColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */
outlineOffset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */
outlineStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */
outlineWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */
overflow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */
overflowAnchor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */
overflowClipMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */
overflowWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */
overflowX: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */
overflowY: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */
overscrollBehavior: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */
overscrollBehaviorBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */
overscrollBehaviorInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */
overscrollBehaviorX: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */
overscrollBehaviorY: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */
padding: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */
paddingBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */
paddingBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */
paddingBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */
paddingBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */
paddingInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */
paddingInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */
paddingInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */
paddingLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */
paddingRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */
paddingTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */
page: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */
pageBreakAfter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */
pageBreakBefore: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */
pageBreakInside: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */
paintOrder: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */
readonly parentRule: CSSRule | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */
perspective: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */
perspectiveOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */
placeContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */
placeItems: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */
placeSelf: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */
pointerEvents: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */
position: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */
printColorAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */
quotes: string;
r: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */
resize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */
right: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */
rotate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */
rowGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */
rubyPosition: string;
rx: string;
ry: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */
scale: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */
scrollBehavior: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */
scrollMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */
scrollMarginBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */
scrollMarginBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */
scrollMarginBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */
scrollMarginBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */
scrollMarginInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */
scrollMarginInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */
scrollMarginInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */
scrollMarginLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */
scrollMarginRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */
scrollMarginTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */
scrollPadding: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */
scrollPaddingBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */
scrollPaddingBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */
scrollPaddingBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */
scrollPaddingBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */
scrollPaddingInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */
scrollPaddingInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */
scrollPaddingInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */
scrollPaddingLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */
scrollPaddingRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */
scrollPaddingTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */
scrollSnapAlign: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */
scrollSnapStop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */
scrollSnapType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */
scrollbarColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */
scrollbarGutter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */
scrollbarWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */
shapeImageThreshold: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */
shapeMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */
shapeOutside: string;
shapeRendering: string;
stopColor: string;
stopOpacity: string;
stroke: string;
strokeDasharray: string;
strokeDashoffset: string;
strokeLinecap: string;
strokeLinejoin: string;
strokeMiterlimit: string;
strokeOpacity: string;
strokeWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */
tabSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */
tableLayout: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */
textAlign: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */
textAlignLast: string;
textAnchor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */
textCombineUpright: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */
textDecoration: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */
textDecorationColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */
textDecorationLine: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */
textDecorationSkipInk: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */
textDecorationStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */
textDecorationThickness: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */
textEmphasis: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */
textEmphasisColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */
textEmphasisPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */
textEmphasisStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */
textIndent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */
textOrientation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */
textOverflow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */
textRendering: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */
textShadow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */
textTransform: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */
textUnderlineOffset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */
textUnderlinePosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
textWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
top: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
touchAction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */
transform: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */
transformBox: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */
transformOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */
transformStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */
transition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */
transitionDelay: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */
transitionDuration: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */
transitionProperty: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */
transitionTimingFunction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */
translate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */
unicodeBidi: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */
userSelect: string;
vectorEffect: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
verticalAlign: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
visibility: string;
/**
* @deprecated This is a legacy alias of \`alignContent\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content)
*/
webkitAlignContent: string;
/**
* @deprecated This is a legacy alias of \`alignItems\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items)
*/
webkitAlignItems: string;
/**
* @deprecated This is a legacy alias of \`alignSelf\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self)
*/
webkitAlignSelf: string;
/**
* @deprecated This is a legacy alias of \`animation\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation)
*/
webkitAnimation: string;
/**
* @deprecated This is a legacy alias of \`animationDelay\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay)
*/
webkitAnimationDelay: string;
/**
* @deprecated This is a legacy alias of \`animationDirection\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction)
*/
webkitAnimationDirection: string;
/**
* @deprecated This is a legacy alias of \`animationDuration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration)
*/
webkitAnimationDuration: string;
/**
* @deprecated This is a legacy alias of \`animationFillMode\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode)
*/
webkitAnimationFillMode: string;
/**
* @deprecated This is a legacy alias of \`animationIterationCount\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count)
*/
webkitAnimationIterationCount: string;
/**
* @deprecated This is a legacy alias of \`animationName\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name)
*/
webkitAnimationName: string;
/**
* @deprecated This is a legacy alias of \`animationPlayState\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state)
*/
webkitAnimationPlayState: string;
/**
* @deprecated This is a legacy alias of \`animationTimingFunction\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function)
*/
webkitAnimationTimingFunction: string;
/**
* @deprecated This is a legacy alias of \`appearance\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance)
*/
webkitAppearance: string;
/**
* @deprecated This is a legacy alias of \`backfaceVisibility\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility)
*/
webkitBackfaceVisibility: string;
/**
* @deprecated This is a legacy alias of \`backgroundClip\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip)
*/
webkitBackgroundClip: string;
/**
* @deprecated This is a legacy alias of \`backgroundOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin)
*/
webkitBackgroundOrigin: string;
/**
* @deprecated This is a legacy alias of \`backgroundSize\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size)
*/
webkitBackgroundSize: string;
/**
* @deprecated This is a legacy alias of \`borderBottomLeftRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius)
*/
webkitBorderBottomLeftRadius: string;
/**
* @deprecated This is a legacy alias of \`borderBottomRightRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius)
*/
webkitBorderBottomRightRadius: string;
/**
* @deprecated This is a legacy alias of \`borderRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius)
*/
webkitBorderRadius: string;
/**
* @deprecated This is a legacy alias of \`borderTopLeftRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius)
*/
webkitBorderTopLeftRadius: string;
/**
* @deprecated This is a legacy alias of \`borderTopRightRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius)
*/
webkitBorderTopRightRadius: string;
/**
* @deprecated This is a legacy alias of \`boxAlign\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align)
*/
webkitBoxAlign: string;
/**
* @deprecated This is a legacy alias of \`boxFlex\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex)
*/
webkitBoxFlex: string;
/**
* @deprecated This is a legacy alias of \`boxOrdinalGroup\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group)
*/
webkitBoxOrdinalGroup: string;
/**
* @deprecated This is a legacy alias of \`boxOrient\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient)
*/
webkitBoxOrient: string;
/**
* @deprecated This is a legacy alias of \`boxPack\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack)
*/
webkitBoxPack: string;
/**
* @deprecated This is a legacy alias of \`boxShadow\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow)
*/
webkitBoxShadow: string;
/**
* @deprecated This is a legacy alias of \`boxSizing\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing)
*/
webkitBoxSizing: string;
/**
* @deprecated This is a legacy alias of \`filter\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter)
*/
webkitFilter: string;
/**
* @deprecated This is a legacy alias of \`flex\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex)
*/
webkitFlex: string;
/**
* @deprecated This is a legacy alias of \`flexBasis\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis)
*/
webkitFlexBasis: string;
/**
* @deprecated This is a legacy alias of \`flexDirection\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction)
*/
webkitFlexDirection: string;
/**
* @deprecated This is a legacy alias of \`flexFlow\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow)
*/
webkitFlexFlow: string;
/**
* @deprecated This is a legacy alias of \`flexGrow\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow)
*/
webkitFlexGrow: string;
/**
* @deprecated This is a legacy alias of \`flexShrink\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink)
*/
webkitFlexShrink: string;
/**
* @deprecated This is a legacy alias of \`flexWrap\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap)
*/
webkitFlexWrap: string;
/**
* @deprecated This is a legacy alias of \`justifyContent\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)
*/
webkitJustifyContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */
webkitLineClamp: string;
/**
* @deprecated This is a legacy alias of \`mask\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask)
*/
webkitMask: string;
/**
* @deprecated This is a legacy alias of \`maskBorder\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border)
*/
webkitMaskBoxImage: string;
/**
* @deprecated This is a legacy alias of \`maskBorderOutset\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset)
*/
webkitMaskBoxImageOutset: string;
/**
* @deprecated This is a legacy alias of \`maskBorderRepeat\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat)
*/
webkitMaskBoxImageRepeat: string;
/**
* @deprecated This is a legacy alias of \`maskBorderSlice\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice)
*/
webkitMaskBoxImageSlice: string;
/**
* @deprecated This is a legacy alias of \`maskBorderSource\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source)
*/
webkitMaskBoxImageSource: string;
/**
* @deprecated This is a legacy alias of \`maskBorderWidth\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width)
*/
webkitMaskBoxImageWidth: string;
/**
* @deprecated This is a legacy alias of \`maskClip\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip)
*/
webkitMaskClip: string;
/**
* @deprecated This is a legacy alias of \`maskComposite\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite)
*/
webkitMaskComposite: string;
/**
* @deprecated This is a legacy alias of \`maskImage\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image)
*/
webkitMaskImage: string;
/**
* @deprecated This is a legacy alias of \`maskOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin)
*/
webkitMaskOrigin: string;
/**
* @deprecated This is a legacy alias of \`maskPosition\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position)
*/
webkitMaskPosition: string;
/**
* @deprecated This is a legacy alias of \`maskRepeat\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat)
*/
webkitMaskRepeat: string;
/**
* @deprecated This is a legacy alias of \`maskSize\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size)
*/
webkitMaskSize: string;
/**
* @deprecated This is a legacy alias of \`order\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order)
*/
webkitOrder: string;
/**
* @deprecated This is a legacy alias of \`perspective\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective)
*/
webkitPerspective: string;
/**
* @deprecated This is a legacy alias of \`perspectiveOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin)
*/
webkitPerspectiveOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */
webkitTextFillColor: string;
/**
* @deprecated This is a legacy alias of \`textSizeAdjust\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust)
*/
webkitTextSizeAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */
webkitTextStroke: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */
webkitTextStrokeColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */
webkitTextStrokeWidth: string;
/**
* @deprecated This is a legacy alias of \`transform\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform)
*/
webkitTransform: string;
/**
* @deprecated This is a legacy alias of \`transformOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin)
*/
webkitTransformOrigin: string;
/**
* @deprecated This is a legacy alias of \`transformStyle\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style)
*/
webkitTransformStyle: string;
/**
* @deprecated This is a legacy alias of \`transition\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition)
*/
webkitTransition: string;
/**
* @deprecated This is a legacy alias of \`transitionDelay\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay)
*/
webkitTransitionDelay: string;
/**
* @deprecated This is a legacy alias of \`transitionDuration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration)
*/
webkitTransitionDuration: string;
/**
* @deprecated This is a legacy alias of \`transitionProperty\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property)
*/
webkitTransitionProperty: string;
/**
* @deprecated This is a legacy alias of \`transitionTimingFunction\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function)
*/
webkitTransitionTimingFunction: string;
/**
* @deprecated This is a legacy alias of \`userSelect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select)
*/
webkitUserSelect: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */
whiteSpace: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */
widows: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */
width: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */
willChange: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */
wordBreak: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */
wordSpacing: string;
/** @deprecated */
wordWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */
writingMode: string;
x: string;
y: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
zIndex: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */
getPropertyPriority(property: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */
getPropertyValue(property: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */
item(index: number): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */
removeProperty(property: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */
setProperty(property: string, value: string | null, priority?: string): void;
[index: number]: string;
}
declare var CSSStyleDeclaration: {
prototype: CSSStyleDeclaration;
new(): CSSStyleDeclaration;
};
/**
* CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule)
*/
interface CSSStyleRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */
selectorText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */
readonly style: CSSStyleDeclaration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */
readonly styleMap: StylePropertyMap;
}
declare var CSSStyleRule: {
prototype: CSSStyleRule;
new(): CSSStyleRule;
};
/**
* A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet)
*/
interface CSSStyleSheet extends StyleSheet {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */
readonly cssRules: CSSRuleList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */
readonly ownerRule: CSSRule | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules)
*/
readonly rules: CSSRuleList;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule)
*/
addRule(selector?: string, style?: string, index?: number): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */
deleteRule(index: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */
insertRule(rule: string, index?: number): number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule)
*/
removeRule(index?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */
replace(text: string): Promise<CSSStyleSheet>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */
replaceSync(text: string): void;
}
declare var CSSStyleSheet: {
prototype: CSSStyleSheet;
new(options?: CSSStyleSheetInit): CSSStyleSheet;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */
interface CSSStyleValue {
toString(): string;
}
declare var CSSStyleValue: {
prototype: CSSStyleValue;
new(): CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */
parse(property: string, cssText: string): CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */
parseAll(property: string, cssText: string): CSSStyleValue[];
};
/**
* An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule)
*/
interface CSSSupportsRule extends CSSConditionRule {
}
declare var CSSSupportsRule: {
prototype: CSSSupportsRule;
new(): CSSSupportsRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */
interface CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */
is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */
toMatrix(): DOMMatrix;
toString(): string;
}
declare var CSSTransformComponent: {
prototype: CSSTransformComponent;
new(): CSSTransformComponent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */
interface CSSTransformValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */
toMatrix(): DOMMatrix;
forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;
[index: number]: CSSTransformComponent;
}
declare var CSSTransformValue: {
prototype: CSSTransformValue;
new(transforms: CSSTransformComponent[]): CSSTransformValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */
interface CSSTransition extends Animation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */
readonly transitionProperty: string;
addEventListener<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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */
interface CSSTranslate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */
x: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */
y: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */
z: CSSNumericValue;
}
declare var CSSTranslate: {
prototype: CSSTranslate;
new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */
interface CSSUnitValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */
readonly unit: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */
value: number;
}
declare var CSSUnitValue: {
prototype: CSSUnitValue;
new(value: number, unit: string): CSSUnitValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */
interface CSSUnparsedValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */
readonly length: number;
forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;
[index: number]: CSSUnparsedSegment;
}
declare var CSSUnparsedValue: {
prototype: CSSUnparsedValue;
new(members: CSSUnparsedSegment[]): CSSUnparsedValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */
interface CSSVariableReferenceValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */
readonly fallback: CSSUnparsedValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */
variable: string;
}
declare var CSSVariableReferenceValue: {
prototype: CSSVariableReferenceValue;
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
};
/**
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)
*/
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */
add(request: RequestInfo | URL): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: RequestInfo[]): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)
*/
interface CacheStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */
delete(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */
has(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */
keys(): Promise<string[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */
interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */
readonly canvas: HTMLCanvasElement;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */
requestFrame(): void;
addEventListener<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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */
globalAlpha: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */
globalCompositeOperation: GlobalCompositeOperation;
}
interface CanvasDrawImage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
}
interface CanvasDrawPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */
beginPath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */
fillStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */
strokeStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */
filter: string;
}
/**
* An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
*/
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
interface CanvasImageSmoothing {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */
imageSmoothingEnabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */
closePath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */
lineTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */
moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */
rect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */
lineCap: CanvasLineCap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */
lineDashOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */
lineJoin: CanvasLineJoin;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */
lineWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */
miterLimit: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */
getLineDash(): number[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
setLineDash(segments: number[]): void;
}
/**
* An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)
*/
interface CanvasPattern {
/**
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)
*/
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */
clearRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */
fillRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */
strokeRect(x: number, y: number, w: number, h: number): void;
}
/**
* The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D)
*/
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */
readonly canvas: HTMLCanvasElement;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */
getContextAttributes(): CanvasRenderingContext2DSettings;
}
declare var CanvasRenderingContext2D: {
prototype: CanvasRenderingContext2D;
new(): CanvasRenderingContext2D;
};
interface CanvasShadowStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */
shadowBlur: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */
shadowColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */
shadowOffsetX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */
shadowOffsetY: number;
}
interface CanvasState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
restore(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
save(): void;
}
interface CanvasText {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */
fillText(text: string, x: number, y: number, maxWidth?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */
measureText(text: string): TextMetrics;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */
direction: CanvasDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */
font: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
fontKerning: CanvasFontKerning;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
fontStretch: CanvasFontStretch;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
fontVariantCaps: CanvasFontVariantCaps;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
letterSpacing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
textAlign: CanvasTextAlign;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */
textBaseline: CanvasTextBaseline;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */
textRendering: CanvasTextRendering;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */
wordSpacing: string;
}
interface CanvasTransform {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */
getTransform(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */
resetTransform(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */
rotate(angle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */
scale(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */
translate(x: number, y: number): void;
}
interface CanvasUserInterface {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */
drawFocusIfNeeded(element: Element): void;
drawFocusIfNeeded(path: Path2D, element: Element): void;
}
/**
* The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode)
*/
interface ChannelMergerNode extends AudioNode {
}
declare var ChannelMergerNode: {
prototype: ChannelMergerNode;
new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
};
/**
* The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode)
*/
interface ChannelSplitterNode extends AudioNode {
}
declare var ChannelSplitterNode: {
prototype: ChannelSplitterNode;
new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
};
/**
* The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData)
*/
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */
data: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */
readonly length: number;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */
appendData(data: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */
deleteData(offset: number, count: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */
insertData(offset: number, data: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */
replaceData(offset: number, count: number, data: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */
substringData(offset: number, count: number): string;
}
declare var CharacterData: {
prototype: CharacterData;
new(): CharacterData;
};
interface ChildNode extends Node {
/**
* Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after)
*/
after(...nodes: (Node | string)[]): void;
/**
* Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before)
*/
before(...nodes: (Node | string)[]): void;
/**
* Removes node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove)
*/
remove(): void;
/**
* Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith)
*/
replaceWith(...nodes: (Node | string)[]): void;
}
/** @deprecated */
interface ClientRect extends DOMRect {
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard)
*/
interface Clipboard extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */
read(): Promise<ClipboardItems>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */
readText(): Promise<string>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */
write(data: ClipboardItems): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent)
*/
interface ClipboardEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */
readonly clipboardData: DataTransfer | null;
}
declare var ClipboardEvent: {
prototype: ClipboardEvent;
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem)
*/
interface ClipboardItem {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */
readonly types: ReadonlyArray<string>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
*/
interface CloseEvent extends Event {
/**
* Returns the WebSocket connection close code provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
*/
readonly code: number;
/**
* Returns the WebSocket connection close reason provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
*/
readonly reason: string;
/**
* Returns true if the connection closed cleanly; false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
*/
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/**
* Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment)
*/
interface Comment extends CharacterData {
}
declare var Comment: {
prototype: Comment;
new(data?: string): Comment;
};
/**
* The DOM CompositionEvent represents events that occur due to the user indirectly entering text.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent)
*/
interface CompositionEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */
readonly data: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent)
*/
initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
}
declare var CompositionEvent: {
prototype: CompositionEvent;
new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
interface CompressionStream extends GenericTransformStream {
}
declare var CompressionStream: {
prototype: CompressionStream;
new(format: CompressionFormat): CompressionStream;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */
interface ConstantSourceNode extends AudioScheduledSourceNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */
readonly offset: AudioParam;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode)
*/
interface ConvolverNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */
buffer: AudioBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */
normalize: boolean;
}
declare var ConvolverNode: {
prototype: ConvolverNode;
new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
};
/**
* This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
*/
interface CountQueuingStrategy extends QueuingStrategy {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential)
*/
interface Credential {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */
readonly type: string;
}
declare var Credential: {
prototype: Credential;
new(): Credential;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer)
*/
interface CredentialsContainer {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */
create(options?: CredentialCreationOptions): Promise<Credential | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */
get(options?: CredentialRequestOptions): Promise<Credential | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */
preventSilentAccess(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */
store(credential: Credential): Promise<void>;
}
declare var CredentialsContainer: {
prototype: CredentialsContainer;
new(): CredentialsContainer;
};
/**
* Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
*/
interface Crypto {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
*/
readonly subtle: SubtleCrypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
*/
randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/**
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
*/
interface CryptoKey {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */
readonly algorithm: KeyAlgorithm;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */
readonly extractable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */
readonly type: KeyType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */
interface CustomElementRegistry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */
get(name: string): CustomElementConstructor | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */
getName(constructor: CustomElementConstructor): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */
upgrade(root: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */
whenDefined(name: string): Promise<CustomElementConstructor>;
}
declare var CustomElementRegistry: {
prototype: CustomElementRegistry;
new(): CustomElementRegistry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */
interface CustomEvent<T = any> extends Event {
/**
* Returns any custom data event was created with. Typically used for synthetic events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
*/
readonly detail: T;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
*/
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
*/
interface DOMException extends Error {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
*/
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
readonly message: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
readonly name: string;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
};
/**
* An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation)
*/
interface DOMImplementation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */
createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */
createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */
createHTMLDocument(title?: string): Document;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature)
*/
hasFeature(...args: any[]): true;
}
declare var DOMImplementation: {
prototype: DOMImplementation;
new(): DOMImplementation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
setMatrixValue(transformList: string): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array): DOMMatrix;
fromFloat64Array(array64: Float64Array): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
type SVGMatrix = DOMMatrix;
declare var SVGMatrix: typeof DOMMatrix;
type WebKitCSSMatrix = DOMMatrix;
declare var WebKitCSSMatrix: typeof DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */
interface DOMMatrixReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */
readonly a: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */
readonly b: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */
readonly c: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */
readonly d: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */
readonly e: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */
readonly f: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */
readonly isIdentity: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */
readonly m11: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */
readonly m12: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */
readonly m13: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */
readonly m14: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */
readonly m21: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */
readonly m22: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */
readonly m23: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */
readonly m24: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */
readonly m31: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */
readonly m32: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */
readonly m33: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */
readonly m34: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */
readonly m41: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */
readonly m42: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */
readonly m43: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */
readonly m44: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */
flipX(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */
flipY(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */
inverse(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */
multiply(other?: DOMMatrixInit): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */
rotateFromVector(x?: number, y?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)
*/
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */
skewX(sx?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */
skewY(sy?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */
toFloat32Array(): Float32Array;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */
toFloat64Array(): Float64Array;
toJSON(): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */
transformPoint(point?: DOMPointInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
toString(): string;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
/**
* Provides the ability to parse XML or HTML source code from a string into a DOM Document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser)
*/
interface DOMParser {
/**
* Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).
*
* For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
*
* Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
*
* Values other than the above for type will cause a TypeError exception to be thrown.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString)
*/
parseFromString(string: string, type: DOMParserSupportedType): Document;
}
declare var DOMParser: {
prototype: DOMParser;
new(): DOMParser;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */
interface DOMPoint extends DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */
w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */
x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */
y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPoint;
};
type SVGPoint = DOMPoint;
declare var SVGPoint: typeof DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */
interface DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */
readonly w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */
readonly z: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
interface DOMQuad {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
readonly p1: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
readonly p2: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
readonly p3: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
readonly p4: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
type SVGRect = DOMRect;
declare var SVGRect: typeof DOMRect;
interface DOMRectList {
readonly length: number;
item(index: number): DOMRect | null;
[index: number]: DOMRect;
}
declare var DOMRectList: {
prototype: DOMRectList;
new(): DOMRectList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */
interface DOMRectReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */
readonly bottom: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */
readonly left: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */
readonly right: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */
readonly top: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */
readonly width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/**
* A type returned by some APIs which contains a list of DOMString (strings).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
*/
interface DOMStringList {
/**
* Returns the number of strings in strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
*/
readonly length: number;
/**
* Returns true if strings contains string, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
*/
contains(string: string): boolean;
/**
* Returns the string with index index from strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)
*/
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
/**
* Used by the dataset HTML attribute to represent data for custom attributes added to elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap)
*/
interface DOMStringMap {
[name: string]: string | undefined;
}
declare var DOMStringMap: {
prototype: DOMStringMap;
new(): DOMStringMap;
};
/**
* A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList)
*/
interface DOMTokenList {
/**
* Returns the number of tokens.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length)
*/
readonly length: number;
/**
* Returns the associated set as string.
*
* Can be set, to change the associated attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value)
*/
value: string;
toString(): string;
/**
* Adds all arguments passed, except those already present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add)
*/
add(...tokens: string[]): void;
/**
* Returns true if token is present, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains)
*/
contains(token: string): boolean;
/**
* Returns the token with index index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item)
*/
item(index: number): string | null;
/**
* Removes arguments passed, if they are present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove)
*/
remove(...tokens: string[]): void;
/**
* Replaces token with newToken.
*
* Returns true if token was replaced with newToken, and false otherwise.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace)
*/
replace(token: string, newToken: string): boolean;
/**
* Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
*
* Throws a TypeError if the associated attribute has no supported tokens defined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports)
*/
supports(token: string): boolean;
/**
* If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
*
* Returns true if token is now present, and false otherwise.
*
* Throws a "SyntaxError" DOMException if token is empty.
*
* Throws an "InvalidCharacterError" DOMException if token contains any spaces.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle)
*/
toggle(token: string, force?: boolean): boolean;
forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
[index: number]: string;
}
declare var DOMTokenList: {
prototype: DOMTokenList;
new(): DOMTokenList;
};
/**
* Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer)
*/
interface DataTransfer {
/**
* Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
*
* Can be set, to change the selected operation.
*
* The possible values are "none", "copy", "link", and "move".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect)
*/
dropEffect: "none" | "copy" | "link" | "move";
/**
* Returns the kinds of operations that are to be allowed.
*
* Can be set (during the dragstart event), to change the allowed operations.
*
* The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed)
*/
effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
/**
* Returns a FileList of the files being dragged, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files)
*/
readonly files: FileList;
/**
* Returns a DataTransferItemList object, with the drag data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items)
*/
readonly items: DataTransferItemList;
/**
* Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types)
*/
readonly types: ReadonlyArray<string>;
/**
* Removes the data of the specified formats. Removes all data if the argument is omitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData)
*/
clearData(format?: string): void;
/**
* Returns the specified data. If there is no such data, returns the empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData)
*/
getData(format: string): string;
/**
* Adds the specified data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData)
*/
setData(format: string, data: string): void;
/**
* Uses the given element to update the drag feedback, replacing any previously specified feedback.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage)
*/
setDragImage(image: Element, x: number, y: number): void;
}
declare var DataTransfer: {
prototype: DataTransfer;
new(): DataTransfer;
};
/**
* One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem)
*/
interface DataTransferItem {
/**
* Returns the drag data item kind, one of: "string", "file".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind)
*/
readonly kind: string;
/**
* Returns the drag data item type string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type)
*/
readonly type: string;
/**
* Returns a File object, if the drag data item kind is File.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile)
*/
getAsFile(): File | null;
/**
* Invokes the callback with the string data as the argument, if the drag data item kind is text.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString)
*/
getAsString(callback: FunctionStringCallback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */
webkitGetAsEntry(): FileSystemEntry | null;
}
declare var DataTransferItem: {
prototype: DataTransferItem;
new(): DataTransferItem;
};
/**
* A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList)
*/
interface DataTransferItemList {
/**
* Returns the number of items in the drag data store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length)
*/
readonly length: number;
/**
* Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add)
*/
add(data: string, type: string): DataTransferItem | null;
add(data: File): DataTransferItem | null;
/**
* Removes all the entries in the drag data store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear)
*/
clear(): void;
/**
* Removes the indexth entry in the drag data store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove)
*/
remove(index: number): void;
[index: number]: DataTransferItem;
}
declare var DataTransferItemList: {
prototype: DataTransferItemList;
new(): DataTransferItemList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
interface DecompressionStream extends GenericTransformStream {
}
declare var DecompressionStream: {
prototype: DecompressionStream;
new(format: CompressionFormat): DecompressionStream;
};
/**
* A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode)
*/
interface DelayNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */
readonly delayTime: AudioParam;
}
declare var DelayNode: {
prototype: DelayNode;
new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
};
/**
* The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent)
*/
interface DeviceMotionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */
readonly acceleration: DeviceMotionEventAcceleration | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */
readonly interval: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */
readonly rotationRate: DeviceMotionEventRotationRate | null;
}
declare var DeviceMotionEvent: {
prototype: DeviceMotionEvent;
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration)
*/
interface DeviceMotionEventAcceleration {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */
readonly x: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */
readonly y: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */
readonly z: number | null;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate)
*/
interface DeviceMotionEventRotationRate {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */
readonly alpha: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */
readonly beta: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */
readonly gamma: number | null;
}
/**
* The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent)
*/
interface DeviceOrientationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */
readonly absolute: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */
readonly alpha: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */
readonly beta: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */
readonly gamma: number | null;
}
declare var DeviceOrientationEvent: {
prototype: DeviceOrientationEvent;
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
};
interface DocumentEventMap extends GlobalEventHandlersEventMap {
"DOMContentLoaded": Event;
"fullscreenchange": Event;
"fullscreenerror": Event;
"pointerlockchange": Event;
"pointerlockerror": Event;
"readystatechange": Event;
"visibilitychange": Event;
}
/**
* Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document)
*/
interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
/**
* Sets or gets the URL for the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)
*/
readonly URL: string;
/**
* Sets or gets the color of all active links in the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor)
*/
alinkColor: string;
/**
* Returns a reference to the collection of elements contained by the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all)
*/
readonly all: HTMLAllCollection;
/**
* Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors)
*/
readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
/**
* Retrieves a collection of all applet objects in the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets)
*/
readonly applets: HTMLCollection;
/**
* Deprecated. Sets or retrieves a value that indicates the background color behind the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor)
*/
bgColor: string;
/**
* Specifies the beginning and end of the document body.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body)
*/
body: HTMLElement;
/**
* Returns document's encoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly characterSet: string;
/**
* Gets or sets the character set used to encode the object.
* @deprecated This is a legacy alias of \`characterSet\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly charset: string;
/**
* Gets a value that indicates whether standards-compliant mode is switched on for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode)
*/
readonly compatMode: string;
/**
* Returns document's content type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType)
*/
readonly contentType: string;
/**
* Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
*
* Can be set, to add a new cookie to the element's set of HTTP cookies.
*
* If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie)
*/
cookie: string;
/**
* Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
*
* Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript)
*/
readonly currentScript: HTMLOrSVGScriptElement | null;
/**
* Returns the Window object of the active document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView)
*/
readonly defaultView: (WindowProxy & typeof globalThis) | null;
/**
* Sets or gets a value that indicates whether the document can be edited.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode)
*/
designMode: string;
/**
* Sets or retrieves a value that indicates the reading order of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir)
*/
dir: string;
/**
* Gets an object representing the document type declaration associated with the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype)
*/
readonly doctype: DocumentType | null;
/**
* Gets a reference to the root node of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement)
*/
readonly documentElement: HTMLElement;
/**
* Returns document's URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI)
*/
readonly documentURI: string;
/**
* Sets or gets the security domain of the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain)
*/
domain: string;
/**
* Retrieves a collection of all embed objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds)
*/
readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Sets or gets the foreground (text) color of the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor)
*/
fgColor: string;
/**
* Retrieves a collection, in source order, of all form objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms)
*/
readonly forms: HTMLCollectionOf<HTMLFormElement>;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen)
*/
readonly fullscreen: boolean;
/**
* Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled)
*/
readonly fullscreenEnabled: boolean;
/**
* Returns the head element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head)
*/
readonly head: HTMLHeadElement;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */
readonly hidden: boolean;
/**
* Retrieves a collection, in source order, of img objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images)
*/
readonly images: HTMLCollectionOf<HTMLImageElement>;
/**
* Gets the implementation object of the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation)
*/
readonly implementation: DOMImplementation;
/**
* Returns the character encoding used to create the webpage that is loaded into the document object.
* @deprecated This is a legacy alias of \`characterSet\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly inputEncoding: string;
/**
* Gets the date that the page was last modified, if the page supplies one.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified)
*/
readonly lastModified: string;
/**
* Sets or gets the color of the document links.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor)
*/
linkColor: string;
/**
* Retrieves a collection of all a objects that specify the href property and all area objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links)
*/
readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
/**
* Contains information about the current URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location)
*/
get location(): Location;
set location(href: string | Location);
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */
onfullscreenerror: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */
onpointerlockchange: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */
onpointerlockerror: ((this: Document, ev: Event) => any) | null;
/**
* Fires when the state of the object has changed.
* @param ev The event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event)
*/
onreadystatechange: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
readonly ownerDocument: null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */
readonly pictureInPictureEnabled: boolean;
/**
* Return an HTMLCollection of the embed elements in the Document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins)
*/
readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Retrieves a value that indicates the current state of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState)
*/
readonly readyState: DocumentReadyState;
/**
* Gets the URL of the location that referred the user to the current page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer)
*/
readonly referrer: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement)
*/
readonly rootElement: SVGSVGElement | null;
/**
* Retrieves a collection of all script objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts)
*/
readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */
readonly scrollingElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */
readonly timeline: DocumentTimeline;
/**
* Contains the title of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title)
*/
title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */
readonly visibilityState: DocumentVisibilityState;
/**
* Sets or gets the color of the links that the user has visited.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor)
*/
vlinkColor: string;
/**
* Moves node from another document and returns it.
*
* If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode)
*/
adoptNode<T extends Node>(node: T): T;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents)
*/
captureEvents(): void;
/** @deprecated */
caretRangeFromPoint(x: number, y: number): Range | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear)
*/
clear(): void;
/**
* Closes an output stream and forces the sent data to display.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close)
*/
close(): void;
/**
* Creates an attribute object with a specified name.
* @param name String that sets the attribute object's name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute)
*/
createAttribute(localName: string): Attr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */
createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
/**
* Returns a CDATASection node whose data is data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection)
*/
createCDATASection(data: string): CDATASection;
/**
* Creates a comment object with the specified data.
* @param data Sets the comment object's data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment)
*/
createComment(data: string): Comment;
/**
* Creates a new document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment)
*/
createDocumentFragment(): DocumentFragment;
/**
* Creates an instance of the element for the specified tag.
* @param tagName The name of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement)
*/
createElement<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS)
*/
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */
createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
createEvent(eventInterface: "BlobEvent"): BlobEvent;
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
createEvent(eventInterface: "Event"): Event;
createEvent(eventInterface: "Events"): Event;
createEvent(eventInterface: "FocusEvent"): FocusEvent;
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
createEvent(eventInterface: "MessageEvent"): MessageEvent;
createEvent(eventInterface: "MouseEvent"): MouseEvent;
createEvent(eventInterface: "MouseEvents"): MouseEvent;
createEvent(eventInterface: "MutationEvent"): MutationEvent;
createEvent(eventInterface: "MutationEvents"): MutationEvent;
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;
createEvent(eventInterface: "PointerEvent"): PointerEvent;
createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
createEvent(eventInterface: "StorageEvent"): StorageEvent;
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
createEvent(eventInterface: "TouchEvent"): TouchEvent;
createEvent(eventInterface: "TrackEvent"): TrackEvent;
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
createEvent(eventInterface: "UIEvent"): UIEvent;
createEvent(eventInterface: "UIEvents"): UIEvent;
createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
createEvent(eventInterface: "WheelEvent"): WheelEvent;
createEvent(eventInterface: string): Event;
/**
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list
* @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator)
*/
createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
/**
* Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction)
*/
createProcessingInstruction(target: string, data: string): ProcessingInstruction;
/**
* Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)
*/
createRange(): Range;
/**
* Creates a text string from the specified value.
* @param data String that specifies the nodeValue property of the text node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode)
*/
createTextNode(data: string): Text;
/**
* Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
* @param filter A custom NodeFilter function to use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker)
*/
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
/**
* Executes a command on the current document, current selection, or the given range.
* @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
* @param showUI Display the user interface, defaults to false.
* @param value Value to assign.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand)
*/
execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
/**
* Stops document's fullscreen element from being displayed fullscreen and resolves promise when done.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen)
*/
exitFullscreen(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */
exitPictureInPicture(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */
exitPointerLock(): void;
/**
* Returns a reference to the first object with the specified value of the ID attribute.
* @param elementId String that specifies the ID value.
*/
getElementById(elementId: string): HTMLElement | null;
/**
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName)
*/
getElementsByClassName(classNames: string): HTMLCollectionOf<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName)
*/
getElementsByName(elementName: string): NodeListOf<HTMLElement>;
/**
* Retrieves a collection of objects based on the specified element name.
* @param name Specifies the name of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName)
*/
getElementsByTagName<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection)
*/
getSelection(): Selection | null;
/**
* Gets a value indicating whether the object currently has focus.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus)
*/
hasFocus(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */
hasStorageAccess(): Promise<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open)
*/
open(unused1?: string, unused2?: string): Document;
open(url: string | URL, name: string, features: string): WindowProxy | null;
/**
* Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
* @param commandId Specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled)
*/
queryCommandEnabled(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
* @param commandId String that specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm)
*/
queryCommandIndeterm(commandId: string): boolean;
/**
* Returns a Boolean value that indicates the current state of the command.
* @param commandId String that specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState)
*/
queryCommandState(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the current command is supported on the current range.
* @param commandId Specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported)
*/
queryCommandSupported(commandId: string): boolean;
/**
* Returns the current value of the document, range, or current selection for the given command.
* @param commandId String that specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue)
*/
queryCommandValue(commandId: string): string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents)
*/
releaseEvents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */
requestStorageAccess(): Promise<void>;
/**
* Writes one or more HTML expressions to a document in the specified window.
* @param content Specifies the text and HTML tags to write.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write)
*/
write(...text: string[]): void;
/**
* Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
* @param content The text and HTML tags to write.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)
*/
writeln(...text: string[]): void;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment)
*/
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
readonly ownerDocument: Document;
getElementById(elementId: string): HTMLElement | null;
}
declare var DocumentFragment: {
prototype: DocumentFragment;
new(): DocumentFragment;
};
interface DocumentOrShadowRoot {
/**
* Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
*
* For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
*
* Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement)
*/
readonly activeElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
adoptedStyleSheets: CSSStyleSheet[];
/**
* Returns document's fullscreen element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement)
*/
readonly fullscreenElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */
readonly pictureInPictureElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */
readonly pointerLockElement: Element | null;
/**
* Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets)
*/
readonly styleSheets: StyleSheetList;
/**
* Returns the element for the specified x coordinate and the specified y coordinate.
* @param x The x-offset
* @param y The y-offset
*/
elementFromPoint(x: number, y: number): Element | null;
elementsFromPoint(x: number, y: number): Element[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */
getAnimations(): Animation[];
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */
interface DocumentTimeline extends AnimationTimeline {
}
declare var DocumentTimeline: {
prototype: DocumentTimeline;
new(options?: DocumentTimelineOptions): DocumentTimeline;
};
/**
* A Node containing a doctype.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType)
*/
interface DocumentType extends Node, ChildNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */
readonly name: string;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */
readonly publicId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */
readonly systemId: string;
}
declare var DocumentType: {
prototype: DocumentType;
new(): DocumentType;
};
/**
* A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent)
*/
interface DragEvent extends MouseEvent {
/**
* Returns the DataTransfer object for the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer)
*/
readonly dataTransfer: DataTransfer | null;
}
declare var DragEvent: {
prototype: DragEvent;
new(type: string, eventInitDict?: DragEventInit): DragEvent;
};
/**
* Inherits properties from its parent, AudioNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode)
*/
interface DynamicsCompressorNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */
readonly attack: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */
readonly knee: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */
readonly ratio: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */
readonly reduction: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */
readonly release: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */
readonly threshold: AudioParam;
}
declare var DynamicsCompressorNode: {
prototype: DynamicsCompressorNode;
new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */
interface EXT_color_buffer_float {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */
interface EXT_color_buffer_half_float {
readonly RGBA16F_EXT: 0x881A;
readonly RGB16F_EXT: 0x881B;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */
interface EXT_float_blend {
}
/**
* The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)
*/
interface EXT_frag_depth {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */
interface EXT_sRGB {
readonly SRGB_EXT: 0x8C40;
readonly SRGB_ALPHA_EXT: 0x8C42;
readonly SRGB8_ALPHA8_EXT: 0x8C43;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */
interface EXT_shader_texture_lod {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */
interface EXT_texture_compression_bptc {
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
}
/**
* The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)
*/
interface EXT_texture_filter_anisotropic {
readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */
interface EXT_texture_norm16 {
readonly R16_EXT: 0x822A;
readonly RG16_EXT: 0x822C;
readonly RGB16_EXT: 0x8054;
readonly RGBA16_EXT: 0x805B;
readonly R16_SNORM_EXT: 0x8F98;
readonly RG16_SNORM_EXT: 0x8F99;
readonly RGB16_SNORM_EXT: 0x8F9A;
readonly RGBA16_SNORM_EXT: 0x8F9B;
}
interface ElementEventMap {
"fullscreenchange": Event;
"fullscreenerror": Event;
}
/**
* Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)
*/
interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */
readonly attributes: NamedNodeMap;
/**
* Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList)
*/
readonly classList: DOMTokenList;
/**
* Returns the value of element's class content attribute. Can be set to change it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className)
*/
className: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */
readonly clientHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */
readonly clientLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */
readonly clientTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */
readonly clientWidth: number;
/**
* Returns the value of element's id content attribute. Can be set to change it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)
*/
id: string;
/**
* Returns the local name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName)
*/
readonly localName: string;
/**
* Returns the namespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI)
*/
readonly namespaceURI: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */
outerHTML: string;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */
readonly part: DOMTokenList;
/**
* Returns the namespace prefix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix)
*/
readonly prefix: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */
readonly scrollHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */
scrollLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */
scrollTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */
readonly scrollWidth: number;
/**
* Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot)
*/
readonly shadowRoot: ShadowRoot | null;
/**
* Returns the value of element's slot content attribute. Can be set to change it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot)
*/
slot: string;
/**
* Returns the HTML-uppercased qualified name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName)
*/
readonly tagName: string;
/**
* Creates a shadow root for element and returns it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow)
*/
attachShadow(init: ShadowRootInit): ShadowRoot;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */
checkVisibility(options?: CheckVisibilityOptions): boolean;
/**
* Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest)
*/
closest<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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */
computedStyleMap(): StylePropertyMapReadOnly;
/**
* Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute)
*/
getAttribute(qualifiedName: string): string | null;
/**
* Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS)
*/
getAttributeNS(namespace: string | null, localName: string): string | null;
/**
* Returns the qualified names of all element's attributes. Can contain duplicates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames)
*/
getAttributeNames(): string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */
getAttributeNode(qualifiedName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */
getBoundingClientRect(): DOMRect;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */
getClientRects(): DOMRectList;
/**
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName)
*/
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute)
*/
hasAttribute(qualifiedName: string): boolean;
/**
* Returns true if element has an attribute whose namespace is namespace and local name is localName.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS)
*/
hasAttributeNS(namespace: string | null, localName: string): boolean;
/**
* Returns true if element has attributes, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes)
*/
hasAttributes(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */
hasPointerCapture(pointerId: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */
insertAdjacentHTML(position: InsertPosition, text: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */
insertAdjacentText(where: InsertPosition, data: string): void;
/**
* Returns true if matching selectors against element's root yields element, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
*/
matches(selectors: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */
releasePointerCapture(pointerId: number): void;
/**
* Removes element's first attribute whose qualified name is qualifiedName.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute)
*/
removeAttribute(qualifiedName: string): void;
/**
* Removes element's attribute whose namespace is namespace and local name is localName.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS)
*/
removeAttributeNS(namespace: string | null, localName: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */
removeAttributeNode(attr: Attr): Attr;
/**
* Displays element fullscreen and resolves promise when done.
*
* When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen)
*/
requestFullscreen(options?: FullscreenOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */
requestPointerLock(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* Sets the value of element's first attribute whose qualified name is qualifiedName to value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute)
*/
setAttribute(qualifiedName: string, value: string): void;
/**
* Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS)
*/
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */
setAttributeNode(attr: Attr): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */
setAttributeNodeNS(attr: Attr): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */
setPointerCapture(pointerId: number): void;
/**
* If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
*
* Returns true if qualifiedName is now present, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute)
*/
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
/**
* @deprecated This is a legacy alias of \`matches\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
*/
webkitMatchesSelector(selectors: string): boolean;
addEventListener<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 attributeStyleMap: StylePropertyMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
readonly style: CSSStyleDeclaration;
}
interface ElementContentEditable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */
contentEditable: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */
enterKeyHint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */
inputMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */
readonly isContentEditable: boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */
interface ElementInternals extends ARIAMixin {
/**
* Returns the form owner of internals's target element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form)
*/
readonly form: HTMLFormElement | null;
/**
* Returns a NodeList of all the label elements that internals's target element is associated with.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels)
*/
readonly labels: NodeList;
/**
* Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)
*/
readonly shadowRoot: ShadowRoot | null;
/**
* Returns the error message that would be shown to the user if internals's target element was to be checked for validity.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns the ValidityState object for internals's target element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity)
*/
readonly validity: ValidityState;
/**
* Returns true if internals's target element will be validated when the form is submitted; false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate)
*/
readonly willValidate: boolean;
/**
* Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity)
*/
checkValidity(): boolean;
/**
* Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity)
*/
reportValidity(): boolean;
/**
* Sets both the state and submission value of internals's target element to value.
*
* If value is null, the element won't participate in form submission.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue)
*/
setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
/**
* Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity)
*/
setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
}
declare var ElementInternals: {
prototype: ElementInternals;
new(): ElementInternals;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */
interface EncodedVideoChunk {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */
readonly byteLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */
readonly type: EncodedVideoChunkType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */
copyTo(destination: AllowSharedBufferSource): void;
}
declare var EncodedVideoChunk: {
prototype: EncodedVideoChunk;
new(init: EncodedVideoChunkInit): EncodedVideoChunk;
};
/**
* Events providing information related to errors in scripts or in files.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
*/
interface ErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
readonly colno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
readonly error: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
readonly filename: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
readonly lineno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/**
* An event which takes place in the DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
*/
interface Event {
/**
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
*/
readonly bubbles: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
*/
cancelBubble: boolean;
/**
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
*/
readonly cancelable: boolean;
/**
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
*/
readonly composed: boolean;
/**
* Returns the object whose event listener's callback is currently being invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
*/
readonly currentTarget: EventTarget | null;
/**
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
*/
readonly defaultPrevented: boolean;
/**
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
*/
readonly eventPhase: number;
/**
* Returns true if event was dispatched by the user agent, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
readonly isTrusted: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
*/
returnValue: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
*/
readonly srcElement: EventTarget | null;
/**
* Returns the object to which event is dispatched (its target).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
*/
readonly target: EventTarget | null;
/**
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
*/
readonly timeStamp: DOMHighResTimeStamp;
/**
* Returns the type of event, e.g. "click", "hashchange", or "submit".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
*/
readonly type: string;
/**
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
*/
composedPath(): EventTarget[];
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
*/
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/**
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
*/
preventDefault(): void;
/**
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
*/
stopImmediatePropagation(): void;
/**
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
*/
stopPropagation(): void;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */
interface EventCounts {
forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
}
declare var EventCounts: {
prototype: EventCounts;
new(): EventCounts;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */
interface EventSource extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
onerror: ((this: EventSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */
onopen: ((this: EventSource, ev: Event) => any) | null;
/**
* Returns the state of this EventSource object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
*/
readonly readyState: number;
/**
* Returns the URL providing the event stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
*/
readonly url: string;
/**
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
*/
readonly withCredentials: boolean;
/**
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
*/
close(): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
*/
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
*
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
dispatchEvent(event: Event): boolean;
/**
* Removes the event listener in target's event listener list with the same type, callback, and options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
*/
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/External)
*/
interface External {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider)
*/
AddSearchProvider(): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled)
*/
IsSearchProviderInstalled(): void;
}
/** @deprecated */
declare var External: {
prototype: External;
new(): External;
};
/**
* Provides information about files and allows JavaScript in a web page to access their content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
*/
interface File extends Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
readonly lastModified: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/**
* An object of this type is returned by the files property of the HTML <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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
*/
interface FileList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)
*/
interface FileReader extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */
readonly result: string | ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */
readAsArrayBuffer(blob: Blob): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */
readAsDataURL(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */
readAsText(blob: Blob, encoding?: string): void;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
addEventListener<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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */
interface FileSystem {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */
readonly root: FileSystemDirectoryEntry;
}
declare var FileSystem: {
prototype: FileSystem;
new(): FileSystem;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */
interface FileSystemDirectoryEntry extends FileSystemEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */
createReader(): FileSystemDirectoryReader;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */
getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */
getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryEntry: {
prototype: FileSystemDirectoryEntry;
new(): FileSystemDirectoryEntry;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
*/
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */
interface FileSystemDirectoryReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryReader: {
prototype: FileSystemDirectoryReader;
new(): FileSystemDirectoryReader;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */
interface FileSystemEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */
readonly filesystem: FileSystem;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */
readonly fullPath: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */
readonly isDirectory: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */
readonly isFile: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */
getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemEntry: {
prototype: FileSystemEntry;
new(): FileSystemEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */
interface FileSystemFileEntry extends FileSystemEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */
file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemFileEntry: {
prototype: FileSystemFileEntry;
new(): FileSystemFileEntry;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
*/
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */
createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
*/
interface FileSystemHandle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */
readonly kind: FileSystemHandleKind;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
*/
interface FileSystemWritableFileStream extends WritableStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */
seek(position: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */
truncate(size: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */
write(data: FileSystemWriteChunkType): Promise<void>;
}
declare var FileSystemWritableFileStream: {
prototype: FileSystemWritableFileStream;
new(): FileSystemWritableFileStream;
};
/**
* Focus-related events like focus, blur, focusin, or focusout.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent)
*/
interface FocusEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */
readonly relatedTarget: EventTarget | null;
}
declare var FocusEvent: {
prototype: FocusEvent;
new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */
interface FontFace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */
ascentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */
descentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */
display: FontDisplay;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */
family: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */
featureSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */
lineGapOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */
readonly loaded: Promise<FontFace>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */
readonly status: FontFaceLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */
stretch: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */
style: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
unicodeRange: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
weight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
interface FontFaceSet extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
readonly ready: Promise<FontFaceSet>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
readonly status: FontFaceSetLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */
check(font: string, text?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */
load(font: string, text?: string): Promise<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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */
interface FontFaceSetLoadEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
readonly fonts: FontFaceSet;
}
/**
* Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
*/
interface FormData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */
append(name: string, value: string | Blob): void;
append(name: string, value: string): void;
append(name: string, blobValue: Blob, filename?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */
get(name: string): FormDataEntryValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */
getAll(name: string): FormDataEntryValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */
set(name: string, value: string | Blob): void;
set(name: string, value: string): void;
set(name: string, blobValue: Blob, filename?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */
interface FormDataEvent extends Event {
/**
* Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData)
*/
readonly formData: FormData;
}
declare var FormDataEvent: {
prototype: FormDataEvent;
new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
};
/**
* A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode)
*/
interface GainNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */
readonly gain: AudioParam;
}
declare var GainNode: {
prototype: GainNode;
new(context: BaseAudioContext, options?: GainOptions): GainNode;
};
/**
* This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)
*/
interface Gamepad {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */
readonly axes: ReadonlyArray<number>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */
readonly buttons: ReadonlyArray<GamepadButton>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */
readonly connected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */
readonly index: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */
readonly mapping: GamepadMappingType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */
readonly timestamp: DOMHighResTimeStamp;
readonly vibrationActuator: GamepadHapticActuator | null;
}
declare var Gamepad: {
prototype: Gamepad;
new(): Gamepad;
};
/**
* An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)
*/
interface GamepadButton {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */
readonly pressed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */
readonly touched: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */
readonly value: number;
}
declare var GamepadButton: {
prototype: GamepadButton;
new(): GamepadButton;
};
/**
* This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
*/
interface GamepadEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */
readonly gamepad: Gamepad;
}
declare var GamepadEvent: {
prototype: GamepadEvent;
new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
};
/**
* This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)
*/
interface GamepadHapticActuator {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */
readonly type: GamepadHapticActuatorType;
playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
reset(): Promise<GamepadHapticsResult>;
}
declare var GamepadHapticActuator: {
prototype: GamepadHapticActuator;
new(): GamepadHapticActuator;
};
interface GenericTransformStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
readonly writable: WritableStream;
}
/**
* An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation)
*/
interface Geolocation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */
clearWatch(watchId: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */
getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
}
declare var Geolocation: {
prototype: Geolocation;
new(): Geolocation;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates)
*/
interface GeolocationCoordinates {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */
readonly accuracy: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */
readonly altitude: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */
readonly altitudeAccuracy: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */
readonly heading: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */
readonly latitude: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */
readonly longitude: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */
readonly speed: number | null;
}
declare var GeolocationCoordinates: {
prototype: GeolocationCoordinates;
new(): GeolocationCoordinates;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition)
*/
interface GeolocationPosition {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */
readonly coords: GeolocationCoordinates;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */
readonly timestamp: EpochTimeStamp;
}
declare var GeolocationPosition: {
prototype: GeolocationPosition;
new(): GeolocationPosition;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */
interface GeolocationPositionError {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */
readonly message: string;
readonly PERMISSION_DENIED: 1;
readonly POSITION_UNAVAILABLE: 2;
readonly TIMEOUT: 3;
}
declare var GeolocationPositionError: {
prototype: GeolocationPositionError;
new(): GeolocationPositionError;
readonly PERMISSION_DENIED: 1;
readonly POSITION_UNAVAILABLE: 2;
readonly TIMEOUT: 3;
};
interface GlobalEventHandlersEventMap {
"abort": UIEvent;
"animationcancel": AnimationEvent;
"animationend": AnimationEvent;
"animationiteration": AnimationEvent;
"animationstart": AnimationEvent;
"auxclick": MouseEvent;
"beforeinput": InputEvent;
"beforetoggle": Event;
"blur": FocusEvent;
"cancel": Event;
"canplay": Event;
"canplaythrough": Event;
"change": Event;
"click": MouseEvent;
"close": Event;
"compositionend": CompositionEvent;
"compositionstart": CompositionEvent;
"compositionupdate": CompositionEvent;
"contextmenu": MouseEvent;
"copy": ClipboardEvent;
"cuechange": Event;
"cut": ClipboardEvent;
"dblclick": MouseEvent;
"drag": DragEvent;
"dragend": DragEvent;
"dragenter": DragEvent;
"dragleave": DragEvent;
"dragover": DragEvent;
"dragstart": DragEvent;
"drop": DragEvent;
"durationchange": Event;
"emptied": Event;
"ended": Event;
"error": ErrorEvent;
"focus": FocusEvent;
"focusin": FocusEvent;
"focusout": FocusEvent;
"formdata": FormDataEvent;
"gotpointercapture": PointerEvent;
"input": Event;
"invalid": Event;
"keydown": KeyboardEvent;
"keypress": KeyboardEvent;
"keyup": KeyboardEvent;
"load": Event;
"loadeddata": Event;
"loadedmetadata": Event;
"loadstart": Event;
"lostpointercapture": PointerEvent;
"mousedown": MouseEvent;
"mouseenter": MouseEvent;
"mouseleave": MouseEvent;
"mousemove": MouseEvent;
"mouseout": MouseEvent;
"mouseover": MouseEvent;
"mouseup": MouseEvent;
"paste": ClipboardEvent;
"pause": Event;
"play": Event;
"playing": Event;
"pointercancel": PointerEvent;
"pointerdown": PointerEvent;
"pointerenter": PointerEvent;
"pointerleave": PointerEvent;
"pointermove": PointerEvent;
"pointerout": PointerEvent;
"pointerover": PointerEvent;
"pointerup": PointerEvent;
"progress": ProgressEvent;
"ratechange": Event;
"reset": Event;
"resize": UIEvent;
"scroll": Event;
"scrollend": Event;
"securitypolicyviolation": SecurityPolicyViolationEvent;
"seeked": Event;
"seeking": Event;
"select": Event;
"selectionchange": Event;
"selectstart": Event;
"slotchange": Event;
"stalled": Event;
"submit": SubmitEvent;
"suspend": Event;
"timeupdate": Event;
"toggle": Event;
"touchcancel": TouchEvent;
"touchend": TouchEvent;
"touchmove": TouchEvent;
"touchstart": TouchEvent;
"transitioncancel": TransitionEvent;
"transitionend": TransitionEvent;
"transitionrun": TransitionEvent;
"transitionstart": TransitionEvent;
"volumechange": Event;
"waiting": Event;
"webkitanimationend": Event;
"webkitanimationiteration": Event;
"webkitanimationstart": Event;
"webkittransitionend": Event;
"wheel": WheelEvent;
}
interface GlobalEventHandlers {
/**
* Fires when the user aborts the download.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)
*/
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
*/
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)
*/
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)
*/
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
*/
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
*/
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)
*/
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)
*/
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)
*/
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)
*/
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)
*/
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)
*/
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)
*/
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)
*/
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)
*/
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event)
*/
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)
*/
onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)
*/
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)
*/
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)
*/
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)
*/
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)
*/
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)
*/
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)
*/
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)
*/
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)
*/
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)
*/
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event)
*/
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event)
*/
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)
*/
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)
*/
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)
*/
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)
*/
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)
*/
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)
*/
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)
*/
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
*/
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)
*/
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)
*/
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)
*/
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)
*/
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)
*/
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)
*/
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event)
*/
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)
*/
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)
*/
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationiteration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)
*/
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationstart\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)
*/
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`ontransitionend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)
*/
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
addEventListener<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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */
interface HTMLAllCollection {
/**
* Returns the number of elements in the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length)
*/
readonly length: number;
/**
* Returns the item with index index from the collection (determined by tree order).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item)
*/
item(nameOrIndex?: string): HTMLCollection | Element | null;
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
*
* Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem)
*/
namedItem(name: string): HTMLCollection | Element | null;
[index: number]: Element;
}
declare var HTMLAllCollection: {
prototype: HTMLAllCollection;
new(): HTMLAllCollection;
};
/**
* Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement)
*/
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset)
*/
charset: string;
/**
* Sets or retrieves the coordinates of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords)
*/
coords: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */
download: string;
/**
* Sets or retrieves the language code of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang)
*/
hreflang: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name)
*/
name: string;
ping: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */
referrerPolicy: string;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel)
*/
rel: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev)
*/
rev: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape)
*/
shape: string;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target)
*/
target: string;
/**
* Retrieves or sets the text of the object as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text)
*/
text: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */
type: string;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement)
*/
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves a text alternative to the graphic.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt)
*/
alt: string;
/**
* Sets or retrieves the coordinates of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords)
*/
coords: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */
download: string;
/**
* Sets or gets whether clicks in this region cause action.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref)
*/
noHref: boolean;
ping: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */
referrerPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */
rel: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */
readonly relList: DOMTokenList;
/**
* Sets or retrieves the shape of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape)
*/
shape: string;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target)
*/
target: string;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement)
*/
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement/clear)
*/
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 for a document. This object inherits all of the properties and methods as described in the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement)
*/
interface HTMLBaseElement extends HTMLElement {
/**
* Gets or sets the baseline URL on which relative links are based.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href)
*/
href: string;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement)
*/
interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/aLink)
*/
aLink: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/background)
*/
background: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/bgColor)
*/
bgColor: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/link)
*/
link: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/text)
*/
text: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/vLink)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
*/
interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Overrides the action attribute (where the data on a form is sent) on the parent form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction)
*/
formAction: string;
/**
* Used to override the encoding (formEnctype attribute) specified on the form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype)
*/
formEnctype: string;
/**
* Overrides the submit method attribute previously specified on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)
*/
formNoValidate: boolean;
/**
* Overrides the target attribute on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)
*/
formTarget: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name)
*/
name: string;
/**
* Gets the classification and default behavior of the button.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type)
*/
type: "submit" | "reset" | "button";
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity)
*/
readonly validity: ValidityState;
/**
* Sets or retrieves the default or selected value of the control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)
*/
value: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate)
*/
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement)
*/
interface HTMLCanvasElement extends HTMLElement {
/**
* Gets or sets the height of a canvas element on a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height)
*/
height: number;
/**
* Gets or sets the width of a canvas element on a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width)
*/
width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream) */
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");
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext)
*/
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL)
*/
toDataURL(type?: string, quality?: any): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection)
*/
interface HTMLCollectionBase {
/**
* Sets or retrieves the number of objects in a collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length)
*/
readonly length: number;
/**
* Retrieves an object from various collections.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item)
*/
item(index: number): Element | null;
[index: number]: Element;
}
interface HTMLCollection extends HTMLCollectionBase {
/**
* Retrieves a select object or an object from an options collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement)
*/
interface HTMLDListElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement)
*/
interface HTMLDataElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement/value) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement)
*/
interface HTMLDataListElement extends HTMLElement {
/**
* Returns an HTMLCollection of the option elements of the datalist element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement/options)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */
interface HTMLDetailsElement extends HTMLElement {
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement) */
interface HTMLDialogElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open) */
open: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue) */
returnValue: string;
/**
* Closes the dialog element.
*
* The argument, if provided, provides a return value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close)
*/
close(returnValue?: string): void;
/**
* Displays the dialog element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show)
*/
show(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement)
*/
interface HTMLDivElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement/align)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
*/
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) */
accessKey: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */
readonly accessKeyLabel: string;
autocapitalize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */
dir: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) */
draggable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) */
hidden: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) */
inert: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) */
innerText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */
lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) */
readonly offsetHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) */
readonly offsetLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) */
readonly offsetParent: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) */
readonly offsetTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) */
readonly offsetWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */
outerText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */
popover: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */
spellcheck: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */
title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */
translate: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */
attachInternals(): ElementInternals;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */
click(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */
hidePopover(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */
showPopover(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */
togglePopover(force?: boolean): boolean;
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement)
*/
interface HTMLFieldSetElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled) */
disabled: boolean;
/**
* Returns an HTMLCollection of the form controls in the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements)
*/
readonly elements: HTMLCollection;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form)
*/
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */
name: string;
/**
* Returns the string "fieldset".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity)
*/
readonly validity: ValidityState;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate)
*/
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement)
*/
interface HTMLFontElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/color)
*/
color: string;
/**
* Sets or retrieves the current typeface family.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/face)
*/
face: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/size)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection/namedItem)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset)
*/
acceptCharset: string;
/**
* Sets or retrieves the URL to which the form content is sent for processing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action)
*/
action: string;
/**
* Specifies whether autocomplete is applied to an editable text field.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)
*/
autocomplete: AutoFillBase;
/**
* Retrieves a collection, in source order, of all controls in a given form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements)
*/
readonly elements: HTMLFormControlsCollection;
/**
* Sets or retrieves the MIME encoding for the form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding)
*/
encoding: string;
/**
* Sets or retrieves the encoding type for the form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype)
*/
enctype: string;
/**
* Sets or retrieves the number of objects in a collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length)
*/
readonly length: number;
/**
* Sets or retrieves how to send the form data to the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method)
*/
method: string;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)
*/
name: string;
/**
* Designates a form that is not validated when submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)
*/
noValidate: boolean;
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target)
*/
target: string;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)
*/
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity) */
reportValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit) */
requestSubmit(submitter?: HTMLElement | null): void;
/**
* Fires when the user resets a form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset)
*/
reset(): void;
/**
* Fires when a FORM is about to be submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit)
*/
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement)
*/
interface HTMLFrameElement extends HTMLElement {
/**
* Retrieves the document object of the page or frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentDocument)
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentWindow)
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/frameBorder)
*/
frameBorder: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/longDesc)
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginHeight)
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginWidth)
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/name)
*/
name: string;
/**
* Sets or retrieves whether the user can resize the frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/noResize)
*/
noResize: boolean;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/scrolling)
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/src)
*/
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameSetElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHRElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement)
*/
interface HTMLHeadingElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement/align)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement)
*/
interface HTMLHtmlElement extends HTMLElement {
/**
* Sets or retrieves the DTD version that governs the current document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement/version)
*/
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 "#").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host)
*/
host: string;
/**
* Returns the hyperlink's URL's host.
*
* Can be set, to change the URL's host.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname)
*/
hostname: string;
/**
* Returns the hyperlink's URL.
*
* Can be set, to change the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/href)
*/
href: string;
toString(): string;
/**
* Returns the hyperlink's URL's origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin)
*/
readonly origin: string;
/**
* Returns the hyperlink's URL's password.
*
* Can be set, to change the URL's password.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password)
*/
password: string;
/**
* Returns the hyperlink's URL's path.
*
* Can be set, to change the URL's path.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname)
*/
pathname: string;
/**
* Returns the hyperlink's URL's port.
*
* Can be set, to change the URL's port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port)
*/
port: string;
/**
* Returns the hyperlink's URL's scheme.
*
* Can be set, to change the URL's scheme.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol)
*/
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 "?").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search)
*/
search: string;
/**
* Returns the hyperlink's URL's username.
*
* Can be set, to change the URL's username.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement)
*/
interface HTMLIFrameElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/align)
*/
align: string;
allow: string;
allowFullscreen: boolean;
/**
* Retrieves the document object of the page or frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentDocument)
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow)
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/frameBorder)
*/
frameBorder: string;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)
*/
height: string;
loading: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/longDesc)
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginHeight)
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginWidth)
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name)
*/
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */
referrerPolicy: ReferrerPolicy;
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/scrolling)
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src)
*/
src: string;
/**
* Sets or retrives the content of the page that is to contain.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc)
*/
srcdoc: string;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)
*/
interface HTMLImageElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align)
*/
align: string;
/**
* Sets or retrieves a text alternative to the graphic.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt)
*/
alt: string;
/**
* Specifies the properties of a border drawn around an object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border)
*/
border: string;
/**
* Retrieves whether the object is fully loaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete)
*/
readonly complete: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin) */
crossOrigin: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc) */
readonly currentSrc: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */
decoding: "async" | "sync" | "auto";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */
fetchPriority: string;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height)
*/
height: number;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace)
*/
hspace: number;
/**
* Sets or retrieves whether the image is a server-side image map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap)
*/
isMap: boolean;
/**
* Sets or retrieves the policy for loading image elements that are outside the viewport.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading)
*/
loading: "eager" | "lazy";
/**
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc)
*/
longDesc: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/lowsrc)
*/
lowsrc: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name)
*/
name: string;
/**
* The original height of the image resource before sizing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight)
*/
readonly naturalHeight: number;
/**
* The original width of the image resource before sizing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth)
*/
readonly naturalWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy) */
referrerPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */
sizes: string;
/**
* The address or URL of the a media resource that is to be considered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src)
*/
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset) */
srcset: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap)
*/
useMap: string;
/**
* Sets or retrieves the vertical margin for the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace)
*/
vspace: number;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width)
*/
width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
*/
interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
/** 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)
*/
autocomplete: AutoFill;
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
disabled: boolean;
/**
* Returns a FileList object on a file type input object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction)
*/
formAction: string;
/**
* Used to override the encoding (formEnctype attribute) specified on the form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype)
*/
formEnctype: string;
/**
* Overrides the submit method attribute previously specified on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)
*/
formNoValidate: boolean;
/**
* Overrides the target attribute on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)
*/
formTarget: string;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height)
*/
height: number;
/** When set, overrides the rendering of checkbox controls so that the current value is not visible. */
indeterminate: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement> | null;
/**
* Specifies the ID of a pre-defined datalist of options for an input element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder)
*/
placeholder: string;
readOnly: boolean;
/**
* When present, marks an element that can't be submitted without a value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required)
*/
required: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
*/
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */
webkitdirectory: boolean;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width)
*/
width: number;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate)
*/
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity)
*/
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity) */
reportValidity(): boolean;
/**
* Makes the selection equal to the current object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity)
*/
setCustomValidity(error: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepUp)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement)
*/
interface HTMLLabelElement extends HTMLElement {
/**
* Returns the form control that is associated with this element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/control)
*/
readonly control: HTMLElement | null;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the object to which the given label object is assigned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/htmlFor)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement)
*/
interface HTMLLinkElement extends HTMLElement, LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
as: string;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin) */
crossOrigin: string | null;
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */
fetchPriority: string;
/**
* Sets or retrieves a destination URL or an anchor point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href)
*/
href: string;
/**
* Sets or retrieves the language code of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang)
*/
hreflang: string;
imageSizes: string;
imageSrcset: string;
integrity: string;
/** Sets or retrieves the media type. */
media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/referrerPolicy) */
referrerPolicy: string;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/rel)
*/
rel: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList) */
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*/
rev: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement)
*/
interface HTMLMapElement extends HTMLElement {
/**
* Retrieves a collection of the area objects defined for the given map object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas)
*/
readonly areas: HTMLCollection;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/name)
*/
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMarqueeElement)
*/
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 that are common to audio and video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement)
*/
interface HTMLMediaElement extends HTMLElement {
/**
* Gets or sets a value that indicates whether to start playing the media automatically.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/autoplay)
*/
autoplay: boolean;
/**
* Gets a collection of buffered time ranges.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/buffered)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/controls)
*/
controls: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/crossOrigin) */
crossOrigin: string | null;
/**
* Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentSrc)
*/
readonly currentSrc: string;
/**
* Gets or sets the current playback position, in seconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentTime)
*/
currentTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultMuted) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)
*/
defaultPlaybackRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/disableRemotePlayback) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/duration)
*/
readonly duration: number;
/**
* Gets information about whether the playback has ended or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended)
*/
readonly ended: boolean;
/**
* Returns an object representing the current error state of the audio or video element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/error)
*/
readonly error: MediaError | null;
/**
* Gets or sets a flag to specify whether playback should restart after it completes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loop)
*/
loop: boolean;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/mediaKeys)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/muted)
*/
muted: boolean;
/**
* Gets the current network activity for the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/networkState)
*/
readonly networkState: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/encrypted_event) */
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waitingforkey_event) */
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
/**
* Gets a flag that specifies whether playback is paused.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate)
*/
playbackRate: number;
/**
* Gets TimeRanges for the current media resource that has been played.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/played)
*/
readonly played: TimeRanges;
/**
* Gets or sets a value indicating what data should be preloaded, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preload)
*/
preload: "none" | "metadata" | "auto" | "";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preservesPitch) */
preservesPitch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState) */
readonly readyState: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote) */
readonly remote: RemotePlayback;
/**
* Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable)
*/
readonly seekable: TimeRanges;
/**
* Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking)
*/
readonly seeking: boolean;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/sinkId)
*/
readonly sinkId: string;
/**
* The address or URL of the a media resource that is to be considered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/src)
*/
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/srcObject) */
srcObject: MediaProvider | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/textTracks) */
readonly textTracks: TextTrackList;
/**
* Gets or sets the volume level for audio portions of the media element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume)
*/
volume: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack) */
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
/**
* Returns a string that specifies whether the client can play a given media resource type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)
*/
canPlayType(type: string): CanPlayTypeResult;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek) */
fastSeek(time: number): void;
/**
* Resets the audio or video object and loads a new media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/load)
*/
load(): void;
/**
* Pauses the current playback and sets paused to TRUE.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause)
*/
pause(): void;
/**
* Loads and starts playback of a media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play)
*/
play(): Promise<void>;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys)
*/
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setSinkId)
*/
setSinkId(sinkId: string): 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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */
interface HTMLMenuElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact)
*/
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 inherits all of the properties and methods described in the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement)
*/
interface HTMLMeterElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high) */
high: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low) */
low: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max) */
max: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min) */
min: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum) */
optimum: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value) */
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>.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement)
*/
interface HTMLModElement extends HTMLElement {
/**
* Sets or retrieves reference information about the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/cite)
*/
cite: string;
/**
* Sets or retrieves the date and time of a modification to the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/dateTime)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement)
*/
interface HTMLOListElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact)
*/
compact: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed) */
reversed: boolean;
/**
* The starting number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/start)
*/
start: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/type) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement)
*/
interface HTMLObjectElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/align)
*/
align: string;
/**
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/archive)
*/
archive: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/border)
*/
border: string;
/**
* Sets or retrieves the URL of the file containing the compiled Java class.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/code)
*/
code: string;
/**
* Sets or retrieves the URL of the component.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeBase)
*/
codeBase: string;
/**
* Sets or retrieves the Internet media type for the code associated with the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeType)
*/
codeType: string;
/**
* Retrieves the document object of the page or frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentDocument)
*/
readonly contentDocument: Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentWindow) */
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves the URL that references the data of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data)
*/
data: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/declare)
*/
declare: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height)
*/
height: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/hspace)
*/
hspace: number;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/name)
*/
name: string;
/**
* Sets or retrieves a message to be displayed while an object is loading.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/standby)
*/
standby: string;
/**
* Sets or retrieves the MIME type of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/type)
*/
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity)
*/
readonly validity: ValidityState;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/vspace)
*/
vspace: number;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/width)
*/
width: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/willValidate)
*/
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity)
*/
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/getSVGDocument) */
getSVGDocument(): Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/setCustomValidity)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement)
*/
interface HTMLOptGroupElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled) */
disabled: boolean;
/**
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/label)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement)
*/
interface HTMLOptionElement extends HTMLElement {
/**
* Sets or retrieves the status of an option.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected)
*/
defaultSelected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled) */
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the ordinal position of an option in a list box.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index)
*/
readonly index: number;
/**
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label)
*/
label: string;
/**
* Sets or retrieves whether the option in the list box is the default item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected)
*/
selected: boolean;
/**
* Sets or retrieves the text string specified by the option tag.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text)
*/
text: string;
/**
* Sets or retrieves the value which is returned to the server when the form control is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length)
*/
length: number;
/**
* Returns the index of the first selected item, if any, or −1 if there is no selected item.
*
* Can be set, to change the selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add)
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/**
* Removes the item with index index from the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove)
*/
remove(index: number): void;
}
declare var HTMLOptionsCollection: {
prototype: HTMLOptionsCollection;
new(): HTMLOptionsCollection;
};
interface HTMLOrSVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
autofocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
readonly dataset: DOMStringMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) */
nonce?: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) */
tabIndex: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) */
blur(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) */
focus(options?: FocusOptions): void;
}
/**
* Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement)
*/
interface HTMLOutputElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue) */
defaultValue: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */
readonly htmlFor: DOMTokenList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */
name: string;
/**
* Returns the string "output".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type)
*/
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage) */
readonly validationMessage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity) */
readonly validity: ValidityState;
/**
* Returns the element's current value.
*
* Can be set, to change the value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)
*/
value: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate) */
readonly willValidate: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity) */
reportValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement)
*/
interface HTMLParagraphElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement/align)
*/
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement)
*/
interface HTMLParamElement extends HTMLElement {
/**
* Sets or retrieves the name of an input parameter for an element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/name)
*/
name: string;
/**
* Sets or retrieves the content type of the resource designated by the value attribute.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/type)
*/
type: string;
/**
* Sets or retrieves the value of an input parameter for an element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/value)
*/
value: string;
/**
* Sets or retrieves the data type of the value attribute.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/valueType)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPictureElement)
*/
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>).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement)
*/
interface HTMLPreElement extends HTMLElement {
/**
* Sets or gets a value that you can use to implement your own width functionality for the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement/width)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement)
*/
interface HTMLProgressElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Defines the maximum, or "done" value for a progress element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/max)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/position)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement)
*/
interface HTMLQuoteElement extends HTMLElement {
/**
* Sets or retrieves reference information about the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement/cite)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement)
*/
interface HTMLScriptElement extends HTMLElement {
async: boolean;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */
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;
fetchPriority: string;
/**
* Sets or retrieves the object that is bound to the event script.
* @deprecated
*/
htmlFor: string;
integrity: string;
noModule: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement)
*/
interface HTMLSelectElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */
autocomplete: AutoFill;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/form)
*/
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Sets or retrieves the number of objects in a collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length)
*/
length: number;
/**
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple)
*/
multiple: boolean;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name)
*/
name: string;
/**
* Returns an HTMLOptionsCollection of the list of options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options)
*/
readonly options: HTMLOptionsCollection;
/**
* When present, marks an element that can't be submitted without a value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required)
*/
required: boolean;
/**
* Sets or retrieves the index of the selected option in a select object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedIndex)
*/
selectedIndex: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions) */
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
/**
* Sets or retrieves the number of rows in the list box.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size)
*/
size: number;
/**
* Retrieves the type of select control based on the value of the MULTIPLE attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity)
*/
readonly validity: ValidityState;
/**
* Sets or retrieves the value which is returned to the server when the form control is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value)
*/
value: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add)
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove)
*/
remove(): void;
remove(index: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity)
*/
setCustomValidity(error: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker) */
showPicker(): 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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement) */
interface HTMLSlotElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign) */
assign(...nodes: (Element | Text)[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements) */
assignedElements(options?: AssignedNodesOptions): Element[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedNodes) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)
*/
interface HTMLSourceElement extends HTMLElement {
height: number;
/**
* Gets or sets the intended media type of the media source.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/media)
*/
media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes) */
sizes: string;
/**
* The address or URL of the a media resource that is to be considered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/src)
*/
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/srcset) */
srcset: string;
/**
* Gets or sets the MIME type of a media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSpanElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
*/
interface HTMLStyleElement extends HTMLElement, LinkStyle {
/**
* Enables or disables the style sheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/disabled)
*/
disabled: boolean;
/**
* Sets or retrieves the media type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/media)
*/
media: string;
/**
* Retrieves the CSS language in which the style sheet is written.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/type)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement)
*/
interface HTMLTableCaptionElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the caption or legend.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement/align)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement)
*/
interface HTMLTableCellElement extends HTMLElement {
/**
* Sets or retrieves abbreviated text for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr)
*/
abbr: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/align)
*/
align: string;
/**
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/axis)
*/
axis: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/bgColor)
*/
bgColor: string;
/**
* Retrieves the position of the object in the cells collection of a row.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/cellIndex)
*/
readonly cellIndex: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/chOff)
*/
chOff: string;
/**
* Sets or retrieves the number columns in the table that the object should span.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/colSpan)
*/
colSpan: number;
/**
* Sets or retrieves a list of header cells that provide information for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/headers)
*/
headers: string;
/**
* Sets or retrieves the height of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/height)
*/
height: string;
/**
* Sets or retrieves whether the browser automatically performs wordwrap.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/noWrap)
*/
noWrap: boolean;
/**
* Sets or retrieves how many rows in a table the cell should span.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/rowSpan)
*/
rowSpan: number;
/**
* Sets or retrieves the group of cells in a table to which the object's information applies.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope)
*/
scope: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/vAlign)
*/
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/width)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement)
*/
interface HTMLTableColElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the object relative to the display or table.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/chOff)
*/
chOff: string;
/**
* Sets or retrieves the number of columns in the group.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/span)
*/
span: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/vAlign)
*/
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/width)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement)
*/
interface HTMLTableElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/bgColor)
*/
bgColor: string;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/border)
*/
border: string;
/**
* Retrieves the caption object of a table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/caption)
*/
caption: HTMLTableCaptionElement | null;
/**
* Sets or retrieves the amount of space between the border of the cell and the content of the cell.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellPadding)
*/
cellPadding: string;
/**
* Sets or retrieves the amount of space between cells in a table.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellSpacing)
*/
cellSpacing: string;
/**
* Sets or retrieves the way the border frame around the table is displayed.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/frame)
*/
frame: string;
/**
* Sets or retrieves the number of horizontal rows contained in the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rows)
*/
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* Sets or retrieves which dividing lines (inner borders) are displayed.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rules)
*/
rules: string;
/**
* Sets or retrieves a description and/or structure of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/summary)
*/
summary: string;
/**
* Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies)
*/
readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
/**
* Retrieves the tFoot object of the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tFoot)
*/
tFoot: HTMLTableSectionElement | null;
/**
* Retrieves the tHead object of the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tHead)
*/
tHead: HTMLTableSectionElement | null;
/**
* Sets or retrieves the width of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/width)
*/
width: string;
/**
* Creates an empty caption element in the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption)
*/
createCaption(): HTMLTableCaptionElement;
/**
* Creates an empty tBody element in the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody)
*/
createTBody(): HTMLTableSectionElement;
/**
* Creates an empty tFoot element in the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot)
*/
createTFoot(): HTMLTableSectionElement;
/**
* Returns the tHead element object if successful, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead)
*/
createTHead(): HTMLTableSectionElement;
/**
* Deletes the caption element and its contents from the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow)
*/
deleteRow(index: number): void;
/**
* Deletes the tFoot element and its contents from the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot)
*/
deleteTFoot(): void;
/**
* Deletes the tHead element and its contents from the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/insertRow)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement)
*/
interface HTMLTableRowElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/bgColor)
*/
bgColor: string;
/**
* Retrieves a collection of all cells in the table row.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/cells)
*/
readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/chOff)
*/
chOff: string;
/**
* Retrieves the position of the object in the rows collection for the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/rowIndex)
*/
readonly rowIndex: number;
/**
* Retrieves the position of the object in the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex)
*/
readonly sectionRowIndex: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/insertCell)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement)
*/
interface HTMLTableSectionElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/chOff)
*/
chOff: string;
/**
* Sets or retrieves the number of horizontal rows contained in the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows)
*/
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/insertRow)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement)
*/
interface HTMLTemplateElement extends HTMLElement {
/**
* Returns the template contents (a DocumentFragment).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)
*/
readonly content: DocumentFragment;
shadowRootMode: string;
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement)
*/
interface HTMLTextAreaElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */
autocomplete: AutoFill;
/** 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement)
*/
interface HTMLTimeElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement/dateTime) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement)
*/
interface HTMLTitleElement extends HTMLElement {
/**
* Retrieves or sets the text of the object as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement/text)
*/
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement)
*/
interface HTMLTrackElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/default) */
default: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/kind) */
kind: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/label) */
label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/readyState) */
readonly readyState: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src) */
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/srclang) */
srclang: string;
/**
* Returns the TextTrack object corresponding to the text track of the track element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/track)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement)
*/
interface HTMLUListElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact)
*/
compact: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/type)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUnknownElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
*/
interface HTMLVideoElement extends HTMLMediaElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/disablePictureInPicture) */
disablePictureInPicture: boolean;
/**
* Gets or sets the height of the video element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/height)
*/
height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/poster)
*/
poster: string;
/**
* Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoHeight)
*/
readonly videoHeight: number;
/**
* Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoWidth)
*/
readonly videoWidth: number;
/**
* Gets or sets the width of the video element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)
*/
width: number;
cancelVideoFrameCallback(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */
getVideoPlaybackQuality(): VideoPlaybackQuality;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent)
*/
interface HashChangeEvent extends Event {
/**
* Returns the URL of the session history entry that is now current.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/newURL)
*/
readonly newURL: string;
/**
* Returns the URL of the session history entry that was previously current.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/oldURL)
*/
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 of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
*/
interface Headers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */
append(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
get(name: string): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */
getSetCookie(): string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */
interface Highlight {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */
priority: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */
type: HighlightType;
forEach(callbackfn: (value: AbstractRange, key: AbstractRange, parent: Highlight) => void, thisArg?: any): void;
}
declare var Highlight: {
prototype: Highlight;
new(...initialRanges: AbstractRange[]): Highlight;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */
interface HighlightRegistry {
forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void;
}
declare var HighlightRegistry: {
prototype: HighlightRegistry;
new(): HighlightRegistry;
};
/**
* Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/History)
*/
interface History {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/scrollRestoration) */
scrollRestoration: ScrollRestoration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/state) */
readonly state: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/back) */
back(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/forward) */
forward(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/go) */
go(delta?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/pushState) */
pushState(data: any, unused: string, url?: string | URL | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/replaceState) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)
*/
interface IDBCursor {
/**
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
*/
readonly direction: IDBCursorDirection;
/**
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
*/
readonly key: IDBValidKey;
/**
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
*/
readonly primaryKey: IDBValidKey;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */
readonly request: IDBRequest;
/**
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
*/
readonly source: IDBObjectStore | IDBIndex;
/**
* Advances the cursor through the next count records in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
*/
advance(count: number): void;
/**
* Advances the cursor to the next record in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
*/
interface IDBCursorWithValue extends IDBCursor {
/**
* Returns the cursor's current value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
*/
interface IDBDatabase extends EventTarget {
/**
* Returns the name of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
*/
readonly name: string;
/**
* Returns a list of the names of object stores in the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/**
* Returns the version of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
*/
readonly version: number;
/**
* Closes the connection once all running transactions have finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
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.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
*/
cmp(first: any, second: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
*/
interface IDBIndex {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */
readonly keyPath: string | string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */
readonly multiEntry: boolean;
/**
* Returns the name of the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
*/
name: string;
/**
* Returns the IDBObjectStore the index belongs to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
*/
readonly objectStore: IDBObjectStore;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)
*/
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:
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
*/
interface IDBKeyRange {
/**
* Returns lower bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
*/
readonly lower: any;
/**
* Returns true if the lower open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
*/
readonly lowerOpen: boolean;
/**
* Returns upper bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
*/
readonly upper: any;
/**
* Returns true if the upper open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
*/
readonly upperOpen: boolean;
/**
* Returns true if key is included in the range, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
*/
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning only key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
*/
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 inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
*/
interface IDBObjectStore {
/**
* Returns true if the store has a key generator, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
*/
readonly autoIncrement: boolean;
/**
* Returns a list of the names of indexes in the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
*/
readonly indexNames: DOMStringList;
/**
* Returns the key path of the store, or null if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
*/
readonly keyPath: string | string[];
/**
* Returns the name of the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
*/
name: string;
/**
* Returns the associated transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)
*/
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)
*/
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/**
* Returns "pending" until a request is complete, then returns "done".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)
*/
readonly result: T;
/**
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)
*/
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */
interface IDBTransaction extends EventTarget {
/**
* Returns the transaction's connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
*/
readonly db: IDBDatabase;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */
readonly durability: IDBTransactionDurability;
/**
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
*/
readonly error: DOMException | null;
/**
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */
commit(): void;
/**
* Returns an IDBObjectStore in the transaction's scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
*/
interface IDBVersionChangeEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */
readonly newVersion: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
/**
* The IIRFilterNode interface of the Web Audio API is a AudioNode processor which implements a general infinite impulse response (IIR)  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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)
*/
interface IIRFilterNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse) */
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var IIRFilterNode: {
prototype: IIRFilterNode;
new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline) */
interface IdleDeadline {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout) */
readonly didTimeout: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining) */
timeRemaining(): DOMHighResTimeStamp;
}
declare var IdleDeadline: {
prototype: IdleDeadline;
new(): IdleDeadline;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */
interface ImageBitmap {
/**
* Returns the intrinsic height of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
*/
readonly height: number;
/**
* Returns the intrinsic width of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
*/
readonly width: number;
/**
* Releases imageBitmap's underlying bitmap data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
*/
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
*/
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().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
*/
interface ImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */
readonly colorSpace: PredefinedColorSpace;
/**
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
*/
readonly height: number;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)
*/
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
innerHTML: string;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo)
*/
interface InputDeviceInfo extends MediaDeviceInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities) */
getCapabilities(): MediaTrackCapabilities;
}
declare var InputDeviceInfo: {
prototype: InputDeviceInfo;
new(): InputDeviceInfo;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent) */
interface InputEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data) */
readonly data: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/dataTransfer) */
readonly dataTransfer: DataTransfer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/inputType) */
readonly inputType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/isComposing) */
readonly isComposing: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver)
*/
interface IntersectionObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root) */
readonly root: Element | Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin) */
readonly rootMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds) */
readonly thresholds: ReadonlyArray<number>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe) */
observe(target: Element): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords) */
takeRecords(): IntersectionObserverEntry[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry)
*/
interface IntersectionObserverEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect) */
readonly boundingClientRect: DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio) */
readonly intersectionRatio: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect) */
readonly intersectionRect: DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting) */
readonly isIntersecting: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds) */
readonly rootBounds: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target) */
readonly target: Element;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time) */
readonly time: DOMHighResTimeStamp;
}
declare var IntersectionObserverEntry: {
prototype: IntersectionObserverEntry;
new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent)
*/
interface KeyboardEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey) */
readonly altKey: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/charCode)
*/
readonly charCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/code) */
readonly code: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/ctrlKey) */
readonly ctrlKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/isComposing) */
readonly isComposing: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key) */
readonly key: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode)
*/
readonly keyCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/location) */
readonly location: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/metaKey) */
readonly metaKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/repeat) */
readonly repeat: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/shiftKey) */
readonly shiftKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState) */
getModifierState(keyArg: string): boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/initKeyboardEvent)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect) */
interface KeyframeEffect extends AnimationEffect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/composite) */
composite: CompositeOperation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/iterationComposite) */
iterationComposite: IterationCompositeOperation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/pseudoElement) */
pseudoElement: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/target) */
target: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/getKeyframes) */
getKeyframes(): ComputedKeyframe[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/setKeyframes) */
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/ancestorOrigins)
*/
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 "#").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hash)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/host)
*/
host: string;
/**
* Returns the Location object's URL's host.
*
* Can be set, to navigate to the same URL with a changed host.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hostname)
*/
hostname: string;
/**
* Returns the Location object's URL.
*
* Can be set, to navigate to the given URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/href)
*/
href: string;
toString(): string;
/**
* Returns the Location object's URL's origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname)
*/
pathname: string;
/**
* Returns the Location object's URL's port.
*
* Can be set, to navigate to the same URL with a changed port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/port)
*/
port: string;
/**
* Returns the Location object's URL's scheme.
*
* Can be set, to navigate to the same URL with a changed scheme.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/protocol)
*/
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 "?").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/search)
*/
search: string;
/**
* Navigates to the given URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/assign)
*/
assign(url: string | URL): void;
/**
* Reloads the current page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload)
*/
reload(): void;
/**
* Removes the current page from the session history and navigates to the given URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/replace)
*/
replace(url: string | URL): void;
}
declare var Location: {
prototype: Location;
new(): Location;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
*/
interface Lock {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */
readonly mode: LockMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
*/
interface LockManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
query(): Promise<LockManagerSnapshot>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess)
*/
interface MIDIAccess extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */
readonly inputs: MIDIInputMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */
onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */
readonly outputs: MIDIOutputMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent)
*/
interface MIDIConnectionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port) */
readonly port: MIDIPort | null;
}
declare var MIDIConnectionEvent: {
prototype: MIDIConnectionEvent;
new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
};
interface MIDIInputEventMap extends MIDIPortEventMap {
"midimessage": MIDIMessageEvent;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput)
*/
interface MIDIInput extends MIDIPort {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput/midimessage_event) */
onmidimessage: ((this: MIDIInput, ev: MIDIMessageEvent) => 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent)
*/
interface MIDIMessageEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data) */
readonly data: Uint8Array | null;
}
declare var MIDIMessageEvent: {
prototype: MIDIMessageEvent;
new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput)
*/
interface MIDIOutput extends MIDIPort {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap)
*/
interface MIDIOutputMap {
forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
}
declare var MIDIOutputMap: {
prototype: MIDIOutputMap;
new(): MIDIOutputMap;
};
interface MIDIPortEventMap {
"statechange": MIDIConnectionEvent;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort)
*/
interface MIDIPort extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection) */
readonly connection: MIDIPortConnectionState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/manufacturer) */
readonly manufacturer: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/name) */
readonly name: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/statechange_event) */
onstatechange: ((this: MIDIPort, ev: MIDIConnectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state) */
readonly state: MIDIPortDeviceState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type) */
readonly type: MIDIPortType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/version) */
readonly version: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/close) */
close(): Promise<MIDIPort>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/open) */
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 {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */
interface MediaCapabilities {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo)
*/
interface MediaDeviceInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/deviceId) */
readonly deviceId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/groupId) */
readonly groupId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/kind) */
readonly kind: MediaDeviceKind;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/label) */
readonly label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices)
*/
interface MediaDevices extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/devicechange_event) */
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices) */
enumerateDevices(): Promise<MediaDeviceInfo[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getDisplayMedia) */
getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getSupportedConstraints) */
getSupportedConstraints(): MediaTrackSupportedConstraints;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode)
*/
interface MediaElementAudioSourceNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode/mediaElement) */
readonly mediaElement: HTMLMediaElement;
}
declare var MediaElementAudioSourceNode: {
prototype: MediaElementAudioSourceNode;
new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent) */
interface MediaEncryptedEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData) */
readonly initData: ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initDataType) */
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>.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError)
*/
interface MediaError {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/code) */
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/message) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent)
*/
interface MediaKeyMessageEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message) */
readonly message: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/messageType) */
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 context for message exchange with a content decryption module (CDM).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession)
*/
interface MediaKeySession extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/closed) */
readonly closed: Promise<MediaKeySessionClosedReason>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/expiration) */
readonly expiration: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keyStatuses) */
readonly keyStatuses: MediaKeyStatusMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keystatuseschange_event) */
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/message_event) */
onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId) */
readonly sessionId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/generateRequest) */
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/load) */
load(sessionId: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/remove) */
remove(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/update) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap)
*/
interface MediaKeyStatusMap {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/get) */
get(keyId: BufferSource): MediaKeyStatus | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/has) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess)
*/
interface MediaKeySystemAccess {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/keySystem) */
readonly keySystem: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/createMediaKeys) */
createMediaKeys(): Promise<MediaKeys>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys)
*/
interface MediaKeys {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
declare var MediaKeys: {
prototype: MediaKeys;
new(): MediaKeys;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList) */
interface MediaList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText) */
mediaText: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium) */
appendMedium(medium: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium) */
deleteMedium(medium: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/item) */
item(index: number): string | null;
[index: number]: string;
}
declare var MediaList: {
prototype: MediaList;
new(): MediaList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata) */
interface MediaMetadata {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/album) */
album: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artist) */
artist: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artwork) */
artwork: ReadonlyArray<MediaImage>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/title) */
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList)
*/
interface MediaQueryList extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches) */
readonly matches: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media) */
readonly media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/change_event) */
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/addListener)
*/
addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/removeListener)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent) */
interface MediaQueryListEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches) */
readonly matches: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/media) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder) */
interface MediaRecorder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/audioBitsPerSecond) */
readonly audioBitsPerSecond: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/mimeType) */
readonly mimeType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */
onerror: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */
onpause: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */
onresume: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start_event) */
onstart: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop_event) */
onstop: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state) */
readonly state: RecordingState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stream) */
readonly stream: MediaStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/videoBitsPerSecond) */
readonly videoBitsPerSecond: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause) */
pause(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/requestData) */
requestData(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume) */
resume(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start) */
start(timeslice?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static) */
isTypeSupported(type: string): boolean;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession) */
interface MediaSession {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/metadata) */
metadata: MediaMetadata | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/playbackState) */
playbackState: MediaSessionPlaybackState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource)
*/
interface MediaSource extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/activeSourceBuffers) */
readonly activeSourceBuffers: SourceBufferList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration) */
duration: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceclose_event) */
onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceended_event) */
onsourceended: ((this: MediaSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceopen_event) */
onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState) */
readonly readyState: ReadyState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceBuffers) */
readonly sourceBuffers: SourceBufferList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/addSourceBuffer) */
addSourceBuffer(type: string): SourceBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/clearLiveSeekableRange) */
clearLiveSeekableRange(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/endOfStream) */
endOfStream(error?: EndOfStreamError): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/removeSourceBuffer) */
removeSourceBuffer(sourceBuffer: SourceBuffer): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/setLiveSeekableRange) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */
isTypeSupported(type: string): boolean;
};
interface MediaStreamEventMap {
"addtrack": MediaStreamTrackEvent;
"removetrack": MediaStreamTrackEvent;
}
/**
* A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream)
*/
interface MediaStream extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/active) */
readonly active: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addtrack_event) */
onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removetrack_event) */
onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack) */
addTrack(track: MediaStreamTrack): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/clone) */
clone(): MediaStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks) */
getAudioTracks(): MediaStreamTrack[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTrackById) */
getTrackById(trackId: string): MediaStreamTrack | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTracks) */
getTracks(): MediaStreamTrack[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getVideoTracks) */
getVideoTracks(): MediaStreamTrack[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removeTrack) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode) */
interface MediaStreamAudioDestinationNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode/stream) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode)
*/
interface MediaStreamAudioSourceNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode/mediaStream) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack)
*/
interface MediaStreamTrack extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) */
contentHint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) */
enabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) */
readonly kind: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) */
readonly label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) */
readonly muted: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) */
readonly readyState: MediaStreamTrackState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) */
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) */
clone(): MediaStreamTrack;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) */
getCapabilities(): MediaTrackCapabilities;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) */
getConstraints(): MediaTrackConstraints;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) */
getSettings(): MediaTrackSettings;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent)
*/
interface MediaStreamTrackEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent/track) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
*/
interface MessageChannel {
/**
* Returns the first MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
*/
readonly port1: MessagePort;
/**
* Returns the second MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
*/
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/**
* A message received by a target object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
*/
interface MessageEvent<T = any> extends Event {
/**
* Returns the data of the message.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
*/
readonly data: T;
/**
* Returns the last event ID string, for server-sent events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
*/
readonly lastEventId: string;
/**
* Returns the origin of the message, for server-sent events and cross-document messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
*/
readonly origin: string;
/**
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
*/
readonly source: MessageEventSource | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
*/
interface MessagePort extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/**
* Disconnects the port, so that it is no longer active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Begins dispatching messages received on the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
*/
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType)
*/
interface MimeType {
/**
* Returns the MIME type's description.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/description)
*/
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/enabledPlugin)
*/
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/suffixes)
*/
readonly suffixes: string;
/**
* Returns the MIME type.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/type)
*/
readonly type: string;
}
/** @deprecated */
declare var MimeType: {
prototype: MimeType;
new(): MimeType;
};
/**
* Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray)
*/
interface MimeTypeArray {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/length)
*/
readonly length: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/item)
*/
item(index: number): MimeType | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/namedItem)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent)
*/
interface MouseEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey) */
readonly altKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/button) */
readonly button: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/buttons) */
readonly buttons: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientX) */
readonly clientX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientY) */
readonly clientY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey) */
readonly ctrlKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX) */
readonly layerX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY) */
readonly layerY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey) */
readonly metaKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX) */
readonly movementX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementY) */
readonly movementY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetX) */
readonly offsetX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetY) */
readonly offsetY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX) */
readonly pageX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageY) */
readonly pageY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget) */
readonly relatedTarget: EventTarget | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenX) */
readonly screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenY) */
readonly screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/shiftKey) */
readonly shiftKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState) */
getModifierState(keyArg: string): boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/initMouseEvent)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent)
*/
interface MutationEvent extends Event {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrChange)
*/
readonly attrChange: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrName)
*/
readonly attrName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/newValue)
*/
readonly newValue: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/prevValue)
*/
readonly prevValue: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/relatedNode)
*/
readonly relatedNode: Node | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/initMutationEvent)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver)
*/
interface MutationObserver {
/**
* Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/disconnect)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe)
*/
observe(target: Node, options?: MutationObserverInit): void;
/**
* Empties the record queue and returns what was in there.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/takeRecords)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord)
*/
interface MutationRecord {
/**
* Return the nodes added and removed respectively.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/addedNodes)
*/
readonly addedNodes: NodeList;
/**
* Returns the local name of the changed attribute, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeName)
*/
readonly attributeName: string | null;
/**
* Returns the namespace of the changed attribute, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeNamespace)
*/
readonly attributeNamespace: string | null;
/**
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/nextSibling)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/oldValue)
*/
readonly oldValue: string | null;
/**
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/previousSibling)
*/
readonly previousSibling: Node | null;
/**
* Return the nodes added and removed respectively.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/removedNodes)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/target)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/type)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap)
*/
interface NamedNodeMap {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem) */
getNamedItem(qualifiedName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS) */
getNamedItemNS(namespace: string | null, localName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item) */
item(index: number): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem) */
removeNamedItem(qualifiedName: string): Attr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS) */
removeNamedItemNS(namespace: string | null, localName: string): Attr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem) */
setNamedItem(attr: Attr): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItemNS) */
setNamedItemNS(attr: Attr): Attr | null;
[index: number]: Attr;
}
declare var NamedNodeMap: {
prototype: NamedNodeMap;
new(): NamedNodeMap;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
*/
interface NavigationPreloadManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */
disable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */
enable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */
getState(): Promise<NavigationPreloadState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
*/
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clipboard)
*/
readonly clipboard: Clipboard;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/credentials)
*/
readonly credentials: CredentialsContainer;
readonly doNotTrack: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/geolocation) */
readonly geolocation: Geolocation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/maxTouchPoints) */
readonly maxTouchPoints: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaCapabilities) */
readonly mediaCapabilities: MediaCapabilities;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaDevices)
*/
readonly mediaDevices: MediaDevices;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaSession) */
readonly mediaSession: MediaSession;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/permissions) */
readonly permissions: Permissions;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/serviceWorker)
*/
readonly serviceWorker: ServiceWorkerContainer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userActivation) */
readonly userActivation: UserActivation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/wakeLock) */
readonly wakeLock: WakeLock;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/canShare)
*/
canShare(data?: ShareData): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/getGamepads) */
getGamepads(): (Gamepad | null)[];
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMIDIAccess)
*/
requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
*/
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon) */
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/share)
*/
share(data?: ShareData): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */
vibrate(pattern: VibratePattern): boolean;
}
declare var Navigator: {
prototype: Navigator;
new(): Navigator;
};
interface NavigatorAutomationInformation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/webdriver) */
readonly webdriver: boolean;
}
/** Available only in secure contexts. */
interface NavigatorBadge {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */
clearAppBadge(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */
setAppBadge(contents?: number): Promise<void>;
}
interface NavigatorConcurrentHardware {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */
readonly hardwareConcurrency: number;
}
interface NavigatorContentUtils {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/registerProtocolHandler)
*/
registerProtocolHandler(scheme: string, url: string | URL): void;
}
interface NavigatorCookies {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/cookieEnabled) */
readonly cookieEnabled: boolean;
}
interface NavigatorID {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
*/
readonly appCodeName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
*/
readonly appName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
*/
readonly appVersion: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
*/
readonly platform: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
*/
readonly product: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/productSub)
*/
readonly productSub: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
readonly userAgent: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendor)
*/
readonly vendor: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendorSub)
*/
readonly vendorSub: string;
}
interface NavigatorLanguage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */
readonly language: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */
readonly languages: ReadonlyArray<string>;
}
/** Available only in secure contexts. */
interface NavigatorLocks {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */
readonly locks: LockManager;
}
interface NavigatorOnLine {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */
readonly onLine: boolean;
}
interface NavigatorPlugins {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorPlugins/mimeTypes)
*/
readonly mimeTypes: MimeTypeArray;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */
readonly pdfViewerEnabled: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/plugins)
*/
readonly plugins: PluginArray;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/javaEnabled)
*/
javaEnabled(): boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node)
*/
interface Node extends EventTarget {
/**
* Returns node's node document's document base URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI)
*/
readonly baseURI: string;
/**
* Returns the children.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes)
*/
readonly childNodes: NodeListOf<ChildNode>;
/**
* Returns the first child.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild)
*/
readonly firstChild: ChildNode | null;
/**
* Returns true if node is connected and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected)
*/
readonly isConnected: boolean;
/**
* Returns the last child.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild)
*/
readonly lastChild: ChildNode | null;
/**
* Returns the next sibling.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)
*/
readonly nextSibling: ChildNode | null;
/**
* Returns a string appropriate for the type of node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName)
*/
readonly nodeName: string;
/**
* Returns the type of node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType)
*/
readonly nodeType: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) */
nodeValue: string | null;
/**
* Returns the node document. Returns null for documents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument)
*/
readonly ownerDocument: Document | null;
/**
* Returns the parent element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement)
*/
readonly parentElement: HTMLElement | null;
/**
* Returns the parent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode)
*/
readonly parentNode: ParentNode | null;
/**
* Returns the previous sibling.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling)
*/
readonly previousSibling: ChildNode | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent) */
textContent: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild) */
appendChild<T extends Node>(node: T): T;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode)
*/
cloneNode(deep?: boolean): Node;
/**
* Returns a bitmask indicating the position of other relative to node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition)
*/
compareDocumentPosition(other: Node): number;
/**
* Returns true if other is an inclusive descendant of node, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains)
*/
contains(other: Node | null): boolean;
/**
* Returns node's root.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode)
*/
getRootNode(options?: GetRootNodeOptions): Node;
/**
* Returns whether node has children.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes)
*/
hasChildNodes(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) */
insertBefore<T extends Node>(node: T, child: Node | null): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) */
isDefaultNamespace(namespace: string | null): boolean;
/**
* Returns whether node and otherNode have the same properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode)
*/
isEqualNode(otherNode: Node | null): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) */
isSameNode(otherNode: Node | null): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) */
lookupNamespaceURI(prefix: string | null): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize)
*/
normalize(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild) */
removeChild<T extends Node>(child: T): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator)
*/
interface NodeIterator {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter) */
readonly filter: NodeFilter | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode) */
readonly pointerBeforeReferenceNode: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode) */
readonly referenceNode: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/root) */
readonly root: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow) */
readonly whatToShow: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/detach)
*/
detach(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode) */
nextNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/previousNode) */
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().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList)
*/
interface NodeList {
/**
* Returns the number of nodes in the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length)
*/
readonly length: number;
/**
* Returns the node with index index from the collection. The nodes are sorted in tree order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling)
*/
readonly nextElementSibling: Element | null;
/**
* Returns the first preceding sibling that is an element, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling)
*/
readonly previousElementSibling: Element | null;
}
interface NonElementParentNode {
/**
* Returns the first element within node's descendants whose ID is elementId.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementById)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
*/
interface Notification extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */
readonly badge: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */
readonly body: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */
readonly data: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */
readonly dir: NotificationDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */
readonly icon: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */
readonly lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */
onclick: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */
onclose: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */
onerror: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
onshow: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */
readonly requireInteraction: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
readonly silent: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
readonly tag: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
readonly title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */
readonly permission: NotificationPermission;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static) */
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */
interface OES_draw_buffers_indexed {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */
blendEquationiOES(buf: GLuint, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */
disableiOES(target: GLenum, index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */
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().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)
*/
interface OES_element_index_uint {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)
*/
interface OES_texture_half_float_linear {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */
interface OES_vertex_array_object {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */
interface OVR_multiview2 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent)
*/
interface OfflineAudioCompletionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext)
*/
interface OfflineAudioContext extends BaseAudioContext {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/complete_event) */
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume) */
resume(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/startRendering) */
startRendering(): Promise<AudioBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/suspend) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/**
* The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode)
*/
interface OscillatorNode extends AudioScheduledSourceNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/detune) */
readonly detune: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/frequency) */
readonly frequency: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/type) */
type: OscillatorType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/setPeriodicWave) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) */
interface OverconstrainedError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent)
*/
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent/persisted)
*/
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!
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode)
*/
interface PannerNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneInnerAngle) */
coneInnerAngle: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterAngle) */
coneOuterAngle: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterGain) */
coneOuterGain: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/distanceModel) */
distanceModel: DistanceModelType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/maxDistance) */
maxDistance: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationX) */
readonly orientationX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationY) */
readonly orientationY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationZ) */
readonly orientationZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/panningModel) */
panningModel: PanningModelType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionX) */
readonly positionX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionY) */
readonly positionY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionZ) */
readonly positionZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/refDistance) */
refDistance: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/rolloffFactor) */
rolloffFactor: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setOrientation)
*/
setOrientation(x: number, y: number, z: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setPosition)
*/
setPosition(x: number, y: number, z: number): void;
}
declare var PannerNode: {
prototype: PannerNode;
new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
};
interface ParentNode extends Node {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) */
readonly childElementCount: number;
/**
* Returns the child elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/children)
*/
readonly children: HTMLCollection;
/**
* Returns the first child that is an element, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild)
*/
readonly firstElementChild: Element | null;
/**
* Returns the last child that is an element, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/prepend)
*/
prepend(...nodes: (Node | string)[]): void;
/**
* Returns the first element that is a descendant of node that matches selectors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
*/
interface Path2D extends CanvasPath {
/**
* Adds to the path the path given by the argument.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)
*/
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent)
*/
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */
readonly methodDetails: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodName) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest)
*/
interface PaymentRequest extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */
abort(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */
canMakePayment(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/show) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent)
*/
interface PaymentRequestUpdateEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent/updateWith) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse)
*/
interface PaymentResponse extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */
readonly details: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
readonly methodName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */
readonly requestId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */
complete(result?: PaymentComplete): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */
retry(errorFields?: PaymentValidationErrors): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)
*/
interface Performance extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts) */
readonly eventCounts: EventCounts;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/navigation)
*/
readonly navigation: PerformanceNavigation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */
readonly timeOrigin: DOMHighResTimeStamp;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timing)
*/
readonly timing: PerformanceTiming;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */
clearMarks(markName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */
clearMeasures(measureName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */
clearResourceTimings(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */
getEntriesByType(type: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */
now(): DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */
setResourceTimingBufferSize(maxSize: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
*/
interface PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */
readonly entryType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */
readonly startTime: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming) */
interface PerformanceEventTiming extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable) */
readonly cancelable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingEnd) */
readonly processingEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingStart) */
readonly processingStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/target) */
readonly target: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceEventTiming: {
prototype: PerformanceEventTiming;
new(): PerformanceEventTiming;
};
/**
* PerformanceMark is 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
*/
interface PerformanceMark extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
*/
interface PerformanceMeasure extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation)
*/
interface PerformanceNavigation {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/redirectCount)
*/
readonly redirectCount: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/type)
*/
readonly type: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming)
*/
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domComplete) */
readonly domComplete: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd) */
readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart) */
readonly domContentLoadedEventStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domInteractive) */
readonly domInteractive: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd) */
readonly loadEventEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventStart) */
readonly loadEventStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/redirectCount) */
readonly redirectCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type) */
readonly type: NavigationTimingType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd) */
readonly unloadEventEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart) */
readonly unloadEventStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceNavigationTiming: {
prototype: PerformanceNavigationTiming;
new(): PerformanceNavigationTiming;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */
interface PerformanceObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */
observe(options?: PerformanceObserverInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */
readonly supportedEntryTypes: ReadonlyArray<string>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */
interface PerformanceObserverEntryList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
*/
interface PerformanceResourceTiming extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */
readonly connectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */
readonly connectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */
readonly decodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */
readonly domainLookupEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */
readonly domainLookupStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */
readonly encodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */
readonly fetchStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */
readonly initiatorType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */
readonly nextHopProtocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */
readonly redirectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */
readonly redirectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */
readonly requestStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */
readonly responseEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */
readonly responseStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */
readonly secureConnectionStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */
readonly transferSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */
readonly workerStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */
interface PerformanceServerTiming {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */
readonly description: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming)
*/
interface PerformanceTiming {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectEnd)
*/
readonly connectEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectStart)
*/
readonly connectStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domComplete)
*/
readonly domComplete: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)
*/
readonly domContentLoadedEventEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)
*/
readonly domContentLoadedEventStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domInteractive)
*/
readonly domInteractive: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domLoading)
*/
readonly domLoading: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupEnd)
*/
readonly domainLookupEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupStart)
*/
readonly domainLookupStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/fetchStart)
*/
readonly fetchStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventEnd)
*/
readonly loadEventEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventStart)
*/
readonly loadEventStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/navigationStart)
*/
readonly navigationStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectEnd)
*/
readonly redirectEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectStart)
*/
readonly redirectStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/requestStart)
*/
readonly requestStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseEnd)
*/
readonly responseEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseStart)
*/
readonly responseStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/secureConnectionStart)
*/
readonly secureConnectionStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventEnd)
*/
readonly unloadEventEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventStart)
*/
readonly unloadEventStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON)
*/
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().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PeriodicWave)
*/
interface PeriodicWave {
}
declare var PeriodicWave: {
prototype: PeriodicWave;
new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
};
interface PermissionStatusEventMap {
"change": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */
interface PermissionStatus extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */
interface Permissions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent) */
interface PictureInPictureEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow) */
readonly pictureInPictureWindow: PictureInPictureWindow;
}
declare var PictureInPictureEvent: {
prototype: PictureInPictureEvent;
new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;
};
interface PictureInPictureWindowEventMap {
"resize": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow) */
interface PictureInPictureWindow extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/resize_event) */
onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width) */
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin)
*/
interface Plugin {
/**
* Returns the plugin's description.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/description)
*/
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/filename)
*/
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/name)
*/
readonly name: string;
/**
* Returns the specified MimeType object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/item)
*/
item(index: number): MimeType | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/namedItem)
*/
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 property. 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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray)
*/
interface PluginArray {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/length)
*/
readonly length: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/item)
*/
item(index: number): Plugin | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/namedItem)
*/
namedItem(name: string): Plugin | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/refresh)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent)
*/
interface PointerEvent extends MouseEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */
readonly isPrimary: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerId) */
readonly pointerId: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerType) */
readonly pointerType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pressure) */
readonly pressure: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tangentialPressure) */
readonly tangentialPressure: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltX) */
readonly tiltX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltY) */
readonly tiltY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/twist) */
readonly twist: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/width) */
readonly width: number;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents)
*/
getCoalescedEvents(): PointerEvent[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)
*/
interface PopStateEvent extends Event {
/**
* Returns a copy of the information that was provided to pushState() or replaceState().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/state)
*/
readonly state: any;
}
declare var PopStateEvent: {
prototype: PopStateEvent;
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
};
interface PopoverInvokerElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */
popoverTargetAction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */
popoverTargetElement: Element | null;
}
/**
* A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)
*/
interface ProcessingInstruction extends CharacterData, LinkStyle {
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target) */
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>).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
*/
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */
readonly lengthComputable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */
readonly loaded: number;
readonly target: T | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */
interface PromiseRejectionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
readonly promise: Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential)
*/
interface PublicKeyCredential extends Credential {
readonly authenticatorAttachment: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */
readonly rawId: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response) */
readonly response: AuthenticatorResponse;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
}
declare var PublicKeyCredential: {
prototype: PublicKeyCredential;
new(): PublicKeyCredential;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable) */
isConditionalMediationAvailable(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)
*/
interface PushManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */
getSubscription(): Promise<PushSubscription | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
*/
interface PushSubscription {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */
readonly endpoint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */
readonly expirationTime: EpochTimeStamp | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */
readonly options: PushSubscriptionOptions;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */
toJSON(): PushSubscriptionJSON;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
*/
interface PushSubscriptionOptions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */
readonly applicationServerKey: ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate) */
interface RTCCertificate {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/expires) */
readonly expires: EpochTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/getFingerprints) */
getFingerprints(): RTCDtlsFingerprint[];
}
declare var RTCCertificate: {
prototype: RTCCertificate;
new(): RTCCertificate;
};
interface RTCDTMFSenderEventMap {
"tonechange": RTCDTMFToneChangeEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender) */
interface RTCDTMFSender extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/canInsertDTMF) */
readonly canInsertDTMF: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/tonechange_event) */
ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer) */
readonly toneBuffer: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/insertDTMF) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent)
*/
interface RTCDTMFToneChangeEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent/tone) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel) */
interface RTCDataChannel extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) */
binaryType: BinaryType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) */
readonly bufferedAmount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) */
bufferedAmountLowThreshold: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) */
readonly id: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) */
readonly label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) */
readonly maxPacketLifeTime: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) */
readonly maxRetransmits: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) */
readonly negotiated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) */
readonly ordered: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) */
readonly protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) */
readonly readyState: RTCDataChannelState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent) */
interface RTCDataChannelEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent/channel) */
readonly channel: RTCDataChannel;
}
declare var RTCDataChannelEvent: {
prototype: RTCDataChannelEvent;
new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
};
interface RTCDtlsTransportEventMap {
"error": Event;
"statechange": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport) */
interface RTCDtlsTransport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */
readonly iceTransport: RTCIceTransport;
onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/statechange_event) */
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */
readonly state: RTCDtlsTransportState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */
interface RTCEncodedAudioFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */
interface RTCEncodedVideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */
readonly type: RTCEncodedVideoFrameType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError) */
interface RTCError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/errorDetail) */
readonly errorDetail: RTCErrorDetailType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/receivedAlert) */
readonly receivedAlert: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sctpCauseCode) */
readonly sctpCauseCode: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sdpLineNumber) */
readonly sdpLineNumber: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sentAlert) */
readonly sentAlert: number | null;
}
declare var RTCError: {
prototype: RTCError;
new(init: RTCErrorInit, message?: string): RTCError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent) */
interface RTCErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent/error) */
readonly error: RTCError;
}
declare var RTCErrorEvent: {
prototype: RTCErrorEvent;
new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
};
/**
* The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate)
*/
interface RTCIceCandidate {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/address) */
readonly address: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/candidate) */
readonly candidate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/component) */
readonly component: RTCIceComponent | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/foundation) */
readonly foundation: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/port) */
readonly port: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/priority) */
readonly priority: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/protocol) */
readonly protocol: RTCIceProtocol | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedAddress) */
readonly relatedAddress: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedPort) */
readonly relatedPort: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMLineIndex) */
readonly sdpMLineIndex: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMid) */
readonly sdpMid: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/tcpType) */
readonly tcpType: RTCIceTcpCandidateType | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/type) */
readonly type: RTCIceCandidateType | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/usernameFragment) */
readonly usernameFragment: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/toJSON) */
toJSON(): RTCIceCandidateInit;
}
declare var RTCIceCandidate: {
prototype: RTCIceCandidate;
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
};
interface RTCIceTransportEventMap {
"gatheringstatechange": Event;
"selectedcandidatepairchange": Event;
"statechange": Event;
}
/**
* Provides access to information about the ICE transport layer over which the data is being sent and received.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport)
*/
interface RTCIceTransport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringState) */
readonly gatheringState: RTCIceGathererState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringstatechange_event) */
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/selectedcandidatepairchange_event) */
onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */
onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state) */
readonly state: RTCIceTransportState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/getSelectedCandidatePair) */
getSelectedCandidatePair(): RTCIceCandidatePair | null;
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": RTCPeerConnectionIceErrorEvent;
"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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection)
*/
interface RTCPeerConnection extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates) */
readonly canTrickleIceCandidates: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionState) */
readonly connectionState: RTCPeerConnectionState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentLocalDescription) */
readonly currentLocalDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentRemoteDescription) */
readonly currentRemoteDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceConnectionState) */
readonly iceConnectionState: RTCIceConnectionState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceGatheringState) */
readonly iceGatheringState: RTCIceGatheringState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/localDescription) */
readonly localDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionstatechange_event) */
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/datachannel_event) */
ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidate_event) */
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */
onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event) */
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/negotiationneeded_event) */
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingstatechange_event) */
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/track_event) */
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription) */
readonly pendingLocalDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingRemoteDescription) */
readonly pendingRemoteDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/remoteDescription) */
readonly remoteDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/sctp) */
readonly sctp: RTCSctpTransport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState) */
readonly signalingState: RTCSignalingState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate) */
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
/** @deprecated */
addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack) */
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver) */
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createAnswer) */
createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createDataChannel) */
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createOffer) */
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getConfiguration) */
getConfiguration(): RTCConfiguration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getReceivers) */
getReceivers(): RTCRtpReceiver[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getSenders) */
getSenders(): RTCRtpSender[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getStats) */
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getTransceivers) */
getTransceivers(): RTCRtpTransceiver[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/removeTrack) */
removeTrack(sender: RTCRtpSender): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/restartIce) */
restartIce(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setConfiguration) */
setConfiguration(configuration?: RTCConfiguration): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setLocalDescription) */
setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
/** @deprecated */
setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setRemoteDescription) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static) */
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent) */
interface RTCPeerConnectionIceErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address) */
readonly address: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
readonly errorCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
readonly errorText: string;
readonly port: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent)
*/
interface RTCPeerConnectionIceEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent/candidate) */
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 MediaStreamTrack on an RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)
*/
interface RTCRtpReceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */
readonly track: MediaStreamTrack;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */
transform: RTCRtpTransform | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport) */
readonly transport: RTCDtlsTransport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources) */
getContributingSources(): RTCRtpContributingSource[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters) */
getParameters(): RTCRtpReceiveParameters;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats) */
getStats(): Promise<RTCStatsReport>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources) */
getSynchronizationSources(): RTCRtpSynchronizationSource[];
}
declare var RTCRtpReceiver: {
prototype: RTCRtpReceiver;
new(): RTCRtpReceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static) */
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransform) */
interface RTCRtpScriptTransform {
}
declare var RTCRtpScriptTransform: {
prototype: RTCRtpScriptTransform;
new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform;
};
/**
* Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender)
*/
interface RTCRtpSender {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/dtmf) */
readonly dtmf: RTCDTMFSender | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track) */
readonly track: MediaStreamTrack | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform) */
transform: RTCRtpTransform | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport) */
readonly transport: RTCDtlsTransport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters) */
getParameters(): RTCRtpSendParameters;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getStats) */
getStats(): Promise<RTCStatsReport>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack) */
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters) */
setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams) */
setStreams(...streams: MediaStream[]): void;
}
declare var RTCRtpSender: {
prototype: RTCRtpSender;
new(): RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static) */
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver) */
interface RTCRtpTransceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/currentDirection) */
readonly currentDirection: RTCRtpTransceiverDirection | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/direction) */
direction: RTCRtpTransceiverDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/mid) */
readonly mid: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/receiver) */
readonly receiver: RTCRtpReceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */
readonly sender: RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */
stop(): void;
}
declare var RTCRtpTransceiver: {
prototype: RTCRtpTransceiver;
new(): RTCRtpTransceiver;
};
interface RTCSctpTransportEventMap {
"statechange": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport) */
interface RTCSctpTransport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxChannels) */
readonly maxChannels: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize) */
readonly maxMessageSize: number;
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state) */
readonly state: RTCSctpTransportState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/transport) */
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—or potential connection—and 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription)
*/
interface RTCSessionDescription {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/sdp) */
readonly sdp: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type) */
readonly type: RTCSdpType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON) */
toJSON(): any;
}
declare var RTCSessionDescription: {
prototype: RTCSessionDescription;
new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */
interface RTCStatsReport {
forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
}
declare var RTCStatsReport: {
prototype: RTCStatsReport;
new(): RTCStatsReport;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent) */
interface RTCTrackEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver) */
readonly receiver: RTCRtpReceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/streams) */
readonly streams: ReadonlyArray<MediaStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/track) */
readonly track: MediaStreamTrack;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/transceiver) */
readonly transceiver: RTCRtpTransceiver;
}
declare var RTCTrackEvent: {
prototype: RTCTrackEvent;
new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList) */
interface RadioNodeList extends NodeList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value) */
value: string;
}
declare var RadioNodeList: {
prototype: RadioNodeList;
new(): RadioNodeList;
};
/**
* A fragment of a document that can contain nodes and parts of text nodes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
*/
readonly commonAncestorContainer: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneContents) */
cloneContents(): DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneRange) */
cloneRange(): Range;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/collapse) */
collapse(toStart?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints) */
compareBoundaryPoints(how: number, sourceRange: Range): number;
/**
* Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/comparePoint)
*/
comparePoint(node: Node, offset: number): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */
createContextualFragment(fragment: string): DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */
deleteContents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */
detach(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/extractContents) */
extractContents(): DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect) */
getBoundingClientRect(): DOMRect;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getClientRects) */
getClientRects(): DOMRectList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/insertNode) */
insertNode(node: Node): void;
/**
* Returns whether range intersects node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode)
*/
intersectsNode(node: Node): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange) */
isPointInRange(node: Node, offset: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNode) */
selectNode(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents) */
selectNodeContents(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEnd) */
setEnd(node: Node, offset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter) */
setEndAfter(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore) */
setEndBefore(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStart) */
setStart(node: Node, offset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter) */
setStartAfter(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore) */
setStartBefore(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/surroundContents) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
interface ReadableByteStreamController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
readonly byobRequest: ReadableStreamBYOBRequest | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */
enqueue(chunk: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
*/
interface ReadableStream<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
cancel(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */
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>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream): ReadableStreamBYOBReader;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
interface ReadableStreamBYOBRequest {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
readonly view: ArrayBufferView | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
respond(bytesWritten: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
respondWithNewView(view: ArrayBufferView): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
interface ReadableStreamDefaultController<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */
enqueue(chunk?: R): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
read(): Promise<ReadableStreamReadResult<R>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
cancel(reason?: any): Promise<void>;
}
interface RemotePlaybackEventMap {
"connect": Event;
"connecting": Event;
"disconnect": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback) */
interface RemotePlayback extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connect_event) */
onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connecting_event) */
onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/disconnect_event) */
ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state) */
readonly state: RemotePlaybackState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability) */
cancelWatchAvailability(id?: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt) */
prompt(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */
interface Report {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */
readonly body: ReportBody | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */
readonly url: string;
toJSON(): any;
}
declare var Report: {
prototype: Report;
new(): Report;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */
interface ReportBody {
toJSON(): any;
}
declare var ReportBody: {
prototype: ReportBody;
new(): ReportBody;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */
interface ReportingObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */
observe(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */
takeRecords(): ReportList;
}
declare var ReportingObserver: {
prototype: ReportingObserver;
new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
};
/**
* This Fetch API interface represents a resource request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
*/
readonly credentials: RequestCredentials;
/**
* Returns the kind of resource requested by request, e.g., "document" or "script".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
*/
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]
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
*/
readonly integrity: string;
/**
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
*/
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
*/
readonly referrer: string;
/**
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
*/
readonly signal: AbortSignal;
/**
* Returns the URL of request as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
*/
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver) */
interface ResizeObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/observe) */
observe(target: Element, options?: ResizeObserverOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/unobserve) */
unobserve(target: Element): void;
}
declare var ResizeObserver: {
prototype: ResizeObserver;
new(callback: ResizeObserverCallback): ResizeObserver;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry) */
interface ResizeObserverEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/borderBoxSize) */
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentBoxSize) */
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect) */
readonly contentRect: DOMRectReadOnly;
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target) */
readonly target: Element;
}
declare var ResizeObserverEntry: {
prototype: ResizeObserverEntry;
new(): ResizeObserverEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize) */
interface ResizeObserverSize {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/blockSize) */
readonly blockSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/inlineSize) */
readonly inlineSize: number;
}
declare var ResizeObserverSize: {
prototype: ResizeObserverSize;
new(): ResizeObserverSize;
};
/**
* This Fetch API interface represents the response to a request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
*/
interface Response extends Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */
readonly headers: Headers;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */
readonly ok: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */
readonly redirected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */
readonly statusText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */
readonly type: ResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
error(): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */
json(data: any, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
redirect(url: string | URL, status?: number): Response;
};
/**
* Provides access to the properties of <a> element, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
*/
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
rel: string;
readonly relList: DOMTokenList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateElement) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateMotionElement) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateTransformElement) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect)
*/
interface SVGAnimatedRect {
readonly animVal: DOMRectReadOnly;
readonly baseVal: DOMRect;
}
declare var SVGAnimatedRect: {
prototype: SVGAnimatedRect;
new(): SVGAnimatedRect;
};
/**
* The SVGAnimatedString interface 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 inside this.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString)
*/
interface SVGAnimatedString {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal) */
readonly animVal: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal) */
baseVal: string;
}
declare var SVGAnimatedString: {
prototype: SVGAnimatedString;
new(): SVGAnimatedString;
};
/**
* Used for attributes which take a list of numbers and which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList)
*/
interface SVGAnimatedTransformList {
readonly animVal: SVGTransformList;
readonly baseVal: SVGTransformList;
}
declare var SVGAnimatedTransformList: {
prototype: SVGAnimatedTransformList;
new(): SVGAnimatedTransformList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement) */
interface SVGAnimationElement extends SVGElement, SVGTests {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement)
*/
interface SVGCircleElement extends SVGGeometryElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cx) */
readonly cx: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy) */
readonly cy: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/r) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement)
*/
interface SVGClipPathElement extends SVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/clipPathUnits) */
readonly clipPathUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/transform) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDefsElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDescElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement)
*/
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1) */
readonly in1: SVGAnimatedString;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type) */
readonly type: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/values) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFloodElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncAElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncBElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncGElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncRElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement)
*/
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/preserveAspectRatio) */
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/viewBox) */
readonly viewBox: SVGAnimatedRect;
}
/**
* Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGElement)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement) */
interface SVGGeometryElement extends SVGGraphicsElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/pathLength) */
readonly pathLength: SVGAnimatedNumber;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength) */
getPointAtLength(distance: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getTotalLength) */
getTotalLength(): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInFill) */
isPointInFill(point?: DOMPointInit): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInStroke) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement)
*/
interface SVGGraphicsElement extends SVGElement, SVGTests {
readonly transform: SVGAnimatedTransformList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement)
*/
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossorigin) */
crossOrigin: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height) */
readonly height: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio) */
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/width) */
readonly width: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/x) */
readonly x: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/y) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMPathElement) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement) */
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerHeight) */
readonly markerHeight: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerUnits) */
readonly markerUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerWidth) */
readonly markerWidth: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientAngle) */
readonly orientAngle: SVGAnimatedAngle;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientType) */
readonly orientType: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refX) */
readonly refX: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refY) */
readonly refY: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAngle) */
setOrientToAngle(angle: SVGAngle): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAuto) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement)
*/
interface SVGMaskElement extends SVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/height) */
readonly height: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskContentUnits) */
readonly maskContentUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskUnits) */
readonly maskUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/width) */
readonly width: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/x) */
readonly x: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMetadataElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber)
*/
interface SVGNumber {
value: number;
}
declare var SVGNumber: {
prototype: SVGNumber;
new(): SVGNumber;
};
/**
* The SVGNumberList defines a list of SVGNumber objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList) */
interface SVGPointList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/numberOfItems) */
readonly numberOfItems: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem) */
appendItem(newItem: DOMPoint): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/clear) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem) */
getItem(index: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize) */
initialize(newItem: DOMPoint): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore) */
insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem) */
removeItem(index: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolylineElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSetElement) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
*/
interface SVGStyleElement extends SVGElement, LinkStyle {
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/media) */
media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/title) */
title: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/type)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSwitchElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSymbolElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTSpanElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTitleElement)
*/
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(…) or matrix(…)) within a transform attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUnitTypes)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGViewElement)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen)
*/
interface Screen {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availHeight) */
readonly availHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availWidth) */
readonly availWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth) */
readonly colorDepth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/orientation) */
readonly orientation: ScreenOrientation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth) */
readonly pixelDepth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/width) */
readonly width: number;
}
declare var Screen: {
prototype: Screen;
new(): Screen;
};
interface ScreenOrientationEventMap {
"change": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation) */
interface ScreenOrientation extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) */
readonly angle: number;
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */
readonly type: OrientationType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode)
*/
interface ScriptProcessorNode extends AudioNode {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/bufferSize)
*/
readonly bufferSize: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/audioprocess_event)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
*/
interface SecurityPolicyViolationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */
readonly blockedURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */
readonly columnNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */
readonly disposition: SecurityPolicyViolationEventDisposition;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */
readonly documentURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */
readonly effectiveDirective: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */
readonly lineNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */
readonly originalPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */
readonly referrer: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */
readonly sample: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */
readonly sourceFile: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */
readonly statusCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
/**
* A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection)
*/
interface Selection {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode) */
readonly anchorNode: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */
readonly anchorOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */
readonly focusNode: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */
readonly focusOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed) */
readonly isCollapsed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount) */
readonly rangeCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/addRange) */
addRange(range: Range): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */
collapse(node: Node | null, offset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd) */
collapseToEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart) */
collapseToStart(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/containsNode) */
containsNode(node: Node, allowPartialContainment?: boolean): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument) */
deleteFromDocument(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */
empty(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend) */
extend(node: Node, offset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt) */
getRangeAt(index: number): Range;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/modify) */
modify(alter?: string, direction?: string, granularity?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */
removeAllRanges(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeRange) */
removeRange(range: Range): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren) */
selectAllChildren(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent) */
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */
setPosition(node: Node | null, offset?: number): void;
toString(): string;
}
declare var Selection: {
prototype: Selection;
new(): Selection;
};
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */
readonly scriptURL: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */
readonly state: ServiceWorkerState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */
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 ServiceWorkerContainer interface of the ServiceWorker API provides 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)
*/
interface ServiceWorkerContainer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */
readonly controller: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
readonly ready: Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
*/
interface ServiceWorkerRegistration extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */
readonly active: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */
readonly installing: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */
readonly navigationPreload: NavigationPreloadManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
readonly pushManager: PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */
readonly scope: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */
readonly updateViaCache: ServiceWorkerUpdateViaCache;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */
readonly waiting: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */
showNotification(title: string, options?: NotificationOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */
unregister(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
readonly delegatesFocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
readonly host: Element;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */
readonly mode: ShadowRootMode;
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker) */
interface SharedWorker extends EventTarget, AbstractWorker {
/**
* Returns sharedWorker's MessagePort object which can be used to communicate with the global environment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker/port)
*/
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) */
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 object. This can be made up of one or several media segments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer)
*/
interface SourceBuffer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowEnd) */
appendWindowEnd: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowStart) */
appendWindowStart: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/buffered) */
readonly buffered: TimeRanges;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode) */
mode: AppendMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
onabort: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
onerror: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset) */
timestampOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating) */
readonly updating: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort) */
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendBuffer) */
appendBuffer(data: BufferSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/changeType) */
changeType(type: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/remove) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList)
*/
interface SourceBufferList extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/addsourcebuffer_event) */
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/removesourcebuffer_event) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative) */
interface SpeechRecognitionAlternative {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */
readonly confidence: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */
readonly transcript: string;
}
declare var SpeechRecognitionAlternative: {
prototype: SpeechRecognitionAlternative;
new(): SpeechRecognitionAlternative;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult) */
interface SpeechRecognitionResult {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/isFinal) */
readonly isFinal: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */
item(index: number): SpeechRecognitionAlternative;
[index: number]: SpeechRecognitionAlternative;
}
declare var SpeechRecognitionResult: {
prototype: SpeechRecognitionResult;
new(): SpeechRecognitionResult;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList) */
interface SpeechRecognitionResultList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis)
*/
interface SpeechSynthesis extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/voiceschanged_event) */
onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused) */
readonly paused: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending) */
readonly pending: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speaking) */
readonly speaking: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/cancel) */
cancel(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/getVoices) */
getVoices(): SpeechSynthesisVoice[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pause) */
pause(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/resume) */
resume(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speak) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent) */
interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent/error) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent)
*/
interface SpeechSynthesisEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex) */
readonly charIndex: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charLength) */
readonly charLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/elapsedTime) */
readonly elapsedTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/utterance) */
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.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance)
*/
interface SpeechSynthesisUtterance extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/lang) */
lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/boundary_event) */
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/end_event) */
onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/error_event) */
onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/mark_event) */
onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pause_event) */
onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/resume_event) */
onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/start_event) */
onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch) */
pitch: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/rate) */
rate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text) */
text: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/voice) */
voice: SpeechSynthesisVoice | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/volume) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice)
*/
interface SpeechSynthesisVoice {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default) */
readonly default: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang) */
readonly lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService) */
readonly localService: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI) */
readonly voiceURI: string;
}
declare var SpeechSynthesisVoice: {
prototype: SpeechSynthesisVoice;
new(): SpeechSynthesisVoice;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StaticRange) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode)
*/
interface StereoPannerNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode/pan) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage)
*/
interface Storage {
/**
* Returns the number of key/value pairs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)
*/
readonly length: number;
/**
* Removes all key/value pairs, if there are any.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)
*/
clear(): void;
/**
* Returns the current value associated with the given key, or null if the given key does not exist.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent)
*/
interface StorageEvent extends Event {
/**
* Returns the key of the storage item being changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/key)
*/
readonly key: string | null;
/**
* Returns the new value of the key of the storage item whose value is being changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/newValue)
*/
readonly newValue: string | null;
/**
* Returns the old value of the key of the storage item whose value is being changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/oldValue)
*/
readonly oldValue: string | null;
/**
* Returns the Storage object that was affected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/storageArea)
*/
readonly storageArea: Storage | null;
/**
* Returns the URL of the document whose storage item changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/url)
*/
readonly url: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/initStorageEvent)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
*/
interface StorageManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */
estimate(): Promise<StorageEstimate>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */
getDirectory(): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persist) */
persist(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/** @deprecated */
interface StyleMedia {
type: string;
matchMedium(mediaquery: string): boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap) */
interface StylePropertyMap extends StylePropertyMapReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append) */
append(property: string, ...values: (CSSStyleValue | string)[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete) */
delete(property: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set) */
set(property: string, ...values: (CSSStyleValue | string)[]): void;
}
declare var StylePropertyMap: {
prototype: StylePropertyMap;
new(): StylePropertyMap;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */
interface StylePropertyMapReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */
get(property: string): undefined | CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */
getAll(property: string): CSSStyleValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */
has(property: string): boolean;
forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;
}
declare var StylePropertyMapReadOnly: {
prototype: StylePropertyMapReadOnly;
new(): StylePropertyMapReadOnly;
};
/**
* A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet)
*/
interface StyleSheet {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled) */
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) */
readonly href: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) */
readonly media: MediaList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) */
readonly ownerNode: Element | ProcessingInstruction | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) */
readonly parentStyleSheet: CSSStyleSheet | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/title) */
readonly title: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/type) */
readonly type: string;
}
declare var StyleSheet: {
prototype: StyleSheet;
new(): StyleSheet;
};
/**
* A list of StyleSheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList)
*/
interface StyleSheetList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item) */
item(index: number): CSSStyleSheet | null;
[index: number]: CSSStyleSheet;
}
declare var StyleSheetList: {
prototype: StyleSheetList;
new(): StyleSheetList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent/submitter)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
*/
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text)
*/
interface Text extends CharacterData, Slottable {
/**
* Returns the combined data of all direct Text node siblings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText)
*/
readonly wholeText: string;
/**
* Splits data at the given offset and returns the remainder as Text node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/splitText)
*/
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. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
*/
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/**
* Returns encoding's name, lowercased.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)
*/
readonly encoding: string;
/**
* Returns true if error mode is "fatal", otherwise false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)
*/
readonly fatal: boolean;
/**
* Returns the value of ignore BOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)
*/
readonly ignoreBOM: boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */
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 – a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
*/
interface TextEncoder extends TextEncoderCommon {
/**
* Returns the result of running UTF-8's encoder.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
*/
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/**
* Returns "utf-8".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
*/
readonly encoding: string;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
*/
interface TextMetrics {
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
*/
readonly actualBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
*/
readonly actualBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
*/
readonly actualBoundingBoxLeft: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
*/
readonly actualBoundingBoxRight: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
*/
readonly alphabeticBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
*/
readonly emHeightAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
*/
readonly emHeightDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
*/
readonly fontBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
*/
readonly fontBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
*/
readonly hangingBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
*/
readonly ideographicBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)
*/
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TextTrackEventMap {
"cuechange": Event;
}
/**
* This interface also inherits properties from EventTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/activeCues)
*/
readonly activeCues: TextTrackCueList | null;
/**
* Returns the text track list of cues, as a TextTrackCueList object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cues)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/id)
*/
readonly id: string;
/**
* Returns the text track in-band metadata track dispatch type string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)
*/
readonly inBandMetadataTrackDispatchType: string;
/**
* Returns the text track kind string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/kind)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/label)
*/
readonly label: string;
/**
* Returns the text track language string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/language)
*/
readonly language: string;
/**
* Returns the text track mode, represented by a string from the following list:
*
* Can be set, to change the mode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/mode)
*/
mode: TextTrackMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cuechange_event) */
oncuechange: ((this: TextTrack, ev: Event) => any) | null;
/**
* Adds the given cue to textTrack's text track list of cues.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/addCue)
*/
addCue(cue: TextTrackCue): void;
/**
* Removes the given cue from textTrack's text track list of cues.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/removeCue)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
*/
interface TextTrackCue extends EventTarget {
/**
* Returns the text track cue end time, in seconds.
*
* Can be set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/endTime)
*/
endTime: number;
/**
* Returns the text track cue identifier.
*
* Can be set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/id)
*/
id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/enter_event) */
onenter: ((this: TextTrackCue, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/exit_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/pauseOnExit)
*/
pauseOnExit: boolean;
/**
* Returns the text track cue start time, in seconds.
*
* Can be set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/startTime)
*/
startTime: number;
/**
* Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/track)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList) */
interface TextTrackCueList {
/**
* Returns the number of cues in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/length)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/getCueById)
*/
getCueById(id: string): TextTrackCue | null;
[index: number]: TextTrackCue;
}
declare var TextTrackCueList: {
prototype: TextTrackCueList;
new(): TextTrackCueList;
};
interface TextTrackListEventMap {
"addtrack": TrackEvent;
"change": Event;
"removetrack": TrackEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList) */
interface TextTrackList extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/addtrack_event) */
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/change_event) */
onchange: ((this: TextTrackList, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removetrack_event) */
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById) */
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> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges)
*/
interface TimeRanges {
/**
* Returns the number of ranges in the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/length)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/end)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/start)
*/
start(index: number): number;
}
declare var TimeRanges: {
prototype: TimeRanges;
new(): TimeRanges;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
interface ToggleEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
readonly newState: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
readonly oldState: string;
}
declare var ToggleEvent: {
prototype: ToggleEvent;
new(type: string, eventInitDict?: ToggleEventInit): ToggleEvent;
};
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch)
*/
interface Touch {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientX) */
readonly clientX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientY) */
readonly clientY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/force) */
readonly force: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/identifier) */
readonly identifier: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageX) */
readonly pageX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageY) */
readonly pageY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusX) */
readonly radiusX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusY) */
readonly radiusY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/rotationAngle) */
readonly rotationAngle: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenX) */
readonly screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenY) */
readonly screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/target) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent)
*/
interface TouchEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey) */
readonly altKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/changedTouches) */
readonly changedTouches: TouchList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/ctrlKey) */
readonly ctrlKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/metaKey) */
readonly metaKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/shiftKey) */
readonly shiftKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/targetTouches) */
readonly targetTouches: TouchList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/touches) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList)
*/
interface TouchList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/item) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent)
*/
interface TrackEvent extends Event {
/**
* Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent/track)
*/
readonly track: TextTrack | null;
}
declare var TrackEvent: {
prototype: TrackEvent;
new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */
interface TransformStream<I = any, O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
readonly readable: ReadableStream<O>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */
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>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
interface TransformStreamDefaultController<O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
enqueue(chunk?: O): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */
error(reason?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/**
* Events providing information related to transitions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent)
*/
interface TransitionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime) */
readonly elapsedTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/propertyName) */
readonly propertyName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/pseudoElement) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker)
*/
interface TreeWalker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode) */
currentNode: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter) */
readonly filter: NodeFilter | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/root) */
readonly root: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow) */
readonly whatToShow: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild) */
firstChild(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild) */
lastChild(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode) */
nextNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling) */
nextSibling(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode) */
parentNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode) */
previousNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling) */
previousSibling(): Node | null;
}
declare var TreeWalker: {
prototype: TreeWalker;
new(): TreeWalker;
};
/**
* Simple user interface events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent)
*/
interface UIEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail) */
readonly detail: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/view) */
readonly view: Window | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/which)
*/
readonly which: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/initUIEvent)
*/
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 interface represents an object providing static methods used for creating object URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
*/
interface URL {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
hash: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
host: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
hostname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
href: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
password: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
pathname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
port: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
search: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */
readonly searchParams: URLSearchParams;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
username: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
canParse(url: string | URL, base?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
createObjectURL(obj: Blob | MediaSource): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
revokeObjectURL(url: string): void;
};
type webkitURL = URL;
declare var webkitURL: typeof URL;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
interface URLSearchParams {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
readonly size: number;
/**
* Appends a specified key/value pair as a new search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
*/
append(name: string, value: string): void;
/**
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
*/
delete(name: string, value?: string): void;
/**
* Returns the first value associated to the given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
*/
get(name: string): string | null;
/**
* Returns all the values association with a given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
*/
getAll(name: string): string[];
/**
* Returns a Boolean indicating if such a search parameter exists.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
*/
has(name: string, value?: string): boolean;
/**
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
*/
set(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation) */
interface UserActivation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */
readonly hasBeenActive: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */
readonly isActive: boolean;
}
declare var UserActivation: {
prototype: UserActivation;
new(): UserActivation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue) */
interface VTTCue extends TextTrackCue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/align) */
align: AlignSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/line) */
line: LineAndPositionSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/lineAlign) */
lineAlign: LineAlignSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/position) */
position: LineAndPositionSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/positionAlign) */
positionAlign: PositionAlignSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/region) */
region: VTTRegion | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/size) */
size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/snapToLines) */
snapToLines: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/text) */
text: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/vertical) */
vertical: DirectionSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/getCueAsHTML) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */
interface VTTRegion {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */
id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */
lines: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */
regionAnchorX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */
regionAnchorY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */
scroll: ScrollSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */
viewportAnchorX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */
viewportAnchorY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState)
*/
interface ValidityState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */
readonly badInput: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */
readonly customError: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */
readonly patternMismatch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow) */
readonly rangeOverflow: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow) */
readonly rangeUnderflow: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch) */
readonly stepMismatch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong) */
readonly tooLong: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort) */
readonly tooShort: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */
readonly typeMismatch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */
readonly valid: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */
readonly valueMissing: boolean;
}
declare var ValidityState: {
prototype: ValidityState;
new(): ValidityState;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */
interface VideoColorSpace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */
readonly fullRange: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */
readonly matrix: VideoMatrixCoefficients | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */
readonly primaries: VideoColorPrimaries | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */
readonly transfer: VideoTransferCharacteristics | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */
toJSON(): VideoColorSpaceInit;
}
declare var VideoColorSpace: {
prototype: VideoColorSpace;
new(init?: VideoColorSpaceInit): VideoColorSpace;
};
interface VideoDecoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
*/
interface VideoDecoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */
readonly decodeQueueSize: number;
ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */
configure(config: VideoDecoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */
decode(chunk: EncodedVideoChunk): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoDecoder: {
prototype: VideoDecoder;
new(init: VideoDecoderInit): VideoDecoder;
isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};
interface VideoEncoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
*/
interface VideoEncoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */
readonly encodeQueueSize: number;
ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */
configure(config: VideoEncoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */
encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoEncoder: {
prototype: VideoEncoder;
new(init: VideoEncoderInit): VideoEncoder;
isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */
interface VideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */
readonly codedHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */
readonly codedRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */
readonly codedWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */
readonly colorSpace: VideoColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */
readonly displayHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */
readonly displayWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */
readonly format: VideoPixelFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */
readonly visibleRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */
allocationSize(options?: VideoFrameCopyToOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */
clone(): VideoFrame;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */
close(): void;
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
declare var VideoFrame: {
prototype: VideoFrame;
new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;
};
/**
* Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality)
*/
interface VideoPlaybackQuality {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames)
*/
readonly corruptedVideoFrames: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/creationTime) */
readonly creationTime: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames) */
readonly droppedVideoFrames: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/totalVideoFrames) */
readonly totalVideoFrames: number;
}
declare var VideoPlaybackQuality: {
prototype: VideoPlaybackQuality;
new(): VideoPlaybackQuality;
};
interface VisualViewportEventMap {
"resize": Event;
"scroll": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport) */
interface VisualViewport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft) */
readonly offsetLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetTop) */
readonly offsetTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/resize_event) */
onresize: ((this: VisualViewport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft) */
readonly pageLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageTop) */
readonly pageTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scale) */
readonly scale: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/width) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */
interface WEBGL_color_buffer_float {
readonly RGBA32F_EXT: 0x8814;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */
interface WEBGL_compressed_texture_astc {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */
interface WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;
}
/**
* The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)
*/
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)
*/
interface WEBGL_debug_renderer_info {
readonly UNMASKED_VENDOR_WEBGL: 0x9245;
readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */
interface WEBGL_debug_shaders {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */
getTranslatedShaderSource(shader: WebGLShader): string;
}
/**
* The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)
*/
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */
interface WEBGL_draw_buffers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */
interface WEBGL_lose_context {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */
loseContext(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */
restoreContext(): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock)
*/
interface WakeLock {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock/request) */
request(type?: WakeLockType): Promise<WakeLockSentinel>;
}
declare var WakeLock: {
prototype: WakeLock;
new(): WakeLock;
};
interface WakeLockSentinelEventMap {
"release": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel)
*/
interface WakeLockSentinel extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release_event) */
onrelease: ((this: WakeLockSentinel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released) */
readonly released: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/type) */
readonly type: WakeLockType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release) */
release(): Promise<void>;
addEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WakeLockSentinel: {
prototype: WakeLockSentinel;
new(): WakeLockSentinel;
};
/**
* A WaveShaperNode always has exactly one input and one output.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode)
*/
interface WaveShaperNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/curve) */
curve: Float32Array | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/oversample) */
oversample: OverSampleType;
}
declare var WaveShaperNode: {
prototype: WaveShaperNode;
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */
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 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 RGBA8: 0x8058;
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */
beginQuery(target: GLenum, query: WebGLQuery): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */
beginTransformFeedback(primitiveMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */
bindVertexArray(array: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
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?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
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?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */
createQuery(): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */
createSampler(): WebGLSampler | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */
createTransformFeedback(): WebGLTransformFeedback | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */
createVertexArray(): WebGLVertexArrayObject | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */
deleteQuery(query: WebGLQuery | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */
deleteSampler(sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */
deleteSync(sync: WebGLSync | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */
endQuery(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */
endTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */
getFragDataLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */
getIndexedParameter(target: GLenum, index: GLuint): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */
isQuery(query: WebGLQuery | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */
isSampler(sampler: WebGLSampler | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */
isSync(sync: WebGLSync | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */
pauseTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */
readBuffer(src: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */
resumeTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */
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: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */
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?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */
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 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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
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?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
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?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
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: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
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: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
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: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
}
/**
* Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)
*/
interface WebGLActiveInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */
readonly size: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)
*/
interface WebGLContextEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)
*/
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)
*/
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 RGBA8: 0x8058;
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
drawingBufferColorSpace: PredefinedColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
readonly drawingBufferHeight: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */
readonly drawingBufferWidth: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */
activeTexture(texture: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */
attachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */
blendEquation(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */
checkFramebufferStatus(target: GLenum): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */
clear(mask: GLbitfield): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */
clearDepth(depth: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */
clearStencil(s: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */
compileShader(shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */
createBuffer(): WebGLBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */
createFramebuffer(): WebGLFramebuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */
createProgram(): WebGLProgram | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */
createRenderbuffer(): WebGLRenderbuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */
createShader(type: GLenum): WebGLShader | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */
createTexture(): WebGLTexture | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */
cullFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */
deleteBuffer(buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */
deleteProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */
deleteShader(shader: WebGLShader | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */
deleteTexture(texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */
depthFunc(func: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */
depthMask(flag: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */
depthRange(zNear: GLclampf, zFar: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */
detachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */
disable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */
disableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */
enable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */
enableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */
finish(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */
flush(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */
frontFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */
generateMipmap(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */
getAttribLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */
getBufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */
getContextAttributes(): WebGLContextAttributes | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
getError(): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
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_pvrtc"): WEBGL_compressed_texture_pvrtc | 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
getParameter(pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */
getProgramInfoLog(program: WebGLProgram): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */
getShaderInfoLog(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */
getShaderSource(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */
getSupportedExtensions(): string[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */
getTexParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */
getVertexAttrib(index: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */
hint(target: GLenum, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */
isBuffer(buffer: WebGLBuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */
isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */
isEnabled(cap: GLenum): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */
isProgram(program: WebGLProgram | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */
isShader(shader: WebGLShader | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */
linkProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */
polygonOffset(factor: GLfloat, units: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */
sampleCoverage(value: GLclampf, invert: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */
shaderSource(shader: WebGLShader, source: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */
stencilMask(mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */
useProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */
validateProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1f(index: GLuint, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */
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 RGBA8: 0x8058;
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)
*/
interface WebGLShaderPrecisionFormat {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */
readonly precision: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */
readonly rangeMax: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)
*/
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)
*/
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
*/
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".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
*/
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.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
*/
readonly bufferedAmount: number;
/**
* Returns the extensions selected by the server, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
*/
readonly extensions: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */
onerror: ((this: WebSocket, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
*/
readonly protocol: string;
/**
* Returns the state of the WebSocket object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
*/
readonly readyState: number;
/**
* Returns the URL that was used to establish the WebSocket connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
close(code?: number, reason?: string): void;
/**
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
*/
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;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
*/
interface WebTransport {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */
readonly closed: Promise<WebTransportCloseInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */
readonly datagrams: WebTransportDatagramDuplexStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */
readonly incomingBidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */
readonly incomingUnidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */
close(closeInfo?: WebTransportCloseInfo): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
}
declare var WebTransport: {
prototype: WebTransport;
new(url: string | URL, options?: WebTransportOptions): WebTransport;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
*/
interface WebTransportBidirectionalStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportBidirectionalStream: {
prototype: WebTransportBidirectionalStream;
new(): WebTransportBidirectionalStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
*/
interface WebTransportDatagramDuplexStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */
incomingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */
incomingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */
readonly maxDatagramSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */
outgoingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */
outgoingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportDatagramDuplexStream: {
prototype: WebTransportDatagramDuplexStream;
new(): WebTransportDatagramDuplexStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
*/
interface WebTransportError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */
readonly source: WebTransportErrorSource;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */
readonly streamErrorCode: number | null;
}
declare var WebTransportError: {
prototype: WebTransportError;
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
};
/**
* Events that occur due to the user moving a mouse wheel or similar input device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent)
*/
interface WheelEvent extends MouseEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode) */
readonly deltaMode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaX) */
readonly deltaX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaY) */
readonly deltaY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaZ) */
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;
"deviceorientationabsolute": 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window)
*/
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
/**
* @deprecated This is a legacy alias of \`navigator\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)
*/
readonly clientInformation: Navigator;
/**
* Returns true if the window has been closed, false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)
*/
readonly closed: boolean;
/**
* Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)
*/
readonly customElements: CustomElementRegistry;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */
readonly devicePixelRatio: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */
readonly document: Document;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)
*/
readonly event: Event | undefined;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)
*/
readonly external: External;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */
readonly frameElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */
readonly frames: WindowProxy;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */
readonly history: History;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */
readonly innerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */
readonly innerWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */
get location(): Location;
set location(href: string | Location);
/**
* Returns true if the location bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)
*/
readonly locationbar: BarProp;
/**
* Returns true if the menu bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)
*/
readonly menubar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */
readonly navigator: Navigator;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)
*/
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
*/
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)
*/
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)
*/
onorientationchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */
opener: any;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)
*/
readonly orientation: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */
readonly outerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */
readonly outerWidth: number;
/**
* @deprecated This is a legacy alias of \`scrollX\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
*/
readonly pageXOffset: number;
/**
* @deprecated This is a legacy alias of \`scrollY\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)
*/
readonly parent: WindowProxy;
/**
* Returns true if the personal bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)
*/
readonly personalbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */
readonly screen: Screen;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */
readonly screenLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */
readonly screenTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */
readonly screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */
readonly screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
readonly scrollX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
readonly scrollY: number;
/**
* Returns true if the scrollbars are visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)
*/
readonly scrollbars: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */
readonly self: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */
readonly speechSynthesis: SpeechSynthesis;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)
*/
status: string;
/**
* Returns true if the status bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)
*/
readonly statusbar: BarProp;
/**
* Returns true if the toolbar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)
*/
readonly toolbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */
readonly top: WindowProxy | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */
readonly visualViewport: VisualViewport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
readonly window: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
alert(message?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
blur(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
cancelIdleCallback(handle: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)
*/
captureEvents(): void;
/**
* Closes the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)
*/
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */
confirm(message?: string): boolean;
/**
* Moves the focus to the window's browsing context, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)
*/
focus(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */
getSelection(): Selection | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */
matchMedia(query: string): MediaQueryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */
moveBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */
moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)
*/
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
postMessage(message: any, options?: WindowPostMessageOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */
print(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */
prompt(message?: string, _default?: string): string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)
*/
releaseEvents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */
resizeBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */
resizeTo(width: number, height: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* Cancels the document load.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)
*/
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */
ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */
ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */
onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */
onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */
ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
*/
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */
readonly localStorage: Storage;
}
interface WindowOrWorkerGlobalScope {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
readonly caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
readonly crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
readonly crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
readonly indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
readonly isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
readonly performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
}
interface WindowSessionStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
*/
interface Worker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Aborts worker's associated global environment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet/addModule)
*/
addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
}
declare var Worklet: {
prototype: Worklet;
new(): Worklet;
};
/**
* This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
*/
interface WritableStream<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
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 WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
*/
interface WritableStreamDefaultController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
readonly signal: AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
*/
interface WritableStreamDefaultWriter<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */
releaseLock(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLDocument)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)
*/
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/**
* Returns client's state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
*/
readonly readyState: number;
/**
* Returns the response body.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
*/
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
*/
responseType: XMLHttpRequestResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */
readonly responseURL: string;
/**
* Returns the response as document.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseXML)
*/
readonly responseXML: Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)
*/
timeout: number;
/**
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)
*/
withCredentials: boolean;
/**
* Cancels any network activity.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */
getAllResponseHeaders(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)
*/
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>;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer)
*/
interface XMLSerializer {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer/serializeToString) */
serializeToString(root: Node): string;
}
declare var XMLSerializer: {
prototype: XMLSerializer;
new(): XMLSerializer;
};
/**
* The XPathEvaluator interface allows to compile and evaluate XPath expressions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathEvaluator)
*/
interface XPathEvaluator extends XPathEvaluatorBase {
}
declare var XPathEvaluator: {
prototype: XPathEvaluator;
new(): XPathEvaluator;
};
interface XPathEvaluatorBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createExpression) */
createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver) */
createNSResolver(nodeResolver: Node): Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/evaluate) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression)
*/
interface XPathExpression {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression/evaluate) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult)
*/
interface XPathResult {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/booleanValue) */
readonly booleanValue: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/invalidIteratorState) */
readonly invalidIteratorState: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/numberValue) */
readonly numberValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/resultType) */
readonly resultType: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/singleNodeValue) */
readonly singleNodeValue: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotLength) */
readonly snapshotLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/stringValue) */
readonly stringValue: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext) */
iterateNext(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotItem) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor)
*/
interface XSLTProcessor {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */
clearParameters(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */
getParameter(namespaceURI: string | null, localName: string): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */
importStylesheet(style: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */
removeParameter(namespaceURI: string | null, localName: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */
setParameter(namespaceURI: string | null, localName: string, value: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */
transformToDocument(source: Node): Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */
transformToFragment(source: Node, output: Document): DocumentFragment;
}
declare var XSLTProcessor: {
prototype: XSLTProcessor;
new(): XSLTProcessor;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
interface Console {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */
assert(condition?: boolean, ...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
count(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
countReset(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
debug(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */
dir(item?: any, options?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */
dirxml(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */
error(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
group(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
groupCollapsed(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
groupEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
info(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */
log(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */
table(tabularData?: any, properties?: string[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
time(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
timeEnd(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
trace(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/highlights_static) */
var highlights: HighlightRegistry;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function Hz(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function Q(value: number): CSSUnitValue;
function cap(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function ch(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cm(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function deg(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dpcm(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dpi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dppx(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function em(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static) */
function escape(ident: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function ex(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function fr(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function grad(value: number): CSSUnitValue;
function ic(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function kHz(value: number): CSSUnitValue;
function lh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function mm(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function ms(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function number(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function pc(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function percent(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function pt(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function px(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function rad(value: number): CSSUnitValue;
function rcap(value: number): CSSUnitValue;
function rch(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static) */
function registerProperty(definition: PropertyDefinition): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function rem(value: number): CSSUnitValue;
function rex(value: number): CSSUnitValue;
function ric(value: number): CSSUnitValue;
function rlh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function s(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static) */
function supports(property: string, value: string): boolean;
function supports(conditionText: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function turn(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vw(value: number): CSSUnitValue;
}
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(message?: string): CompileError;
(message?: string): CompileError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */
interface Global<T extends ValueType = ValueType> {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */
value: ValueTypeMap[T];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */
valueOf(): ValueTypeMap[T];
}
var Global: {
prototype: Global;
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */
interface Instance {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */
interface Memory {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */
readonly buffer: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */
exports(moduleObject: Module): ModuleExportDescriptor[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */
interface Table {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */
get(index: number): any;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */
grow(delta: number, value?: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor<T extends ValueType = ValueType> {
mutable?: boolean;
value: T;
}
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 ValueTypeMap {
anyfunc: Function;
externref: any;
f32: number;
f64: number;
i32: number;
i64: bigint;
v128: never;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
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>;
type ValueType = keyof ValueTypeMap;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */
function compile(bytes: BufferSource): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */
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 EncodedVideoChunkOutputCallback {
(chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): 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 ReportingObserverCallback {
(reports: Report[], observer: ReportingObserver): 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 VideoFrameOutputCallback {
(output: VideoFrame): void;
}
interface VideoFrameRequestCallback {
(now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
}
interface VoidFunction {
(): void;
}
interface WebCodecsErrorCallback {
(error: DOMException): 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;
"search": HTMLElement;
"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\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)
*/
declare var clientInformation: Navigator;
/**
* Returns true if the window has been closed, false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)
*/
declare var closed: boolean;
/**
* Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)
*/
declare var customElements: CustomElementRegistry;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */
declare var devicePixelRatio: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */
declare var document: Document;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)
*/
declare var event: Event | undefined;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)
*/
declare var external: External;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */
declare var frameElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */
declare var frames: WindowProxy;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */
declare var history: History;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */
declare var innerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */
declare var innerWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */
declare var length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */
declare var location: Location;
/**
* Returns true if the location bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)
*/
declare var locationbar: BarProp;
/**
* Returns true if the menu bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)
*/
declare var menubar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */
/** @deprecated */
declare const name: void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */
declare var navigator: Navigator;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)
*/
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
*/
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)
*/
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)
*/
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */
declare var opener: any;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)
*/
declare var orientation: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */
declare var outerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */
declare var outerWidth: number;
/**
* @deprecated This is a legacy alias of \`scrollX\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
*/
declare var pageXOffset: number;
/**
* @deprecated This is a legacy alias of \`scrollY\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)
*/
declare var parent: WindowProxy;
/**
* Returns true if the personal bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)
*/
declare var personalbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */
declare var screen: Screen;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */
declare var screenLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */
declare var screenTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */
declare var screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */
declare var screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
declare var scrollX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
declare var scrollY: number;
/**
* Returns true if the scrollbars are visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)
*/
declare var scrollbars: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */
declare var self: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */
declare var speechSynthesis: SpeechSynthesis;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)
*/
declare var status: string;
/**
* Returns true if the status bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)
*/
declare var statusbar: BarProp;
/**
* Returns true if the toolbar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)
*/
declare var toolbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */
declare var top: WindowProxy | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */
declare var visualViewport: VisualViewport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
declare var window: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
declare function alert(message?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
declare function blur(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
declare function cancelIdleCallback(handle: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)
*/
declare function captureEvents(): void;
/**
* Closes the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)
*/
declare function close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */
declare function confirm(message?: string): boolean;
/**
* Moves the focus to the window's browsing context, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)
*/
declare function focus(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */
declare function getSelection(): Selection | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */
declare function matchMedia(query: string): MediaQueryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */
declare function moveBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */
declare function moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)
*/
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */
declare function print(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */
declare function prompt(message?: string, _default?: string): string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)
*/
declare function releaseEvents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */
declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */
declare function resizeBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */
declare function resizeTo(width: number, height: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/**
* Cancels the document load.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
declare function dispatchEvent(event: Event): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
declare function cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
/**
* Fires when the user aborts the download.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)
*/
declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */
declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */
declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */
declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */
declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */
declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
declare var onbeforetoggle: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
*/
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
declare var oncancel: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)
*/
declare var oncanplay: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */
declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
*/
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
*/
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
declare var oncuechange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */
declare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)
*/
declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)
*/
declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */
declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)
*/
declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)
*/
declare var onemptied: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event)
*/
declare var onended: ((this: Window, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)
*/
declare var onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)
*/
declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */
declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */
declare var oninput: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)
*/
declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)
*/
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)
*/
declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)
*/
declare var onload: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)
*/
declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)
*/
declare var onloadstart: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)
*/
declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */
declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */
declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)
*/
declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */
declare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)
*/
declare var onpause: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)
*/
declare var onplay: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)
*/
declare var onplaying: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */
declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */
declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */
declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */
declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */
declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */
declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)
*/
declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)
*/
declare var onratechange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)
*/
declare var onreset: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
*/
declare var onscroll: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
declare var onscrollend: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)
*/
declare var onseeked: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)
*/
declare var onseeking: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)
*/
declare var onselect: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */
declare var onslotchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)
*/
declare var onstalled: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */
declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)
*/
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)
*/
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)
*/
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)
*/
declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationiteration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)
*/
declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationstart\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)
*/
declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`ontransitionend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)
*/
declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */
declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */
declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */
declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */
declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */
declare var onoffline: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */
declare var ononline: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
*/
declare var onunload: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */
declare var localStorage: Storage;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
declare var caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
declare var crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
declare var indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
declare var isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
declare var origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
declare var performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
declare function atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
declare function clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
declare function clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
declare function reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */
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 AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
type AutoFill = AutoFillBase | \`\${OptionalPrefixToken<AutoFillSection>}\${OptionalPrefixToken<AutoFillAddressKind>}\${AutoFillField}\${OptionalPostfixToken<AutoFillCredentialField>}\`;
type AutoFillField = AutoFillNormalField | \`\${OptionalPrefixToken<AutoFillContactKind>}\${AutoFillContactField}\`;
type AutoFillSection = \`section-\${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 CSSKeywordish = string | CSSKeywordValue;
type CSSNumberish = number | CSSNumericValue;
type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
type CSSUnparsedSegment = string | CSSVariableReferenceValue;
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame;
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 FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
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 OptionalPostfixToken<T extends string> = \` \${T}\` | "";
type OptionalPrefixToken<T extends string> = \`\${T} \` | "";
type PerformanceEntryList = PerformanceEntry[];
type RTCRtpTransform = RTCRtpScriptTransform;
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 ReportList = Report[];
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | 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 AlphaOption = "discard" | "keep";
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 AutoFillAddressKind = "billing" | "shipping";
type AutoFillBase = "" | "off" | "on";
type AutoFillContactField = "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national";
type AutoFillContactKind = "home" | "mobile" | "work";
type AutoFillCredentialField = "webauthn";
type AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username";
type AutoKeyword = "auto";
type AutomationRate = "a-rate" | "k-rate";
type AvcBitstreamFormat = "annexb" | "avc";
type BinaryType = "arraybuffer" | "blob";
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
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 CodecState = "closed" | "configured" | "unconfigured";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompositeOperation = "accumulate" | "add" | "replace";
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
type CredentialMediationRequirement = "conditional" | "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 EncodedVideoChunkType = "delta" | "key";
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 GamepadHapticEffectType = "dual-rumble";
type GamepadHapticsResult = "complete" | "preempted";
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 HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type HighlightType = "grammar-error" | "highlight" | "spelling-error";
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" | "none";
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 LatencyMode = "quality" | "realtime";
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 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-playout" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "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 RequestPriority = "auto" | "high" | "low";
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" | "instant" | "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 VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WakeLockType = "screen";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
type WebTransportErrorSource = "session" | "stream";
type WorkerType = "classic" | "module";
type WriteCommandType = "seek" | "truncate" | "write";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,co["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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
}
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
}
interface BaseAudioContext {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
}
interface CSSKeyframesRule {
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
}
interface CSSNumericArray {
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
entries(): IterableIterator<[number, CSSNumericValue]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSNumericValue>;
}
interface CSSRuleList {
[Symbol.iterator](): IterableIterator<CSSRule>;
}
interface CSSStyleDeclaration {
[Symbol.iterator](): IterableIterator<string>;
}
interface CSSTransformValue {
[Symbol.iterator](): IterableIterator<CSSTransformComponent>;
entries(): IterableIterator<[number, CSSTransformComponent]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSTransformComponent>;
}
interface CSSUnparsedValue {
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;
entries(): IterableIterator<[number, CSSUnparsedSegment]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSUnparsedSegment>;
}
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
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 Highlight extends Set<AbstractRange> {
}
interface HighlightRegistry extends Map<string, Highlight> {
}
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
}
interface MIDIOutput {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */
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
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
*/
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
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 StylePropertyMapReadOnly {
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;
keys(): IterableIterator<string>;
values(): IterableIterator<Iterable<CSSStyleValue>>;
}
interface StyleSheetList {
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
}
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
}
interface WebGL2RenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`,co["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 WeakKey, 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 or symbol.
*/
set(key: K, value: V): this;
}
interface WeakMapConstructor {
new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
readonly prototype: WeakMap<WeakKey, 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 WeakKey> {
/**
* Appends a new value 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 a value exists in the WeakSet or not.
*/
has(value: T): boolean;
}
interface WeakSetConstructor {
new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>;
readonly prototype: WeakSet<WeakKey>;
}
declare var WeakSet: WeakSetConstructor;
`,co["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 −0, 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‍−‍16.
*/
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 − 1.
*/
readonly MAX_SAFE_INTEGER: number;
/**
* The value of the smallest integer n such that n and n − 1 are both exactly representable as
* a Number value.
* The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 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 – 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;
}
`,co["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" />
`,co["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;
}
`,co["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 WeakKey, V> {}
interface WeakMapConstructor {
new <K extends WeakKey, 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 WeakKey> {}
interface WeakSetConstructor {
new <T extends WeakKey = WeakKey>(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;
}
`,co["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;
`,co["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;
`,co["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;
}
`,co["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;
`,co["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’s 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 WeakKey, V> {
readonly [Symbol.toStringTag]: string;
}
interface Set<T> {
readonly [Symbol.toStringTag]: string;
}
interface WeakSet<T extends WeakKey> {
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;
}
`,co["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;
}
`,co["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" />
/// <reference lib="es2016.intl" />
`,co["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" />
`,co["lib.es2016.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 {
/**
* The \`Intl.getCanonicalLocales()\` method returns an array containing
* the canonical locale names. Duplicates will be omitted and elements
* will be validated as structurally valid language tags.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales)
*
* @param locale A list of String values for which to get the canonical locale names
* @returns An array containing the canonical and validated locale names.
*/
function getCanonicalLocales(locale?: string | readonly string[]): string[];
}
`,co["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" />
/// <reference lib="es2017.date" />
`,co["lib.es2017.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"/>
interface DateConstructor {
/**
* 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;
}
`,co["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" />
`,co["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[];
}
}
`,co["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; };
}
`,co["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;
`,co["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;
}
`,co["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;
}
`,co["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;
}
`,co["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>;
}
`,co["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" />
`,co["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" />
/// <reference lib="dom.asynciterable" />
`,co["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;
}
interface PluralRulesConstructor {
new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
(locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
}
const PluralRules: PluralRulesConstructor;
// 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[];
}
}
`,co["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>;
}
`,co["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;
}
`,co["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>[];
}
`,co["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" />
`,co["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" />
/// <reference lib="dom.asynciterable" />
`,co["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;
}
}
`,co["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;
}
`,co["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;
}
`,co["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;
}
`,co["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 — 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 €,
*
* "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;
}
}
`,co["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" />
`,co["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;
}
`,co["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" />
/// <reference lib="dom.asynciterable" />
`,co["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 {
/**
* A string that is a valid [Unicode BCP 47 Locale Identifier](https://unicode.org/reports/tr35/#Unicode_locale_identifier).
*
* For example: "fa", "es-MX", "zh-Hant-TW".
*
* See [MDN - Intl - locales argument](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";
/**
* The locale or locales to use
*
* See [MDN - Intl - locales argument](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?: LocalesArgument,
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?: LocalesArgument,
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(): UnicodeBCP47LocaleIdentifier;
}
/**
* 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: UnicodeBCP47LocaleIdentifier | 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; }): UnicodeBCP47LocaleIdentifier[];
};
interface CollatorConstructor {
new (locales?: LocalesArgument, options?: CollatorOptions): Collator;
(locales?: LocalesArgument, options?: CollatorOptions): Collator;
supportedLocalesOf(locales: LocalesArgument, options?: CollatorOptions): string[];
}
interface DateTimeFormatConstructor {
new (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: LocalesArgument, options?: DateTimeFormatOptions): string[];
}
interface NumberFormatConstructor {
new (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;
(locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: LocalesArgument, options?: NumberFormatOptions): string[];
}
interface PluralRulesConstructor {
new (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;
(locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
}
}
`,co["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;
}
`,co["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>>[]>;
}
`,co["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;
}
`,co["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<RegExpExecArray>;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(locales?: Intl.LocalesArgument): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(locales?: Intl.LocalesArgument): 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?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
}
`,co["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>;
}
`,co["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" />
`,co["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" />
/// <reference lib="dom.asynciterable" />
`,co["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?: LocalesArgument, 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: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
};
}
`,co["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>>;
}
`,co["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;
}
`,co["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 WeakKey> {
readonly [Symbol.toStringTag]: "WeakRef";
/**
* Returns the WeakRef instance's target value, or undefined if the target value has been
* reclaimed.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
*/
deref(): T | undefined;
}
interface WeakRefConstructor {
readonly prototype: WeakRef<any>;
/**
* Creates a WeakRef instance for the given target value.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
* @param target The target value for the WeakRef instance.
*/
new <T extends WeakKey>(target: T): WeakRef<T>;
}
declare var WeakRef: WeakRefConstructor;
interface FinalizationRegistry<T> {
readonly [Symbol.toStringTag]: "FinalizationRegistry";
/**
* Registers a value with the registry.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
* @param target The target value to register.
* @param heldValue The value to pass to the finalizer for this value. This cannot be the
* target value.
* @param unregisterToken The token to pass to the unregister method to unregister the target
* value. If not provided, the target cannot be unregistered.
*/
register(target: WeakKey, heldValue: T, unregisterToken?: WeakKey): void;
/**
* Unregisters a value from the registry.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
* @param unregisterToken The token that was used as the unregisterToken argument when calling
* register to register the target value.
*/
unregister(unregisterToken: WeakKey): void;
}
interface FinalizationRegistryConstructor {
readonly prototype: FinalizationRegistry<any>;
/**
* Creates a finalization registry with an associated cleanup callback
* @param cleanupCallback The callback to call after a value in the registry has been reclaimed.
*/
new <T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
}
declare var FinalizationRegistry: FinalizationRegistryConstructor;
`,co["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;
}
`,co["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" />
`,co["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;
}
`,co["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" />
/// <reference lib="dom.asynciterable" />
`,co["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?: LocalesArgument, 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: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
};
/**
* Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
*
* @param key A string indicating the category of values to return.
* @returns A sorted array of the supported values.
*/
function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[];
}
`,co["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;
}
`,co["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;
}
`,co["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">; };
}
`,co["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;
}
`,co["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;
/**
* Returns a copy of an array with its elements reversed.
*/
toReversed(): T[];
/**
* Returns a copy of an array with its elements sorted.
* @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].toSorted((a, b) => a - b) // [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: T, b: T) => number): T[];
/**
* Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.
* @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 copied array in place of the deleted elements.
* @returns The copied array.
*/
toSpliced(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Copies an array and removes elements while returning the remaining 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 A copy of the original array with the remaining elements.
*/
toSpliced(start: number, deleteCount?: number): T[];
/**
* Copies an array, then overwrites the value at the provided index with the
* given value. If the index is negative, then it replaces from the end
* of the array.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to write into the copied array.
* @returns The copied array with the updated value.
*/
with(index: number, value: T): T[];
}
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;
/**
* Copies the array and returns the copied array with all of its elements reversed.
*/
toReversed(): T[];
/**
* Copies and sorts the 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].toSorted((a, b) => a - b) // [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: T, b: T) => number): T[];
/**
* Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining 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 copied array in place of the deleted elements.
* @returns A copy of the original array with the remaining elements.
*/
toSpliced(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Copies an array and removes elements while returning the remaining 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 A copy of the original array with the remaining elements.
*/
toSpliced(start: number, deleteCount?: number): T[];
/**
* Copies an array, then overwrites the value at the provided index with the
* given value. If the index is negative, then it replaces from the end
* of the array
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: T): T[];
}
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;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8Array;
/**
* Copies and sorts the 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 order.
* \`\`\`ts
* const myNums = Uint8Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint8Array;
}
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;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8Array;
/**
* Copies and sorts the 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 order.
* \`\`\`ts
* const myNums = Uint8Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint8Array;
}
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;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8ClampedArray;
/**
* Copies and sorts the 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 order.
* \`\`\`ts
* const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint8ClampedArray;
}
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;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Int16Array;
/**
* Copies and sorts the 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 order.
* \`\`\`ts
* const myNums = Int16Array.from([11, 2, -22, 1]);
* myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Int16Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Int16Array;
}
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;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint16Array;
/**
* Copies and sorts the 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 order.
* \`\`\`ts
* const myNums = Uint16Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint16Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint16Array;
}
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;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Int32Array;
/**
* Copies and sorts the 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 order.
* \`\`\`ts
* const myNums = Int32Array.from([11, 2, -22, 1]);
* myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Int32Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Int32Array;
}
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;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint32Array;
/**
* Copies and sorts the 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 order.
* \`\`\`ts
* const myNums = Uint32Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint32Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint32Array;
}
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;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Float32Array;
/**
* Copies and sorts the 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 order.
* \`\`\`ts
* const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
* myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Float32Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Float32Array;
}
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;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Float64Array;
/**
* Copies and sorts the 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 order.
* \`\`\`ts
* const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
* myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Float64Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Float64Array;
}
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;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): BigInt64Array;
/**
* Copies and sorts the 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 order.
* \`\`\`ts
* const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
* myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
* \`\`\`
*/
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array;
/**
* Copies the array and inserts the given bigint at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: bigint): BigInt64Array;
}
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;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): BigUint64Array;
/**
* Copies and sorts the 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 order.
* \`\`\`ts
* const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
* myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]
* \`\`\`
*/
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array;
/**
* Copies the array and inserts the given bigint at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: bigint): BigUint64Array;
}
`,co["lib.es2023.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 WeakKeyTypes {
symbol: symbol;
}
`,co["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" />
/// <reference lib="es2023.collection" />
`,co["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" />
/// <reference lib="dom.asynciterable" />
`,co["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.
*/
apply<T, R>(this: (this: T) => R, thisArg: T): R;
/**
* 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, 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.
*/
bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
/**
* 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, A extends any[], B extends any[], R>(this: (this: T, ...args: [...A, ...B]) => R, thisArg: T, ...args: A): (...args: B) => 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.
*/
apply<T>(this: new () => T, thisArg: T): void;
/**
* 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, 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.
*/
bind<T>(this: T, thisArg: any): T;
/**
* 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<A extends any[], B extends any[], R>(this: new (...args: [...A, ...B]) => R, thisArg: any, ...args: A): new (...args: B) => 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 {
/** @deprecated*/ assert?: ImportAssertions;
with?: ImportAttributes;
}
/**
* The type for the \`assert\` property of the optional second argument to \`import()\`.
* @deprecated
*/
interface ImportAssertions {
[key: string]: string;
}
/**
* The type for the \`with\` property of the optional second argument to \`import()\`.
*/
interface ImportAttributes {
[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 non-inference type position
*/
type NoInfer<T> = intrinsic;
/**
* Marker for contextual 'this' type
*/
interface ThisType<T> {}
/**
* Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry
*/
interface WeakKeyTypes {
object: object;
}
type WeakKey = WeakKeyTypes[keyof WeakKeyTypes];
/**
* 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 & { BYTES_PER_ELEMENT?: never; }, 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;
/**
* Gets a new Float64Array 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): Float64Array;
/**
* 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(): 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?: "sort" | "search" | undefined;
localeMatcher?: "lookup" | "best fit" | undefined;
numeric?: boolean | undefined;
caseFirst?: "upper" | "lower" | "false" | undefined;
sensitivity?: "base" | "accent" | "case" | "variant" | undefined;
collation?: "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | 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;
}
interface CollatorConstructor {
new (locales?: string | string[], options?: CollatorOptions): Collator;
(locales?: string | string[], options?: CollatorOptions): Collator;
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
}
var Collator: CollatorConstructor;
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;
}
interface NumberFormatConstructor {
new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
readonly prototype: NumberFormat;
}
var NumberFormat: NumberFormatConstructor;
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;
}
interface DateTimeFormatConstructor {
new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
readonly prototype: DateTimeFormat;
}
var DateTimeFormat: DateTimeFormatConstructor;
}
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;
}
`,co["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" />
`,co["lib.esnext.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 MapConstructor {
/**
* Groups members of an iterable according to the return value of the passed callback.
* @param items An iterable.
* @param keySelector A callback which will be invoked for each item in items.
*/
groupBy<K, T>(
items: Iterable<T>,
keySelector: (item: T, index: number) => K,
): Map<K, T[]>;
}
`,co["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" />
/// <reference lib="esnext.decorators" />
/// <reference lib="esnext.disposable" />
/// <reference lib="esnext.promise" />
/// <reference lib="esnext.object" />
/// <reference lib="esnext.collection" />
`,co["lib.esnext.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"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="decorators" />
interface SymbolConstructor {
readonly metadata: unique symbol;
}
interface Function {
[Symbol.metadata]: DecoratorMetadata | null;
}
`,co["lib.esnext.disposable.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 is used to release resources held by an object. Called by the semantics of the \`using\` statement.
*/
readonly dispose: unique symbol;
/**
* A method that is used to asynchronously release resources held by an object. Called by the semantics of the \`await using\` statement.
*/
readonly asyncDispose: unique symbol;
}
interface Disposable {
[Symbol.dispose](): void;
}
interface AsyncDisposable {
[Symbol.asyncDispose](): PromiseLike<void>;
}
interface SuppressedError extends Error {
error: any;
suppressed: any;
}
interface SuppressedErrorConstructor {
new (error: any, suppressed: any, message?: string): SuppressedError;
(error: any, suppressed: any, message?: string): SuppressedError;
readonly prototype: SuppressedError;
}
declare var SuppressedError: SuppressedErrorConstructor;
interface DisposableStack {
/**
* Returns a value indicating whether this stack has been disposed.
*/
readonly disposed: boolean;
/**
* Disposes each resource in the stack in the reverse order that they were added.
*/
dispose(): void;
/**
* Adds a disposable resource to the stack, returning the resource.
* @param value The resource to add. \`null\` and \`undefined\` will not be added, but will be returned.
* @returns The provided {@link value}.
*/
use<T extends Disposable | null | undefined>(value: T): T;
/**
* Adds a value and associated disposal callback as a resource to the stack.
* @param value The value to add.
* @param onDispose The callback to use in place of a \`[Symbol.dispose]()\` method. Will be invoked with \`value\`
* as the first parameter.
* @returns The provided {@link value}.
*/
adopt<T>(value: T, onDispose: (value: T) => void): T;
/**
* Adds a callback to be invoked when the stack is disposed.
*/
defer(onDispose: () => void): void;
/**
* Move all resources out of this stack and into a new \`DisposableStack\`, and marks this stack as disposed.
* @example
* \`\`\`ts
* class C {
* #res1: Disposable;
* #res2: Disposable;
* #disposables: DisposableStack;
* constructor() {
* // stack will be disposed when exiting constructor for any reason
* using stack = new DisposableStack();
*
* // get first resource
* this.#res1 = stack.use(getResource1());
*
* // get second resource. If this fails, both \`stack\` and \`#res1\` will be disposed.
* this.#res2 = stack.use(getResource2());
*
* // all operations succeeded, move resources out of \`stack\` so that they aren't disposed
* // when constructor exits
* this.#disposables = stack.move();
* }
*
* [Symbol.dispose]() {
* this.#disposables.dispose();
* }
* }
* \`\`\`
*/
move(): DisposableStack;
[Symbol.dispose](): void;
readonly [Symbol.toStringTag]: string;
}
interface DisposableStackConstructor {
new (): DisposableStack;
readonly prototype: DisposableStack;
}
declare var DisposableStack: DisposableStackConstructor;
interface AsyncDisposableStack {
/**
* Returns a value indicating whether this stack has been disposed.
*/
readonly disposed: boolean;
/**
* Disposes each resource in the stack in the reverse order that they were added.
*/
disposeAsync(): Promise<void>;
/**
* Adds a disposable resource to the stack, returning the resource.
* @param value The resource to add. \`null\` and \`undefined\` will not be added, but will be returned.
* @returns The provided {@link value}.
*/
use<T extends AsyncDisposable | Disposable | null | undefined>(value: T): T;
/**
* Adds a value and associated disposal callback as a resource to the stack.
* @param value The value to add.
* @param onDisposeAsync The callback to use in place of a \`[Symbol.asyncDispose]()\` method. Will be invoked with \`value\`
* as the first parameter.
* @returns The provided {@link value}.
*/
adopt<T>(value: T, onDisposeAsync: (value: T) => PromiseLike<void> | void): T;
/**
* Adds a callback to be invoked when the stack is disposed.
*/
defer(onDisposeAsync: () => PromiseLike<void> | void): void;
/**
* Move all resources out of this stack and into a new \`DisposableStack\`, and marks this stack as disposed.
* @example
* \`\`\`ts
* class C {
* #res1: Disposable;
* #res2: Disposable;
* #disposables: DisposableStack;
* constructor() {
* // stack will be disposed when exiting constructor for any reason
* using stack = new DisposableStack();
*
* // get first resource
* this.#res1 = stack.use(getResource1());
*
* // get second resource. If this fails, both \`stack\` and \`#res1\` will be disposed.
* this.#res2 = stack.use(getResource2());
*
* // all operations succeeded, move resources out of \`stack\` so that they aren't disposed
* // when constructor exits
* this.#disposables = stack.move();
* }
*
* [Symbol.dispose]() {
* this.#disposables.dispose();
* }
* }
* \`\`\`
*/
move(): AsyncDisposableStack;
[Symbol.asyncDispose](): Promise<void>;
readonly [Symbol.toStringTag]: string;
}
interface AsyncDisposableStackConstructor {
new (): AsyncDisposableStack;
readonly prototype: AsyncDisposableStack;
}
declare var AsyncDisposableStack: AsyncDisposableStackConstructor;
`,co["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" />
/// <reference lib="dom.asynciterable" />
`,co["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[];
}
}
`,co["lib.esnext.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 {
/**
* Groups members of an iterable according to the return value of the passed callback.
* @param items An iterable.
* @param keySelector A callback which will be invoked for each item in items.
*/
groupBy<K extends PropertyKey, T>(
items: Iterable<T>,
keySelector: (item: T, index: number) => K,
): Partial<Record<K, T[]>>;
}
`,co["lib.esnext.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 PromiseWithResolvers<T> {
promise: Promise<T>;
resolve: (value: T | PromiseLike<T>) => void;
reject: (reason?: any) => void;
}
interface PromiseConstructor {
/**
* Creates a new Promise and returns it in an object, along with its resolve and reject functions.
* @returns An object with the properties \`promise\`, \`resolve\`, and \`reject\`.
*
* \`\`\`ts
* const { promise, resolve, reject } = Promise.withResolvers<T>();
* \`\`\`
*/
withResolvers<T>(): PromiseWithResolvers<T>;
}
`,co["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;
}
`,co["lib.webworker.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"/>
/////////////////////////////
/// Worker Async Iterable APIs
/////////////////////////////
interface FileSystemDirectoryHandle {
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;
entries(): AsyncIterableIterator<[string, FileSystemHandle]>;
keys(): AsyncIterableIterator<string>;
values(): AsyncIterableIterator<FileSystemHandle>;
}
`,co["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 AvcEncoderConfig {
format?: AvcBitstreamFormat;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CSSMatrixComponentOptions {
is2D?: boolean;
}
interface CSSNumericType {
angle?: number;
flex?: number;
frequency?: number;
length?: number;
percent?: number;
percentHint?: CSSNumericBaseType;
resolution?: number;
time?: number;
}
interface 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 EncodedVideoChunkInit {
data: AllowSharedBufferSource;
duration?: number;
timestamp: number;
type: EncodedVideoChunkType;
}
interface EncodedVideoChunkMetadata {
decoderConfig?: VideoDecoderConfig;
}
interface ErrorEventInit extends EventInit {
colno?: number;
error?: any;
filename?: string;
lineno?: number;
message?: string;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
interface 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 FileSystemCreateWritableOptions {
keepExistingData?: boolean;
}
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;
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 NotificationEventInit extends ExtendableEventInit {
action?: string;
notification: Notification;
}
interface NotificationOptions {
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
lang?: string;
requireInteraction?: boolean;
silent?: boolean | null;
tag?: string;
}
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 PlaneLayout {
offset: number;
stride: number;
}
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[];
payloadType?: number;
sequenceNumber?: number;
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata {
contributingSources?: number[];
dependencies?: number[];
frameId?: number;
height?: number;
payloadType?: number;
spatialIndex?: number;
synchronizationSource?: number;
temporalIndex?: number;
timestamp?: number;
width?: number;
}
interface 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 ReportingObserverOptions {
buffered?: boolean;
types?: string[];
}
interface RequestInit {
/** A BodyInit object or null to set request's body. */
body?: BodyInit | null;
/** A string indicating how the request will interact with the browser's cache to set request's cache. */
cache?: RequestCache;
/** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
credentials?: RequestCredentials;
/** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
headers?: HeadersInit;
/** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
integrity?: string;
/** A boolean to set request's keepalive. */
keepalive?: boolean;
/** A string to set request's method. */
method?: string;
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
mode?: RequestMode;
priority?: RequestPriority;
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
redirect?: RequestRedirect;
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
referrer?: string;
/** A referrer policy to set request's referrerPolicy. */
referrerPolicy?: ReferrerPolicy;
/** An AbortSignal to set request's signal. */
signal?: AbortSignal | null;
/** Can only be null. Used to disassociate request from any Window. */
window?: null;
}
interface 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 VideoDecoderConfig {
codec: string;
codedHeight?: number;
codedWidth?: number;
colorSpace?: VideoColorSpaceInit;
description?: AllowSharedBufferSource;
displayAspectHeight?: number;
displayAspectWidth?: number;
hardwareAcceleration?: HardwareAcceleration;
optimizeForLatency?: boolean;
}
interface VideoDecoderInit {
error: WebCodecsErrorCallback;
output: VideoFrameOutputCallback;
}
interface VideoDecoderSupport {
config?: VideoDecoderConfig;
supported?: boolean;
}
interface VideoEncoderConfig {
alpha?: AlphaOption;
avc?: AvcEncoderConfig;
bitrate?: number;
bitrateMode?: VideoEncoderBitrateMode;
codec: string;
displayHeight?: number;
displayWidth?: number;
framerate?: number;
hardwareAcceleration?: HardwareAcceleration;
height: number;
latencyMode?: LatencyMode;
scalabilityMode?: string;
width: number;
}
interface VideoEncoderEncodeOptions {
keyFrame?: boolean;
}
interface VideoEncoderInit {
error: WebCodecsErrorCallback;
output: EncodedVideoChunkOutputCallback;
}
interface VideoEncoderSupport {
config?: VideoEncoderConfig;
supported?: boolean;
}
interface VideoFrameBufferInit {
codedHeight: number;
codedWidth: number;
colorSpace?: VideoColorSpaceInit;
displayHeight?: number;
displayWidth?: number;
duration?: number;
format: VideoPixelFormat;
layout?: PlaneLayout[];
timestamp: number;
visibleRect?: DOMRectInit;
}
interface VideoFrameCopyToOptions {
layout?: PlaneLayout[];
rect?: DOMRectInit;
}
interface VideoFrameInit {
alpha?: AlphaOption;
displayHeight?: number;
displayWidth?: number;
duration?: number;
timestamp?: number;
visibleRect?: DOMRectInit;
}
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
}
interface WebGLContextEventInit extends EventInit {
statusMessage?: string;
}
interface WebTransportCloseInfo {
closeCode?: number;
reason?: string;
}
interface WebTransportErrorOptions {
source?: WebTransportErrorSource;
streamErrorCode?: number | null;
}
interface WebTransportHash {
algorithm?: string;
value?: BufferSource;
}
interface WebTransportOptions {
allowPooling?: boolean;
congestionControl?: WebTransportCongestionControl;
requireUnreliable?: boolean;
serverCertificateHashes?: WebTransportHash[];
}
interface WebTransportSendStreamOptions {
sendOrder?: number;
}
interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
interface WriteParams {
data?: BufferSource | Blob | string | null;
position?: number | null;
size?: number | null;
type: WriteCommandType;
}
/**
* The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)
*/
interface ANGLE_instanced_arrays {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}
/**
* A controller object that allows you to abort one or more DOM requests as and when desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
*/
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
*/
readonly signal: AbortSignal;
/**
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
*/
abort(reason?: any): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/**
* A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
*/
interface AbortSignal extends EventTarget {
/**
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
*/
readonly aborted: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
onabort: ((this: AbortSignal, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */
readonly reason: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */
throwIfAborted(): void;
addEventListener<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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
abort(reason?: any): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
timeout(milliseconds: number): AbortSignal;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
requestAnimationFrame(callback: FrameRequestCallback): number;
}
/**
* A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
*/
interface Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
slice(start?: number, end?: number, contentType?: string): Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
stream(): ReadableStream<Uint8Array>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
readonly body: ReadableStream<Uint8Array> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
readonly bodyUsed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
blob(): Promise<Blob>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
formData(): Promise<FormData>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
json(): Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */
interface BroadcastChannel extends EventTarget {
/**
* Returns the channel name (as passed to the constructor).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/**
* Closes the BroadcastChannel object, opening it up to garbage collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
*/
close(): void;
/**
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)
*/
postMessage(message: any): void;
addEventListener<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 a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
*/
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */
interface CSSImageValue extends CSSStyleValue {
}
declare var CSSImageValue: {
prototype: CSSImageValue;
new(): CSSImageValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */
interface CSSKeywordValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */
value: string;
}
declare var CSSKeywordValue: {
prototype: CSSKeywordValue;
new(value: string): CSSKeywordValue;
};
interface CSSMathClamp extends CSSMathValue {
readonly lower: CSSNumericValue;
readonly upper: CSSNumericValue;
readonly value: CSSNumericValue;
}
declare var CSSMathClamp: {
prototype: CSSMathClamp;
new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */
interface CSSMathInvert extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathInvert: {
prototype: CSSMathInvert;
new(arg: CSSNumberish): CSSMathInvert;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */
interface CSSMathMax extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMax: {
prototype: CSSMathMax;
new(...args: CSSNumberish[]): CSSMathMax;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */
interface CSSMathMin extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMin: {
prototype: CSSMathMin;
new(...args: CSSNumberish[]): CSSMathMin;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */
interface CSSMathNegate extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathNegate: {
prototype: CSSMathNegate;
new(arg: CSSNumberish): CSSMathNegate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */
interface CSSMathProduct extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathProduct: {
prototype: CSSMathProduct;
new(...args: CSSNumberish[]): CSSMathProduct;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */
interface CSSMathSum extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathSum: {
prototype: CSSMathSum;
new(...args: CSSNumberish[]): CSSMathSum;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */
interface CSSMathValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */
readonly operator: CSSMathOperator;
}
declare var CSSMathValue: {
prototype: CSSMathValue;
new(): CSSMathValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */
interface CSSMatrixComponent extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */
matrix: DOMMatrix;
}
declare var CSSMatrixComponent: {
prototype: CSSMatrixComponent;
new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */
interface CSSNumericArray {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */
readonly length: number;
forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;
[index: number]: CSSNumericValue;
}
declare var CSSNumericArray: {
prototype: CSSNumericArray;
new(): CSSNumericArray;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */
interface CSSNumericValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */
add(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */
div(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */
equals(...value: CSSNumberish[]): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */
max(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */
min(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */
mul(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */
sub(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */
to(unit: string): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */
toSum(...units: string[]): CSSMathSum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */
type(): CSSNumericType;
}
declare var CSSNumericValue: {
prototype: CSSNumericValue;
new(): CSSNumericValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */
interface CSSPerspective extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */
length: CSSPerspectiveValue;
}
declare var CSSPerspective: {
prototype: CSSPerspective;
new(length: CSSPerspectiveValue): CSSPerspective;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */
interface CSSRotate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */
angle: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */
z: CSSNumberish;
}
declare var CSSRotate: {
prototype: CSSRotate;
new(angle: CSSNumericValue): CSSRotate;
new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */
interface CSSScale extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */
z: CSSNumberish;
}
declare var CSSScale: {
prototype: CSSScale;
new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */
interface CSSSkew extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */
ax: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */
ay: CSSNumericValue;
}
declare var CSSSkew: {
prototype: CSSSkew;
new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */
interface CSSSkewX extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */
ax: CSSNumericValue;
}
declare var CSSSkewX: {
prototype: CSSSkewX;
new(ax: CSSNumericValue): CSSSkewX;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */
interface CSSSkewY extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */
ay: CSSNumericValue;
}
declare var CSSSkewY: {
prototype: CSSSkewY;
new(ay: CSSNumericValue): CSSSkewY;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */
interface CSSStyleValue {
toString(): string;
}
declare var CSSStyleValue: {
prototype: CSSStyleValue;
new(): CSSStyleValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */
interface CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */
is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */
toMatrix(): DOMMatrix;
toString(): string;
}
declare var CSSTransformComponent: {
prototype: CSSTransformComponent;
new(): CSSTransformComponent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */
interface CSSTransformValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */
toMatrix(): DOMMatrix;
forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;
[index: number]: CSSTransformComponent;
}
declare var CSSTransformValue: {
prototype: CSSTransformValue;
new(transforms: CSSTransformComponent[]): CSSTransformValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */
interface CSSTranslate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */
x: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */
y: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */
z: CSSNumericValue;
}
declare var CSSTranslate: {
prototype: CSSTranslate;
new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */
interface CSSUnitValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */
readonly unit: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */
value: number;
}
declare var CSSUnitValue: {
prototype: CSSUnitValue;
new(value: number, unit: string): CSSUnitValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */
interface CSSUnparsedValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */
readonly length: number;
forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;
[index: number]: CSSUnparsedSegment;
}
declare var CSSUnparsedValue: {
prototype: CSSUnparsedValue;
new(members: CSSUnparsedSegment[]): CSSUnparsedValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */
interface CSSVariableReferenceValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */
readonly fallback: CSSUnparsedValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */
variable: string;
}
declare var CSSVariableReferenceValue: {
prototype: CSSVariableReferenceValue;
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
};
/**
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)
*/
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */
add(request: RequestInfo | URL): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: RequestInfo[]): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)
*/
interface CacheStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */
delete(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */
has(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */
keys(): Promise<string[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
interface CanvasCompositing {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */
globalAlpha: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */
globalCompositeOperation: GlobalCompositeOperation;
}
interface CanvasDrawImage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
}
interface CanvasDrawPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */
beginPath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */
fillStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */
strokeStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */
filter: string;
}
/**
* An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
*/
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
interface CanvasImageSmoothing {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */
imageSmoothingEnabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */
closePath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */
lineTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */
moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */
rect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */
lineCap: CanvasLineCap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */
lineDashOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */
lineJoin: CanvasLineJoin;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */
lineWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */
miterLimit: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */
getLineDash(): number[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
setLineDash(segments: number[]): void;
}
/**
* An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)
*/
interface CanvasPattern {
/**
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)
*/
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */
clearRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */
fillRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */
strokeRect(x: number, y: number, w: number, h: number): void;
}
interface CanvasShadowStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */
shadowBlur: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */
shadowColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */
shadowOffsetX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */
shadowOffsetY: number;
}
interface CanvasState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
restore(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
save(): void;
}
interface CanvasText {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */
fillText(text: string, x: number, y: number, maxWidth?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */
measureText(text: string): TextMetrics;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */
direction: CanvasDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */
font: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
fontKerning: CanvasFontKerning;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
fontStretch: CanvasFontStretch;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
fontVariantCaps: CanvasFontVariantCaps;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
letterSpacing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
textAlign: CanvasTextAlign;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */
textBaseline: CanvasTextBaseline;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */
textRendering: CanvasTextRendering;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */
wordSpacing: string;
}
interface CanvasTransform {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */
getTransform(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */
resetTransform(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */
rotate(angle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */
scale(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */
translate(x: number, y: number): void;
}
/**
* The Client interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client)
*/
interface Client {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType) */
readonly frameType: FrameType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/type) */
readonly type: ClientTypes;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/url) */
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/postMessage) */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
}
declare var Client: {
prototype: Client;
new(): Client;
};
/**
* Provides access to Client objects. Access it via self.clients within a service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients)
*/
interface Clients {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim) */
claim(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get) */
get(id: string): Promise<Client | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/matchAll) */
matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/openWindow) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
*/
interface CloseEvent extends Event {
/**
* Returns the WebSocket connection close code provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
*/
readonly code: number;
/**
* Returns the WebSocket connection close reason provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
*/
readonly reason: string;
/**
* Returns true if the connection closed cleanly; false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
*/
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
interface CompressionStream extends GenericTransformStream {
}
declare var CompressionStream: {
prototype: CompressionStream;
new(format: CompressionFormat): CompressionStream;
};
/**
* This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
*/
interface CountQueuingStrategy extends QueuingStrategy {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/**
* Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
*/
interface Crypto {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
*/
readonly subtle: SubtleCrypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
*/
randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/**
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
*/
interface CryptoKey {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */
readonly algorithm: KeyAlgorithm;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */
readonly extractable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */
readonly type: KeyType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */
interface CustomEvent<T = any> extends Event {
/**
* Returns any custom data event was created with. Typically used for synthetic events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
*/
readonly detail: T;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
*/
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
*/
interface DOMException extends Error {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
*/
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
readonly message: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
readonly name: string;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */
interface DOMMatrixReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */
readonly a: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */
readonly b: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */
readonly c: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */
readonly d: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */
readonly e: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */
readonly f: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */
readonly isIdentity: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */
readonly m11: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */
readonly m12: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */
readonly m13: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */
readonly m14: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */
readonly m21: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */
readonly m22: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */
readonly m23: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */
readonly m24: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */
readonly m31: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */
readonly m32: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */
readonly m33: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */
readonly m34: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */
readonly m41: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */
readonly m42: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */
readonly m43: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */
readonly m44: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */
flipX(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */
flipY(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */
inverse(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */
multiply(other?: DOMMatrixInit): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */
rotateFromVector(x?: number, y?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)
*/
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */
skewX(sx?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */
skewY(sy?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */
toFloat32Array(): Float32Array;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */
toFloat64Array(): Float64Array;
toJSON(): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */
transformPoint(point?: DOMPointInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */
interface DOMPoint extends DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */
w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */
x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */
y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPoint;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */
interface DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */
readonly w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */
readonly z: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
interface DOMQuad {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
readonly p1: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
readonly p2: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
readonly p3: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
readonly p4: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */
interface DOMRectReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */
readonly bottom: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */
readonly left: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */
readonly right: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */
readonly top: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */
readonly width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/**
* A type returned by some APIs which contains a list of DOMString (strings).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
*/
interface DOMStringList {
/**
* Returns the number of strings in strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
*/
readonly length: number;
/**
* Returns true if strings contains string, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
*/
contains(string: string): boolean;
/**
* Returns the string with index index from strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)
*/
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
interface DecompressionStream extends GenericTransformStream {
}
declare var DecompressionStream: {
prototype: DecompressionStream;
new(format: CompressionFormat): DecompressionStream;
};
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
"rtctransform": Event;
}
/**
* (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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope)
*/
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
/**
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/**
* Aborts dedicatedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */
interface EXT_color_buffer_float {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */
interface EXT_color_buffer_half_float {
readonly RGBA16F_EXT: 0x881A;
readonly RGB16F_EXT: 0x881B;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */
interface EXT_float_blend {
}
/**
* The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)
*/
interface EXT_frag_depth {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */
interface EXT_sRGB {
readonly SRGB_EXT: 0x8C40;
readonly SRGB_ALPHA_EXT: 0x8C42;
readonly SRGB8_ALPHA8_EXT: 0x8C43;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */
interface EXT_shader_texture_lod {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */
interface EXT_texture_compression_bptc {
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
}
/**
* The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)
*/
interface EXT_texture_filter_anisotropic {
readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */
interface EXT_texture_norm16 {
readonly R16_EXT: 0x822A;
readonly RG16_EXT: 0x822C;
readonly RGB16_EXT: 0x8054;
readonly RGBA16_EXT: 0x805B;
readonly R16_SNORM_EXT: 0x8F98;
readonly RG16_SNORM_EXT: 0x8F99;
readonly RGB16_SNORM_EXT: 0x8F9A;
readonly RGBA16_SNORM_EXT: 0x8F9B;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */
interface EncodedVideoChunk {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */
readonly byteLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */
readonly type: EncodedVideoChunkType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */
copyTo(destination: AllowSharedBufferSource): void;
}
declare var EncodedVideoChunk: {
prototype: EncodedVideoChunk;
new(init: EncodedVideoChunkInit): EncodedVideoChunk;
};
/**
* Events providing information related to errors in scripts or in files.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
*/
interface ErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
readonly colno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
readonly error: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
readonly filename: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
readonly lineno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/**
* An event which takes place in the DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
*/
interface Event {
/**
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
*/
readonly bubbles: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
*/
cancelBubble: boolean;
/**
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
*/
readonly cancelable: boolean;
/**
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
*/
readonly composed: boolean;
/**
* Returns the object whose event listener's callback is currently being invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
*/
readonly currentTarget: EventTarget | null;
/**
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
*/
readonly defaultPrevented: boolean;
/**
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
*/
readonly eventPhase: number;
/**
* Returns true if event was dispatched by the user agent, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
readonly isTrusted: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
*/
returnValue: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
*/
readonly srcElement: EventTarget | null;
/**
* Returns the object to which event is dispatched (its target).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
*/
readonly target: EventTarget | null;
/**
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
*/
readonly timeStamp: DOMHighResTimeStamp;
/**
* Returns the type of event, e.g. "click", "hashchange", or "submit".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
*/
readonly type: string;
/**
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
*/
composedPath(): EventTarget[];
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
*/
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/**
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
*/
preventDefault(): void;
/**
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
*/
stopImmediatePropagation(): void;
/**
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
*/
stopPropagation(): void;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */
interface EventSource extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
onerror: ((this: EventSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */
onopen: ((this: EventSource, ev: Event) => any) | null;
/**
* Returns the state of this EventSource object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
*/
readonly readyState: number;
/**
* Returns the URL providing the event stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
*/
readonly url: string;
/**
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
*/
readonly withCredentials: boolean;
/**
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
*/
close(): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
*/
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
*
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
dispatchEvent(event: Event): boolean;
/**
* Removes the event listener in target's event listener list with the same type, callback, and options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
*/
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
*/
interface ExtendableEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) */
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) — extends the lifetime of such events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent)
*/
interface ExtendableMessageEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data) */
readonly data: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId) */
readonly lastEventId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/ports) */
readonly ports: ReadonlyArray<MessagePort>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/source) */
readonly source: Client | ServiceWorker | MessagePort | null;
}
declare var ExtendableMessageEvent: {
prototype: ExtendableMessageEvent;
new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
};
/**
* This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)
*/
interface FetchEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId) */
readonly clientId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled) */
readonly handled: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse) */
readonly preloadResponse: Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) */
readonly request: Request;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId) */
readonly resultingClientId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
*/
interface File extends Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
readonly lastModified: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/**
* An object of this type is returned by the files property of the HTML <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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
*/
interface FileList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)
*/
interface FileReader extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */
readonly result: string | ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */
readAsArrayBuffer(blob: Blob): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */
readAsDataURL(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */
readAsText(blob: Blob, encoding?: string): void;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
addEventListener<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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync)
*/
interface FileReaderSync {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer) */
readAsArrayBuffer(blob: Blob): ArrayBuffer;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL) */
readAsDataURL(blob: Blob): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsText) */
readAsText(blob: Blob, encoding?: string): string;
}
declare var FileReaderSync: {
prototype: FileReaderSync;
new(): FileReaderSync;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
*/
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
*/
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle) */
createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */
createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
*/
interface FileSystemHandle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */
readonly kind: FileSystemHandleKind;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle)
*/
interface FileSystemSyncAccessHandle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/flush) */
flush(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */
getSize(): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */
read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */
truncate(newSize: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */
write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
}
declare var FileSystemSyncAccessHandle: {
prototype: FileSystemSyncAccessHandle;
new(): FileSystemSyncAccessHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
*/
interface FileSystemWritableFileStream extends WritableStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */
seek(position: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */
truncate(size: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */
write(data: FileSystemWriteChunkType): Promise<void>;
}
declare var FileSystemWritableFileStream: {
prototype: FileSystemWritableFileStream;
new(): FileSystemWritableFileStream;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */
interface FontFace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */
ascentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */
descentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */
display: FontDisplay;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */
family: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */
featureSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */
lineGapOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */
readonly loaded: Promise<FontFace>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */
readonly status: FontFaceLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */
stretch: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */
style: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
unicodeRange: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
weight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
interface FontFaceSet extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
readonly ready: Promise<FontFaceSet>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
readonly status: FontFaceSetLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */
check(font: string, text?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */
load(font: string, text?: string): Promise<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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */
interface FontFaceSetLoadEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
readonly fonts: FontFaceSet;
}
/**
* Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
*/
interface FormData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */
append(name: string, value: string | Blob): void;
append(name: string, value: string): void;
append(name: string, blobValue: Blob, filename?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */
get(name: string): FormDataEntryValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */
getAll(name: string): FormDataEntryValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */
set(name: string, value: string | Blob): void;
set(name: string, value: string): void;
set(name: string, blobValue: Blob, filename?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(): FormData;
};
interface GenericTransformStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
readonly writable: WritableStream;
}
/**
* 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 of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
*/
interface Headers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */
append(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
get(name: string): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */
getSetCookie(): string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)
*/
interface IDBCursor {
/**
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
*/
readonly direction: IDBCursorDirection;
/**
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
*/
readonly key: IDBValidKey;
/**
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
*/
readonly primaryKey: IDBValidKey;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */
readonly request: IDBRequest;
/**
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
*/
readonly source: IDBObjectStore | IDBIndex;
/**
* Advances the cursor through the next count records in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
*/
advance(count: number): void;
/**
* Advances the cursor to the next record in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
*/
interface IDBCursorWithValue extends IDBCursor {
/**
* Returns the cursor's current value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
*/
interface IDBDatabase extends EventTarget {
/**
* Returns the name of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
*/
readonly name: string;
/**
* Returns a list of the names of object stores in the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/**
* Returns the version of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
*/
readonly version: number;
/**
* Closes the connection once all running transactions have finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
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.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
*/
cmp(first: any, second: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
*/
interface IDBIndex {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */
readonly keyPath: string | string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */
readonly multiEntry: boolean;
/**
* Returns the name of the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
*/
name: string;
/**
* Returns the IDBObjectStore the index belongs to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
*/
readonly objectStore: IDBObjectStore;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)
*/
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:
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
*/
interface IDBKeyRange {
/**
* Returns lower bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
*/
readonly lower: any;
/**
* Returns true if the lower open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
*/
readonly lowerOpen: boolean;
/**
* Returns upper bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
*/
readonly upper: any;
/**
* Returns true if the upper open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
*/
readonly upperOpen: boolean;
/**
* Returns true if key is included in the range, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
*/
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning only key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
*/
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 inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
*/
interface IDBObjectStore {
/**
* Returns true if the store has a key generator, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
*/
readonly autoIncrement: boolean;
/**
* Returns a list of the names of indexes in the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
*/
readonly indexNames: DOMStringList;
/**
* Returns the key path of the store, or null if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
*/
readonly keyPath: string | string[];
/**
* Returns the name of the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
*/
name: string;
/**
* Returns the associated transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)
*/
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)
*/
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/**
* Returns "pending" until a request is complete, then returns "done".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)
*/
readonly result: T;
/**
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)
*/
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */
interface IDBTransaction extends EventTarget {
/**
* Returns the transaction's connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
*/
readonly db: IDBDatabase;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */
readonly durability: IDBTransactionDurability;
/**
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
*/
readonly error: DOMException | null;
/**
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */
commit(): void;
/**
* Returns an IDBObjectStore in the transaction's scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
*/
interface IDBVersionChangeEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */
readonly newVersion: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */
interface ImageBitmap {
/**
* Returns the intrinsic height of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
*/
readonly height: number;
/**
* Returns the intrinsic width of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
*/
readonly width: number;
/**
* Releases imageBitmap's underlying bitmap data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
*/
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
*/
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().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
*/
interface ImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */
readonly colorSpace: PredefinedColorSpace;
/**
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
*/
readonly height: number;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: 0x91B1;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
*/
interface Lock {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */
readonly mode: LockMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
*/
interface LockManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
query(): Promise<LockManagerSnapshot>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
request(name: string, callback: LockGrantedCallback): Promise<any>;
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
}
declare var LockManager: {
prototype: LockManager;
new(): LockManager;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */
interface MediaCapabilities {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
*/
interface MessageChannel {
/**
* Returns the first MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
*/
readonly port1: MessagePort;
/**
* Returns the second MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
*/
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/**
* A message received by a target object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
*/
interface MessageEvent<T = any> extends Event {
/**
* Returns the data of the message.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
*/
readonly data: T;
/**
* Returns the last event ID string, for server-sent events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
*/
readonly lastEventId: string;
/**
* Returns the origin of the message, for server-sent events and cross-document messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
*/
readonly origin: string;
/**
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
*/
readonly source: MessageEventSource | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
*/
interface MessagePort extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/**
* Disconnects the port, so that it is no longer active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Begins dispatching messages received on the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
*/
interface NavigationPreloadManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */
disable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */
enable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */
getState(): Promise<NavigationPreloadState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */
setHeaderValue(value: string): Promise<void>;
}
declare var NavigationPreloadManager: {
prototype: NavigationPreloadManager;
new(): NavigationPreloadManager;
};
/** Available only in secure contexts. */
interface NavigatorBadge {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */
clearAppBadge(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */
setAppBadge(contents?: number): Promise<void>;
}
interface NavigatorConcurrentHardware {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */
readonly hardwareConcurrency: number;
}
interface NavigatorID {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
*/
readonly appCodeName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
*/
readonly appName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
*/
readonly appVersion: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
*/
readonly platform: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
*/
readonly product: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
readonly userAgent: string;
}
interface NavigatorLanguage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */
readonly language: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */
readonly languages: ReadonlyArray<string>;
}
/** Available only in secure contexts. */
interface NavigatorLocks {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */
readonly locks: LockManager;
}
interface NavigatorOnLine {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */
readonly onLine: boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
*/
interface Notification extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */
readonly badge: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */
readonly body: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */
readonly data: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */
readonly dir: NotificationDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */
readonly icon: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */
readonly lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */
onclick: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */
onclose: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */
onerror: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
onshow: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */
readonly requireInteraction: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
readonly silent: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
readonly tag: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
readonly title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent)
*/
interface NotificationEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action) */
readonly action: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/notification) */
readonly notification: Notification;
}
declare var NotificationEvent: {
prototype: NotificationEvent;
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */
interface OES_draw_buffers_indexed {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */
blendEquationiOES(buf: GLuint, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */
disableiOES(target: GLenum, index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */
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().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)
*/
interface OES_element_index_uint {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)
*/
interface OES_texture_half_float_linear {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */
interface OES_vertex_array_object {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */
interface OVR_multiview2 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
*/
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
*/
interface Path2D extends CanvasPath {
/**
* Adds to the path the path given by the argument.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)
*/
interface Performance extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */
readonly timeOrigin: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */
clearMarks(markName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */
clearMeasures(measureName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */
clearResourceTimings(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */
getEntriesByType(type: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */
now(): DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */
setResourceTimingBufferSize(maxSize: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
*/
interface PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */
readonly entryType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */
readonly startTime: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/**
* PerformanceMark is 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
*/
interface PerformanceMark extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
*/
interface PerformanceMeasure extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */
interface PerformanceObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */
observe(options?: PerformanceObserverInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */
readonly supportedEntryTypes: ReadonlyArray<string>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */
interface PerformanceObserverEntryList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
*/
interface PerformanceResourceTiming extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */
readonly connectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */
readonly connectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */
readonly decodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */
readonly domainLookupEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */
readonly domainLookupStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */
readonly encodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */
readonly fetchStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */
readonly initiatorType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */
readonly nextHopProtocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */
readonly redirectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */
readonly redirectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */
readonly requestStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */
readonly responseEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */
readonly responseStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */
readonly secureConnectionStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */
readonly transferSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */
readonly workerStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */
interface PerformanceServerTiming {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */
readonly description: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
interface PermissionStatusEventMap {
"change": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */
interface PermissionStatus extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */
interface Permissions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */
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>).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
*/
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */
readonly lengthComputable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */
readonly loaded: number;
readonly target: T | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */
interface PromiseRejectionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
readonly promise: Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent)
*/
interface PushEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)
*/
interface PushManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */
getSubscription(): Promise<PushSubscription | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData)
*/
interface PushMessageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/arrayBuffer) */
arrayBuffer(): ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob) */
blob(): Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json) */
json(): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
*/
interface PushSubscription {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */
readonly endpoint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */
readonly expirationTime: EpochTimeStamp | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */
readonly options: PushSubscriptionOptions;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */
toJSON(): PushSubscriptionJSON;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
*/
interface PushSubscriptionOptions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */
readonly applicationServerKey: ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */
interface RTCEncodedAudioFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */
interface RTCEncodedVideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */
readonly type: RTCEncodedVideoFrameType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer) */
interface RTCRtpScriptTransformer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options) */
readonly options: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable) */
readonly writable: WritableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame) */
generateKeyFrame(rid?: string): Promise<number>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest) */
sendKeyFrameRequest(): Promise<void>;
}
declare var RTCRtpScriptTransformer: {
prototype: RTCRtpScriptTransformer;
new(): RTCRtpScriptTransformer;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent) */
interface RTCTransformEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer) */
readonly transformer: RTCRtpScriptTransformer;
}
declare var RTCTransformEvent: {
prototype: RTCTransformEvent;
new(): RTCTransformEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
interface ReadableByteStreamController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
readonly byobRequest: ReadableStreamBYOBRequest | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */
enqueue(chunk: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
*/
interface ReadableStream<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
cancel(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */
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>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream): ReadableStreamBYOBReader;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
interface ReadableStreamBYOBRequest {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
readonly view: ArrayBufferView | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
respond(bytesWritten: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
respondWithNewView(view: ArrayBufferView): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
interface ReadableStreamDefaultController<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */
enqueue(chunk?: R): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
read(): Promise<ReadableStreamReadResult<R>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
cancel(reason?: any): Promise<void>;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */
interface Report {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */
readonly body: ReportBody | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */
readonly url: string;
toJSON(): any;
}
declare var Report: {
prototype: Report;
new(): Report;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */
interface ReportBody {
toJSON(): any;
}
declare var ReportBody: {
prototype: ReportBody;
new(): ReportBody;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */
interface ReportingObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */
observe(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */
takeRecords(): ReportList;
}
declare var ReportingObserver: {
prototype: ReportingObserver;
new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
};
/**
* This Fetch API interface represents a resource request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
*/
readonly credentials: RequestCredentials;
/**
* Returns the kind of resource requested by request, e.g., "document" or "script".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
*/
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]
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
*/
readonly integrity: string;
/**
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
*/
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
*/
readonly referrer: string;
/**
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
*/
readonly signal: AbortSignal;
/**
* Returns the URL of request as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
*/
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
};
/**
* This Fetch API interface represents the response to a request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
*/
interface Response extends Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */
readonly headers: Headers;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */
readonly ok: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */
readonly redirected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */
readonly statusText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */
readonly type: ResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
error(): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */
json(data: any, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
*/
interface SecurityPolicyViolationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */
readonly blockedURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */
readonly columnNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */
readonly disposition: SecurityPolicyViolationEventDisposition;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */
readonly documentURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */
readonly effectiveDirective: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */
readonly lineNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */
readonly originalPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */
readonly referrer: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */
readonly sample: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */
readonly sourceFile: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */
readonly statusCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */
readonly scriptURL: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */
readonly state: ServiceWorkerState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */
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 ServiceWorkerContainer interface of the ServiceWorker API provides 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)
*/
interface ServiceWorkerContainer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */
readonly controller: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
readonly ready: Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
*/
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients) */
readonly clients: Clients;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) */
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) */
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */
readonly registration: ServiceWorkerRegistration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) */
readonly serviceWorker: ServiceWorker;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
*/
interface ServiceWorkerRegistration extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */
readonly active: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */
readonly installing: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */
readonly navigationPreload: NavigationPreloadManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
readonly pushManager: PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */
readonly scope: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */
readonly updateViaCache: ServiceWorkerUpdateViaCache;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */
readonly waiting: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */
showNotification(title: string, options?: NotificationOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */
unregister(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/connect_event) */
onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/**
* Aborts sharedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/close)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
*/
interface StorageManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */
estimate(): Promise<StorageEstimate>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */
getDirectory(): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */
interface StylePropertyMapReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */
get(property: string): undefined | CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */
getAll(property: string): CSSStyleValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */
has(property: string): boolean;
forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;
}
declare var StylePropertyMapReadOnly: {
prototype: StylePropertyMapReadOnly;
new(): StylePropertyMapReadOnly;
};
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
*/
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */
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. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
*/
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/**
* Returns encoding's name, lowercased.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)
*/
readonly encoding: string;
/**
* Returns true if error mode is "fatal", otherwise false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)
*/
readonly fatal: boolean;
/**
* Returns the value of ignore BOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)
*/
readonly ignoreBOM: boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */
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 – a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
*/
interface TextEncoder extends TextEncoderCommon {
/**
* Returns the result of running UTF-8's encoder.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
*/
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/**
* Returns "utf-8".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
*/
readonly encoding: string;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
*/
interface TextMetrics {
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
*/
readonly actualBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
*/
readonly actualBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
*/
readonly actualBoundingBoxLeft: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
*/
readonly actualBoundingBoxRight: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
*/
readonly alphabeticBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
*/
readonly emHeightAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
*/
readonly emHeightDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
*/
readonly fontBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
*/
readonly fontBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
*/
readonly hangingBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
*/
readonly ideographicBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)
*/
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */
interface TransformStream<I = any, O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
readonly readable: ReadableStream<O>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */
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>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
interface TransformStreamDefaultController<O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
enqueue(chunk?: O): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */
error(reason?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/**
* The URL interface represents an object providing static methods used for creating object URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
*/
interface URL {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
hash: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
host: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
hostname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
href: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
password: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
pathname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
port: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
search: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */
readonly searchParams: URLSearchParams;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
username: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
canParse(url: string | URL, base?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
createObjectURL(obj: Blob): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
revokeObjectURL(url: string): void;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
interface URLSearchParams {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
readonly size: number;
/**
* Appends a specified key/value pair as a new search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
*/
append(name: string, value: string): void;
/**
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
*/
delete(name: string, value?: string): void;
/**
* Returns the first value associated to the given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
*/
get(name: string): string | null;
/**
* Returns all the values association with a given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
*/
getAll(name: string): string[];
/**
* Returns a Boolean indicating if such a search parameter exists.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
*/
has(name: string, value?: string): boolean;
/**
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
*/
set(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */
interface VideoColorSpace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */
readonly fullRange: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */
readonly matrix: VideoMatrixCoefficients | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */
readonly primaries: VideoColorPrimaries | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */
readonly transfer: VideoTransferCharacteristics | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */
toJSON(): VideoColorSpaceInit;
}
declare var VideoColorSpace: {
prototype: VideoColorSpace;
new(init?: VideoColorSpaceInit): VideoColorSpace;
};
interface VideoDecoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
*/
interface VideoDecoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */
readonly decodeQueueSize: number;
ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */
configure(config: VideoDecoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */
decode(chunk: EncodedVideoChunk): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoDecoder: {
prototype: VideoDecoder;
new(init: VideoDecoderInit): VideoDecoder;
isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};
interface VideoEncoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
*/
interface VideoEncoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */
readonly encodeQueueSize: number;
ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */
configure(config: VideoEncoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */
encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoEncoder: {
prototype: VideoEncoder;
new(init: VideoEncoderInit): VideoEncoder;
isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */
interface VideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */
readonly codedHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */
readonly codedRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */
readonly codedWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */
readonly colorSpace: VideoColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */
readonly displayHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */
readonly displayWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */
readonly format: VideoPixelFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */
readonly visibleRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */
allocationSize(options?: VideoFrameCopyToOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */
clone(): VideoFrame;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */
close(): void;
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
declare var VideoFrame: {
prototype: VideoFrame;
new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */
interface WEBGL_color_buffer_float {
readonly RGBA32F_EXT: 0x8814;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */
interface WEBGL_compressed_texture_astc {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */
interface WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;
}
/**
* The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)
*/
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)
*/
interface WEBGL_debug_renderer_info {
readonly UNMASKED_VENDOR_WEBGL: 0x9245;
readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */
interface WEBGL_debug_shaders {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */
getTranslatedShaderSource(shader: WebGLShader): string;
}
/**
* The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)
*/
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */
interface WEBGL_draw_buffers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
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;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */
interface WEBGL_lose_context {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */
loseContext(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */
restoreContext(): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */
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 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 RGBA8: 0x8058;
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */
beginQuery(target: GLenum, query: WebGLQuery): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */
beginTransformFeedback(primitiveMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */
bindVertexArray(array: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
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?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
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?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */
createQuery(): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */
createSampler(): WebGLSampler | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */
createTransformFeedback(): WebGLTransformFeedback | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */
createVertexArray(): WebGLVertexArrayObject | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */
deleteQuery(query: WebGLQuery | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */
deleteSampler(sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */
deleteSync(sync: WebGLSync | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */
endQuery(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */
endTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */
getFragDataLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */
getIndexedParameter(target: GLenum, index: GLuint): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */
isQuery(query: WebGLQuery | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */
isSampler(sampler: WebGLSampler | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */
isSync(sync: WebGLSync | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */
pauseTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */
readBuffer(src: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */
resumeTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */
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: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */
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?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */
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 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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
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?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
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?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
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: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
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: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
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: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
}
/**
* Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)
*/
interface WebGLActiveInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */
readonly size: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)
*/
interface WebGLContextEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)
*/
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)
*/
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 RGBA8: 0x8058;
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 {
drawingBufferColorSpace: PredefinedColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
readonly drawingBufferHeight: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */
readonly drawingBufferWidth: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */
activeTexture(texture: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */
attachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */
blendEquation(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */
checkFramebufferStatus(target: GLenum): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */
clear(mask: GLbitfield): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */
clearDepth(depth: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */
clearStencil(s: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */
compileShader(shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */
createBuffer(): WebGLBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */
createFramebuffer(): WebGLFramebuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */
createProgram(): WebGLProgram | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */
createRenderbuffer(): WebGLRenderbuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */
createShader(type: GLenum): WebGLShader | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */
createTexture(): WebGLTexture | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */
cullFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */
deleteBuffer(buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */
deleteProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */
deleteShader(shader: WebGLShader | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */
deleteTexture(texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */
depthFunc(func: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */
depthMask(flag: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */
depthRange(zNear: GLclampf, zFar: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */
detachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */
disable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */
disableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */
enable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */
enableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */
finish(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */
flush(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */
frontFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */
generateMipmap(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */
getAttribLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */
getBufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */
getContextAttributes(): WebGLContextAttributes | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
getError(): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
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_pvrtc"): WEBGL_compressed_texture_pvrtc | 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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
getParameter(pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */
getProgramInfoLog(program: WebGLProgram): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */
getShaderInfoLog(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */
getShaderSource(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */
getSupportedExtensions(): string[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */
getTexParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */
getVertexAttrib(index: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */
hint(target: GLenum, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */
isBuffer(buffer: WebGLBuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */
isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */
isEnabled(cap: GLenum): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */
isProgram(program: WebGLProgram | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */
isShader(shader: WebGLShader | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */
linkProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */
polygonOffset(factor: GLfloat, units: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */
sampleCoverage(value: GLclampf, invert: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */
shaderSource(shader: WebGLShader, source: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */
stencilMask(mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */
useProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */
validateProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1f(index: GLuint, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */
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 RGBA8: 0x8058;
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
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;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)
*/
interface WebGLShaderPrecisionFormat {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */
readonly precision: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */
readonly rangeMax: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)
*/
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)
*/
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
*/
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".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
*/
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.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
*/
readonly bufferedAmount: number;
/**
* Returns the extensions selected by the server, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
*/
readonly extensions: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */
onerror: ((this: WebSocket, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
*/
readonly protocol: string;
/**
* Returns the state of the WebSocket object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
*/
readonly readyState: number;
/**
* Returns the URL that was used to establish the WebSocket connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
close(code?: number, reason?: string): void;
/**
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
*/
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;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
*/
interface WebTransport {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */
readonly closed: Promise<WebTransportCloseInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */
readonly datagrams: WebTransportDatagramDuplexStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */
readonly incomingBidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */
readonly incomingUnidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */
close(closeInfo?: WebTransportCloseInfo): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
}
declare var WebTransport: {
prototype: WebTransport;
new(url: string | URL, options?: WebTransportOptions): WebTransport;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
*/
interface WebTransportBidirectionalStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportBidirectionalStream: {
prototype: WebTransportBidirectionalStream;
new(): WebTransportBidirectionalStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
*/
interface WebTransportDatagramDuplexStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */
incomingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */
incomingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */
readonly maxDatagramSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */
outgoingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */
outgoingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportDatagramDuplexStream: {
prototype: WebTransportDatagramDuplexStream;
new(): WebTransportDatagramDuplexStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
*/
interface WebTransportError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */
readonly source: WebTransportErrorSource;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */
readonly streamErrorCode: number | null;
}
declare var WebTransportError: {
prototype: WebTransportError;
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
};
/**
* 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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient)
*/
interface WindowClient extends Client {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focused) */
readonly focused: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState) */
readonly visibilityState: DocumentVisibilityState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focus) */
focus(): Promise<WindowClient>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/navigate) */
navigate(url: string | URL): Promise<WindowClient | null>;
}
declare var WindowClient: {
prototype: WindowClient;
new(): WindowClient;
};
interface WindowOrWorkerGlobalScope {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
readonly caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
readonly crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
readonly crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
readonly indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
readonly isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
readonly performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
}
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
*/
interface Worker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Aborts worker's associated global environment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)
*/
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 — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope)
*/
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
/**
* Returns workerGlobal's WorkerLocation object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
*/
readonly location: WorkerLocation;
/**
* Returns workerGlobal's WorkerNavigator object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)
*/
readonly navigator: WorkerNavigator;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */
onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */
onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
* Returns workerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation)
*/
interface WorkerLocation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash) */
readonly hash: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host) */
readonly host: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname) */
readonly hostname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/href) */
readonly href: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname) */
readonly pathname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port) */
readonly port: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol) */
readonly protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
*/
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities) */
readonly mediaCapabilities: MediaCapabilities;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */
readonly permissions: Permissions;
}
declare var WorkerNavigator: {
prototype: WorkerNavigator;
new(): WorkerNavigator;
};
/**
* This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
*/
interface WritableStream<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
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 WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
*/
interface WritableStreamDefaultController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
readonly signal: AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
*/
interface WritableStreamDefaultWriter<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */
releaseLock(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)
*/
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/**
* Returns client's state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
*/
readonly readyState: number;
/**
* Returns the response body.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
*/
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
*/
responseType: XMLHttpRequestResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */
readonly responseURL: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)
*/
timeout: number;
/**
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)
*/
withCredentials: boolean;
/**
* Cancels any network activity.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */
getAllResponseHeaders(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)
*/
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>;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
interface Console {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */
assert(condition?: boolean, ...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
count(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
countReset(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
debug(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */
dir(item?: any, options?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */
dirxml(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */
error(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
group(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
groupCollapsed(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
groupEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
info(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */
log(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */
table(tabularData?: any, properties?: string[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
time(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
timeEnd(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
trace(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */
interface Global<T extends ValueType = ValueType> {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */
value: ValueTypeMap[T];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */
valueOf(): ValueTypeMap[T];
}
var Global: {
prototype: Global;
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */
interface Instance {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */
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;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */
interface Memory {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */
readonly buffer: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */
exports(moduleObject: Module): ModuleExportDescriptor[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */
interface Table {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */
get(index: number): any;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */
grow(delta: number, value?: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor<T extends ValueType = ValueType> {
mutable?: boolean;
value: T;
}
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 ValueTypeMap {
anyfunc: Function;
externref: any;
f32: number;
f64: number;
i32: number;
i64: bigint;
v128: never;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
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>;
type ValueType = keyof ValueTypeMap;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */
function compile(bytes: BufferSource): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */
function validate(bytes: BufferSource): boolean;
}
interface EncodedVideoChunkOutputCallback {
(chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
}
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 ReportingObserverCallback {
(reports: Report[], observer: ReportingObserver): 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 VideoFrameOutputCallback {
(output: VideoFrame): void;
}
interface VoidFunction {
(): void;
}
interface WebCodecsErrorCallback {
(error: DOMException): void;
}
/**
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
*/
declare var name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
declare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/**
* Aborts dedicatedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
declare function dispatchEvent(event: Event): boolean;
/**
* Returns workerGlobal's WorkerLocation object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
*/
declare var location: WorkerLocation;
/**
* Returns workerGlobal's WorkerNavigator object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)
*/
declare var navigator: WorkerNavigator;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */
declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
*/
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).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
declare function dispatchEvent(event: Event): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
declare var fonts: FontFaceSet;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
declare var caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
declare var crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
declare var indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
declare var isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
declare var origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
declare var performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
declare function atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
declare function clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
declare function clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
declare function reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
declare function cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
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 AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type CSSKeywordish = string | CSSKeywordValue;
type CSSNumberish = number | CSSNumericValue;
type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
type CSSUnparsedSegment = string | CSSVariableReferenceValue;
type CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame;
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
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 ReportList = Report[];
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
type Uint32List = Uint32Array | GLuint[];
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlphaOption = "discard" | "keep";
type AvcBitstreamFormat = "annexb" | "avc";
type BinaryType = "arraybuffer" | "blob";
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
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 CodecState = "closed" | "configured" | "unconfigured";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
type DocumentVisibilityState = "hidden" | "visible";
type EncodedVideoChunkType = "delta" | "key";
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 HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
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" | "none";
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 LatencyMode = "quality" | "realtime";
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 RequestPriority = "auto" | "high" | "low";
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 VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
type WebTransportErrorSource = "session" | "stream";
type WorkerType = "classic" | "module";
type WriteCommandType = "seek" | "truncate" | "write";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,co["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;
`,co["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 CSSNumericArray {
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
entries(): IterableIterator<[number, CSSNumericValue]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSNumericValue>;
}
interface CSSTransformValue {
[Symbol.iterator](): IterableIterator<CSSTransformComponent>;
entries(): IterableIterator<[number, CSSTransformComponent]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSTransformComponent>;
}
interface CSSUnparsedValue {
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;
entries(): IterableIterator<[number, CSSUnparsedSegment]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSUnparsedSegment>;
}
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
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.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MessageEvent<T = any> {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface StylePropertyMapReadOnly {
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;
keys(): IterableIterator<string>;
values(): IterableIterator<Iterable<CSSStyleValue>>;
}
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
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>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
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 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
}
interface WebGL2RenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`;function _m(g){return typeof g=="string"?/^file:\/\/\//.test(g)?!!co[g.substr(8)]:!1:g.path.indexOf("/lib.")===0?!!co[g.path.slice(1)]:!1}var SEe=class s6{constructor(b,I){this._extraLibs=Object.create(null),this._languageService=bEe(this),this._ctx=b,this._compilerOptions=I.compilerOptions,this._extraLibs=I.extraLibs,this._inlayHintsOptions=I.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(z=>z.uri).filter(z=>!_m(z)).map(z=>z.toString()).concat(Object.keys(this._extraLibs))}_getModel(b){let I=this._ctx.getMirrorModels();for(let z=0;z<I.length;z++){const ee=I[z].uri;if(ee.toString()===b||ee.toString(!0)===b)return I[z]}return null}getScriptVersion(b){let I=this._getModel(b);return I?I.version.toString():this.isDefaultLibFileName(b)?"1":b in this._extraLibs?String(this._extraLibs[b].version):""}async getScriptText(b){return this._getScriptText(b)}_getScriptText(b){let I,z=this._getModel(b);const ee="lib."+b+".d.ts";if(z)I=z.getValue();else if(b in co)I=co[b];else if(ee in co)I=co[ee];else if(b in this._extraLibs)I=this._extraLibs[b].content;else return;return I}getScriptSnapshot(b){const I=this._getScriptText(b);if(I!==void 0)return{getText:(z,ee)=>I.substring(z,ee),getLength:()=>I.length,getChangeRange:()=>{}}}getScriptKind(b){switch(b.substr(b.lastIndexOf(".")+1)){case"ts":return UN.TS;case"tsx":return UN.TSX;case"js":return UN.JS;case"jsx":return UN.JSX;default:return this.getCompilationSettings().allowJs?UN.JS:UN.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(b){switch(b.target){case 99:const I="lib.esnext.full.d.ts";if(I in co||I in this._extraLibs)return I;case 7:case 6:case 5:case 4:case 3:case 2:default:const z=`lib.es${2013+(b.target||99)}.full.d.ts`;return z in co||z in this._extraLibs?z:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(b){return b===this.getDefaultLibFileName(this._compilerOptions)}readFile(b){return this._getScriptText(b)}fileExists(b){return this._getScriptText(b)!==void 0}async getLibFiles(){return co}static clearFiles(b){const I=[];for(const z of b){const ee={...z};if(ee.file=ee.file?{fileName:ee.file.fileName}:void 0,z.relatedInformation){ee.relatedInformation=[];for(const _e of z.relatedInformation){const Re={..._e};Re.file=Re.file?{fileName:Re.file.fileName}:void 0,ee.relatedInformation.push(Re)}}I.push(ee)}return I}async getSyntacticDiagnostics(b){if(_m(b))return[];const I=this._languageService.getSyntacticDiagnostics(b);return s6.clearFiles(I)}async getSemanticDiagnostics(b){if(_m(b))return[];const I=this._languageService.getSemanticDiagnostics(b);return s6.clearFiles(I)}async getSuggestionDiagnostics(b){if(_m(b))return[];const I=this._languageService.getSuggestionDiagnostics(b);return s6.clearFiles(I)}async getCompilerOptionsDiagnostics(b){if(_m(b))return[];const I=this._languageService.getCompilerOptionsDiagnostics();return s6.clearFiles(I)}async getCompletionsAtPosition(b,I){if(!_m(b))return this._languageService.getCompletionsAtPosition(b,I,void 0)}async getCompletionEntryDetails(b,I,z){return this._languageService.getCompletionEntryDetails(b,I,z,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(b,I,z){if(!_m(b))return this._languageService.getSignatureHelpItems(b,I,z)}async getQuickInfoAtPosition(b,I){if(!_m(b))return this._languageService.getQuickInfoAtPosition(b,I)}async getDocumentHighlights(b,I,z){if(!_m(b))return this._languageService.getDocumentHighlights(b,I,z)}async getDefinitionAtPosition(b,I){if(!_m(b))return this._languageService.getDefinitionAtPosition(b,I)}async getReferencesAtPosition(b,I){if(!_m(b))return this._languageService.getReferencesAtPosition(b,I)}async getNavigationTree(b){if(!_m(b))return this._languageService.getNavigationTree(b)}async getFormattingEditsForDocument(b,I){return _m(b)?[]:this._languageService.getFormattingEditsForDocument(b,I)}async getFormattingEditsForRange(b,I,z,ee){return _m(b)?[]:this._languageService.getFormattingEditsForRange(b,I,z,ee)}async getFormattingEditsAfterKeystroke(b,I,z,ee){return _m(b)?[]:this._languageService.getFormattingEditsAfterKeystroke(b,I,z,ee)}async findRenameLocations(b,I,z,ee,_e){if(!_m(b))return this._languageService.findRenameLocations(b,I,z,ee,_e)}async getRenameInfo(b,I,z){return _m(b)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(b,I,z)}async getEmitOutput(b,I,z){if(_m(b))return{outputFiles:[],emitSkipped:!0};const ee=this._languageService.getEmitOutput(b,I,z),_e=ee.diagnostics?s6.clearFiles(ee.diagnostics):void 0;return{...ee,diagnostics:_e}}async getCodeFixesAtPosition(b,I,z,ee,_e){if(_m(b))return[];const Re={};try{return this._languageService.getCodeFixesAtPosition(b,I,z,ee,_e,Re)}catch{return[]}}async updateExtraLibs(b){this._extraLibs=b}async provideInlayHints(b,I,z){if(_m(b))return[];const ee=this._inlayHintsOptions??{},_e={start:I,length:z-I};try{return this._languageService.provideInlayHints(b,_e,ee)}catch{return[]}}};function Sze(g,b){let I=SEe;if(b.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(b.customWorkerPath);const z=self.customTSWorkerFactory;if(!z)throw new Error(`The script at ${b.customWorkerPath} does not add customTSWorkerFactory to self`);I=z(SEe,yEe,co)}return new I(g,b)}globalThis.ts=EEe,self.onmessage=()=>{vEe((g,b)=>Sze(g,b))};/*! *****************************************************************************
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.
***************************************************************************** */})();